diff --git a/abstra_internals/widgets/library/CustomInput.py b/abstra_internals/widgets/library/CustomInput.py index 23112806dc..e7ec71f2ed 100644 --- a/abstra_internals/widgets/library/CustomInput.py +++ b/abstra_internals/widgets/library/CustomInput.py @@ -26,7 +26,8 @@ def render(self, ctx: dict): return {'type': self.type, 'key': self.key, 'label': self.label, 'value': self.serialize_value(), 'htmlBody': self.html_body, 'height': self.height, 'htmlHead': self.html_head, 'css': self. - css, 'js': self.js, 'fullWidth': self.full_width} + css, 'js': self.js, 'fullWidth': self.full_width, 'errors': + self.errors} def parse_value(self, value) ->Any: return value diff --git a/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js b/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js deleted file mode 100644 index ccbc7512f6..0000000000 --- a/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as r,o as d,c as o,w as a,b as f,$ as c,u as s,dh as u,ey as i,eB as l,bT as p}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0d7b0a07-532d-49fa-8245-42ea3937ac3c",e._sentryDebugIdIdentifier="sentry-dbid-0d7b0a07-532d-49fa-8245-42ea3937ac3c")}catch{}})();const _=r({__name:"AbstraButton",setup(e){return(t,n)=>(d(),o(s(p),i(l(t.$attrs)),{default:a(()=>[f(s(u),{style:{display:"flex","align-items":"center","justify-content":"center",gap:"5px"}},{default:a(()=>[c(t.$slots,"default")]),_:3})]),_:3},16))}});export{_}; -//# sourceMappingURL=AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js.map diff --git a/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js b/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js new file mode 100644 index 0000000000..ae0639f1b5 --- /dev/null +++ b/abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js @@ -0,0 +1,2 @@ +import{d as r,o as d,c as o,w as a,b as f,$ as b,u as s,dh as u,ey as i,eB as l,bT as c}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b8b23621-f4d0-4bbc-b261-5a77aa309dfb",e._sentryDebugIdIdentifier="sentry-dbid-b8b23621-f4d0-4bbc-b261-5a77aa309dfb")}catch{}})();const y=r({__name:"AbstraButton",setup(e){return(t,n)=>(d(),o(s(c),i(l(t.$attrs)),{default:a(()=>[f(s(u),{style:{display:"flex","align-items":"center","justify-content":"center",gap:"5px"}},{default:a(()=>[b(t.$slots,"default")]),_:3})]),_:3},16))}});export{y as _}; +//# sourceMappingURL=AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js.map diff --git a/abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js b/abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js new file mode 100644 index 0000000000..eb36c3a7d6 --- /dev/null +++ b/abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js @@ -0,0 +1,2 @@ +import{L as t}from"./Logo.8f27935a.js";import{d as n,o as r,c as a,u as d}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="517f4b18-af8d-4010-985e-4b8f286e4641",e._sentryDebugIdIdentifier="sentry-dbid-517f4b18-af8d-4010-985e-4b8f286e4641")}catch{}})();const f="/assets/logo.0faadfa2.svg",b=n({__name:"AbstraLogo",props:{hideText:{type:Boolean},size:{}},setup(e){return(o,s)=>(r(),a(t,{"image-url":d(f),"brand-name":"Abstra","hide-text":o.hideText,size:o.size},null,8,["image-url","hide-text","size"]))}});export{b as _}; +//# sourceMappingURL=AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js.map diff --git a/abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js b/abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js deleted file mode 100644 index cec3173624..0000000000 --- a/abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js +++ /dev/null @@ -1,2 +0,0 @@ -import{L as t}from"./Logo.cf3e0e74.js";import{d as n,o as r,c as a,u as d}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="86a2e314-9ed9-4e83-b5f8-63506989d135",e._sentryDebugIdIdentifier="sentry-dbid-86a2e314-9ed9-4e83-b5f8-63506989d135")}catch{}})();const i="/assets/logo.0faadfa2.svg",l=n({__name:"AbstraLogo",props:{hideText:{type:Boolean},size:{}},setup(e){return(o,s)=>(r(),a(t,{"image-url":d(i),"brand-name":"Abstra","hide-text":o.hideText,size:o.size},null,8,["image-url","hide-text","size"]))}});export{l as _}; -//# sourceMappingURL=AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js.map diff --git a/abstra_statics/dist/assets/AccessControlEditor.53b7cfdd.js b/abstra_statics/dist/assets/AccessControlEditor.5b7ec035.js similarity index 75% rename from abstra_statics/dist/assets/AccessControlEditor.53b7cfdd.js rename to abstra_statics/dist/assets/AccessControlEditor.5b7ec035.js index 84febb2bff..d5af7e54e8 100644 --- a/abstra_statics/dist/assets/AccessControlEditor.53b7cfdd.js +++ b/abstra_statics/dist/assets/AccessControlEditor.5b7ec035.js @@ -1,2 +1,2 @@ -var B=Object.defineProperty;var D=(i,e,s)=>e in i?B(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var M=(i,e,s)=>(D(i,typeof e!="symbol"?e+"":e,s),s);import{C as E}from"./ContentLayout.60e2d770.js";import{l as I}from"./fetch.fd4370bb.js";import{E as N}from"./record.a6861841.js";import{d as C,D as A,f as b,o as n,Y as y,$,S as k,e8 as U,a as _,c as v,eg as O,w as r,aG as g,b as a,u as t,bT as z,eb as S,cU as L,e9 as P,aS as H,cT as F,aB as G,ec as W,aW as Y,d9 as J,cS as K,cR as Z,dh as w,dc as Q,d5 as X,dd as ee,db as j,da as te,F as se}from"./index.8c3f27aa.js";import{E as oe}from"./repository.31bede66.js";import{a as q}from"./asyncComputed.cfc0cdaf.js";import{S as re}from"./SaveButton.f2d9e5cc.js";import{I as ae}from"./PhGlobe.vue.3da2da74.js";import{u as x}from"./editor.e7656461.js";import{F as le}from"./PhArrowSquareOut.vue.da8bb581.js";import{A as ne}from"./index.d18d35d7.js";import{i as ie}from"./metadata.2beed20a.js";import{A as T}from"./index.126762e2.js";import"./gateway.8032b20a.js";import"./popupNotifcation.40886a7f.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="eea53e89-4f57-4e9c-ae08-fe6bb4442438",i._sentryDebugIdIdentifier="sentry-dbid-eea53e89-4f57-4e9c-ae08-fe6bb4442438")}catch{}})();const ce=["width","height","fill","transform"],ue={key:0},de=_("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Z"},null,-1),pe=[de],he={key:1},ge=_("path",{d:"M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z",opacity:"0.2"},null,-1),fe=_("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"},null,-1),me=[ge,fe],ye={key:2},ve=_("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z"},null,-1),be=[ve],_e={key:3},Ce=_("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"},null,-1),we=[Ce],Ve={key:4},Ae=_("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"},null,-1),He=[Ae],ke={key:5},Se=_("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"},null,-1),Pe=[Se],Re={name:"PhLockSimple"},Me=C({...Re,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,s=A("weight","regular"),c=A("size","1em"),f=A("color","currentColor"),m=A("mirrored",!1),o=b(()=>{var l;return(l=e.weight)!=null?l:s}),h=b(()=>{var l;return(l=e.size)!=null?l:c}),d=b(()=>{var l;return(l=e.color)!=null?l:f}),u=b(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(l,p)=>(n(),y("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:u.value},l.$attrs),[$(l.$slots,"default"),o.value==="bold"?(n(),y("g",ue,pe)):o.value==="duotone"?(n(),y("g",he,me)):o.value==="fill"?(n(),y("g",ye,be)):o.value==="light"?(n(),y("g",_e,we)):o.value==="regular"?(n(),y("g",Ve,He)):o.value==="thin"?(n(),y("g",ke,Pe)):k("",!0)],16,ce))}});class R{constructor(e){M(this,"record");this.record=N.from(e)}get id(){return this.record.get("id")}get type(){return this.record.get("type")}get title(){return this.record.get("title")}get isPublic(){return this.record.get("is_public")}set isPublic(e){e&&this.record.set("required_roles",[]),this.record.set("is_public",e)}get requiredRoles(){return this.record.get("required_roles")}set requiredRoles(e){e.length!==0&&this.record.set("is_public",!1),this.record.set("required_roles",e)}makePublic(){this.isPublic=!0}makeProtected(){this.isPublic=!1,this.requiredRoles=[]}require(e){e.length!==0&&(this.isPublic=!1),this.requiredRoles=e}get visibility(){return this.isPublic?"public":"private"}hasChanges(){return this.record.hasChanges("is_public")||this.record.hasChangesDeep("required_roles")}get changes(){return this.record.changes}get initialState(){return this.record.initialState}toUpdateDTO(){return{id:this.id,is_public:this.isPublic,required_roles:this.requiredRoles}}commit(){this.record.commit()}static from(e){return new R(e)}}class Ze{constructor(e=I){this.fetch=e}async list(){return(await(await this.fetch("/_editor/api/access-control",{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(R.from)}async update(e){const s=e.reduce((f,m)=>(m.hasChanges()&&f.push({id:m.id,...m.changes}),f),[]);return await(await fetch("/_editor/api/access-control",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).json()}}const je=_("span",null," Project Roles ",-1),qe=C({__name:"RoleSelector",props:{value:{},roleOptions:{},disabled:{type:Boolean}},emits:["update:value"],setup(i,{emit:e}){const s=i,c=x(),f=o=>{e("update:value",o)},m=C({props:{vnodes:{type:Object,required:!0}},render(){return this.vnodes}});return(o,h)=>(n(),v(t(G),{value:o.value,mode:"multiple",disabled:o.disabled,"show-arrow":"","onUpdate:value":f},O({dropdownRender:r(({menuNode:d})=>[a(t(m),{vnodes:d},null,8,["vnodes"]),a(t(ne),{style:{margin:"4px 0"}}),t(c).links?(n(),v(t(z),{key:0,type:"default",style:{display:"flex","align-items":"center","justify-content":"center",width:"100%",gap:"4px"},href:t(c).links.roles,target:"abstra_project"},{default:r(()=>[a(t(le),{size:"16"}),g(" Manage roles in Cloud Console ")]),_:1},8,["href"])):k("",!0)]),default:r(()=>[a(t(F),null,{label:r(()=>[je]),default:r(()=>[(n(!0),y(H,null,S(o.roleOptions,d=>(n(),v(t(L),{key:d,value:d},{default:r(()=>[g(P(d),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:2},[s.disabled?void 0:{name:"placeholder",fn:r(()=>[g(" Leave empty to allow all listed users ")]),key:"0"}]),1032,["value","disabled"]))}}),xe=C({__name:"AccessControlItem",props:{accessControl:{},roles:{}},emits:["update:access-control"],setup(i,{emit:e}){const s=i,c=b(()=>s.roles.map(o=>o.name)),f=o=>{o?s.accessControl.makePublic():s.accessControl.makeProtected(),e("update:access-control",s.accessControl)},m=o=>{s.accessControl.require(o),o.length!==0&&(s.accessControl.isPublic=!1),e("update:access-control",s.accessControl)};return(o,h)=>(n(),v(t(w),{justify:"space-between",align:"center",gap:"small"},{default:r(()=>[(n(),v(W(t(ie)(o.accessControl.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),a(t(J),{style:{width:"300px","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},{default:r(()=>[a(t(Y),{title:o.accessControl.title,placement:"left",open:o.accessControl.title.length>36?void 0:!1},{default:r(()=>[g(P(o.accessControl.title),1)]),_:1},8,["title","open"])]),_:1}),a(t(w),{gap:"large",align:"center"},{default:r(()=>[a(qe,{disabled:o.accessControl.visibility==="public",style:{width:"320px"},value:o.accessControl.requiredRoles||[],"role-options":c.value||[],"onUpdate:value":h[0]||(h[0]=d=>m(d))},null,8,["disabled","value","role-options"]),a(t(K),{value:o.accessControl.visibility},{default:r(()=>[a(t(Z),{value:"public",onChange:h[1]||(h[1]=d=>f(!0))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[g(" Public "),a(t(ae),{size:14})]),_:1})]),_:1}),a(t(Z),{value:"private",onChange:h[2]||(h[2]=d=>f(!1))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[g(" Private "),a(t(Me),{size:14})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}))}}),Te=C({__name:"DanglingRolesAlert",props:{danglingRoles:{}},setup(i){return(e,s)=>(n(),v(t(T),{type:"warning","show-icon":"",closable:"",style:{margin:"5px"}},{description:r(()=>[a(t(Q),null,{default:r(()=>[g("The following roles are not defined in the Cloud Console:")]),_:1}),(n(!0),y(H,null,S(e.danglingRoles,c=>(n(),v(t(X),{key:c,style:{margin:"2px"},color:"red"},{default:r(()=>[g(P(c),1)]),_:2},1024))),128))]),_:1}))}}),Be=C({__name:"View",props:{accessControls:{},roles:{},loading:{type:Boolean}},emits:["update:access-controls","save"],setup(i,{emit:e}){const s=i,c=u=>{const l=s.accessControls.findIndex(p=>p.id===u.id);l!==-1&&(s.accessControls[l]=u,e("update:access-controls",[...s.accessControls]))},f=b(()=>{var u;return((u=s.accessControls)==null?void 0:u.filter(l=>l.hasChanges()))||[]}),m=b(()=>f.value.length>0),h={save:async()=>{e("save")},hasChanges:()=>m.value},d=b(()=>{const u=[...new Set(s.accessControls.flatMap(p=>p.requiredRoles)||[])],l=s.roles.map(p=>p.name)||[];return(u==null?void 0:u.filter(p=>!l.includes(p)))||[]});return(u,l)=>(n(),y(H,null,[!u.loading&&d.value.length>0?(n(),v(Te,{key:0,"dangling-roles":d.value},null,8,["dangling-roles"])):k("",!0),a(re,{model:h}),a(t(w),{vertical:"",gap:"small",style:{"margin-top":"10px"}},{default:r(()=>[(n(!0),y(H,null,S(u.accessControls,p=>(n(),v(t(w),{key:p.id},{default:r(()=>[a(xe,{"access-control":p,roles:u.roles,"onUpdate:accessControl":c},null,8,["access-control","roles"])]),_:2},1024))),128))]),_:1})],64))}}),it=C({__name:"AccessControlEditor",setup(i){const e=x(),s=new Ze,{result:c,refetch:f}=q(async()=>await s.list()),m=b(()=>{var l;return((l=c.value)==null?void 0:l.filter(p=>p.hasChanges()))||[]}),o=async()=>{await s.update(m.value),await f()},h=new oe,{result:d,loading:u}=q(()=>h.list(100,0));return(l,p)=>(n(),v(E,null,{default:r(()=>[a(t(ee),null,{default:r(()=>[g("Access Control")]),_:1}),a(t(j),null,{default:r(()=>[g(" Set your project\u2019s pages as public, accessible to all users, or restricted to users with specific roles. ")]),_:1}),a(t(j),null,{default:r(()=>{var V;return[g(" Manage users and roles on the cloud's "),a(t(te),{href:(V=t(e).links)==null?void 0:V.users,target:"abstra_project"},{default:r(()=>[g("Access Control tab")]),_:1},8,["href"]),g(". Settings applied here will be enforced only in the cloud environment. ")]}),_:1}),a(t(T),{style:{width:"fit-content","margin-bottom":"24px"}},{message:r(()=>[g(" You may need to refresh this page to sync the roles with the cloud environment ")]),_:1}),t(c)?(n(),v(Be,{key:0,"access-controls":t(c),"onUpdate:accessControls":p[0]||(p[0]=V=>se(c)?c.value=V:null),roles:t(d)||[],loading:t(u),onSave:o},null,8,["access-controls","roles","loading"])):k("",!0)]),_:1}))}});export{it as default}; -//# sourceMappingURL=AccessControlEditor.53b7cfdd.js.map +var B=Object.defineProperty;var D=(i,e,s)=>e in i?B(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var M=(i,e,s)=>(D(i,typeof e!="symbol"?e+"":e,s),s);import{C as E}from"./ContentLayout.f92ff80c.js";import{l as I}from"./fetch.e5ebd511.js";import{E as N}from"./record.8c284c67.js";import{d as C,D as A,f as b,o as n,Y as y,$,S as k,e8 as U,a as _,c as v,eg as O,w as r,aG as g,b as a,u as t,bT as z,eb as S,cU as L,e9 as P,aS as H,cT as F,aB as G,ec as W,aW as Y,d9 as J,cS as K,cR as Z,dh as w,dc as Q,d5 as X,dd as ee,db as j,da as te,F as se}from"./index.d0f12294.js";import{E as oe}from"./repository.d3422c40.js";import{a as q}from"./asyncComputed.703c33fd.js";import{S as re}from"./SaveButton.a02cacb0.js";import{I as ae}from"./PhGlobe.vue.71eddd06.js";import{u as x}from"./editor.95f16260.js";import{F as le}from"./PhArrowSquareOut.vue.418ffcff.js";import{A as ne}from"./index.a552d580.js";import{i as ie}from"./metadata.bc77f4b9.js";import{A as T}from"./index.289665f1.js";import"./gateway.ae1d6857.js";import"./popupNotifcation.a0a6244b.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="c026e739-0e21-4517-b3e0-fd35a9bc015d",i._sentryDebugIdIdentifier="sentry-dbid-c026e739-0e21-4517-b3e0-fd35a9bc015d")}catch{}})();const ce=["width","height","fill","transform"],ue={key:0},de=_("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Z"},null,-1),pe=[de],he={key:1},ge=_("path",{d:"M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z",opacity:"0.2"},null,-1),me=_("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"},null,-1),fe=[ge,me],ye={key:2},ve=_("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z"},null,-1),be=[ve],_e={key:3},Ce=_("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"},null,-1),we=[Ce],Ve={key:4},Ae=_("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"},null,-1),He=[Ae],ke={key:5},Se=_("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"},null,-1),Pe=[Se],Re={name:"PhLockSimple"},Me=C({...Re,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,s=A("weight","regular"),c=A("size","1em"),m=A("color","currentColor"),f=A("mirrored",!1),o=b(()=>{var l;return(l=e.weight)!=null?l:s}),h=b(()=>{var l;return(l=e.size)!=null?l:c}),d=b(()=>{var l;return(l=e.color)!=null?l:m}),u=b(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:f?"scale(-1, 1)":void 0);return(l,p)=>(n(),y("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:u.value},l.$attrs),[$(l.$slots,"default"),o.value==="bold"?(n(),y("g",ue,pe)):o.value==="duotone"?(n(),y("g",he,fe)):o.value==="fill"?(n(),y("g",ye,be)):o.value==="light"?(n(),y("g",_e,we)):o.value==="regular"?(n(),y("g",Ve,He)):o.value==="thin"?(n(),y("g",ke,Pe)):k("",!0)],16,ce))}});class R{constructor(e){M(this,"record");this.record=N.from(e)}get id(){return this.record.get("id")}get type(){return this.record.get("type")}get title(){return this.record.get("title")}get isPublic(){return this.record.get("is_public")}set isPublic(e){e&&this.record.set("required_roles",[]),this.record.set("is_public",e)}get requiredRoles(){return this.record.get("required_roles")}set requiredRoles(e){e.length!==0&&this.record.set("is_public",!1),this.record.set("required_roles",e)}makePublic(){this.isPublic=!0}makeProtected(){this.isPublic=!1,this.requiredRoles=[]}require(e){e.length!==0&&(this.isPublic=!1),this.requiredRoles=e}get visibility(){return this.isPublic?"public":"private"}hasChanges(){return this.record.hasChanges("is_public")||this.record.hasChangesDeep("required_roles")}get changes(){return this.record.changes}get initialState(){return this.record.initialState}toUpdateDTO(){return{id:this.id,is_public:this.isPublic,required_roles:this.requiredRoles}}commit(){this.record.commit()}static from(e){return new R(e)}}class Ze{constructor(e=I){this.fetch=e}async list(){return(await(await this.fetch("/_editor/api/access-control",{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(R.from)}async update(e){const s=e.reduce((m,f)=>(f.hasChanges()&&m.push({id:f.id,...f.changes}),m),[]);return await(await fetch("/_editor/api/access-control",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).json()}}const je=_("span",null," Project Roles ",-1),qe=C({__name:"RoleSelector",props:{value:{},roleOptions:{},disabled:{type:Boolean}},emits:["update:value"],setup(i,{emit:e}){const s=i,c=x(),m=o=>{e("update:value",o)},f=C({props:{vnodes:{type:Object,required:!0}},render(){return this.vnodes}});return(o,h)=>(n(),v(t(G),{value:o.value,mode:"multiple",disabled:o.disabled,"show-arrow":"","onUpdate:value":m},O({dropdownRender:r(({menuNode:d})=>[a(t(f),{vnodes:d},null,8,["vnodes"]),a(t(ne),{style:{margin:"4px 0"}}),t(c).links?(n(),v(t(z),{key:0,type:"default",style:{display:"flex","align-items":"center","justify-content":"center",width:"100%",gap:"4px"},href:t(c).links.roles,target:"abstra_project"},{default:r(()=>[a(t(le),{size:"16"}),g(" Manage roles in Cloud Console ")]),_:1},8,["href"])):k("",!0)]),default:r(()=>[a(t(F),null,{label:r(()=>[je]),default:r(()=>[(n(!0),y(H,null,S(o.roleOptions,d=>(n(),v(t(L),{key:d,value:d},{default:r(()=>[g(P(d),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:2},[s.disabled?void 0:{name:"placeholder",fn:r(()=>[g(" Leave empty to allow all listed users ")]),key:"0"}]),1032,["value","disabled"]))}}),xe=C({__name:"AccessControlItem",props:{accessControl:{},roles:{}},emits:["update:access-control"],setup(i,{emit:e}){const s=i,c=b(()=>s.roles.map(o=>o.name)),m=o=>{o?s.accessControl.makePublic():s.accessControl.makeProtected(),e("update:access-control",s.accessControl)},f=o=>{s.accessControl.require(o),o.length!==0&&(s.accessControl.isPublic=!1),e("update:access-control",s.accessControl)};return(o,h)=>(n(),v(t(w),{justify:"space-between",align:"center",gap:"small"},{default:r(()=>[(n(),v(W(t(ie)(o.accessControl.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),a(t(J),{style:{width:"300px","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},{default:r(()=>[a(t(Y),{title:o.accessControl.title,placement:"left",open:o.accessControl.title.length>36?void 0:!1},{default:r(()=>[g(P(o.accessControl.title),1)]),_:1},8,["title","open"])]),_:1}),a(t(w),{gap:"large",align:"center"},{default:r(()=>[a(qe,{disabled:o.accessControl.visibility==="public",style:{width:"320px"},value:o.accessControl.requiredRoles||[],"role-options":c.value||[],"onUpdate:value":h[0]||(h[0]=d=>f(d))},null,8,["disabled","value","role-options"]),a(t(K),{value:o.accessControl.visibility},{default:r(()=>[a(t(Z),{value:"public",onChange:h[1]||(h[1]=d=>m(!0))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[g(" Public "),a(t(ae),{size:14})]),_:1})]),_:1}),a(t(Z),{value:"private",onChange:h[2]||(h[2]=d=>m(!1))},{default:r(()=>[a(t(w),{align:"center",gap:"small"},{default:r(()=>[g(" Private "),a(t(Me),{size:14})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}))}}),Te=C({__name:"DanglingRolesAlert",props:{danglingRoles:{}},setup(i){return(e,s)=>(n(),v(t(T),{type:"warning","show-icon":"",closable:"",style:{margin:"5px"}},{description:r(()=>[a(t(Q),null,{default:r(()=>[g("The following roles are not defined in the Cloud Console:")]),_:1}),(n(!0),y(H,null,S(e.danglingRoles,c=>(n(),v(t(X),{key:c,style:{margin:"2px"},color:"red"},{default:r(()=>[g(P(c),1)]),_:2},1024))),128))]),_:1}))}}),Be=C({__name:"View",props:{accessControls:{},roles:{},loading:{type:Boolean}},emits:["update:access-controls","save"],setup(i,{emit:e}){const s=i,c=u=>{const l=s.accessControls.findIndex(p=>p.id===u.id);l!==-1&&(s.accessControls[l]=u,e("update:access-controls",[...s.accessControls]))},m=b(()=>{var u;return((u=s.accessControls)==null?void 0:u.filter(l=>l.hasChanges()))||[]}),f=b(()=>m.value.length>0),h={save:async()=>{e("save")},hasChanges:()=>f.value},d=b(()=>{const u=[...new Set(s.accessControls.flatMap(p=>p.requiredRoles)||[])],l=s.roles.map(p=>p.name)||[];return(u==null?void 0:u.filter(p=>!l.includes(p)))||[]});return(u,l)=>(n(),y(H,null,[!u.loading&&d.value.length>0?(n(),v(Te,{key:0,"dangling-roles":d.value},null,8,["dangling-roles"])):k("",!0),a(re,{model:h}),a(t(w),{vertical:"",gap:"small",style:{"margin-top":"10px"}},{default:r(()=>[(n(!0),y(H,null,S(u.accessControls,p=>(n(),v(t(w),{key:p.id},{default:r(()=>[a(xe,{"access-control":p,roles:u.roles,"onUpdate:accessControl":c},null,8,["access-control","roles"])]),_:2},1024))),128))]),_:1})],64))}}),it=C({__name:"AccessControlEditor",setup(i){const e=x(),s=new Ze,{result:c,refetch:m}=q(async()=>await s.list()),f=b(()=>{var l;return((l=c.value)==null?void 0:l.filter(p=>p.hasChanges()))||[]}),o=async()=>{await s.update(f.value),await m()},h=new oe,{result:d,loading:u}=q(()=>h.list(100,0));return(l,p)=>(n(),v(E,null,{default:r(()=>[a(t(ee),null,{default:r(()=>[g("Access Control")]),_:1}),a(t(j),null,{default:r(()=>[g(" Set your project\u2019s pages as public, accessible to all users, or restricted to users with specific roles. ")]),_:1}),a(t(j),null,{default:r(()=>{var V;return[g(" Manage users and roles on the cloud's "),a(t(te),{href:(V=t(e).links)==null?void 0:V.users,target:"abstra_project"},{default:r(()=>[g("Access Control tab")]),_:1},8,["href"]),g(". Settings applied here will be enforced only in the cloud environment. ")]}),_:1}),a(t(T),{style:{width:"fit-content","margin-bottom":"24px"}},{message:r(()=>[g(" You may need to refresh this page to sync the roles with the cloud environment ")]),_:1}),t(c)?(n(),v(Be,{key:0,"access-controls":t(c),"onUpdate:accessControls":p[0]||(p[0]=V=>se(c)?c.value=V:null),roles:t(d)||[],loading:t(u),onSave:o},null,8,["access-controls","roles","loading"])):k("",!0)]),_:1}))}});export{it as default}; +//# sourceMappingURL=AccessControlEditor.5b7ec035.js.map diff --git a/abstra_statics/dist/assets/ApiKeys.28b655de.js b/abstra_statics/dist/assets/ApiKeys.28b655de.js deleted file mode 100644 index 8d67c83a15..0000000000 --- a/abstra_statics/dist/assets/ApiKeys.28b655de.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C as A}from"./CrudView.ac8aad2f.js";import{d as _,e as k,ea as x,f as P,o as v,Y as C,b as l,u as i,w as d,aS as h,db as D,aG as y,dc as M,e9 as j,cL as N,eI as K,ep as T}from"./index.8c3f27aa.js";import{a as V}from"./asyncComputed.cfc0cdaf.js";import{A as c}from"./apiKey.e2e0503b.js";import"./gateway.8032b20a.js";import{M as B}from"./member.ce73ad98.js";import{P as E}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import"./router.f4663fd5.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="c037d09a-4b85-4369-96b0-bdb48027d381",n._sentryDebugIdIdentifier="sentry-dbid-c037d09a-4b85-4369-96b0-bdb48027d381")}catch{}})();const oe=_({__name:"ApiKeys",setup(n){const a=k(null),p=[{key:"name",label:"API key name"}],s=x().params.projectId,f=new B,{loading:b,result:g,refetch:u}=V(async()=>Promise.all([c.list(s),E.get(s).then(e=>f.list(e.organizationId))]).then(([e,t])=>e.map(o=>({apiKey:o,member:t.find(r=>r.authorId===o.ownerId)})))),I=async e=>{const t=await c.create({projectId:s,name:e.name});u(),a.value=t.value},w=P(()=>{var e,t;return{columns:[{title:"Name"},{title:"Creation date"},{title:"Owner"},{title:"",align:"right"}],rows:(t=(e=g.value)==null?void 0:e.map(({apiKey:o,member:r})=>{var m;return{key:o.id,cells:[{type:"text",text:o.name},{type:"text",text:K(o.createdAt)},{type:"text",text:(m=r==null?void 0:r.email)!=null?m:"Unknown"},{type:"actions",actions:[{label:"Delete",icon:T,dangerous:!0,onClick:async()=>{await c.delete(s,o.id),u()}}]}]}}))!=null?t:[]}});return(e,t)=>(v(),C(h,null,[l(A,{"entity-name":"API key","create-button-text":"Create API Key",loading:i(b),title:"API Keys",description:"API Keys are used to deploy your project from the local editor.","empty-title":"No API keys here yet",table:w.value,fields:p,create:I},null,8,["loading","table"]),l(i(N),{open:!!a.value,title:"Api key generated",onCancel:t[0]||(t[0]=o=>a.value=null)},{footer:d(()=>[]),default:d(()=>[l(i(D),null,{default:d(()=>[y("Your API key was successfully generated. Use this code to login on your local development environment or deploy using CI")]),_:1}),l(i(M),{code:"",copyable:""},{default:d(()=>[y(j(a.value),1)]),_:1})]),_:1},8,["open"])],64))}});export{oe as default}; -//# sourceMappingURL=ApiKeys.28b655de.js.map diff --git a/abstra_statics/dist/assets/ApiKeys.ade071dc.js b/abstra_statics/dist/assets/ApiKeys.ade071dc.js new file mode 100644 index 0000000000..d1bf8ccbae --- /dev/null +++ b/abstra_statics/dist/assets/ApiKeys.ade071dc.js @@ -0,0 +1,2 @@ +import{C as A}from"./CrudView.423d8744.js";import{d as _,e as k,ea as x,f as P,o as v,Y as C,b as l,u as i,w as c,aS as h,db as D,aG as y,dc as M,e9 as j,cL as N,eI as K,ep as T}from"./index.d0f12294.js";import{a as V}from"./asyncComputed.703c33fd.js";import{A as d}from"./apiKey.12cb6e13.js";import"./gateway.ae1d6857.js";import{M as B}from"./member.8ffb8c1d.js";import{P as E}from"./project.fad91605.js";import"./tables.318f703e.js";import"./router.375df57e.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="6055e87c-5189-43e7-aec0-7cdc19ce0c1b",n._sentryDebugIdIdentifier="sentry-dbid-6055e87c-5189-43e7-aec0-7cdc19ce0c1b")}catch{}})();const oe=_({__name:"ApiKeys",setup(n){const a=k(null),p=[{key:"name",label:"API key name"}],s=x().params.projectId,f=new B,{loading:g,result:I,refetch:u}=V(async()=>Promise.all([d.list(s),E.get(s).then(e=>f.list(e.organizationId))]).then(([e,t])=>e.map(o=>({apiKey:o,member:t.find(r=>r.authorId===o.ownerId)})))),b=async e=>{const t=await d.create({projectId:s,name:e.name});u(),a.value=t.value},w=P(()=>{var e,t;return{columns:[{title:"Name"},{title:"Creation date"},{title:"Owner"},{title:"",align:"right"}],rows:(t=(e=I.value)==null?void 0:e.map(({apiKey:o,member:r})=>{var m;return{key:o.id,cells:[{type:"text",text:o.name},{type:"text",text:K(o.createdAt)},{type:"text",text:(m=r==null?void 0:r.email)!=null?m:"Unknown"},{type:"actions",actions:[{label:"Delete",icon:T,dangerous:!0,onClick:async()=>{await d.delete(s,o.id),u()}}]}]}}))!=null?t:[]}});return(e,t)=>(v(),C(h,null,[l(A,{"entity-name":"API key","create-button-text":"Create API Key",loading:i(g),title:"API Keys",description:"API Keys are used to deploy your project from the local editor.","empty-title":"No API keys here yet",table:w.value,fields:p,create:b},null,8,["loading","table"]),l(i(N),{open:!!a.value,title:"Api key generated",onCancel:t[0]||(t[0]=o=>a.value=null)},{footer:c(()=>[]),default:c(()=>[l(i(D),null,{default:c(()=>[y("Your API key was successfully generated. Use this code to login on your local development environment or deploy using CI")]),_:1}),l(i(M),{code:"",copyable:""},{default:c(()=>[y(j(a.value),1)]),_:1})]),_:1},8,["open"])],64))}});export{oe as default}; +//# sourceMappingURL=ApiKeys.ade071dc.js.map diff --git a/abstra_statics/dist/assets/App.5afbb284.js b/abstra_statics/dist/assets/App.5afbb284.js new file mode 100644 index 0000000000..d33f143b95 --- /dev/null +++ b/abstra_statics/dist/assets/App.5afbb284.js @@ -0,0 +1,2 @@ +import"./App.vue_vue_type_style_index_0_lang.03b90ea7.js";import{_ as c}from"./App.vue_vue_type_style_index_0_lang.03b90ea7.js";import"./workspaceStore.e47060bf.js";import"./index.d0f12294.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./PlayerConfigProvider.e5e86f58.js";import"./index.c7e8afe7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="50df9bfe-d5ea-4127-9033-36c17c591193",e._sentryDebugIdIdentifier="sentry-dbid-50df9bfe-d5ea-4127-9033-36c17c591193")}catch{}})();export{c as default}; +//# sourceMappingURL=App.5afbb284.js.map diff --git a/abstra_statics/dist/assets/App.80bbeb43.js b/abstra_statics/dist/assets/App.80bbeb43.js deleted file mode 100644 index c7be6c296a..0000000000 --- a/abstra_statics/dist/assets/App.80bbeb43.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./App.vue_vue_type_style_index_0_lang.b11374af.js";import{_ as c}from"./App.vue_vue_type_style_index_0_lang.b11374af.js";import"./workspaceStore.a6063d10.js";import"./index.8c3f27aa.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./PlayerConfigProvider.4d4af7bc.js";import"./index.73b06b4b.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="45263dd7-cc19-4bb3-af9b-b8858dda28b1",d._sentryDebugIdIdentifier="sentry-dbid-45263dd7-cc19-4bb3-af9b-b8858dda28b1")}catch{}})();export{c as default}; -//# sourceMappingURL=App.80bbeb43.js.map diff --git a/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.03b90ea7.js b/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.03b90ea7.js new file mode 100644 index 0000000000..b3b8b05331 --- /dev/null +++ b/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.03b90ea7.js @@ -0,0 +1,2 @@ +import{b as r,u as n}from"./workspaceStore.e47060bf.js";import{W as c}from"./PlayerConfigProvider.e5e86f58.js";import{d as i,g as d,r as f,u as o,o as p,c as u,w as l,S as _,b as m}from"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="0063338f-8b64-4418-893b-97b9d4391673",t._sentryDebugIdIdentifier="sentry-dbid-0063338f-8b64-4418-893b-97b9d4391673")}catch{}})();const h=i({__name:"App",setup(t){const a=r(),e=n();return e.actions.fetch(),d(()=>a.jwt,e.actions.fetch),(w,b)=>{const s=f("RouterView");return o(e).state.workspace?(p(),u(c,{key:0,"main-color":o(e).state.workspace.mainColor,background:o(e).state.workspace.theme,"font-family":o(e).state.workspace.fontFamily,locale:o(e).state.workspace.language},{default:l(()=>[m(s,{style:{height:"100vh",width:"100%"}})]),_:1},8,["main-color","background","font-family","locale"])):_("",!0)}}});export{h as _}; +//# sourceMappingURL=App.vue_vue_type_style_index_0_lang.03b90ea7.js.map diff --git a/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.b11374af.js b/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.b11374af.js deleted file mode 100644 index ba27b04f61..0000000000 --- a/abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.b11374af.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as r,u as n}from"./workspaceStore.a6063d10.js";import{W as c}from"./PlayerConfigProvider.4d4af7bc.js";import{d as i,g as d,r as p,u as o,o as u,c as f,w as l,S as _,b as m}from"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="b7b531dc-c638-4aee-9897-523b6ec96586",t._sentryDebugIdIdentifier="sentry-dbid-b7b531dc-c638-4aee-9897-523b6ec96586")}catch{}})();const h=i({__name:"App",setup(t){const a=r(),e=n();return e.actions.fetch(),d(()=>a.jwt,e.actions.fetch),(w,b)=>{const s=p("RouterView");return o(e).state.workspace?(u(),f(c,{key:0,"main-color":o(e).state.workspace.mainColor,background:o(e).state.workspace.theme,"font-family":o(e).state.workspace.fontFamily,locale:o(e).state.workspace.language},{default:l(()=>[m(s,{style:{height:"100vh",width:"100%"}})]),_:1},8,["main-color","background","font-family","locale"])):_("",!0)}}});export{h as _}; -//# sourceMappingURL=App.vue_vue_type_style_index_0_lang.b11374af.js.map diff --git a/abstra_statics/dist/assets/Avatar.8da44d42.js b/abstra_statics/dist/assets/Avatar.8da44d42.js deleted file mode 100644 index aff2b159d9..0000000000 --- a/abstra_statics/dist/assets/Avatar.8da44d42.js +++ /dev/null @@ -1,2 +0,0 @@ -import{ad as X,ae as N,U as g,ap as K,D as U,W as q,d as J,R as $,ai as V,f as Q,aP as Y,dJ as Z,g as F,X as ee,K as _,bU as te,b as z,am as re,al as L,av as ae,dG as ne}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c2e35b22-df6b-4b26-bb0d-1f2a327353d3",e._sentryDebugIdIdentifier="sentry-dbid-c2e35b22-df6b-4b26-bb0d-1f2a327353d3")}catch{}})();const oe=e=>{const{antCls:r,componentCls:a,iconCls:n,avatarBg:i,avatarColor:S,containerSize:l,containerSizeLG:c,containerSizeSM:f,textFontSize:b,textFontSizeLG:h,textFontSizeSM:w,borderRadius:C,borderRadiusLG:s,borderRadiusSM:A,lineWidth:u,lineType:R}=e,v=(m,t,o)=>({width:m,height:m,lineHeight:`${m-u*2}px`,borderRadius:"50%",[`&${a}-square`]:{borderRadius:o},[`${a}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${a}-icon`]:{fontSize:t,[`> ${n}`]:{margin:0}}});return{[a]:g(g(g(g({},K(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:S,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${u}px ${R} transparent`,["&-image"]:{background:"transparent"},[`${r}-image-img`]:{display:"block"}}),v(l,b,C)),{["&-lg"]:g({},v(c,h,s)),["&-sm"]:g({},v(f,w,A)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},se=e=>{const{componentCls:r,groupBorderColor:a,groupOverlapping:n,groupSpace:i}=e;return{[`${r}-group`]:{display:"inline-flex",[`${r}`]:{borderColor:a},["> *:not(:first-child)"]:{marginInlineStart:n}},[`${r}-group-popover`]:{[`${r} + ${r}`]:{marginInlineStart:i}}}},ie=X("Avatar",e=>{const{colorTextLightSolid:r,colorTextPlaceholder:a}=e,n=N(e,{avatarBg:a,avatarColor:r});return[oe(n),se(n)]},e=>{const{controlHeight:r,controlHeightLG:a,controlHeightSM:n,fontSize:i,fontSizeLG:S,fontSizeXL:l,fontSizeHeading3:c,marginXS:f,marginXXS:b,colorBorderBg:h}=e;return{containerSize:r,containerSizeLG:a,containerSizeSM:n,textFontSize:Math.round((S+l)/2),textFontSizeLG:c,textFontSizeSM:i,groupSpace:b,groupOverlapping:-f,groupBorderColor:h}}),M=Symbol("AvatarContextKey"),le=()=>U(M,{}),ge=e=>q(M,e),ce=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:ae.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),ue=J({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:ce(),slots:Object,setup(e,r){let{slots:a,attrs:n}=r;const i=$(!0),S=$(!1),l=$(1),c=$(null),f=$(null),{prefixCls:b}=V("avatar",e),[h,w]=ie(b),C=le(),s=Q(()=>e.size==="default"?C.size:e.size),A=Y(),u=Z(()=>{if(typeof e.size!="object")return;const t=ne.find(p=>A.value[p]);return e.size[t]}),R=t=>u.value?{width:`${u.value}px`,height:`${u.value}px`,lineHeight:`${u.value}px`,fontSize:`${t?u.value/2:18}px`}:{},v=()=>{if(!c.value||!f.value)return;const t=c.value.offsetWidth,o=f.value.offsetWidth;if(t!==0&&o!==0){const{gap:p=4}=e;p*2{const{loadError:t}=e;(t==null?void 0:t())!==!1&&(i.value=!1)};return F(()=>e.src,()=>{_(()=>{i.value=!0,l.value=1})}),F(()=>e.gap,()=>{_(()=>{v()})}),ee(()=>{_(()=>{v(),S.value=!0})}),()=>{var t,o;const{shape:p,src:k,alt:G,srcset:H,draggable:O,crossOrigin:T}=e,j=(t=C.shape)!==null&&t!==void 0?t:p,y=te(a,e,"icon"),d=b.value,E={[`${n.class}`]:!!n.class,[d]:!0,[`${d}-lg`]:s.value==="large",[`${d}-sm`]:s.value==="small",[`${d}-${j}`]:!0,[`${d}-image`]:k&&i.value,[`${d}-icon`]:y,[w.value]:!0},P=typeof s.value=="number"?{width:`${s.value}px`,height:`${s.value}px`,lineHeight:`${s.value}px`,fontSize:y?`${s.value/2}px`:"18px"}:{},B=(o=a.default)===null||o===void 0?void 0:o.call(a);let x;if(k&&i.value)x=z("img",{draggable:O,src:k,srcset:H,onError:m,alt:G,crossorigin:T},null);else if(y)x=y;else if(S.value||l.value!==1){const I=`scale(${l.value}) translateX(-50%)`,W={msTransform:I,WebkitTransform:I,transform:I},D=typeof s.value=="number"?{lineHeight:`${s.value}px`}:{};x=z(re,{onResize:v},{default:()=>[z("span",{class:`${d}-string`,ref:c,style:g(g({},D),W)},[B])]})}else x=z("span",{class:`${d}-string`,ref:c,style:{opacity:0}},[B]);return h(z("span",L(L({},n),{},{ref:f,class:E,style:[P,R(!!y),n.style]}),[x]))}}}),fe=ue;export{fe as A,ge as a,ie as u}; -//# sourceMappingURL=Avatar.8da44d42.js.map diff --git a/abstra_statics/dist/assets/Avatar.f6415f7c.js b/abstra_statics/dist/assets/Avatar.f6415f7c.js new file mode 100644 index 0000000000..fe06aa7a00 --- /dev/null +++ b/abstra_statics/dist/assets/Avatar.f6415f7c.js @@ -0,0 +1,2 @@ +import{ad as X,ae as N,U as g,ap as K,D as U,W as q,d as J,R as $,ai as V,f as Q,aP as Y,dJ as Z,g as F,X as ee,K as _,bU as te,b as z,am as ae,al as L,av as re,dG as ne}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="34ca2d82-e9cd-419a-8d77-ca45c9684127",e._sentryDebugIdIdentifier="sentry-dbid-34ca2d82-e9cd-419a-8d77-ca45c9684127")}catch{}})();const oe=e=>{const{antCls:a,componentCls:r,iconCls:n,avatarBg:i,avatarColor:S,containerSize:l,containerSizeLG:c,containerSizeSM:v,textFontSize:h,textFontSizeLG:m,textFontSizeSM:w,borderRadius:C,borderRadiusLG:s,borderRadiusSM:A,lineWidth:u,lineType:R}=e,p=(y,t,o)=>({width:y,height:y,lineHeight:`${y-u*2}px`,borderRadius:"50%",[`&${r}-square`]:{borderRadius:o},[`${r}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${r}-icon`]:{fontSize:t,[`> ${n}`]:{margin:0}}});return{[r]:g(g(g(g({},K(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:S,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${u}px ${R} transparent`,["&-image"]:{background:"transparent"},[`${a}-image-img`]:{display:"block"}}),p(l,h,C)),{["&-lg"]:g({},p(c,m,s)),["&-sm"]:g({},p(v,w,A)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},se=e=>{const{componentCls:a,groupBorderColor:r,groupOverlapping:n,groupSpace:i}=e;return{[`${a}-group`]:{display:"inline-flex",[`${a}`]:{borderColor:r},["> *:not(:first-child)"]:{marginInlineStart:n}},[`${a}-group-popover`]:{[`${a} + ${a}`]:{marginInlineStart:i}}}},ie=X("Avatar",e=>{const{colorTextLightSolid:a,colorTextPlaceholder:r}=e,n=N(e,{avatarBg:r,avatarColor:a});return[oe(n),se(n)]},e=>{const{controlHeight:a,controlHeightLG:r,controlHeightSM:n,fontSize:i,fontSizeLG:S,fontSizeXL:l,fontSizeHeading3:c,marginXS:v,marginXXS:h,colorBorderBg:m}=e;return{containerSize:a,containerSizeLG:r,containerSizeSM:n,textFontSize:Math.round((S+l)/2),textFontSizeLG:c,textFontSizeSM:i,groupSpace:h,groupOverlapping:-v,groupBorderColor:m}}),M=Symbol("AvatarContextKey"),le=()=>U(M,{}),ge=e=>q(M,e),ce=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:re.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),ue=J({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:ce(),slots:Object,setup(e,a){let{slots:r,attrs:n}=a;const i=$(!0),S=$(!1),l=$(1),c=$(null),v=$(null),{prefixCls:h}=V("avatar",e),[m,w]=ie(h),C=le(),s=Q(()=>e.size==="default"?C.size:e.size),A=Y(),u=Z(()=>{if(typeof e.size!="object")return;const t=ne.find(f=>A.value[f]);return e.size[t]}),R=t=>u.value?{width:`${u.value}px`,height:`${u.value}px`,lineHeight:`${u.value}px`,fontSize:`${t?u.value/2:18}px`}:{},p=()=>{if(!c.value||!v.value)return;const t=c.value.offsetWidth,o=v.value.offsetWidth;if(t!==0&&o!==0){const{gap:f=4}=e;f*2{const{loadError:t}=e;(t==null?void 0:t())!==!1&&(i.value=!1)};return F(()=>e.src,()=>{_(()=>{i.value=!0,l.value=1})}),F(()=>e.gap,()=>{_(()=>{p()})}),ee(()=>{_(()=>{p(),S.value=!0})}),()=>{var t,o;const{shape:f,src:k,alt:G,srcset:H,draggable:O,crossOrigin:T}=e,j=(t=C.shape)!==null&&t!==void 0?t:f,b=te(r,e,"icon"),d=h.value,E={[`${n.class}`]:!!n.class,[d]:!0,[`${d}-lg`]:s.value==="large",[`${d}-sm`]:s.value==="small",[`${d}-${j}`]:!0,[`${d}-image`]:k&&i.value,[`${d}-icon`]:b,[w.value]:!0},P=typeof s.value=="number"?{width:`${s.value}px`,height:`${s.value}px`,lineHeight:`${s.value}px`,fontSize:b?`${s.value/2}px`:"18px"}:{},B=(o=r.default)===null||o===void 0?void 0:o.call(r);let x;if(k&&i.value)x=z("img",{draggable:O,src:k,srcset:H,onError:y,alt:G,crossorigin:T},null);else if(b)x=b;else if(S.value||l.value!==1){const I=`scale(${l.value}) translateX(-50%)`,W={msTransform:I,WebkitTransform:I,transform:I},D=typeof s.value=="number"?{lineHeight:`${s.value}px`}:{};x=z(ae,{onResize:p},{default:()=>[z("span",{class:`${d}-string`,ref:c,style:g(g({},D),W)},[B])]})}else x=z("span",{class:`${d}-string`,ref:c,style:{opacity:0}},[B]);return m(z("span",L(L({},n),{},{ref:v,class:E,style:[P,R(!!b),n.style]}),[x]))}}}),ve=ue;export{ve as A,ge as a,ie as u}; +//# sourceMappingURL=Avatar.f6415f7c.js.map diff --git a/abstra_statics/dist/assets/Badge.7a29ebdb.js b/abstra_statics/dist/assets/Badge.f6241be2.js similarity index 97% rename from abstra_statics/dist/assets/Badge.7a29ebdb.js rename to abstra_statics/dist/assets/Badge.f6241be2.js index fcfe5818f1..ca6487714b 100644 --- a/abstra_statics/dist/assets/Badge.7a29ebdb.js +++ b/abstra_statics/dist/assets/Badge.f6241be2.js @@ -1,2 +1,2 @@ -import{d as _,f,E as at,e as H,g as q,ah as rt,U as i,b as v,aj as F,ai as M,aR as lt,aF as G,av as B,ad as it,aU as O,ae as st,dS as X,ap as Y,al as D,dT as J,bU as ut,aD as ct,aY as dt,aZ as bt,a_ as gt,a$ as mt}from"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="82bf6a06-3721-413c-b956-e2746e1172f4",t._sentryDebugIdIdentifier="sentry-dbid-82bf6a06-3721-413c-b956-e2746e1172f4")}catch{}})();function K(t){let{prefixCls:e,value:a,current:o,offset:n=0}=t,c;return n&&(c={position:"absolute",top:`${n}00%`,left:0}),v("p",{style:c,class:F(`${e}-only-unit`,{current:o})},[a])}function ft(t,e,a){let o=t,n=0;for(;(o+10)%10!==e;)o+=a,n+=a;return n}const vt=_({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(t){const e=f(()=>Number(t.value)),a=f(()=>Math.abs(t.count)),o=at({prevValue:e.value,prevCount:a.value}),n=()=>{o.prevValue=e.value,o.prevCount=a.value},c=H();return q(e,()=>{clearTimeout(c.value),c.value=setTimeout(()=>{n()},1e3)},{flush:"post"}),rt(()=>{clearTimeout(c.value)}),()=>{let d,p={};const s=e.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))d=[K(i(i({},t),{current:!0}))],p={transition:"none"};else{d=[];const h=s+10,b=[];for(let r=s;r<=h;r+=1)b.push(r);const l=b.findIndex(r=>r%10===o.prevValue);d=b.map((r,S)=>{const $=r%10;return K(i(i({},t),{value:$,offset:S-l,current:S===l}))});const u=o.prevCountn()},[d])}}});var pt=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n{var c;const d=i(i({},t),a),{prefixCls:p,count:s,title:h,show:b,component:l="sup",class:u,style:r}=d,S=pt(d,["prefixCls","count","title","show","component","class","style"]),$=i(i({},S),{style:r,"data-show":t.show,class:F(n.value,u),title:h});let g=s;if(s&&Number(s)%1===0){const m=String(s).split("");g=m.map((I,P)=>v(vt,{prefixCls:n.value,count:Number(s),value:I,key:m.length-P},null))}r&&r.borderColor&&($.style=i(i({},r),{boxShadow:`0 0 0 1px ${r.borderColor} inset`}));const y=lt((c=o.default)===null||c===void 0?void 0:c.call(o));return y&&y.length?G(y,{class:F(`${n.value}-custom-component`)},!1):v(l,$,{default:()=>[g]})}}}),yt=new O("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),St=new O("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Ct=new O("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wt=new O("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),xt=new O("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Nt=new O("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Ot=t=>{const{componentCls:e,iconCls:a,antCls:o,badgeFontHeight:n,badgeShadowSize:c,badgeHeightSm:d,motionDurationSlow:p,badgeStatusSize:s,marginXS:h,badgeRibbonOffset:b}=t,l=`${o}-scroll-number`,u=`${o}-ribbon`,r=`${o}-ribbon-wrapper`,S=X(t,(g,y)=>{let{darkColor:m}=y;return{[`&${e} ${e}-color-${g}`]:{background:m,[`&:not(${e}-count)`]:{color:m}}}}),$=X(t,(g,y)=>{let{darkColor:m}=y;return{[`&${u}-color-${g}`]:{background:m,color:m}}});return{[e]:i(i(i(i({},Y(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{zIndex:t.badgeZIndex,minWidth:t.badgeHeight,height:t.badgeHeight,color:t.badgeTextColor,fontWeight:t.badgeFontWeight,fontSize:t.badgeFontSize,lineHeight:`${t.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:t.badgeHeight/2,boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:d,height:d,fontSize:t.badgeFontSizeSm,lineHeight:`${d}px`,borderRadius:d/2},[`${e}-multiple-words`]:{padding:`0 ${t.paddingXS}px`},[`${e}-dot`]:{zIndex:t.badgeZIndex,width:t.badgeDotSize,minWidth:t.badgeDotSize,height:t.badgeDotSize,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`},[`${e}-dot${l}`]:{transition:`background ${p}`},[`${e}-count, ${e}-dot, ${l}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${a}-spin`]:{animationName:Nt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:c,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:h,color:t.colorText,fontSize:t.fontSize}}}),S),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:St,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:Ct,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:wt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:xt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${l}-custom-component, ${e}-count`]:{transform:"none"},[`${l}-custom-component, ${l}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${l}`]:{overflow:"hidden",[`${l}-only`]:{position:"relative",display:"inline-block",height:t.badgeHeight,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${l}-only-unit`]:{height:t.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${l}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${l}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${r}`]:{position:"relative"},[`${u}`]:i(i(i(i({},Y(t)),{position:"absolute",top:h,padding:`0 ${t.paddingXS}px`,color:t.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${u}-text`]:{color:t.colorTextLightSolid},[`${u}-corner`]:{position:"absolute",top:"100%",width:b,height:b,color:"currentcolor",border:`${b/2}px solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),$),{[`&${u}-placement-end`]:{insetInlineEnd:-b,borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:-b,borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Q=it("Badge",t=>{const{fontSize:e,lineHeight:a,fontSizeSM:o,lineWidth:n,marginXS:c,colorBorderBg:d}=t,p=Math.round(e*a),s=n,h="auto",b=p-2*s,l=t.colorBgContainer,u="normal",r=o,S=t.colorError,$=t.colorErrorHover,g=e,y=o/2,m=o,I=o/2,P=st(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:b,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:S,badgeColorHover:$,badgeShadowColor:d,badgeHeightSm:g,badgeDotSize:y,badgeFontSizeSm:m,badgeStatusSize:I,badgeProcessingDuration:"1.2s",badgeRibbonOffset:c,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[Ot(P)]});var It=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n({prefix:String,color:{type:String},text:B.any,placement:{type:String,default:"end"}}),Tt=_({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:Pt(),slots:Object,setup(t,e){let{attrs:a,slots:o}=e;const{prefixCls:n,direction:c}=M("ribbon",t),[d,p]=Q(n),s=f(()=>J(t.color,!1)),h=f(()=>[n.value,`${n.value}-placement-${t.placement}`,{[`${n.value}-rtl`]:c.value==="rtl",[`${n.value}-color-${t.color}`]:s.value}]);return()=>{var b,l;const{class:u,style:r}=a,S=It(a,["class","style"]),$={},g={};return t.color&&!s.value&&($.background=t.color,g.color=t.color),d(v("div",D({class:`${n.value}-wrapper ${p.value}`},S),[(b=o.default)===null||b===void 0?void 0:b.call(o),v("div",{class:[h.value,u,p.value],style:i(i({},$),r)},[v("span",{class:`${n.value}-text`},[t.text||((l=o.text)===null||l===void 0?void 0:l.call(o))]),v("div",{class:`${n.value}-corner`,style:g},null)])]))}}}),Dt=t=>!isNaN(parseFloat(t))&&isFinite(t),Bt=Dt,zt=()=>({count:B.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:B.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Rt=_({compatConfig:{MODE:3},name:"ABadge",Ribbon:Tt,inheritAttrs:!1,props:zt(),slots:Object,setup(t,e){let{slots:a,attrs:o}=e;const{prefixCls:n,direction:c}=M("badge",t),[d,p]=Q(n),s=f(()=>t.count>t.overflowCount?`${t.overflowCount}+`:t.count),h=f(()=>s.value==="0"||s.value===0),b=f(()=>t.count===null||h.value&&!t.showZero),l=f(()=>(t.status!==null&&t.status!==void 0||t.color!==null&&t.color!==void 0)&&b.value),u=f(()=>t.dot&&!h.value),r=f(()=>u.value?"":s.value),S=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),$=H(t.count),g=H(r.value),y=H(u.value);q([()=>t.count,r,u],()=>{S.value||($.value=t.count,g.value=r.value,y.value=u.value)},{immediate:!0});const m=f(()=>J(t.color,!1)),I=f(()=>({[`${n.value}-status-dot`]:l.value,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value})),P=f(()=>t.color&&!m.value?{background:t.color,color:t.color}:{}),k=f(()=>({[`${n.value}-dot`]:y.value,[`${n.value}-count`]:!y.value,[`${n.value}-count-sm`]:t.size==="small",[`${n.value}-multiple-words`]:!y.value&&g.value&&g.value.toString().length>1,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value}));return()=>{var z,W;const{offset:N,title:Z,color:V}=t,U=o.style,j=ut(a,t,"text"),w=n.value,C=$.value;let x=ct((z=a.default)===null||z===void 0?void 0:z.call(a));x=x.length?x:null;const A=!!(!S.value||a.count),E=(()=>{if(!N)return i({},U);const T={marginTop:Bt(N[1])?`${N[1]}px`:N[1]};return c.value==="rtl"?T.left=`${parseInt(N[0],10)}px`:T.right=`${-parseInt(N[0],10)}px`,i(i({},T),U)})(),tt=Z!=null?Z:typeof C=="string"||typeof C=="number"?C:void 0,et=A||!j?null:v("span",{class:`${w}-status-text`},[j]),ot=typeof C=="object"||C===void 0&&a.count?G(C!=null?C:(W=a.count)===null||W===void 0?void 0:W.call(a),{style:E},!1):null,L=F(w,{[`${w}-status`]:l.value,[`${w}-not-a-wrapper`]:!x,[`${w}-rtl`]:c.value==="rtl"},o.class,p.value);if(!x&&l.value){const T=E.color;return d(v("span",D(D({},o),{},{class:L,style:E}),[v("span",{class:I.value,style:P.value},null),v("span",{style:{color:T},class:`${w}-status-text`},[j])]))}const nt=dt(x?`${w}-zoom`:"",{appear:!1});let R=i(i({},E),t.numberStyle);return V&&!m.value&&(R=R||{},R.background=V),d(v("span",D(D({},o),{},{class:L}),[x,v(bt,nt,{default:()=>[gt(v($t,{prefixCls:t.scrollNumberPrefixCls,show:A,class:k.value,count:g.value,title:tt,style:R,key:"scrollNumber"},{default:()=>[ot]}),[[mt,A]])]}),et]))}}});export{Rt as B,Tt as R,Bt as i}; -//# sourceMappingURL=Badge.7a29ebdb.js.map +import{d as _,f,E as at,e as H,g as q,ah as rt,U as i,b as v,aj as F,ai as M,aR as lt,aF as G,av as B,ad as it,aU as O,ae as st,dS as X,ap as Y,al as D,dT as J,bU as ut,aD as ct,aY as dt,aZ as bt,a_ as gt,a$ as mt}from"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6bf1049d-cf3d-4fc8-8fa5-af1cd7dfecaa",t._sentryDebugIdIdentifier="sentry-dbid-6bf1049d-cf3d-4fc8-8fa5-af1cd7dfecaa")}catch{}})();function K(t){let{prefixCls:e,value:a,current:o,offset:n=0}=t,c;return n&&(c={position:"absolute",top:`${n}00%`,left:0}),v("p",{style:c,class:F(`${e}-only-unit`,{current:o})},[a])}function ft(t,e,a){let o=t,n=0;for(;(o+10)%10!==e;)o+=a,n+=a;return n}const vt=_({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(t){const e=f(()=>Number(t.value)),a=f(()=>Math.abs(t.count)),o=at({prevValue:e.value,prevCount:a.value}),n=()=>{o.prevValue=e.value,o.prevCount=a.value},c=H();return q(e,()=>{clearTimeout(c.value),c.value=setTimeout(()=>{n()},1e3)},{flush:"post"}),rt(()=>{clearTimeout(c.value)}),()=>{let d,p={};const s=e.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))d=[K(i(i({},t),{current:!0}))],p={transition:"none"};else{d=[];const h=s+10,b=[];for(let r=s;r<=h;r+=1)b.push(r);const l=b.findIndex(r=>r%10===o.prevValue);d=b.map((r,S)=>{const $=r%10;return K(i(i({},t),{value:$,offset:S-l,current:S===l}))});const u=o.prevCountn()},[d])}}});var pt=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n{var c;const d=i(i({},t),a),{prefixCls:p,count:s,title:h,show:b,component:l="sup",class:u,style:r}=d,S=pt(d,["prefixCls","count","title","show","component","class","style"]),$=i(i({},S),{style:r,"data-show":t.show,class:F(n.value,u),title:h});let g=s;if(s&&Number(s)%1===0){const m=String(s).split("");g=m.map((I,P)=>v(vt,{prefixCls:n.value,count:Number(s),value:I,key:m.length-P},null))}r&&r.borderColor&&($.style=i(i({},r),{boxShadow:`0 0 0 1px ${r.borderColor} inset`}));const y=lt((c=o.default)===null||c===void 0?void 0:c.call(o));return y&&y.length?G(y,{class:F(`${n.value}-custom-component`)},!1):v(l,$,{default:()=>[g]})}}}),yt=new O("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),St=new O("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Ct=new O("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wt=new O("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),xt=new O("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Nt=new O("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Ot=t=>{const{componentCls:e,iconCls:a,antCls:o,badgeFontHeight:n,badgeShadowSize:c,badgeHeightSm:d,motionDurationSlow:p,badgeStatusSize:s,marginXS:h,badgeRibbonOffset:b}=t,l=`${o}-scroll-number`,u=`${o}-ribbon`,r=`${o}-ribbon-wrapper`,S=X(t,(g,y)=>{let{darkColor:m}=y;return{[`&${e} ${e}-color-${g}`]:{background:m,[`&:not(${e}-count)`]:{color:m}}}}),$=X(t,(g,y)=>{let{darkColor:m}=y;return{[`&${u}-color-${g}`]:{background:m,color:m}}});return{[e]:i(i(i(i({},Y(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{zIndex:t.badgeZIndex,minWidth:t.badgeHeight,height:t.badgeHeight,color:t.badgeTextColor,fontWeight:t.badgeFontWeight,fontSize:t.badgeFontSize,lineHeight:`${t.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:t.badgeHeight/2,boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:d,height:d,fontSize:t.badgeFontSizeSm,lineHeight:`${d}px`,borderRadius:d/2},[`${e}-multiple-words`]:{padding:`0 ${t.paddingXS}px`},[`${e}-dot`]:{zIndex:t.badgeZIndex,width:t.badgeDotSize,minWidth:t.badgeDotSize,height:t.badgeDotSize,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${c}px ${t.badgeShadowColor}`},[`${e}-dot${l}`]:{transition:`background ${p}`},[`${e}-count, ${e}-dot, ${l}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${a}-spin`]:{animationName:Nt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:c,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:h,color:t.colorText,fontSize:t.fontSize}}}),S),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:St,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:Ct,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:wt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:xt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${l}-custom-component, ${e}-count`]:{transform:"none"},[`${l}-custom-component, ${l}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${l}`]:{overflow:"hidden",[`${l}-only`]:{position:"relative",display:"inline-block",height:t.badgeHeight,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${l}-only-unit`]:{height:t.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${l}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${l}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${r}`]:{position:"relative"},[`${u}`]:i(i(i(i({},Y(t)),{position:"absolute",top:h,padding:`0 ${t.paddingXS}px`,color:t.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${u}-text`]:{color:t.colorTextLightSolid},[`${u}-corner`]:{position:"absolute",top:"100%",width:b,height:b,color:"currentcolor",border:`${b/2}px solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),$),{[`&${u}-placement-end`]:{insetInlineEnd:-b,borderEndEndRadius:0,[`${u}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${u}-placement-start`]:{insetInlineStart:-b,borderEndStartRadius:0,[`${u}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Q=it("Badge",t=>{const{fontSize:e,lineHeight:a,fontSizeSM:o,lineWidth:n,marginXS:c,colorBorderBg:d}=t,p=Math.round(e*a),s=n,h="auto",b=p-2*s,l=t.colorBgContainer,u="normal",r=o,S=t.colorError,$=t.colorErrorHover,g=e,y=o/2,m=o,I=o/2,P=st(t,{badgeFontHeight:p,badgeShadowSize:s,badgeZIndex:h,badgeHeight:b,badgeTextColor:l,badgeFontWeight:u,badgeFontSize:r,badgeColor:S,badgeColorHover:$,badgeShadowColor:d,badgeHeightSm:g,badgeDotSize:y,badgeFontSizeSm:m,badgeStatusSize:I,badgeProcessingDuration:"1.2s",badgeRibbonOffset:c,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[Ot(P)]});var It=globalThis&&globalThis.__rest||function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n({prefix:String,color:{type:String},text:B.any,placement:{type:String,default:"end"}}),Tt=_({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:Pt(),slots:Object,setup(t,e){let{attrs:a,slots:o}=e;const{prefixCls:n,direction:c}=M("ribbon",t),[d,p]=Q(n),s=f(()=>J(t.color,!1)),h=f(()=>[n.value,`${n.value}-placement-${t.placement}`,{[`${n.value}-rtl`]:c.value==="rtl",[`${n.value}-color-${t.color}`]:s.value}]);return()=>{var b,l;const{class:u,style:r}=a,S=It(a,["class","style"]),$={},g={};return t.color&&!s.value&&($.background=t.color,g.color=t.color),d(v("div",D({class:`${n.value}-wrapper ${p.value}`},S),[(b=o.default)===null||b===void 0?void 0:b.call(o),v("div",{class:[h.value,u,p.value],style:i(i({},$),r)},[v("span",{class:`${n.value}-text`},[t.text||((l=o.text)===null||l===void 0?void 0:l.call(o))]),v("div",{class:`${n.value}-corner`,style:g},null)])]))}}}),Dt=t=>!isNaN(parseFloat(t))&&isFinite(t),Bt=Dt,zt=()=>({count:B.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:B.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Rt=_({compatConfig:{MODE:3},name:"ABadge",Ribbon:Tt,inheritAttrs:!1,props:zt(),slots:Object,setup(t,e){let{slots:a,attrs:o}=e;const{prefixCls:n,direction:c}=M("badge",t),[d,p]=Q(n),s=f(()=>t.count>t.overflowCount?`${t.overflowCount}+`:t.count),h=f(()=>s.value==="0"||s.value===0),b=f(()=>t.count===null||h.value&&!t.showZero),l=f(()=>(t.status!==null&&t.status!==void 0||t.color!==null&&t.color!==void 0)&&b.value),u=f(()=>t.dot&&!h.value),r=f(()=>u.value?"":s.value),S=f(()=>(r.value===null||r.value===void 0||r.value===""||h.value&&!t.showZero)&&!u.value),$=H(t.count),g=H(r.value),y=H(u.value);q([()=>t.count,r,u],()=>{S.value||($.value=t.count,g.value=r.value,y.value=u.value)},{immediate:!0});const m=f(()=>J(t.color,!1)),I=f(()=>({[`${n.value}-status-dot`]:l.value,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value})),P=f(()=>t.color&&!m.value?{background:t.color,color:t.color}:{}),k=f(()=>({[`${n.value}-dot`]:y.value,[`${n.value}-count`]:!y.value,[`${n.value}-count-sm`]:t.size==="small",[`${n.value}-multiple-words`]:!y.value&&g.value&&g.value.toString().length>1,[`${n.value}-status-${t.status}`]:!!t.status,[`${n.value}-color-${t.color}`]:m.value}));return()=>{var z,W;const{offset:N,title:Z,color:V}=t,U=o.style,j=ut(a,t,"text"),w=n.value,C=$.value;let x=ct((z=a.default)===null||z===void 0?void 0:z.call(a));x=x.length?x:null;const A=!!(!S.value||a.count),E=(()=>{if(!N)return i({},U);const T={marginTop:Bt(N[1])?`${N[1]}px`:N[1]};return c.value==="rtl"?T.left=`${parseInt(N[0],10)}px`:T.right=`${-parseInt(N[0],10)}px`,i(i({},T),U)})(),tt=Z!=null?Z:typeof C=="string"||typeof C=="number"?C:void 0,et=A||!j?null:v("span",{class:`${w}-status-text`},[j]),ot=typeof C=="object"||C===void 0&&a.count?G(C!=null?C:(W=a.count)===null||W===void 0?void 0:W.call(a),{style:E},!1):null,L=F(w,{[`${w}-status`]:l.value,[`${w}-not-a-wrapper`]:!x,[`${w}-rtl`]:c.value==="rtl"},o.class,p.value);if(!x&&l.value){const T=E.color;return d(v("span",D(D({},o),{},{class:L,style:E}),[v("span",{class:I.value,style:P.value},null),v("span",{style:{color:T},class:`${w}-status-text`},[j])]))}const nt=dt(x?`${w}-zoom`:"",{appear:!1});let R=i(i({},E),t.numberStyle);return V&&!m.value&&(R=R||{},R.background=V),d(v("span",D(D({},o),{},{class:L}),[x,v(bt,nt,{default:()=>[gt(v($t,{prefixCls:t.scrollNumberPrefixCls,show:A,class:k.value,count:g.value,title:tt,style:R,key:"scrollNumber"},{default:()=>[ot]}),[[mt,A]])]}),et]))}}});export{Rt as B,Tt as R,Bt as i}; +//# sourceMappingURL=Badge.f6241be2.js.map diff --git a/abstra_statics/dist/assets/BaseLayout.52f1acec.js b/abstra_statics/dist/assets/BaseLayout.52f1acec.js new file mode 100644 index 0000000000..96b399890e --- /dev/null +++ b/abstra_statics/dist/assets/BaseLayout.52f1acec.js @@ -0,0 +1,2 @@ +import{a0 as n,o,Y as d,$ as s,a,S as r}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e95dd75d-956b-40ae-86ab-65f3996da71f",e._sentryDebugIdIdentifier="sentry-dbid-e95dd75d-956b-40ae-86ab-65f3996da71f")}catch{}})();const f={},c={class:"base-layout"},i={class:"base-middle"},u={key:0,class:"base-footer"};function _(e,t){return o(),d("div",c,[s(e.$slots,"sidebar",{},void 0,!0),a("section",i,[s(e.$slots,"navbar",{},void 0,!0),s(e.$slots,"content",{},void 0,!0),e.$slots.footer?(o(),d("section",u,[s(e.$slots,"footer",{},void 0,!0)])):r("",!0)])])}const y=n(f,[["render",_],["__scopeId","data-v-9ad5be20"]]);export{y as B}; +//# sourceMappingURL=BaseLayout.52f1acec.js.map diff --git a/abstra_statics/dist/assets/BaseLayout.995c8c6b.js b/abstra_statics/dist/assets/BaseLayout.995c8c6b.js deleted file mode 100644 index ba6a54d7ec..0000000000 --- a/abstra_statics/dist/assets/BaseLayout.995c8c6b.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a0 as n,o,Y as a,$ as s,a as d,S as r}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7799b50b-adf4-4a3e-9e0e-48fa0a0a781b",e._sentryDebugIdIdentifier="sentry-dbid-7799b50b-adf4-4a3e-9e0e-48fa0a0a781b")}catch{}})();const f={},c={class:"base-layout"},i={class:"base-middle"},u={key:0,class:"base-footer"};function _(e,t){return o(),a("div",c,[s(e.$slots,"sidebar",{},void 0,!0),d("section",i,[s(e.$slots,"navbar",{},void 0,!0),s(e.$slots,"content",{},void 0,!0),e.$slots.footer?(o(),a("section",u,[s(e.$slots,"footer",{},void 0,!0)])):r("",!0)])])}const y=n(f,[["render",_],["__scopeId","data-v-9ad5be20"]]);export{y as B}; -//# sourceMappingURL=BaseLayout.995c8c6b.js.map diff --git a/abstra_statics/dist/assets/Billing.b9cff65e.js b/abstra_statics/dist/assets/Billing.b9cff65e.js new file mode 100644 index 0000000000..3f0229f3cc --- /dev/null +++ b/abstra_statics/dist/assets/Billing.b9cff65e.js @@ -0,0 +1,2 @@ +import{a as _}from"./asyncComputed.703c33fd.js";import{d as w,ea as b,X as h,u as e,o as n,c as d,Y as k,b as o,w as t,S as C,dd as u,aG as l,e9 as I,bT as x,dh as c,a as N}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{O as v}from"./organization.03372a7f.js";import"./tables.318f703e.js";import{C as g}from"./router.375df57e.js";import{L as z}from"./LoadingContainer.23bc0e74.js";import{A as B}from"./index.a552d580.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="45e68f6f-d75f-4bea-8976-1daf0b34036f",a._sentryDebugIdIdentifier="sentry-dbid-45e68f6f-d75f-4bea-8976-1daf0b34036f")}catch{}})();const D={key:1},U=["src"],G=w({__name:"Billing",setup(a){const f=b().params.organizationId,{loading:m,result:r}=_(async()=>{const i=await v.get(f),p=await i.getUsageReportUrl();return{organization:i,reportUrl:p}});h(()=>{location.search.includes("upgrade")&&g.showNewMessage("I want to upgrade my plan")});const y=()=>g.showNewMessage("I want to upgrade my plan");return(i,p)=>e(m)?(n(),d(z,{key:0})):e(r)?(n(),k("div",D,[o(e(c),{justify:"space-between",align:"center"},{default:t(()=>[o(e(u),{level:3},{default:t(()=>[l("Current plan: "+I(e(r).organization.coalescedPlan),1)]),_:1}),o(e(x),{type:"primary",onClick:y},{default:t(()=>[l("Upgrade")]),_:1})]),_:1}),o(e(B),{style:{"margin-top":"0"}}),e(r).organization.hasUsageReport?(n(),d(e(c),{key:0,align:"center",justify:"center"},{default:t(()=>[N("iframe",{src:e(r).reportUrl,frameborder:"0",style:{width:"1000px",height:"1700px"}},null,8,U)]),_:1})):(n(),d(e(c),{key:1,align:"center",justify:"center"},{default:t(()=>[o(e(u),{level:4},{default:t(()=>[l("No usage report available")]),_:1})]),_:1}))])):C("",!0)}});export{G as default}; +//# sourceMappingURL=Billing.b9cff65e.js.map diff --git a/abstra_statics/dist/assets/Billing.f7196c81.js b/abstra_statics/dist/assets/Billing.f7196c81.js deleted file mode 100644 index d1efde6f11..0000000000 --- a/abstra_statics/dist/assets/Billing.f7196c81.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as _}from"./asyncComputed.cfc0cdaf.js";import{d as w,ea as b,X as h,u as e,o as n,c as d,Y as k,b as o,w as t,S as C,dd as f,aG as l,e9 as I,bT as x,dh as c,a as N}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{O as v}from"./organization.2853982f.js";import"./tables.2ec18755.js";import{C as g}from"./router.f4663fd5.js";import{L as z}from"./LoadingContainer.e327afe8.js";import{A as B}from"./index.d18d35d7.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="49049a3b-f3f6-41d0-902a-160e7dfd92d4",a._sentryDebugIdIdentifier="sentry-dbid-49049a3b-f3f6-41d0-902a-160e7dfd92d4")}catch{}})();const D={key:1},U=["src"],G=w({__name:"Billing",setup(a){const p=b().params.organizationId,{loading:m,result:r}=_(async()=>{const i=await v.get(p),u=await i.getUsageReportUrl();return{organization:i,reportUrl:u}});h(()=>{location.search.includes("upgrade")&&g.showNewMessage("I want to upgrade my plan")});const y=()=>g.showNewMessage("I want to upgrade my plan");return(i,u)=>e(m)?(n(),d(z,{key:0})):e(r)?(n(),k("div",D,[o(e(c),{justify:"space-between",align:"center"},{default:t(()=>[o(e(f),{level:3},{default:t(()=>[l("Current plan: "+I(e(r).organization.coalescedPlan),1)]),_:1}),o(e(x),{type:"primary",onClick:y},{default:t(()=>[l("Upgrade")]),_:1})]),_:1}),o(e(B),{style:{"margin-top":"0"}}),e(r).organization.hasUsageReport?(n(),d(e(c),{key:0,align:"center",justify:"center"},{default:t(()=>[N("iframe",{src:e(r).reportUrl,frameborder:"0",style:{width:"1000px",height:"1700px"}},null,8,U)]),_:1})):(n(),d(e(c),{key:1,align:"center",justify:"center"},{default:t(()=>[o(e(f),{level:4},{default:t(()=>[l("No usage report available")]),_:1})]),_:1}))])):C("",!0)}});export{G as default}; -//# sourceMappingURL=Billing.f7196c81.js.map diff --git a/abstra_statics/dist/assets/BookOutlined.b4191bff.js b/abstra_statics/dist/assets/BookOutlined.7c922f07.js similarity index 70% rename from abstra_statics/dist/assets/BookOutlined.b4191bff.js rename to abstra_statics/dist/assets/BookOutlined.7c922f07.js index b5d93be87a..1e8be3c20a 100644 --- a/abstra_statics/dist/assets/BookOutlined.b4191bff.js +++ b/abstra_statics/dist/assets/BookOutlined.7c922f07.js @@ -1,2 +1,2 @@ -import{b as f,ee as i}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9e1e6cc9-1d0e-4f37-bf39-842f53e02bf4",e._sentryDebugIdIdentifier="sentry-dbid-9e1e6cc9-1d0e-4f37-bf39-842f53e02bf4")}catch{}})();var u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};const d=u;function c(e){for(var t=1;t{var g;return(g=e.weight)!=null?g:l}),w=_(()=>{var g;return(g=e.size)!=null?g:p}),h=_(()=>{var g;return(g=e.color)!=null?g:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(g,S)=>(n(),f("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},g.$attrs),[T(g.$slots,"default"),s.value==="bold"?(n(),f("g",Be,He)):s.value==="duotone"?(n(),f("g",Le,Ge)):s.value==="fill"?(n(),f("g",Te,Re)):s.value==="light"?(n(),f("g",qe,We)):s.value==="regular"?(n(),f("g",Ye,Xe)):s.value==="thin"?(n(),f("g",Je,et)):C("",!0)],16,ze))}}),lt=["width","height","fill","transform"],rt={key:0},nt=v("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),ot=[nt],it={key:1},st=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ut=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),ct=[st,ut],dt={key:2},pt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),gt=[pt],mt={key:3},ft=v("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),vt=[ft],ht={key:4},yt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),bt=[yt],At={key:5},Ct=v("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),kt=[Ct],_t={name:"PhDotsThreeCircle"},wt=P({..._t,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,l=x("weight","regular"),p=x("size","1em"),i=x("color","currentColor"),$=x("mirrored",!1),s=_(()=>{var g;return(g=e.weight)!=null?g:l}),w=_(()=>{var g;return(g=e.size)!=null?g:p}),h=_(()=>{var g;return(g=e.color)!=null?g:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(g,S)=>(n(),f("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},g.$attrs),[T(g.$slots,"default"),s.value==="bold"?(n(),f("g",rt,ot)):s.value==="duotone"?(n(),f("g",it,ct)):s.value==="fill"?(n(),f("g",dt,gt)):s.value==="light"?(n(),f("g",mt,vt)):s.value==="regular"?(n(),f("g",ht,bt)):s.value==="thin"?(n(),f("g",At,kt)):C("",!0)],16,lt))}});function N(r){for(var e=1;e{l.push({name:"logs",params:{projectId:e.buildSpec.projectId},query:i.logQuery})};return(i,$)=>i.buildSpec.runtimes.length>0?(n(),m(a($e),{key:0,"item-layout":"horizontal","data-source":i.buildSpec.runtimes},{renderItem:c(({item:s})=>[d(a(xe),null,{actions:c(()=>[d(a(Q),null,{overlay:c(()=>[d(a(X),null,{default:c(()=>[d(a(J),{onClick:w=>p(s)},{default:c(()=>[v("div",Pt,[d(a(at)),d(a(O),null,{default:c(()=>[b(" View Logs")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:c(()=>[d(a(wt),{style:{cursor:"pointer"}})]),_:2},1024)]),default:c(()=>[s.type=="form"?(n(),m(a(M),{key:0,size:"large"},{default:c(()=>[d(a(ke)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="job"?(n(),m(a(M),{key:1,size:"large"},{default:c(()=>[d(a(_e)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b(A(s.schedule),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="hook"?(n(),m(a(M),{key:2,size:"large"},{default:c(()=>[d(a(we)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/_hooks/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="script"?(n(),m(a(M),{key:3,size:"large"},{default:c(()=>[d(a(Oe)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024)]),_:2},1024)):C("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(n(),f("div",jt,[d(a(K),{description:"No runtimes found. Make sure your project has forms, hooks or jobs before deploying it"})]))}}),Vt=P({__name:"Builds",setup(r){const l=ee().params.projectId,{loading:p,result:i,refetch:$}=L(async()=>{const[t,u]=await Promise.all([me.list(l),Ce.getStatus(l)]);return{b:t.map(y=>({build:y,status:u.filter(Z=>Z.buildId==y.id).map(Z=>Z.status)})),status:u}}),{startPolling:s,endPolling:w}=he({task:$,interval:1e4});te(()=>s()),ae(()=>w());const h=le(null),k=L(async()=>h.value?await fe.get(h.value):null),g=()=>{var o;const t=(o=i.value)==null?void 0:o.b.find(y=>y.build.id===h.value);return`Build ${t==null?void 0:t.build.id.slice(0,8)} - ${t==null?void 0:t.build.createdAt.toLocaleString()}`},S=[{text:"Deploying",tagColor:"blue",check:t=>{var u,o;return(o=t.build.latest&&t.status.some(y=>y=="Running")&&((u=i.value)==null?void 0:u.status.some(y=>y.buildId!==t.build.id)))!=null?o:!1},loading:!0},{text:"Deactivating",tagColor:"orange",check:t=>t.build.status==="success"&&!t.build.latest&&t.status.some(u=>u=="Running"),loading:!0},{text:"Live",tagColor:"green",check:t=>t.build.latest&&t.status.some(u=>u=="Running")},{text:"Sleeping",tagColor:"cyan",check:t=>t.build.latest&&t.status.length===0},{text:"Failed",tagColor:"red",check:t=>t.build.latest&&t.status.some(u=>u=="Failed")},{text:"Inactive",tagColor:"default",check:t=>t.build.status==="success"},{text:"Aborted",tagColor:"default",check:t=>t.build.status==="aborted"||t.build.status==="aborted-by-user"},{text:"Failed",tagColor:"orange",check:t=>t.build.status==="failure"},{text:"Deploying",tagColor:"blue",check:t=>t.build.status==="in-progress",loading:!0},{text:"Uploading",tagColor:"yellow",check:t=>t.build.status==="pending"}];function R(t){var u,o,y,Z,H;return{text:(o=(u=S.find(j=>j.check(t)))==null?void 0:u.text)!=null?o:"unknown",tagColor:(Z=(y=S.find(j=>j.check(t)))==null?void 0:y.tagColor)!=null?Z:"default",hover:(H=t.build.log)!=null?H:void 0}}const q=_(()=>{const t=[{title:"Id"},{title:"Date"},{title:"Abstra Version"},{title:"Status"},{title:"",align:"right"}];return i.value?{columns:t,rows:i.value.b.map(u=>{var o;return{key:u.build.id,cells:[{type:"text",text:u.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:ve(u.build.createdAt,{weekday:void 0}),distance:pe(u.build.createdAt)}},{type:"text",text:(o=u.build.abstraVersion)!=null?o:"-"},{key:"status",type:"slot",payload:R(u)},{type:"actions",actions:[{icon:be,label:"Inspect build",onClick:async()=>{h.value=u.build.id,k.refetch()}},{icon:ye,label:"View application logs",onClick:()=>{Ze.push({name:"logs",params:{projectId:l},query:{buildId:u.build.id}})}},{icon:Ae,label:"Download files",onClick:()=>u.build.download()}]}]}})}:{columns:t,rows:[]}});return(t,u)=>(n(),f(re,null,[d(U,{"entity-name":"build",loading:a(p),title:"Builds",description:"Each build is a version of your project. You can create a new build by deploying your project from the local editor.","empty-title":"No builds here yet",table:q.value,live:""},{date:c(({payload:o})=>[d(a(ne),null,{title:c(()=>[b(A(o.distance),1)]),default:c(()=>[b(A(o.date)+" ",1)]),_:2},1024)]),status:c(({payload:o})=>[d(a(oe),{open:o.hover?void 0:!1},{content:c(()=>[d(a(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:o.hover,copyable:""},null,8,["content"])]),default:c(()=>[o.text!=="unknown"?(n(),m(a(ue),{key:0,color:o.tagColor,style:se({cursor:o.hover?"pointer":"default"})},{default:c(()=>[o.text==="Live"?(n(),m(a(xt),{key:0})):o.text==="Inactive"?(n(),m(a(Zt),{key:1})):o.text==="Failed"?(n(),m(a(Se),{key:2})):o.text==="Aborted"?(n(),m(a(Me),{key:3})):o.text==="Sleeping"?(n(),m(a(Mt),{key:4})):o.text==="Uploading"?(n(),m(a(I),{key:5})):o.text==="Deploying"?(n(),m(a(I),{key:6})):o.text==="Deactivating"?(n(),m(a(I),{key:7})):C("",!0),b(" "+A(o.text),1)]),_:2},1032,["color","style"])):C("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","table"]),h.value?(n(),m(a(de),{key:0,footer:null,open:!!h.value,size:"large",width:"80%",title:g(),onCancel:u[0]||(u[0]=o=>h.value=null)},{default:c(()=>[!a(k).result.value||a(k).loading.value?(n(),m(a(ce),{key:0})):a(k).result.value?(n(),m(It,{key:1,"build-spec":a(k).result.value},null,8,["build-spec"])):C("",!0)]),_:1},8,["open","title"])):C("",!0)],64))}});const i1=ge(Vt,[["__scopeId","data-v-83c08404"]]);export{i1 as default}; -//# sourceMappingURL=Builds.ca0210c5.js.map +import{C as U}from"./CrudView.423d8744.js";import{d as P,D as x,f as _,o as n,Y as f,$ as T,S as C,e8 as F,a as v,b as d,ee as V,f3 as W,eo as Y,c as m,w as c,u as a,bR as Q,bz as X,bx as J,dc as O,aG as b,e9 as A,cx as K,ea as ee,X as te,ah as ae,e as le,aS as re,aW as ne,cO as oe,db as ie,Z as se,d5 as ue,by as ce,cL as de,eI as pe,a0 as ge}from"./index.d0f12294.js";import{a as L}from"./asyncComputed.703c33fd.js";import{B as me,a as fe,g as ve}from"./datetime.19a96164.js";import{u as he}from"./polling.c979afd7.js";import{G as ye}from"./PhArrowCounterClockwise.vue.70f7f135.js";import{H as be}from"./PhCube.vue.63fffddc.js";import{G as Ae}from"./PhDownloadSimple.vue.07a1756e.js";import"./gateway.ae1d6857.js";import{P as Ce}from"./project.fad91605.js";import"./tables.318f703e.js";import{F as ke,a as _e,G as we,I as Oe}from"./PhWebhooksLogo.vue.15a28437.js";import{A as M}from"./index.a82e0ed1.js";import{a as xe,A as $e}from"./index.81ae2c34.js";import{r as Ze}from"./router.375df57e.js";import{E as Se}from"./ExclamationCircleOutlined.c4fbd42a.js";import{C as Me}from"./CloseCircleOutlined.c0e3f3e1.js";import{L as I}from"./LoadingOutlined.bcfc8c20.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="e590c1aa-d263-43d9-835c-df6945efe246",r._sentryDebugIdIdentifier="sentry-dbid-e590c1aa-d263-43d9-835c-df6945efe246")}catch{}})();var Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const je=Pe;var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};const Ve=Ie,ze=["width","height","fill","transform"],Be={key:0},De=v("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"},null,-1),He=[De],Le={key:1},Ne=v("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Ee=v("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"},null,-1),Ge=[Ne,Ee],Te={key:2},Fe=v("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"},null,-1),Re=[Fe],qe={key:3},Ue=v("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"},null,-1),We=[Ue],Ye={key:4},Qe=v("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"},null,-1),Xe=[Qe],Je={key:5},Ke=v("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"},null,-1),et=[Ke],tt={name:"PhClockCounterClockwise"},at=P({...tt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,l=x("weight","regular"),p=x("size","1em"),i=x("color","currentColor"),$=x("mirrored",!1),s=_(()=>{var g;return(g=e.weight)!=null?g:l}),w=_(()=>{var g;return(g=e.size)!=null?g:p}),h=_(()=>{var g;return(g=e.color)!=null?g:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(g,S)=>(n(),f("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},g.$attrs),[T(g.$slots,"default"),s.value==="bold"?(n(),f("g",Be,He)):s.value==="duotone"?(n(),f("g",Le,Ge)):s.value==="fill"?(n(),f("g",Te,Re)):s.value==="light"?(n(),f("g",qe,We)):s.value==="regular"?(n(),f("g",Ye,Xe)):s.value==="thin"?(n(),f("g",Je,et)):C("",!0)],16,ze))}}),lt=["width","height","fill","transform"],rt={key:0},nt=v("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),ot=[nt],it={key:1},st=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ut=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),ct=[st,ut],dt={key:2},pt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),gt=[pt],mt={key:3},ft=v("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),vt=[ft],ht={key:4},yt=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),bt=[yt],At={key:5},Ct=v("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),kt=[Ct],_t={name:"PhDotsThreeCircle"},wt=P({..._t,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,l=x("weight","regular"),p=x("size","1em"),i=x("color","currentColor"),$=x("mirrored",!1),s=_(()=>{var g;return(g=e.weight)!=null?g:l}),w=_(()=>{var g;return(g=e.size)!=null?g:p}),h=_(()=>{var g;return(g=e.color)!=null?g:i}),k=_(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(g,S)=>(n(),f("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:k.value},g.$attrs),[T(g.$slots,"default"),s.value==="bold"?(n(),f("g",rt,ot)):s.value==="duotone"?(n(),f("g",it,ct)):s.value==="fill"?(n(),f("g",dt,gt)):s.value==="light"?(n(),f("g",mt,vt)):s.value==="regular"?(n(),f("g",ht,bt)):s.value==="thin"?(n(),f("g",At,kt)):C("",!0)],16,lt))}});function N(r){for(var e=1;e{l.push({name:"logs",params:{projectId:e.buildSpec.projectId},query:i.logQuery})};return(i,$)=>i.buildSpec.runtimes.length>0?(n(),m(a($e),{key:0,"item-layout":"horizontal","data-source":i.buildSpec.runtimes},{renderItem:c(({item:s})=>[d(a(xe),null,{actions:c(()=>[d(a(Q),null,{overlay:c(()=>[d(a(X),null,{default:c(()=>[d(a(J),{onClick:w=>p(s)},{default:c(()=>[v("div",Pt,[d(a(at)),d(a(O),null,{default:c(()=>[b(" View Logs")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:c(()=>[d(a(wt),{style:{cursor:"pointer"}})]),_:2},1024)]),default:c(()=>[s.type=="form"?(n(),m(a(M),{key:0,size:"large"},{default:c(()=>[d(a(ke)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="job"?(n(),m(a(M),{key:1,size:"large"},{default:c(()=>[d(a(_e)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b(A(s.schedule),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="hook"?(n(),m(a(M),{key:2,size:"large"},{default:c(()=>[d(a(we)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024),d(a(O),{type:"secondary",code:""},{default:c(()=>[b("/_hooks/"+A(s.path),1)]),_:2},1024)]),_:2},1024)):C("",!0),s.type=="script"?(n(),m(a(M),{key:3,size:"large"},{default:c(()=>[d(a(Oe)),d(a(O),{strong:""},{default:c(()=>[b(A(s.title),1)]),_:2},1024)]),_:2},1024)):C("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(n(),f("div",jt,[d(a(K),{description:"No runtimes found. Make sure your project has forms, hooks or jobs before deploying it"})]))}}),Vt=P({__name:"Builds",setup(r){const l=ee().params.projectId,{loading:p,result:i,refetch:$}=L(async()=>{const[t,u]=await Promise.all([me.list(l),Ce.getStatus(l)]);return{b:t.map(y=>({build:y,status:u.filter(Z=>Z.buildId==y.id).map(Z=>Z.status)})),status:u}}),{startPolling:s,endPolling:w}=he({task:$,interval:1e4});te(()=>s()),ae(()=>w());const h=le(null),k=L(async()=>h.value?await fe.get(h.value):null),g=()=>{var o;const t=(o=i.value)==null?void 0:o.b.find(y=>y.build.id===h.value);return`Build ${t==null?void 0:t.build.id.slice(0,8)} - ${t==null?void 0:t.build.createdAt.toLocaleString()}`},S=[{text:"Deploying",tagColor:"blue",check:t=>{var u,o;return(o=t.build.latest&&t.status.some(y=>y=="Running")&&((u=i.value)==null?void 0:u.status.some(y=>y.buildId!==t.build.id)))!=null?o:!1},loading:!0},{text:"Deactivating",tagColor:"orange",check:t=>t.build.status==="success"&&!t.build.latest&&t.status.some(u=>u=="Running"),loading:!0},{text:"Live",tagColor:"green",check:t=>t.build.latest&&t.status.some(u=>u=="Running")},{text:"Sleeping",tagColor:"cyan",check:t=>t.build.latest&&t.status.length===0},{text:"Failed",tagColor:"red",check:t=>t.build.latest&&t.status.some(u=>u=="Failed")},{text:"Inactive",tagColor:"default",check:t=>t.build.status==="success"},{text:"Aborted",tagColor:"default",check:t=>t.build.status==="aborted"||t.build.status==="aborted-by-user"},{text:"Failed",tagColor:"orange",check:t=>t.build.status==="failure"},{text:"Deploying",tagColor:"blue",check:t=>t.build.status==="in-progress",loading:!0},{text:"Uploading",tagColor:"yellow",check:t=>t.build.status==="pending"}];function R(t){var u,o,y,Z,H;return{text:(o=(u=S.find(j=>j.check(t)))==null?void 0:u.text)!=null?o:"unknown",tagColor:(Z=(y=S.find(j=>j.check(t)))==null?void 0:y.tagColor)!=null?Z:"default",hover:(H=t.build.log)!=null?H:void 0}}const q=_(()=>{const t=[{title:"Id"},{title:"Date"},{title:"Abstra Version"},{title:"Status"},{title:"",align:"right"}];return i.value?{columns:t,rows:i.value.b.map(u=>{var o;return{key:u.build.id,cells:[{type:"text",text:u.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:ve(u.build.createdAt,{weekday:void 0}),distance:pe(u.build.createdAt)}},{type:"text",text:(o=u.build.abstraVersion)!=null?o:"-"},{key:"status",type:"slot",payload:R(u)},{type:"actions",actions:[{icon:be,label:"Inspect build",onClick:async()=>{h.value=u.build.id,k.refetch()}},{icon:ye,label:"View application logs",onClick:()=>{Ze.push({name:"logs",params:{projectId:l},query:{buildId:u.build.id}})}},{icon:Ae,label:"Download files",onClick:()=>u.build.download()}]}]}})}:{columns:t,rows:[]}});return(t,u)=>(n(),f(re,null,[d(U,{"entity-name":"build",loading:a(p),title:"Builds",description:"Each build is a version of your project. You can create a new build by deploying your project from the local editor.","empty-title":"No builds here yet",table:q.value,live:""},{date:c(({payload:o})=>[d(a(ne),null,{title:c(()=>[b(A(o.distance),1)]),default:c(()=>[b(A(o.date)+" ",1)]),_:2},1024)]),status:c(({payload:o})=>[d(a(oe),{open:o.hover?void 0:!1},{content:c(()=>[d(a(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:o.hover,copyable:""},null,8,["content"])]),default:c(()=>[o.text!=="unknown"?(n(),m(a(ue),{key:0,color:o.tagColor,style:se({cursor:o.hover?"pointer":"default"})},{default:c(()=>[o.text==="Live"?(n(),m(a(xt),{key:0})):o.text==="Inactive"?(n(),m(a(Zt),{key:1})):o.text==="Failed"?(n(),m(a(Se),{key:2})):o.text==="Aborted"?(n(),m(a(Me),{key:3})):o.text==="Sleeping"?(n(),m(a(Mt),{key:4})):o.text==="Uploading"?(n(),m(a(I),{key:5})):o.text==="Deploying"?(n(),m(a(I),{key:6})):o.text==="Deactivating"?(n(),m(a(I),{key:7})):C("",!0),b(" "+A(o.text),1)]),_:2},1032,["color","style"])):C("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","table"]),h.value?(n(),m(a(de),{key:0,footer:null,open:!!h.value,size:"large",width:"80%",title:g(),onCancel:u[0]||(u[0]=o=>h.value=null)},{default:c(()=>[!a(k).result.value||a(k).loading.value?(n(),m(a(ce),{key:0})):a(k).result.value?(n(),m(It,{key:1,"build-spec":a(k).result.value},null,8,["build-spec"])):C("",!0)]),_:1},8,["open","title"])):C("",!0)],64))}});const i1=ge(Vt,[["__scopeId","data-v-83c08404"]]);export{i1 as default}; +//# sourceMappingURL=Builds.72241fd9.js.map diff --git a/abstra_statics/dist/assets/Card.c4293d90.js b/abstra_statics/dist/assets/Card.2a8fe028.js similarity index 98% rename from abstra_statics/dist/assets/Card.c4293d90.js rename to abstra_statics/dist/assets/Card.2a8fe028.js index c7881e0613..8de8fd056b 100644 --- a/abstra_statics/dist/assets/Card.c4293d90.js +++ b/abstra_statics/dist/assets/Card.2a8fe028.js @@ -1,4 +1,4 @@ -import{ad as ge,ae as pe,U as o,dK as _,ap as Ae,ao as $e,d as C,b as r,aj as y,aU as Pe,aq as ee,ai as P,f as O,al as x,ak as he,dL as L,aD as ze,c8 as Re,$ as Me,av as D,dM as ce,dI as Ee,dN as Le}from"./index.8c3f27aa.js";import{T as H,A as Z}from"./TabPane.2034bc94.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d42035b6-810c-438f-b39a-2c41d6a3c2cb",e._sentryDebugIdIdentifier="sentry-dbid-d42035b6-810c-438f-b39a-2c41d6a3c2cb")}catch{}})();H.TabPane=Z;H.install=function(e){return e.component(H.name,H),e.component(Z.name,Z),e};const De=e=>{const{antCls:t,componentCls:n,cardHeadHeight:a,cardPaddingBase:i,cardHeadTabsMarginBottom:s}=e;return o(o({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},_()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":o(o({display:"inline-block",flex:1},$e),{[` +import{ad as ge,ae as pe,U as o,dK as _,ap as Ae,ao as $e,d as C,b as r,aj as y,aU as Pe,aq as ee,ai as P,f as O,al as x,ak as he,dL as L,aD as ze,c8 as Re,$ as Me,av as D,dM as ce,dI as Ee,dN as Le}from"./index.d0f12294.js";import{T as H,A as Z}from"./TabPane.79f4882f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="76cbd58a-a80a-401e-824d-8f61290e2598",e._sentryDebugIdIdentifier="sentry-dbid-76cbd58a-a80a-401e-824d-8f61290e2598")}catch{}})();H.TabPane=Z;H.install=function(e){return e.component(H.name,H),e.component(Z.name,Z),e};const De=e=>{const{antCls:t,componentCls:n,cardHeadHeight:a,cardPaddingBase:i,cardHeadTabsMarginBottom:s}=e;return o(o({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},_()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":o(o({display:"inline-block",flex:1},$e),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},ke=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -15,4 +15,4 @@ import{ad as ge,ae as pe,U as o,dK as _,ap as Ae,ao as $e,d as C,b as r,aj as y, ${d}, ${h} `]:o({},Qe(e))}}},k=ge("Skeleton",e=>{const{componentCls:t}=e,n=pe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[nt(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),at=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function Y(e){return e&&typeof e=="object"?e:{}}function ot(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function it(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function rt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const lt=C({compatConfig:{MODE:3},name:"ASkeleton",props:ee(at(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:a,direction:i}=P("skeleton",e),[s,d]=k(a);return()=>{var h;const{loading:z,avatar:w,title:v,paragraph:f,active:g,round:u}=e,l=a.value;if(z||e.loading===void 0){const $=!!w||w==="",m=!!v||v==="",b=!!f||f==="";let B;if($){const T=o(o({prefixCls:`${l}-avatar`},ot(m,b)),Y(w));B=r("div",{class:`${l}-header`},[r(N,T,null)])}let I;if(m||b){let T;if(m){const S=o(o({prefixCls:`${l}-title`},it($,b)),Y(v));T=r(te,S,null)}let R;if(b){const S=o(o({prefixCls:`${l}-paragraph`},rt($,m)),Y(f));R=r(Ve,S,null)}I=r("div",{class:`${l}-content`},[T,R])}const W=y(l,{[`${l}-with-avatar`]:$,[`${l}-active`]:g,[`${l}-rtl`]:i.value==="rtl",[`${l}-round`]:u,[d.value]:!0});return s(r("div",{class:W},[B,I]))}return(h=n.default)===null||h===void 0?void 0:h.call(n)}}}),p=lt,st=()=>o(o({},j()),{size:String,block:Boolean}),dt=C({compatConfig:{MODE:3},name:"ASkeletonButton",props:ee(st(),{size:"default"}),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(N,x(x({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),be=dt,ct=C({compatConfig:{MODE:3},name:"ASkeletonInput",props:o(o({},he(j(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(N,x(x({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),fe=ct,ut="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",gt=C({compatConfig:{MODE:3},name:"ASkeletonImage",props:he(j(),["size","shape","active"]),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,a.value));return()=>n(r("div",{class:i.value},[r("div",{class:`${t.value}-image`},[r("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[r("path",{d:ut,class:`${t.value}-image-path`},null)])])]))}}),Se=gt,pt=()=>o(o({},j()),{shape:String}),$t=C({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:ee(pt(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=P("skeleton",e),[n,a]=k(t),i=O(()=>y(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},a.value));return()=>n(r("div",{class:i.value},[r(N,x(x({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),ve=$t;p.Button=be;p.Avatar=ve;p.Input=fe;p.Image=Se;p.Title=te;p.install=function(e){return e.component(p.name,p),e.component(p.Button.name,be),e.component(p.Avatar.name,ve),e.component(p.Input.name,fe),e.component(p.Image.name,Se),e.component(p.Title.name,te),e};const{TabPane:ht}=H,mt=()=>({prefixCls:String,title:D.any,extra:D.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:D.any,tabList:{type:Array},tabBarExtraContent:D.any,activeTabKey:String,defaultActiveTabKey:String,cover:D.any,onTabChange:{type:Function}}),bt=C({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:mt(),slots:Object,setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:i,direction:s,size:d}=P("card",e),[h,z]=qe(i),w=g=>g.map((l,$)=>ce(l)&&!Ee(l)||!ce(l)?r("li",{style:{width:`${100/g.length}%`},key:`action-${$}`},[r("span",null,[l])]):null),v=g=>{var u;(u=e.onTabChange)===null||u===void 0||u.call(e,g)},f=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u;return g.forEach(l=>{l&&Le(l.type)&&l.type.__ANT_CARD_GRID&&(u=!0)}),u};return()=>{var g,u,l,$,m,b;const{headStyle:B={},bodyStyle:I={},loading:W,bordered:T=!0,type:R,tabList:S,hoverable:ye,activeTabKey:ne,defaultActiveTabKey:xe,tabBarExtraContent:ae=L((g=n.tabBarExtraContent)===null||g===void 0?void 0:g.call(n)),title:K=L((u=n.title)===null||u===void 0?void 0:u.call(n)),extra:X=L((l=n.extra)===null||l===void 0?void 0:l.call(n)),actions:F=L(($=n.actions)===null||$===void 0?void 0:$.call(n)),cover:oe=L((m=n.cover)===null||m===void 0?void 0:m.call(n))}=e,M=ze((b=n.default)===null||b===void 0?void 0:b.call(n)),c=i.value,Ce={[`${c}`]:!0,[z.value]:!0,[`${c}-loading`]:W,[`${c}-bordered`]:T,[`${c}-hoverable`]:!!ye,[`${c}-contain-grid`]:f(M),[`${c}-contain-tabs`]:S&&S.length,[`${c}-${d.value}`]:d.value,[`${c}-type-${R}`]:!!R,[`${c}-rtl`]:s.value==="rtl"},we=r(p,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[M]}),ie=ne!==void 0,Be={size:"large",[ie?"activeKey":"defaultActiveKey"]:ie?ne:xe,onChange:v,class:`${c}-head-tabs`};let re;const le=S&&S.length?r(H,Be,{default:()=>[S.map(E=>{const{tab:se,slots:G}=E,de=G==null?void 0:G.tab;Re(!G,"Card","tabList slots is deprecated, Please use `customTab` instead.");let U=se!==void 0?se:n[de]?n[de](E):null;return U=Me(n,"customTab",E,()=>[U]),r(ht,{tab:U,key:E.key,disabled:E.disabled},null)})],rightExtra:ae?()=>ae:null}):null;(K||X||le)&&(re=r("div",{class:`${c}-head`,style:B},[r("div",{class:`${c}-head-wrapper`},[K&&r("div",{class:`${c}-head-title`},[K]),X&&r("div",{class:`${c}-extra`},[X])]),le]));const Ie=oe?r("div",{class:`${c}-cover`},[oe]):null,Te=r("div",{class:`${c}-body`,style:I},[W?we:M]),He=F&&F.length?r("ul",{class:`${c}-actions`},[w(F)]):null;return h(r("div",x(x({ref:"cardContainerRef"},a),{},{class:[Ce,a.class]}),[re,Ie,M&&M.length?Te:null,He]))}}}),vt=bt;export{be as A,vt as C,p as S,ve as a,fe as b,Se as c,te as d}; -//# sourceMappingURL=Card.c4293d90.js.map +//# sourceMappingURL=Card.2a8fe028.js.map diff --git a/abstra_statics/dist/assets/CircularLoading.fdcc1083.js b/abstra_statics/dist/assets/CircularLoading.13413fc4.js similarity index 99% rename from abstra_statics/dist/assets/CircularLoading.fdcc1083.js rename to abstra_statics/dist/assets/CircularLoading.13413fc4.js index a85c00b4e0..6cadb9a330 100644 --- a/abstra_statics/dist/assets/CircularLoading.fdcc1083.js +++ b/abstra_statics/dist/assets/CircularLoading.13413fc4.js @@ -1,4 +1,4 @@ -import{eG as commonjsGlobal,d as defineComponent,e as ref,X as onMounted,f as computed,o as openBlock,Y as createElementBlock,a as createBaseVNode,Z as normalizeStyle,$ as renderSlot,a0 as _export_sfc}from"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b64be022-687d-4c2a-a6ef-3272a2525a9e",t._sentryDebugIdIdentifier="sentry-dbid-b64be022-687d-4c2a-a6ef-3272a2525a9e")}catch{}})();var lottie={exports:{}};(function(module,exports){typeof navigator<"u"&&function(t,e){module.exports=e()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i=t.length,s;for(r=0;r1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+t[i]+t[s]+t[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(t)}var dataManager=function(){var t=1,e=[],r,i,s={onmessage:function(){},postMessage:function(P){r({data:P})}},a={postMessage:function(P){s.onmessage({data:P})}};function n(c){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",c.toString()],{type:"text/javascript"}),v=URL.createObjectURL(P);return new Worker(v)}return r=c,s}function p(){i||(i=n(function(P){function v(){function x(w,M){var A,S,T=w.length,V,F,G,N;for(S=0;S=0;M-=1)if(w[M].ty==="sh")if(w[M].ks.k.i)g(w[M].ks.k);else for(T=w[M].ks.k.length,S=0;SA[0]?!0:A[0]>w[0]?!1:w[1]>A[1]?!0:A[1]>w[1]?!1:w[2]>A[2]?!0:A[2]>w[2]?!1:null}var E=function(){var w=[4,4,14];function M(S){var T=S.t.d;S.t.d={k:[{s:T,t:0}]}}function A(S){var T,V=S.length;for(T=0;T=0;T-=1)if(S[T].ty==="sh")if(S[T].ks.k.i)S[T].ks.k.c=S[T].closed;else for(G=S[T].ks.k.length,F=0;F500)&&(this._imageLoaded(),clearInterval(l)),u+=1}.bind(this),50)}function a(o){var u=i(o,this.assetsPath,this.path),l=createNS("image");isSafari?this.testImageLoaded(l):l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(l):this._elementHelper.appendChild(l);var h={img:l,assetData:o};return h}function n(o){var u=i(o,this.assetsPath,this.path),l=createTag("img");l.crossOrigin="anonymous",l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.src=u;var h={img:l,assetData:o};return h}function p(o){var u={assetData:o},l=i(o,this.assetsPath,this.path);return dataManager.loadData(l,function(h){u.img=h,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function f(o,u){this.imagesLoadedCb=u;var l,h=o.length;for(l=0;l1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+t[i]+t[s]+t[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(t)}var dataManager=function(){var t=1,e=[],r,i,s={onmessage:function(){},postMessage:function(P){r({data:P})}},a={postMessage:function(P){s.onmessage({data:P})}};function n(c){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",c.toString()],{type:"text/javascript"}),v=URL.createObjectURL(P);return new Worker(v)}return r=c,s}function p(){i||(i=n(function(P){function v(){function x(w,M){var A,S,T=w.length,V,F,G,N;for(S=0;S=0;M-=1)if(w[M].ty==="sh")if(w[M].ks.k.i)g(w[M].ks.k);else for(T=w[M].ks.k.length,S=0;SA[0]?!0:A[0]>w[0]?!1:w[1]>A[1]?!0:A[1]>w[1]?!1:w[2]>A[2]?!0:A[2]>w[2]?!1:null}var E=function(){var w=[4,4,14];function M(S){var T=S.t.d;S.t.d={k:[{s:T,t:0}]}}function A(S){var T,V=S.length;for(T=0;T=0;T-=1)if(S[T].ty==="sh")if(S[T].ks.k.i)S[T].ks.k.c=S[T].closed;else for(G=S[T].ks.k.length,F=0;F500)&&(this._imageLoaded(),clearInterval(l)),u+=1}.bind(this),50)}function a(o){var u=i(o,this.assetsPath,this.path),l=createNS("image");isSafari?this.testImageLoaded(l):l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(l):this._elementHelper.appendChild(l);var h={img:l,assetData:o};return h}function n(o){var u=i(o,this.assetsPath,this.path),l=createTag("img");l.crossOrigin="anonymous",l.addEventListener("load",this._imageLoaded,!1),l.addEventListener("error",function(){h.img=t,this._imageLoaded()}.bind(this),!1),l.src=u;var h={img:l,assetData:o};return h}function p(o){var u={assetData:o},l=i(o,this.assetsPath,this.path);return dataManager.loadData(l,function(h){u.img=h,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function f(o,u){this.imagesLoadedCb=u;var l,h=o.length;for(l=0;lthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,r,i=e.length,s=t.layers,a,n=s.length;for(a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,e=0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r=0;A-=1)e[A].animation.destroy(M)}function _(M,A,S){var T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),V,F=T.length;for(V=0;V0?h=_:l=_;while(Math.abs(E)>a&&++k=s?x(l,L,h,g):I===0?L:d(l,E,E+f,h,g)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return{double:t}}(),poolFactory=function(){return function(t,e,r){var i=0,s=t,a=createSizedArray(s),n={newElement:p,release:f};function p(){var m;return i?(i-=1,m=a[i]):m=e(),m}function f(m){i===s&&(a=pooling.double(a),s*=2),r&&r(m),a[i]=m,i+=1}return n}}(),bezierLengthPool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return{lengths:[],totalLength:0}}function e(r){var i,s=r.lengths.length;for(i=0;i-.001&&u<.001}function r(c,P,v,d,x,o,u,l,h){if(v===0&&o===0&&h===0)return e(c,P,d,x,u,l);var g=t.sqrt(t.pow(d-c,2)+t.pow(x-P,2)+t.pow(o-v,2)),b=t.sqrt(t.pow(u-c,2)+t.pow(l-P,2)+t.pow(h-v,2)),E=t.sqrt(t.pow(u-d,2)+t.pow(l-x,2)+t.pow(h-o,2)),_;return g>b?g>E?_=g-b-E:_=E-b-g:E>b?_=E-b-g:_=b-g-E,_>-1e-4&&_<1e-4}var i=function(){return function(c,P,v,d){var x=getDefaultCurveSegments(),o,u,l,h,g,b=0,E,_=[],k=[],R=bezierLengthPool.newElement();for(l=v.length,o=0;ou?-1:1,g=!0;g;)if(d[o]<=u&&d[o+1]>u?(l=(u-d[o])/(d[o+1]-d[o]),g=!1):o+=h,o<0||o>=x-1){if(o===x-1)return v[o];g=!1}return v[o]+(v[o+1]-v[o])*l}function m(c,P,v,d,x,o){var u=f(x,o),l=1-u,h=t.round((l*l*l*c[0]+(u*l*l+l*u*l+l*l*u)*v[0]+(u*u*l+l*u*u+u*l*u)*d[0]+u*u*u*P[0])*1e3)/1e3,g=t.round((l*l*l*c[1]+(u*l*l+l*u*l+l*l*u)*v[1]+(u*u*l+l*u*u+u*l*u)*d[1]+u*u*u*P[1])*1e3)/1e3;return[h,g]}var y=createTypedArray("float32",8);function C(c,P,v,d,x,o,u){x<0?x=0:x>1&&(x=1);var l=f(x,u);o=o>1?1:o;var h=f(o,u),g,b=c.length,E=1-l,_=1-h,k=E*E*E,R=l*E*E*3,L=l*l*E*3,I=l*l*l,B=E*E*_,D=l*E*_+E*l*_+E*E*h,w=l*l*_+E*l*h+l*E*h,M=l*l*h,A=E*_*_,S=l*_*_+E*h*_+E*_*h,T=l*h*_+E*h*h+l*_*h,V=l*h*h,F=_*_*_,G=h*_*_+_*h*_+_*_*h,N=h*h*_+_*h*h+h*_*h,O=h*h*h;for(g=0;g=k.t-u){_.h&&(_=k),h=0;break}if(k.t-u>x){h=g;break}g=A||x=A?V.points.length-1:0;for(I=V.points[F].point.length,L=0;L=O&&G=A)l[0]=T[0],l[1]=T[1],l[2]=T[2];else if(x<=S)l[0]=_.s[0],l[1]=_.s[1],l[2]=_.s[2];else{var $=a(_.s),W=a(T),X=(x-S)/(A-S);s(l,i($,W,X))}else for(g=0;g=A?B=1:x1e-6?(I=Math.acos(B),D=Math.sin(I),w=Math.sin((1-u)*I)/D,M=Math.sin(u*I)/D):(w=1-u,M=u),l[0]=w*h+M*_,l[1]=w*g+M*k,l[2]=w*b+M*R,l[3]=w*E+M*L,l}function s(x,o){var u=o[0],l=o[1],h=o[2],g=o[3],b=Math.atan2(2*l*g-2*u*h,1-2*l*l-2*h*h),E=Math.asin(2*u*l+2*h*g),_=Math.atan2(2*u*g-2*l*h,1-2*u*u-2*h*h);x[0]=b/degToRads,x[1]=E/degToRads,x[2]=_/degToRads}function a(x){var o=x[0]*degToRads,u=x[1]*degToRads,l=x[2]*degToRads,h=Math.cos(o/2),g=Math.cos(u/2),b=Math.cos(l/2),E=Math.sin(o/2),_=Math.sin(u/2),k=Math.sin(l/2),R=h*g*b-E*_*k,L=E*_*b+h*g*k,I=E*g*b+h*_*k,B=h*_*b-E*g*k;return[L,I,B,R]}function n(){var x=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,u=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(x===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=u&&x>=u||this._caching.lastFrame=x&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(x,this._caching);this.pv=l}return this._caching.lastFrame=x,this.pv}function p(x){var o;if(this.propType==="unidimensional")o=x*this.mult,e(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var u=0,l=this.v.length;u1e-5&&(this.v[u]=o,this._mdf=!0),u+=1}function f(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var x,o=this.effectsSequence.length,u=this.kf?this.pv:this.data.k;for(x=0;x=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,n,p){this.setXYAt(t,e,"v",n,p),this.setXYAt(r,i,"o",n,p),this.setXYAt(s,a,"i",n,p)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,n=this._length,p;for(p=s;p=D[D.length-1].t-this.offsetTime)g=D[D.length-1].s?D[D.length-1].s[0]:D[D.length-2].e[0],E=!0;else{for(var w=h,M=D.length-1,A=!0,S,T,V;A&&(S=D[w],T=D[w+1],!(T.t-this.offsetTime>o));)w=T.t-this.offsetTime)I=1;else if(ol&&o>l)||(this._caching.lastIndex=h0||A>-1e-6&&A<0?i(A*S)/S:A}function M(){var A=this.props,S=w(A[0]),T=w(A[1]),V=w(A[4]),F=w(A[5]),G=w(A[12]),N=w(A[13]);return"matrix("+S+","+T+","+V+","+F+","+G+","+N+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=p,this.rotateZ=f,this.skew=y,this.skewFromAxis=C,this.shear=m,this.scale=c,this.setTransform=P,this.translate=v,this.transform=d,this.applyToPoint=h,this.applyToX=g,this.applyToY=b,this.applyToZ=E,this.applyToPointArray=I,this.applyToTriplePoints=L,this.applyToPointStringified=B,this.toCSS=D,this.to2dCSS=M,this.clone=u,this.cloneFromProps=l,this.equals=o,this.inversePoints=R,this.inversePoint=k,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=x,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n=[],p,f=a.length,m;for(p=0;pi+r)){var y,C;m.s*s<=i?y=0:y=(m.s*s-i)/r,m.e*s>=i+r?C=1:C=(m.e*s-i)/r,n.push([y,C])}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e1?e=1+i:this.s.v<0?e=0+i:e=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,e>r){var s=e;e=r,r=s}e=Math.round(e*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,n,p=this.shapes.length,f,m,y,C,c,P=0;if(r===e)for(n=0;n=0;n-=1)if(d=this.shapes[n],d.shape._mdf){for(x=d.localShapeCollection,x.releaseShapes(),this.m===2&&p>1?(h=this.calculateShapeEdges(e,r,d.totalShapeLength,l,P),l+=d.totalShapeLength):h=[[o,u]],m=h.length,f=0;f=1?v.push({s:d.totalShapeLength*(o-1),e:d.totalShapeLength*(u-1)}):(v.push({s:d.totalShapeLength*o,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(u-1)}));var g=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var b=d.shape.paths.shapes[d.shape.paths._length-1];if(b.c){var E=g.pop();this.addPaths(g,x),g=this.addShapes(d,v[1],E)}else this.addPaths(g,x),g=this.addShapes(d,v[1])}this.addPaths(g,x)}}d.shape.paths=x}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;re.e){r.c=!1;break}else e.s<=m&&e.e>=m+y.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],r,C,x),x=!1):(P=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-m)/y.addedLength,(e.e-m)/y.addedLength,c[p-1]),this.addSegmentFromArray(P,r,C,x),x=!1,r.c=!1),m+=y.addedLength,C+=1;if(s[a].c&&c.length){if(y=c[p-1],m<=e.e){var o=c[p-1].addedLength;e.s<=m&&e.e>=m+o?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],r,C,x),x=!1):(P=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-m)/o,(e.e-m)/o,c[p-1]),this.addSegmentFromArray(P,r,C,x),x=!1,r.c=!1)}else r.c=!1;m+=y.addedLength,C+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(y=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/m,0),C=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/m,0)):(y=this.p.pv,C=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/m,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){y=[],C=[];var c=this.px,P=this.py;c._caching.lastFrame+c.offsetTime<=c.keyframes[0].t?(y[0]=c.getValueAtTime((c.keyframes[0].t+.01)/m,0),y[1]=P.getValueAtTime((P.keyframes[0].t+.01)/m,0),C[0]=c.getValueAtTime(c.keyframes[0].t/m,0),C[1]=P.getValueAtTime(P.keyframes[0].t/m,0)):c._caching.lastFrame+c.offsetTime>=c.keyframes[c.keyframes.length-1].t?(y[0]=c.getValueAtTime(c.keyframes[c.keyframes.length-1].t/m,0),y[1]=P.getValueAtTime(P.keyframes[P.keyframes.length-1].t/m,0),C[0]=c.getValueAtTime((c.keyframes[c.keyframes.length-1].t-.01)/m,0),C[1]=P.getValueAtTime((P.keyframes[P.keyframes.length-1].t-.01)/m,0)):(y=[c.pv,P.pv],C[0]=c.getValueAtTime((c._caching.lastFrame+c.offsetTime-.01)/m,c.offsetTime),C[1]=P.getValueAtTime((P._caching.lastFrame+P.offsetTime-.01)/m,P.offsetTime))}else C=t,y=C;this.v.rotate(-Math.atan2(y[1]-C[1],y[0]-C[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function n(f,m,y){if(this.elem=f,this.frameId=-1,this.propType="transform",this.data=m,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(y||f),m.p&&m.p.s?(this.px=PropertyFactory.getProp(f,m.p.x,0,0,this),this.py=PropertyFactory.getProp(f,m.p.y,0,0,this),m.p.z&&(this.pz=PropertyFactory.getProp(f,m.p.z,0,0,this))):this.p=PropertyFactory.getProp(f,m.p||{k:[0,0,0]},1,0,this),m.rx){if(this.rx=PropertyFactory.getProp(f,m.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(f,m.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(f,m.rz,0,degToRads,this),m.or.k[0].ti){var C,c=m.or.k.length;for(C=0;C0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),d=this.pMatrix.props,x=this.rMatrix.props,o=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(c>0){for(;uv;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;P&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-P,!0),u-=P)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var l,h;a;){if(e=this.elemsData[i].it,r=e[e.length-1].transform.mProps.v.props,h=r.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),u!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),l=0;l0&&i<1?[e]:[]:[e-i,e+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,r,t),a=lerpPoint(r,i,t),n=lerpPoint(s,a,t);return[new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,i,this.points[3],!0)]};function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var s=i;i=r,r=s}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var p=t.point(a[n])[e];pi&&(i=p)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i){s.push([t.t,e.t]);return}var n=splitData(t),p=splitData(e);intersectsImpl(n[0],p[0],r+1,i,s,a),intersectsImpl(n[0],p[1],r+1,i,s,a),intersectsImpl(n[1],p[0],r+1,i,s,a),intersectsImpl(n[1],p[1],r+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(t,e,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)};function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[r[0],r[1],1],p=[i[0],i[1],1],f=crossProduct(crossProduct(s,a),crossProduct(n,p));return floatZero(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,e,r,i,s,a,n){var p=r-Math.PI/2,f=r+Math.PI/2,m=e[0]+Math.cos(r)*i*s,y=e[1]-Math.sin(r)*i*s;t.setTripleAt(m,y,m+Math.cos(p)*a,y-Math.sin(p)*a,m+Math.cos(f)*n,y-Math.sin(f)*n,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),s=t.v[r],a=t.v[i],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,s,a,n){var p=getProjectingAngle(e,r),f=e.v[r%e._length],m=e.v[r===0?e._length-1:r-1],y=e.v[(r+1)%e._length],C=a===2?Math.sqrt(Math.pow(f[0]-m[0],2)+Math.pow(f[1]-m[1],2)):0,c=a===2?Math.sqrt(Math.pow(f[0]-y[0],2)+Math.pow(f[1]-y[1],2)):0;setPoint(t,e.v[r%e._length],p,n,i,c/((s+1)*2),C/((s+1)*2))}function zigZagSegment(t,e,r,i,s,a){for(var n=0;n1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r=t.inflectionPoints(),i,s,a,n;if(r.length===0)return[offsetSegment(t,e)];if(r.length===1||floatEqual(r[1],1))return a=t.split(r[0]),i=a[0],s=a[1],[offsetSegment(i,e),offsetSegment(s,e)];a=t.split(r[0]),i=a[0];var p=(r[1]-r[0])/(1-r[0]);return a=a[1].split(p),n=a[0],s=a[1],[offsetSegment(i,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var n,p,f,m=[];for(n=0;n=0;n-=1)f=PolynomialBezier.shapeSegmentInverted(t,n),m.push(offsetSegmentSplit(f,e));m=pruneIntersections(m);var y=null,C=null;for(n=0;n0&&(R=!1),R){var B=createTag("style");B.setAttribute("f-forigin",b[E].fOrigin),B.setAttribute("f-origin",b[E].origin),B.setAttribute("f-family",b[E].fFamily),B.type="text/css",B.innerText="@font-face {font-family: "+b[E].fFamily+"; font-style: normal; src: url('"+b[E].fPath+"');}",g.appendChild(B)}}else if(b[E].fOrigin==="g"||b[E].origin===1){for(L=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),I=0;Ie?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,r=this.renderableComponents.length;for(e=0;e.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,r=this.layers.length,i;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e],i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+c+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r1&&(i+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==i){var n="";r.elem&&(e.c&&(n=t.inv?this.solidPath+i:i),r.elem.setAttribute("d",n)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=r;function e(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r="SourceGraphic",i=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[e].processShapes(this._isFirstFrame),!i);e-=1);}},searchProcessedElement:function(e){for(var r=this.processedElements,i=0,s=r.length;i.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)o=c.transformers[R].mProps._mdf||o,k-=1,R-=1;if(o)for(k=g-c.styles[l].lvl,R=c.transformers.length-1;k>0;)_=c.transformers[R].mProps.v.props,E.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),k-=1,R-=1}else E=t;if(b=c.sh.paths,d=b._length,o){for(x="",v=0;v=1?B=.99:B<=-1&&(B=-.99);var D=L*B,w=Math.cos(I+c.a.v)*D+x[0],M=Math.sin(I+c.a.v)*D+x[1];v.setAttribute("fx",w),v.setAttribute("fy",M),d&&!c.g._collapsable&&(c.of.setAttribute("fx",w),c.of.setAttribute("fy",M))}}}function y(C,c,P){var v=c.style,d=c.d;d&&(d._mdf||P)&&d.dashStr&&(v.pElem.setAttribute("stroke-dasharray",d.dashStr),v.pElem.setAttribute("stroke-dashoffset",d.dashoffset[0])),c.c&&(c.c._mdf||P)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||P)&&v.pElem.setAttribute("stroke-opacity",c.o.v),(c.w._mdf||P)&&(v.pElem.setAttribute("stroke-width",c.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",c.w.v))}return r}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,r,i,s=this.stylesList.length,a,n=[],p=!1;for(i=0;i1&&p&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e=0;f-=1){if(x=this.searchProcessedElement(t[f]),x?e[f]=r[x-1]:t[f]._render=n,t[f].ty==="fl"||t[f].ty==="st"||t[f].ty==="gf"||t[f].ty==="gs"||t[f].ty==="no")x?e[f].style.closed=!1:e[f]=this.createStyleElement(t[f],s),t[f]._render&&e[f].style.pElem.parentNode!==i&&i.appendChild(e[f].style.pElem),c.push(e[f].style);else if(t[f].ty==="gr"){if(!x)e[f]=this.createGroupElement(t[f]);else for(C=e[f].it.length,y=0;y1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;ie);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],r=0,i=t.length,s,a,n=!1;r=55296&&s<=56319?(a=t.charCodeAt(r+1),a>=56320&&a<=57343?(n||FontManager.isModifier(s,a)?(e[e.length-1]+=t.substr(r,2),n=!1):e.push(t.substr(r,2)),r+=1):e.push(t.charAt(r))):s>56319?(a=t.charCodeAt(r+1),FontManager.isZeroWidthJoiner(s,a)?(n=!0,e[e.length-1]+=t.substr(r,2),r+=1):e.push(t.charAt(r))):FontManager.isZeroWidthJoiner(s)?(e[e.length-1]+=t.charAt(r),n=!0):e.push(t.charAt(r)),r+=1;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,r=this.data,i=[],s,a,n,p=0,f,m=r.m.g,y=0,C=0,c=0,P=[],v=0,d=0,x,o,u=e.getFontByName(t.f),l,h=0,g=getFontProperties(u);t.fWeight=g.weight,t.fStyle=g.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var b=t.tr/1e3*t.finalSize,E;if(t.sz)for(var _=!0,k=t.sz[0],R=t.sz[1],L,I;_;){I=this.buildFinalText(t.t),L=0,v=0,a=I.length,b=t.tr/1e3*t.finalSize;var B=-1;for(s=0;sk&&I[s]!==" "?(B===-1?a+=1:s=B,L+=t.finalLineHeight||t.finalSize*1.2,I.splice(s,B===s?1:0,"\r"),B=-1,v=0):(v+=h,v+=b);L+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Rd?v:d,v=-2*b,f="",n=!0,c+=1):f=w,e.chars?(l=e.getCharData(w,u.fStyle,e.getFontByName(t.f).fFamily),h=n?0:l.w*t.finalSize/100):h=e.measureText(f,t.f,t.finalSize),w===" "?D+=h+b:(v+=h+b+D,D=0),i.push({l:h,an:h,add:y,n,anIndexes:[],val:f,line:c,animatorJustifyOffset:0}),m==2){if(y+=h,f===""||f===" "||s===a-1){for((f===""||f===" ")&&(y-=h);C<=s;)i[C].an=y,i[C].ind=p,i[C].extra=h,C+=1;p+=1,y=0}}else if(m==3){if(y+=h,f===""||s===a-1){for(f===""&&(y-=h);C<=s;)i[C].an=y,i[C].ind=p,i[C].extra=h,C+=1;y=0,p+=1}}else i[p].ind=p,i[p].extra=0,p+=1;if(t.l=i,d=v>d?v:d,P.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=P;var M=r.a,A,S;o=M.length;var T,V,F=[];for(x=0;x0?p=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?m=1-this.xe.v/100:y=1+this.xe.v/100;var C=BezierFactory.getBezierEasing(p,f,m,y).get,c=0,P=this.finalS,v=this.finalE,d=this.data.sh;if(d===2)v===P?c=n>=v?1:0:c=t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c=C(c);else if(d===3)v===P?c=n>=v?0:1:c=1-t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c=C(c);else if(d===4)v===P?c=0:(c=t(0,e(.5/(v-P)+(n-P)/(v-P),1)),c<.5?c*=2:c=1-2*(c-.5)),c=C(c);else if(d===5){if(v===P)c=0;else{var x=v-P;n=e(t(0,n+.5-P),v-P);var o=-x/2+n,u=x/2;c=Math.sqrt(1-o*o/(u*u))}c=C(c)}else d===6?(v===P?c=0:(n=e(t(0,n+.5-P),v-P),c=(1+Math.cos(Math.PI+Math.PI*2*n/(v-P)))/2),c=C(c)):(n>=r(P)&&(n-P<0?c=t(0,e(e(v,1)-(P-n),1)):c=t(0,e(v-n,1))),c=C(c));if(this.sm.v!==100){var l=this.sm.v*.01;l===0&&(l=1e-8);var h=.5-l*.5;c1&&(c=1))}return c*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var p=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/p,m=this.s.v/p+f,y=this.e.v/p+f;if(m>y){var C=m;m=y,y=C}this.finalS=m,this.finalE=y}},extendPrototype([DynamicPropertyContainer],i);function s(a,n,p){return new i(a,n)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,r):i,rx:a.rx?s(t,a.rx,0,degToRads,r):i,ry:a.ry?s(t,a.ry,0,degToRads,r):i,sk:a.sk?s(t,a.sk,0,degToRads,r):i,sa:a.sa?s(t,a.sa,0,degToRads,r):i,s:a.s?s(t,a.s,1,.01,r):i,a:a.a?s(t,a.a,1,0,r):i,o:a.o?s(t,a.o,0,.01,r):i,p:a.p?s(t,a.p,1,0,r):i,sw:a.sw?s(t,a.sw,0,0,r):i,sc:a.sc?s(t,a.sc,1,0,r):i,fc:a.fc?s(t,a.fc,1,0,r):i,fh:a.fh?s(t,a.fh,0,0,r):i,fs:a.fs?s(t,a.fs,0,.01,r):i,fb:a.fb?s(t,a.fb,0,.01,r):i,t:a.t?s(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,r,i=PropertyFactory.getProp;for(t=0;t=v+Q||!g?(k=(v+Q-x)/d.partialLength,O=h.point[0]+(d.point[0]-h.point[0])*k,q=h.point[1]+(d.point[1]-h.point[1])*k,a.translate(-r[0]*c[y].an*.005,-(r[1]*D)*.01),o=!1):g&&(x+=d.partialLength,u+=1,u>=g.length&&(u=0,l+=1,b[l]?g=b[l].points:L.v.c?(u=0,l=0,g=b[l].points):(x-=d.partialLength,g=null)),g&&(h=d,d=g[u],E=d.partialLength));N=c[y].an/2-c[y].add,a.translate(-N,0,0)}else N=c[y].an/2-c[y].add,a.translate(-N,0,0),a.translate(-r[0]*c[y].an*.005,-r[1]*D*.01,0);for(S=0;St?this.textSpans[t].span:createNS(p?"g":"text"),l<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,p){var g=createNS("g");f.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(m.reset(),C&&(n[t].n&&(c=-d,P+=r.yOffset,P+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(r,m,n[t].line,c,P),c+=n[t].l||0,c+=d),p){h=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var b;if(h.t===1)b=new SVGCompElement(h.data,this.globalData,this);else{var E=emptyShapeData;h.data&&h.data.shapes&&(E=this.buildShapeData(h.data,r.finalSize)),b=new SVGShapeElement(E,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),h.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else C&&f.setAttribute("transform","translate("+m.props[12]+","+m.props[13]+")"),f.textContent=n[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}C&&f&&f.setAttribute("d",y)}for(;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0;i-=1)n=e.transforms[i].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}e._mdf=a},processSequences:function(e){var r,i=this.sequenceList.length;for(r=0;r=1){this.buffers=[];var e=this.globalData.canvasContext,r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!e)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,n=r.length,p;for(a=0;a=0;a-=1){if(C=this.searchProcessedElement(t[a]),C?e[a]=r[C-1]:t[a]._shouldRender=i,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")C?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],v),m.push(e[a].style);else if(t[a].ty==="gr"){if(!C)e[a]=this.createGroupElement(t[a]);else for(f=e[a].it.length,p=0;p=0;s-=1)e[s].ty==="tr"?(n=r[s].transform,this.renderShapeTransform(t,n)):e[s].ty==="sh"||e[s].ty==="el"||e[s].ty==="rc"||e[s].ty==="sr"?this.renderPath(e[s],r[s]):e[s].ty==="fl"?this.renderFill(e[s],r[s],n):e[s].ty==="st"?this.renderStroke(e[s],r[s],n):e[s].ty==="gf"||e[s].ty==="gs"?this.renderGradientFill(e[s],r[s],n):e[s].ty==="gr"?this.renderShape(n,e[s].it,r[s].it):e[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r=t.trNodes,i=e.paths,s,a,n,p=i._length;r.length=0;var f=t.transforms.finalTransform;for(n=0;n=1?y=.99:y<=-1&&(y=-.99);var C=f*y,c=Math.cos(m+e.a.v)*C+n[0],P=Math.sin(m+e.a.v)*C+n[1];s=a.createRadialGradient(c,P,0,n[0],n[1],f)}var v,d=t.g.p,x=e.g.c,o=1;for(v=0;va&&f==="xMidYMid slice"||ss&&p==="meet"||as&&p==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:m==="xMax"&&(as&&p==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,y==="YMid"&&(a>s&&p==="meet"||as&&p==="meet"||a=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,r=this.layers.length;for(e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();e.transform=r,e.webkitTransform=r}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r0&&f<1&&s[c].push(this.calculateF(f,t,e,r,i,c))):(m=n*n-4*p*a,m>=0&&(y=(-n+bmSqrt(m))/(2*a),y>0&&y<1&&s[c].push(this.calculateF(y,t,e,r,i,c)),C=(-n-bmSqrt(m))/(2*a),C>0&&C<1&&s[c].push(this.calculateF(C,t,e,r,i,c)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*r[a]+3*(1-t)*bmPow(t,2)*i[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;rr&&(r=s)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],p=Math.sqrt(n[2]*n[2]+n[0]*n[0]),f=Math.atan2(n[1],p),m=Math.atan2(n[0],-n[2]);this.mat.rotateY(m).rotateX(-f)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var y=!this._prevMat.equals(this.mat);if((y||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var C,c,P;for(e=0;e=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r=createTag("div"),i,s;styleDiv(r);var a=createTag("div");if(styleDiv(a),e==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var n="50% 50%";i.webkitTransformOrigin=n,i.mozTransformOrigin=n,i.transformOrigin=n,s=a.style;var p="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=p,s.webkitTransform=p}r.appendChild(a);var f={container:a,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(f),f},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,r,i="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;rr?(s=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,n=0,p=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(s=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,n=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,p=0);var f=this.resizerElem.style;f.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+p+",0,1)",f.transform=f.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t=this.globalData.compSize.w,e=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r=m;)L/=2,I/=2,B>>>=1;return(L+B)/I};return k.int32=function(){return _.g(4)|0},k.quick=function(){return _.g(4)/4294967296},k.double=k,x(u(_.S),t),(h.pass||g||function(R,L,I,B){return B&&(B.S&&v(B,_),R.state=function(){return v(_,{})}),I?(e[n]=R,L):R})(k,E,"global"in h?h.global:this==e,h.state)}e["seed"+n]=c;function P(l){var h,g=l.length,b=this,E=0,_=b.i=b.j=0,k=b.S=[];for(g||(l=[g++]);Er){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,i=Math.min(t.length,e.length),s=0;for(r=0;r.5?m/(2-s-a):m/(s+a),s){case e:n=(r-i)/m+(r1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e=t[0],r=t[1],i=t[2],s,a,n;if(r===0)s=i,n=i,a=i;else{var p=i<.5?i*(1+r):i+r-i*r,f=2*i-p;s=hue2rgb(f,p,e+1/3),a=hue2rgb(f,p,e),n=hue2rgb(f,p,e-1/3)}return[s,a,n,t[3]]}function linear(t,e,r,i,s){if((i===void 0||s===void 0)&&(i=e,s=r,e=0,r=1),r=r)return s;var n=r===e?0:(t-e)/(r-e);if(!i.length)return i+(s-i)*n;var p,f=i.length,m=createTypedArray("float32",f);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var p,f=s.length,m=createTypedArray("float32",f);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,s=data.k[e+1].t):(i=e+1,s=data.k[e].t);break}i===-1&&(i=e+1,s=data.k[e].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=s.length,r=0;rx.length-1)&&(P=x.length-1),l=x[x.length-1-P].t,u=o-l);var h,g,b;if(c==="pingpong"){var E=Math.floor((d-l)/u);if(E%2!==0)return this.getValueAtTime((u-(d-l)%u+l)/this.comp.globalData.frameRate,0)}else if(c==="offset"){var _=this.getValueAtTime(l/this.comp.globalData.frameRate,0),k=this.getValueAtTime(o/this.comp.globalData.frameRate,0),R=this.getValueAtTime(((d-l)%u+l)/this.comp.globalData.frameRate,0),L=Math.floor((d-l)/u);if(this.pv.length){for(b=new Array(_.length),g=b.length,h=0;h=o)return this.pv;var u,l;v?(P?u=Math.abs(this.elem.comp.globalData.frameRate*P):u=Math.max(0,this.elem.data.op-o),l=o+u):((!P||P>x.length-1)&&(P=x.length-1),l=x[P].t,u=l-o);var h,g,b;if(c==="pingpong"){var E=Math.floor((o-d)/u);if(E%2===0)return this.getValueAtTime(((o-d)%u+o)/this.comp.globalData.frameRate,0)}else if(c==="offset"){var _=this.getValueAtTime(o/this.comp.globalData.frameRate,0),k=this.getValueAtTime(l/this.comp.globalData.frameRate,0),R=this.getValueAtTime((u-(o-d)%u+o)/this.comp.globalData.frameRate,0),L=Math.floor((o-d)/u)+1;if(this.pv.length){for(b=new Array(_.length),g=b.length,h=0;h1?(x-d)/(P-1):1,u=0,l=0,h;this.pv.length?h=createTypedArray("float32",this.pv.length):h=0;for(var g;uu){var E=l,_=d.c&&l===h-1?0:l+1,k=(u-g)/o[l].addedLength;b=bez.getPointInSegment(d.v[E],d.v[_],d.o[E],d.i[_],k,o[l]);break}else g+=o[l].addedLength;l+=1}return b||(b=d.c?[d.v[0][0],d.v[0][1]]:[d.v[d._length-1][0],d.v[d._length-1][1]]),b},vectorOnPath:function(P,v,d){P==1?P=this.v.c:P==0&&(P=.999);var x=this.pointOnPath(P,v),o=this.pointOnPath(P+.001,v),u=o[0]-x[0],l=o[1]-x[1],h=Math.sqrt(Math.pow(u,2)+Math.pow(l,2));if(h===0)return[0,0];var g=d==="tangent"?[u/h,l/h]:[-l/h,u/h];return g},tangentOnPath:function(P,v){return this.vectorOnPath(P,v,"tangent")},normalOnPath:function(P,v){return this.vectorOnPath(P,v,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([y],f),extendPrototype([y],m),m.prototype.getValueAtTime=p,m.prototype.initiateExpression=ExpressionManager.initiateExpression;var C=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(c,P,v,d,x){var o=C(c,P,v,d,x);return o.propertyIndex=P.ix,o.lock=!1,v===3?expressionHelpers.searchExpressions(c,P.pt,o):v===4&&expressionHelpers.searchExpressions(c,P.ks,o),o.k&&c.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,r){var i=this.calculateExpression(r);if(e.t!==i){var s={};return this.copyData(s,e),s.t=i.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),r=this.searchExpressions();return this.kf=e||r,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,r){var i=createNS("feMerge");i.setAttribute("result",e);var s,a;for(a=0;a=m?C=v<0?i:s:C=i+P*Math.pow((p-t)/v,1/r),y[c]=C,c+=1,a+=256/(n-1);return y.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}};function SVGDropShadowEffect(t,e,r,i,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",i+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var f=createNS("feOffset");f.setAttribute("dx","25"),f.setAttribute("dy","0"),f.setAttribute("in",i+"_drop_shadow_1"),f.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=f,t.appendChild(f);var m=createNS("feFlood");m.setAttribute("flood-color","#00ff00"),m.setAttribute("flood-opacity","1"),m.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=m,t.appendChild(m);var y=createNS("feComposite");y.setAttribute("in",i+"_drop_shadow_3"),y.setAttribute("in2",i+"_drop_shadow_2"),y.setAttribute("operator","in"),y.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(y);var C=this.createMergeNode(i,[i+"_drop_shadow_4",s]);t.appendChild(C)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e{!r.value||Lottie.loadAnimation({container:r.value,renderer:"svg",loop:!0,autoplay:!0,path:"/circularLoading.json"})});const i=computed(()=>{const{direction:a="row",justify:n="space-between"}=e;return{flexDirection:a,justifyContent:n}}),s=computed(()=>{const{size:a="40"}=e;return{width:`${a}px`,height:`${a}px`}});return(a,n)=>(openBlock(),createElementBlock("div",{class:"container",style:normalizeStyle(i.value)},[createBaseVNode("div",{ref_key:"loading",ref:r,style:normalizeStyle(s.value)},null,4),renderSlot(a.$slots,"default",{},void 0,!0)],4))}}),CircularLoading_vue_vue_type_style_index_0_scoped_174df194_lang="",LoadingIndicator=_export_sfc(_sfc_main,[["__scopeId","data-v-174df194"]]);export{LoadingIndicator as L}; -//# sourceMappingURL=CircularLoading.fdcc1083.js.map +//# sourceMappingURL=CircularLoading.13413fc4.js.map diff --git a/abstra_statics/dist/assets/CloseCircleOutlined.7faf1c70.js b/abstra_statics/dist/assets/CloseCircleOutlined.c0e3f3e1.js similarity index 55% rename from abstra_statics/dist/assets/CloseCircleOutlined.7faf1c70.js rename to abstra_statics/dist/assets/CloseCircleOutlined.c0e3f3e1.js index 60ece1fa61..0e3c385f84 100644 --- a/abstra_statics/dist/assets/CloseCircleOutlined.7faf1c70.js +++ b/abstra_statics/dist/assets/CloseCircleOutlined.c0e3f3e1.js @@ -1,2 +1,2 @@ -import{b as o,ee as a,ei as c}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4cb00faf-dfda-4cbb-8e95-14f192b483d8",e._sentryDebugIdIdentifier="sentry-dbid-4cb00faf-dfda-4cbb-8e95-14f192b483d8")}catch{}})();function f(e){for(var t=1;t({prefixCls:String,activeKey:N([Array,Number,String]),defaultActiveKey:N([Array,Number,String]),accordion:v(),destroyInactivePanel:v(),bordered:v(),expandIcon:S(),openAnimation:R.object,expandIconPosition:j(),collapsible:j(),ghost:v(),onChange:S(),"onUpdate:activeKey":S()}),G=()=>({openAnimation:R.object,prefixCls:String,header:R.any,headerClass:String,showArrow:v(),isActive:v(),destroyInactivePanel:v(),disabled:v(),accordion:v(),forceRender:v(),expandIcon:S(),extra:R.any,panelKey:N(),collapsible:j(),role:String,onItemClick:S()}),ye=n=>{const{componentCls:e,collapseContentBg:o,padding:p,collapseContentPaddingHorizontal:i,collapseHeaderBg:d,collapseHeaderPadding:l,collapsePanelBorderRadius:u,lineWidth:b,lineType:$,colorBorder:x,colorText:h,colorTextHeading:g,colorTextDisabled:m,fontSize:C,lineHeight:y,marginSM:A,paddingSM:a,motionDurationSlow:t,fontSizeIcon:s}=n,r=`${b}px ${$} ${x}`;return{[e]:w(w({},ne(n)),{backgroundColor:d,border:r,borderBottom:0,borderRadius:`${u}px`,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:r,["&:last-child"]:{[` +import{b7 as N,aN as v,aO as S,av as R,aM as j,ad as J,ae as Q,dU as Y,U as w,bi as ee,ap as ne,d as z,aq as X,e as ae,dV as oe,g as te,ai as F,f as le,aj as T,b as f,al as k,dW as se,aD as re,dI as ie,dX as de,aF as V,bu as ce,aA as pe,R as ue,aL as fe,c8 as be,a_ as ve,aZ as ge,a$ as $e}from"./index.d0f12294.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="6eea6151-3921-4da6-b815-fdc0bff588b5",n._sentryDebugIdIdentifier="sentry-dbid-6eea6151-3921-4da6-b815-fdc0bff588b5")}catch{}})();const me=()=>({prefixCls:String,activeKey:N([Array,Number,String]),defaultActiveKey:N([Array,Number,String]),accordion:v(),destroyInactivePanel:v(),bordered:v(),expandIcon:S(),openAnimation:R.object,expandIconPosition:j(),collapsible:j(),ghost:v(),onChange:S(),"onUpdate:activeKey":S()}),G=()=>({openAnimation:R.object,prefixCls:String,header:R.any,headerClass:String,showArrow:v(),isActive:v(),destroyInactivePanel:v(),disabled:v(),accordion:v(),forceRender:v(),expandIcon:S(),extra:R.any,panelKey:N(),collapsible:j(),role:String,onItemClick:S()}),ye=n=>{const{componentCls:e,collapseContentBg:o,padding:p,collapseContentPaddingHorizontal:i,collapseHeaderBg:d,collapseHeaderPadding:l,collapsePanelBorderRadius:u,lineWidth:b,lineType:$,colorBorder:x,colorText:h,colorTextHeading:g,colorTextDisabled:m,fontSize:C,lineHeight:y,marginSM:A,paddingSM:a,motionDurationSlow:t,fontSizeIcon:s}=n,r=`${b}px ${$} ${x}`;return{[e]:w(w({},ne(n)),{backgroundColor:d,border:r,borderBottom:0,borderRadius:`${u}px`,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:r,["&:last-child"]:{[` &, & > ${e}-header`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:g,lineHeight:y,cursor:"pointer",transition:`all ${t}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:C*y,display:"flex",alignItems:"center",paddingInlineEnd:A},[`${e}-arrow`]:w(w({},ee()),{fontSize:s,svg:{transition:`transform ${t}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"},[`${e}-expand-icon`]:{cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}},[`&${e}-no-arrow`]:{[`> ${e}-header`]:{paddingInlineStart:a}}},[`${e}-content`]:{color:h,backgroundColor:o,borderTop:r,[`& > ${e}-content-box`]:{padding:`${p}px ${i}px`},["&-hidden"]:{display:"none"}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${u}px ${u}px`}},[`& ${e}-item-disabled > ${e}-header`]:{[` &, @@ -7,4 +7,4 @@ import{b7 as N,aN as v,aO as S,av as R,aM as j,ad as J,ae as Q,dU as Y,U as w,bi > ${e}-item:last-child, > ${e}-item:last-child ${e}-header `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:p}}}},Ce=n=>{const{componentCls:e,paddingSM:o}=n;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:o}}}}}},Ae=J("Collapse",n=>{const e=Q(n,{collapseContentBg:n.colorBgContainer,collapseHeaderBg:n.colorFillAlter,collapseHeaderPadding:`${n.paddingSM}px ${n.padding}px`,collapsePanelBorderRadius:n.borderRadiusLG,collapseContentPaddingHorizontal:16});return[ye(e),he(e),Ce(e),xe(e),Y(e)]});function W(n){let e=n;if(!Array.isArray(e)){const o=typeof e;e=o==="number"||o==="string"?[e]:[]}return e.map(o=>String(o))}const Se=z({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:X(me(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(n,e){let{attrs:o,slots:p,emit:i}=e;const d=ae(W(oe([n.activeKey,n.defaultActiveKey])));te(()=>n.activeKey,()=>{d.value=W(n.activeKey)},{deep:!0});const{prefixCls:l,direction:u,rootPrefixCls:b}=F("collapse",n),[$,x]=Ae(l),h=le(()=>{const{expandIconPosition:a}=n;return a!==void 0?a:u.value==="rtl"?"end":"start"}),g=a=>{const{expandIcon:t=p.expandIcon}=n,s=t?t(a):f(ce,{rotate:a.isActive?90:void 0},null);return f("div",{class:[`${l.value}-expand-icon`,x.value],onClick:()=>["header","icon"].includes(n.collapsible)&&C(a.panelKey)},[pe(Array.isArray(t)?s[0]:s)?V(s,{class:`${l.value}-arrow`},!1):s])},m=a=>{n.activeKey===void 0&&(d.value=a);const t=n.accordion?a[0]:a;i("update:activeKey",t),i("change",t)},C=a=>{let t=d.value;if(n.accordion)t=t[0]===a?[]:[a];else{t=[...t];const s=t.indexOf(a);s>-1?t.splice(s,1):t.push(a)}m(t)},y=(a,t)=>{var s,r,I;if(ie(a))return;const c=d.value,{accordion:P,destroyInactivePanel:E,collapsible:K,openAnimation:_}=n,D=_||de(`${b.value}-motion-collapse`),B=String((s=a.key)!==null&&s!==void 0?s:t),{header:L=(I=(r=a.children)===null||r===void 0?void 0:r.header)===null||I===void 0?void 0:I.call(r),headerClass:q,collapsible:H,disabled:U}=a.props||{};let M=!1;P?M=c[0]===B:M=c.indexOf(B)>-1;let O=H!=null?H:K;(U||U==="")&&(O="disabled");const Z={key:B,panelKey:B,header:L,headerClass:q,isActive:M,prefixCls:l.value,destroyInactivePanel:E,openAnimation:D,accordion:P,onItemClick:O==="disabled"?null:C,expandIcon:g,collapsible:O};return V(a,Z)},A=()=>{var a;return re((a=p.default)===null||a===void 0?void 0:a.call(p)).map(y)};return()=>{const{accordion:a,bordered:t,ghost:s}=n,r=T(l.value,{[`${l.value}-borderless`]:!t,[`${l.value}-icon-position-${h.value}`]:!0,[`${l.value}-rtl`]:u.value==="rtl",[`${l.value}-ghost`]:!!s,[o.class]:!!o.class},x.value);return $(f("div",k(k({class:r},se(o)),{},{style:o.style,role:a?"tablist":null}),[A()]))}}}),Ie=z({compatConfig:{MODE:3},name:"PanelContent",props:G(),setup(n,e){let{slots:o}=e;const p=ue(!1);return fe(()=>{(n.isActive||n.forceRender)&&(p.value=!0)}),()=>{var i;if(!p.value)return null;const{prefixCls:d,isActive:l,role:u}=n;return f("div",{class:T(`${d}-content`,{[`${d}-content-active`]:l,[`${d}-content-inactive`]:!l}),role:u},[f("div",{class:`${d}-content-box`},[(i=o.default)===null||i===void 0?void 0:i.call(o)])])}}}),Pe=z({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:X(G(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(n,e){let{slots:o,emit:p,attrs:i}=e;be(n.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:d}=F("collapse",n),l=()=>{p("itemClick",n.panelKey)},u=b=>{(b.key==="Enter"||b.keyCode===13||b.which===13)&&l()};return()=>{var b,$;const{header:x=(b=o.header)===null||b===void 0?void 0:b.call(o),headerClass:h,isActive:g,showArrow:m,destroyInactivePanel:C,accordion:y,forceRender:A,openAnimation:a,expandIcon:t=o.expandIcon,extra:s=($=o.extra)===null||$===void 0?void 0:$.call(o),collapsible:r}=n,I=r==="disabled",c=d.value,P=T(`${c}-header`,{[h]:h,[`${c}-header-collapsible-only`]:r==="header",[`${c}-icon-collapsible-only`]:r==="icon"}),E=T({[`${c}-item`]:!0,[`${c}-item-active`]:g,[`${c}-item-disabled`]:I,[`${c}-no-arrow`]:!m,[`${i.class}`]:!!i.class});let K=f("i",{class:"arrow"},null);m&&typeof t=="function"&&(K=t(n));const _=ve(f(Ie,{prefixCls:c,isActive:g,forceRender:A,role:y?"tabpanel":null},{default:o.default}),[[$e,g]]),D=w({appear:!1,css:!1},a);return f("div",k(k({},i),{},{class:E}),[f("div",{class:P,onClick:()=>!["header","icon"].includes(r)&&l(),role:y?"tab":"button",tabindex:I?-1:0,"aria-expanded":g,onKeypress:u},[m&&K,f("span",{onClick:()=>r==="header"&&l(),class:`${c}-header-text`},[x]),s&&f("div",{class:`${c}-extra`},[s])]),f(ge,D,{default:()=>[!C||g?_:null]})])}}});export{Pe as A,Se as C}; -//# sourceMappingURL=CollapsePanel.14b56554.js.map +//# sourceMappingURL=CollapsePanel.40b6e69e.js.map diff --git a/abstra_statics/dist/assets/ConnectorsView.24978ec8.js b/abstra_statics/dist/assets/ConnectorsView.84eed061.js similarity index 91% rename from abstra_statics/dist/assets/ConnectorsView.24978ec8.js rename to abstra_statics/dist/assets/ConnectorsView.84eed061.js index ce059fdd9f..0fbdcb24b9 100644 --- a/abstra_statics/dist/assets/ConnectorsView.24978ec8.js +++ b/abstra_statics/dist/assets/ConnectorsView.84eed061.js @@ -1,2 +1,2 @@ -var M=Object.defineProperty;var z=(l,e,o)=>e in l?M(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o;var p=(l,e,o)=>(z(l,typeof e!="symbol"?e+"":e,o),o);import{_ as B}from"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import{_ as q}from"./AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js";import{e as O,f as x,cL as I,d as D,o as r,c as C,w as a,b as i,u as t,dh as d,d5 as P,aG as c,S as w,dc as m,e9 as b,ed as R,a0 as U,ea as G,Y as v,aS as _,dd as $,db as T,eb as j,bR as F,bz as Y,bx as N,a as V,bL as X,cX as H,eV as J,em as K,en as Q}from"./index.8c3f27aa.js";import{G as W}from"./PhDotsThreeVertical.vue.55fe4f43.js";import{C as y}from"./gateway.8032b20a.js";import{C as Z}from"./router.f4663fd5.js";import{A as L}from"./Avatar.8da44d42.js";import{C as E}from"./Card.c4293d90.js";import{A as ee}from"./index.37c7ea66.js";import"./BookOutlined.b4191bff.js";import"./popupNotifcation.40886a7f.js";import"./TabPane.2034bc94.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="fef0b155-5dad-425c-8e6c-58e48889fef6",l._sentryDebugIdIdentifier="sentry-dbid-fef0b155-5dad-425c-8e6c-58e48889fef6")}catch{}})();class te{async getLoginUrl(e,o,n,u){return y.get(`projects/${e}/connectors/${n}/connections/${o}/login-url`,{scopeIds:u.join(",")})}async listConnectors(e){return y.get(`projects/${e}/connectors`)}async listConnections(e){return y.get(`projects/${e}/connections`)}async deleteConnection(e){const{projectId:o,connectionName:n,connectorType:u}=e;return y.delete(`projects/${o}/connectors/${u}/connections/${n}`)}async renameConnection(e){const{projectId:o,connectionName:n,connectorType:u,newConnectionName:h}=e;return y.patch(`projects/${o}/connectors/${u}/connections/${n}`,{newConnectionName:h})}}class ne{constructor(e,o){p(this,"state");p(this,"hasChanges",x(()=>!!this.state.value.editingConnection&&this.state.value.editingConnection.name!==this.state.value.editingConnection.newName));p(this,"handleDeletionClick",async e=>{I.confirm({title:"Delete connection",content:"Are you sure you want to delete this connection?",onOk:()=>this.handleDeleteConnection(e)})});p(this,"handleDeleteConnection",async e=>{await this.api.deleteConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType}),this.state.value.editingConnection=null,await this.refetchConnections()});p(this,"handleAddConnectionSubmit",async()=>{var u,h;const e=(u=this.state.value.addingConnection)==null?void 0:u.connector.type,o=(h=this.state.value.addingConnection)==null?void 0:h.selectedScopeIds;if(!e||!o)throw new Error("No connector or scope selected");const{url:n}=await this.getLoginUrl(e,this.getUniqueName(e),o);window.location.href=n});p(this,"renameConnection",async()=>{const{editingConnection:e}=this.state.value;if(!e)throw new Error("No connection is being edited");const o=async()=>{await this.api.renameConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType,newConnectionName:e.newName}),await this.refetchConnections(),this.state.value.editingConnection=null};I.confirm({title:"Rename connection",content:"Are you sure you want to rename this connection? This will break any existing references to the old name.",onOk:o})});p(this,"showAddConfirmationModal",e=>{this.state.value.addingConnection={selectedScopeIds:e.scopes.map(o=>o.id),connector:e}});p(this,"handleScopeToggle",(e,o)=>{o?this.state.value.addingConnection.selectedScopeIds.push(e):this.state.value.addingConnection.selectedScopeIds=this.state.value.addingConnection.selectedScopeIds.filter(n=>n!==e)});this.projectId=e,this.api=o,this.state=O({connectors:[],connections:[],addingConnection:null,editingConnection:null})}async fetchConnectors(){this.state.value.connectors=await this.api.listConnectors(this.projectId)}async fetchInitialState(){await this.fetchConnectors(),await this.refetchConnections()}async refetchConnections(){this.state.value.connections=(await this.api.listConnections(this.projectId)).map(e=>{const o=this.state.value.connectors.find(n=>n.type===e.connectorType);if(!o)throw new Error(`Unknown connector type: ${e.connectorType}`);return{name:e.name,connectorTitle:o.title,connectorType:e.connectorType,icon:o.logoUrl}})}handleEditConnectionClick(e){this.state.value.editingConnection={...e,newName:e.name}}async getLoginUrl(e,o,n){return this.api.getLoginUrl(this.projectId,o,e,n)}slugify(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-")}getUniqueName(e){const o=this.state.value.connections.filter(n=>n.connectorType===e).length;return o===0?e:`${e}-${o}`}}const oe=D({__name:"ConnectorCard",props:{title:{},logoUrl:{},description:{},unavailable:{type:Boolean}},setup(l){return(e,o)=>(r(),C(t(E),{class:R({"connector-card":!0,unavailable:e.unavailable})},{default:a(()=>[i(t(d),{style:{width:"100%"},vertical:"",gap:12},{default:a(()=>[i(t(d),{justify:"space-between"},{default:a(()=>[i(t(L),{src:e.logoUrl,shape:"square",size:"large"},null,8,["src"]),e.unavailable?(r(),C(t(P),{key:0,style:{height:"fit-content"}},{default:a(()=>[c("Talk to us")]),_:1})):w("",!0)]),_:1}),i(t(d),{vertical:""},{default:a(()=>[i(t(m),{strong:""},{default:a(()=>[c(b(e.title),1)]),_:1}),i(t(m),{type:"secondary"},{default:a(()=>[c(b(e.description),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}});const ae=U(oe,[["__scopeId","data-v-e3719550"]]),ie=l=>(K("data-v-40b20da6"),l=l(),Q(),l),se=ie(()=>V("div",{style:{"flex-grow":"1"}},null,-1)),le={class:"connectors-grid"},ce=D({__name:"ConnectorsView",setup(l){const o=G().params.projectId,n=new ne(o,new te),u=x(()=>[...n.state.value.connectors.filter(f=>!f.unavailable),...n.state.value.connectors.filter(f=>f.unavailable)]);n.fetchInitialState();function h(f){f.unavailable?Z.showNewMessage(J.translate("i18n_connectors_ask_for_access",null,f.title)):n.showAddConfirmationModal(f)}return(f,g)=>{var A,S;return r(),v(_,null,[i(t(ee),{direction:"vertical",style:{width:"100%","margin-bottom":"30px"}},{default:a(()=>[i(t(d),{align:"center",justify:"space-between"},{default:a(()=>[i(t($),null,{default:a(()=>[c("Connectors")]),_:1})]),_:1}),i(t(T),null,{default:a(()=>[c(" Add and manage external integrations to your project. "),i(B)]),_:1}),t(n).state.value.connections.length?(r(),C(t(d),{key:0,vertical:""},{default:a(()=>[i(t($),{level:2},{default:a(()=>[c("Installed")]),_:1}),i(t(d),{vertical:"",gap:10},{default:a(()=>[(r(!0),v(_,null,j(t(n).state.value.connections,s=>(r(),C(t(E),{key:s.name},{default:a(()=>[i(t(d),{align:"center",gap:20},{default:a(()=>[i(t(L),{src:s.icon,height:"40px",shape:"square"},null,8,["src"]),i(t(m),{strong:""},{default:a(()=>[c(b(s.connectorTitle),1)]),_:2},1024),se,i(t(m),{content:s.name,copyable:"",code:""},null,8,["content"]),i(t(F),null,{overlay:a(()=>[i(t(Y),null,{default:a(()=>[i(t(N),{onClick:k=>t(n).handleEditConnectionClick(s)},{default:a(()=>[c(" Rename ")]),_:2},1032,["onClick"]),i(t(N),{danger:"",onClick:k=>t(n).handleDeletionClick(s)},{default:a(()=>[c(" Delete ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:a(()=>[i(t(W))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):w("",!0),i(t(d),{vertical:""},{default:a(()=>[t(n).state.value.connections.length?(r(),C(t($),{key:0,level:2},{default:a(()=>[c("Available")]),_:1})):w("",!0),V("div",le,[(r(!0),v(_,null,j(u.value,s=>(r(),C(ae,{key:s.type,title:s.title,"logo-url":s.logoUrl,description:s.description,unavailable:s.unavailable,onClick:k=>h(s)},null,8,["title","logo-url","description","unavailable","onClick"]))),128))])]),_:1})]),_:1}),i(t(I),{open:!!t(n).state.value.editingConnection,title:`${(A=t(n).state.value.editingConnection)==null?void 0:A.connectorTitle} Connection`,onCancel:g[2]||(g[2]=s=>t(n).state.value.editingConnection=null)},{footer:a(()=>[i(t(d),{justify:"end"},{default:a(()=>[i(q,{disabled:!t(n).hasChanges.value,onClick:g[1]||(g[1]=s=>t(n).renameConnection())},{default:a(()=>[c(" Save ")]),_:1},8,["disabled"])]),_:1})]),default:a(()=>[t(n).state.value.editingConnection?(r(),C(t(X),{key:0,value:t(n).state.value.editingConnection.newName,"onUpdate:value":g[0]||(g[0]=s=>t(n).state.value.editingConnection.newName=s)},null,8,["value"])):w("",!0)]),_:1},8,["open","title"]),i(t(I),{open:!!t(n).state.value.addingConnection,title:`Add ${(S=t(n).state.value.addingConnection)==null?void 0:S.connector.title} Connection`,"ok-text":"Authorize","wrap-class-name":"full-modal",onCancel:g[3]||(g[3]=s=>t(n).state.value.addingConnection=null),onOk:t(n).handleAddConnectionSubmit},{default:a(()=>[t(n).state.value.addingConnection?(r(),v(_,{key:0},[i(t(T),null,{default:a(()=>[c(" Please select the scopes you want to authorize for this connection. You can change these later by deleting and re-adding the connection. ")]),_:1}),i(t(d),{vertical:"",gap:"10",style:{margin:"30px 0px"}},{default:a(()=>[(r(!0),v(_,null,j(t(n).state.value.addingConnection.connector.scopes,s=>(r(),C(t(d),{key:s.id,justify:"space-between",align:"center"},{default:a(()=>[i(t(d),{vertical:""},{default:a(()=>[i(t(m),null,{default:a(()=>[c(b(s.description),1)]),_:2},1024),i(t(m),{type:"secondary"},{default:a(()=>[c(b(s.id),1)]),_:2},1024)]),_:2},1024),i(t(H),{checked:t(n).state.value.addingConnection.selectedScopeIds.includes(s.id),onChange:k=>t(n).handleScopeToggle(s.id,k)},null,8,["checked","onChange"])]),_:2},1024))),128))]),_:1})],64)):w("",!0)]),_:1},8,["open","title","onOk"])],64)}}});const be=U(ce,[["__scopeId","data-v-40b20da6"]]);export{be as default}; -//# sourceMappingURL=ConnectorsView.24978ec8.js.map +var M=Object.defineProperty;var z=(l,e,o)=>e in l?M(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o;var p=(l,e,o)=>(z(l,typeof e!="symbol"?e+"":e,o),o);import{_ as B}from"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import{_ as q}from"./AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js";import{e as O,f as x,cL as I,d as D,o as r,c as C,w as a,b as i,u as t,dh as d,d5 as P,aG as c,S as w,dc as m,e9 as b,ed as R,a0 as U,ea as G,Y as v,aS as _,dd as $,db as T,eb as j,bR as F,bz as Y,bx as N,a as V,bL as X,cX as H,eV as J,em as K,en as Q}from"./index.d0f12294.js";import{G as W}from"./PhDotsThreeVertical.vue.d0b16f96.js";import{C as y}from"./gateway.ae1d6857.js";import{C as Z}from"./router.375df57e.js";import{A as L}from"./Avatar.f6415f7c.js";import{C as E}from"./Card.2a8fe028.js";import{A as ee}from"./index.a82e0ed1.js";import"./BookOutlined.7c922f07.js";import"./popupNotifcation.a0a6244b.js";import"./TabPane.79f4882f.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="75889bdf-8ab1-4cc5-bb23-7ee3594b28bb",l._sentryDebugIdIdentifier="sentry-dbid-75889bdf-8ab1-4cc5-bb23-7ee3594b28bb")}catch{}})();class te{async getLoginUrl(e,o,n,u){return y.get(`projects/${e}/connectors/${n}/connections/${o}/login-url`,{scopeIds:u.join(",")})}async listConnectors(e){return y.get(`projects/${e}/connectors`)}async listConnections(e){return y.get(`projects/${e}/connections`)}async deleteConnection(e){const{projectId:o,connectionName:n,connectorType:u}=e;return y.delete(`projects/${o}/connectors/${u}/connections/${n}`)}async renameConnection(e){const{projectId:o,connectionName:n,connectorType:u,newConnectionName:h}=e;return y.patch(`projects/${o}/connectors/${u}/connections/${n}`,{newConnectionName:h})}}class ne{constructor(e,o){p(this,"state");p(this,"hasChanges",x(()=>!!this.state.value.editingConnection&&this.state.value.editingConnection.name!==this.state.value.editingConnection.newName));p(this,"handleDeletionClick",async e=>{I.confirm({title:"Delete connection",content:"Are you sure you want to delete this connection?",onOk:()=>this.handleDeleteConnection(e)})});p(this,"handleDeleteConnection",async e=>{await this.api.deleteConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType}),this.state.value.editingConnection=null,await this.refetchConnections()});p(this,"handleAddConnectionSubmit",async()=>{var u,h;const e=(u=this.state.value.addingConnection)==null?void 0:u.connector.type,o=(h=this.state.value.addingConnection)==null?void 0:h.selectedScopeIds;if(!e||!o)throw new Error("No connector or scope selected");const{url:n}=await this.getLoginUrl(e,this.getUniqueName(e),o);window.location.href=n});p(this,"renameConnection",async()=>{const{editingConnection:e}=this.state.value;if(!e)throw new Error("No connection is being edited");const o=async()=>{await this.api.renameConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType,newConnectionName:e.newName}),await this.refetchConnections(),this.state.value.editingConnection=null};I.confirm({title:"Rename connection",content:"Are you sure you want to rename this connection? This will break any existing references to the old name.",onOk:o})});p(this,"showAddConfirmationModal",e=>{this.state.value.addingConnection={selectedScopeIds:e.scopes.map(o=>o.id),connector:e}});p(this,"handleScopeToggle",(e,o)=>{o?this.state.value.addingConnection.selectedScopeIds.push(e):this.state.value.addingConnection.selectedScopeIds=this.state.value.addingConnection.selectedScopeIds.filter(n=>n!==e)});this.projectId=e,this.api=o,this.state=O({connectors:[],connections:[],addingConnection:null,editingConnection:null})}async fetchConnectors(){this.state.value.connectors=await this.api.listConnectors(this.projectId)}async fetchInitialState(){await this.fetchConnectors(),await this.refetchConnections()}async refetchConnections(){this.state.value.connections=(await this.api.listConnections(this.projectId)).map(e=>{const o=this.state.value.connectors.find(n=>n.type===e.connectorType);if(!o)throw new Error(`Unknown connector type: ${e.connectorType}`);return{name:e.name,connectorTitle:o.title,connectorType:e.connectorType,icon:o.logoUrl}})}handleEditConnectionClick(e){this.state.value.editingConnection={...e,newName:e.name}}async getLoginUrl(e,o,n){return this.api.getLoginUrl(this.projectId,o,e,n)}slugify(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-")}getUniqueName(e){const o=this.state.value.connections.filter(n=>n.connectorType===e).length;return o===0?e:`${e}-${o}`}}const oe=D({__name:"ConnectorCard",props:{title:{},logoUrl:{},description:{},unavailable:{type:Boolean}},setup(l){return(e,o)=>(r(),C(t(E),{class:R({"connector-card":!0,unavailable:e.unavailable})},{default:a(()=>[i(t(d),{style:{width:"100%"},vertical:"",gap:12},{default:a(()=>[i(t(d),{justify:"space-between"},{default:a(()=>[i(t(L),{src:e.logoUrl,shape:"square",size:"large"},null,8,["src"]),e.unavailable?(r(),C(t(P),{key:0,style:{height:"fit-content"}},{default:a(()=>[c("Talk to us")]),_:1})):w("",!0)]),_:1}),i(t(d),{vertical:""},{default:a(()=>[i(t(m),{strong:""},{default:a(()=>[c(b(e.title),1)]),_:1}),i(t(m),{type:"secondary"},{default:a(()=>[c(b(e.description),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}});const ae=U(oe,[["__scopeId","data-v-e3719550"]]),ie=l=>(K("data-v-40b20da6"),l=l(),Q(),l),se=ie(()=>V("div",{style:{"flex-grow":"1"}},null,-1)),le={class:"connectors-grid"},ce=D({__name:"ConnectorsView",setup(l){const o=G().params.projectId,n=new ne(o,new te),u=x(()=>[...n.state.value.connectors.filter(f=>!f.unavailable),...n.state.value.connectors.filter(f=>f.unavailable)]);n.fetchInitialState();function h(f){f.unavailable?Z.showNewMessage(J.translate("i18n_connectors_ask_for_access",null,f.title)):n.showAddConfirmationModal(f)}return(f,g)=>{var A,S;return r(),v(_,null,[i(t(ee),{direction:"vertical",style:{width:"100%","margin-bottom":"30px"}},{default:a(()=>[i(t(d),{align:"center",justify:"space-between"},{default:a(()=>[i(t($),null,{default:a(()=>[c("Connectors")]),_:1})]),_:1}),i(t(T),null,{default:a(()=>[c(" Add and manage external integrations to your project. "),i(B)]),_:1}),t(n).state.value.connections.length?(r(),C(t(d),{key:0,vertical:""},{default:a(()=>[i(t($),{level:2},{default:a(()=>[c("Installed")]),_:1}),i(t(d),{vertical:"",gap:10},{default:a(()=>[(r(!0),v(_,null,j(t(n).state.value.connections,s=>(r(),C(t(E),{key:s.name},{default:a(()=>[i(t(d),{align:"center",gap:20},{default:a(()=>[i(t(L),{src:s.icon,height:"40px",shape:"square"},null,8,["src"]),i(t(m),{strong:""},{default:a(()=>[c(b(s.connectorTitle),1)]),_:2},1024),se,i(t(m),{content:s.name,copyable:"",code:""},null,8,["content"]),i(t(F),null,{overlay:a(()=>[i(t(Y),null,{default:a(()=>[i(t(N),{onClick:k=>t(n).handleEditConnectionClick(s)},{default:a(()=>[c(" Rename ")]),_:2},1032,["onClick"]),i(t(N),{danger:"",onClick:k=>t(n).handleDeletionClick(s)},{default:a(()=>[c(" Delete ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:a(()=>[i(t(W))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):w("",!0),i(t(d),{vertical:""},{default:a(()=>[t(n).state.value.connections.length?(r(),C(t($),{key:0,level:2},{default:a(()=>[c("Available")]),_:1})):w("",!0),V("div",le,[(r(!0),v(_,null,j(u.value,s=>(r(),C(ae,{key:s.type,title:s.title,"logo-url":s.logoUrl,description:s.description,unavailable:s.unavailable,onClick:k=>h(s)},null,8,["title","logo-url","description","unavailable","onClick"]))),128))])]),_:1})]),_:1}),i(t(I),{open:!!t(n).state.value.editingConnection,title:`${(A=t(n).state.value.editingConnection)==null?void 0:A.connectorTitle} Connection`,onCancel:g[2]||(g[2]=s=>t(n).state.value.editingConnection=null)},{footer:a(()=>[i(t(d),{justify:"end"},{default:a(()=>[i(q,{disabled:!t(n).hasChanges.value,onClick:g[1]||(g[1]=s=>t(n).renameConnection())},{default:a(()=>[c(" Save ")]),_:1},8,["disabled"])]),_:1})]),default:a(()=>[t(n).state.value.editingConnection?(r(),C(t(X),{key:0,value:t(n).state.value.editingConnection.newName,"onUpdate:value":g[0]||(g[0]=s=>t(n).state.value.editingConnection.newName=s)},null,8,["value"])):w("",!0)]),_:1},8,["open","title"]),i(t(I),{open:!!t(n).state.value.addingConnection,title:`Add ${(S=t(n).state.value.addingConnection)==null?void 0:S.connector.title} Connection`,"ok-text":"Authorize","wrap-class-name":"full-modal",onCancel:g[3]||(g[3]=s=>t(n).state.value.addingConnection=null),onOk:t(n).handleAddConnectionSubmit},{default:a(()=>[t(n).state.value.addingConnection?(r(),v(_,{key:0},[i(t(T),null,{default:a(()=>[c(" Please select the scopes you want to authorize for this connection. You can change these later by deleting and re-adding the connection. ")]),_:1}),i(t(d),{vertical:"",gap:"10",style:{margin:"30px 0px"}},{default:a(()=>[(r(!0),v(_,null,j(t(n).state.value.addingConnection.connector.scopes,s=>(r(),C(t(d),{key:s.id,justify:"space-between",align:"center"},{default:a(()=>[i(t(d),{vertical:""},{default:a(()=>[i(t(m),null,{default:a(()=>[c(b(s.description),1)]),_:2},1024),i(t(m),{type:"secondary"},{default:a(()=>[c(b(s.id),1)]),_:2},1024)]),_:2},1024),i(t(H),{checked:t(n).state.value.addingConnection.selectedScopeIds.includes(s.id),onChange:k=>t(n).handleScopeToggle(s.id,k)},null,8,["checked","onChange"])]),_:2},1024))),128))]),_:1})],64)):w("",!0)]),_:1},8,["open","title","onOk"])],64)}}});const be=U(ce,[["__scopeId","data-v-40b20da6"]]);export{be as default}; +//# sourceMappingURL=ConnectorsView.84eed061.js.map diff --git a/abstra_statics/dist/assets/ContentLayout.60e2d770.js b/abstra_statics/dist/assets/ContentLayout.60e2d770.js deleted file mode 100644 index ed2444e324..0000000000 --- a/abstra_statics/dist/assets/ContentLayout.60e2d770.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as n,o as d,Y as s,a,$ as c,ed as r,a0 as l}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9a08cecd-cd31-4fb1-815f-dea3f3fc9b4c",e._sentryDebugIdIdentifier="sentry-dbid-9a08cecd-cd31-4fb1-815f-dea3f3fc9b4c")}catch{}})();const f={class:"content-layout"},_=n({__name:"ContentLayout",props:{fullWidth:{type:Boolean}},setup(e){return(t,o)=>(d(),s("div",f,[a("div",{class:r(["centered-layout",{"full-width":t.fullWidth}])},[c(t.$slots,"default",{},void 0,!0)],2)]))}});const i=l(_,[["__scopeId","data-v-6397d501"]]);export{i as C}; -//# sourceMappingURL=ContentLayout.60e2d770.js.map diff --git a/abstra_statics/dist/assets/ContentLayout.f92ff80c.js b/abstra_statics/dist/assets/ContentLayout.f92ff80c.js new file mode 100644 index 0000000000..886a51b165 --- /dev/null +++ b/abstra_statics/dist/assets/ContentLayout.f92ff80c.js @@ -0,0 +1,2 @@ +import{d as n,o as s,Y as d,a,$ as r,ed as l,a0 as c}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="16cdc133-3daf-4001-8390-e241f26f5482",e._sentryDebugIdIdentifier="sentry-dbid-16cdc133-3daf-4001-8390-e241f26f5482")}catch{}})();const _={class:"content-layout"},f=n({__name:"ContentLayout",props:{fullWidth:{type:Boolean}},setup(e){return(t,o)=>(s(),d("div",_,[a("div",{class:l(["centered-layout",{"full-width":t.fullWidth}])},[r(t.$slots,"default",{},void 0,!0)],2)]))}});const i=c(f,[["__scopeId","data-v-6397d501"]]);export{i as C}; +//# sourceMappingURL=ContentLayout.f92ff80c.js.map diff --git a/abstra_statics/dist/assets/CrudView.ac8aad2f.js b/abstra_statics/dist/assets/CrudView.423d8744.js similarity index 69% rename from abstra_statics/dist/assets/CrudView.ac8aad2f.js rename to abstra_statics/dist/assets/CrudView.423d8744.js index d2e0823533..02cb99eed8 100644 --- a/abstra_statics/dist/assets/CrudView.ac8aad2f.js +++ b/abstra_statics/dist/assets/CrudView.423d8744.js @@ -1,2 +1,2 @@ -import{A as U,a as E,r as L}from"./router.f4663fd5.js";import{_ as O}from"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import{i as P}from"./url.e93ecf3f.js";import{G as j}from"./PhDotsThreeVertical.vue.55fe4f43.js";import{d as R,E as G,e as N,o as s,c as r,w as l,u as n,cM as Y,b as y,Y as A,eb as T,cz as Z,bL as q,cE as H,aB as J,aS as B,cU as Q,aG as d,e9 as f,S as g,cy as W,cL as X,f as K,r as ee,dh as D,dd as te,$ as V,db as F,bT as ae,cY as le,Z as ne,dc as x,d5 as z,bR as se,bz as oe,bx as ue,a as re,ec as ce,cO as ie,by as pe,a0 as ye}from"./index.8c3f27aa.js";import{B as de}from"./Badge.7a29ebdb.js";import{A as M}from"./index.37c7ea66.js";(function(){try{var b=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(b._sentryDebugIds=b._sentryDebugIds||{},b._sentryDebugIds[m]="5f3daf8e-6f36-4e71-86f1-52c04afa5611",b._sentryDebugIdIdentifier="sentry-dbid-5f3daf8e-6f36-4e71-86f1-52c04afa5611")}catch{}})();const fe=R({__name:"CreationModal",props:{entityName:{},fields:{},create:{type:Function}},setup(b,{expose:m}){const _=b,I=`Create ${_.entityName}`,p=G({inputValue:{}}),C=N(!1),k=()=>C.value=!0,w=()=>{C.value=!1,p.inputValue={}},S=async()=>{try{await _.create(p.inputValue),w()}catch(i){i instanceof Error&&Y.error({message:"Failed to create",description:i.message})}},t=(i,o)=>{const e=i.target.value,a=_.fields.find(c=>c.key===o);a!=null&&a.format?p.inputValue[o]=a.format(e):p.inputValue[o]=e},v=(i,o)=>{const e=i.target.value,a=_.fields.find(c=>c.key===o);a!=null&&a.blur?p.inputValue[o]=a.blur(e):p.inputValue[o]=e};return m({open:k,close:w}),(i,o)=>(s(),r(n(X),{open:C.value,title:I,onCancel:w,onOk:S},{default:l(()=>[y(n(W),{layout:"vertical"},{default:l(()=>[(s(!0),A(B,null,T(i.fields,e=>{var a;return s(),r(n(Z),{key:e.key,label:e.label,help:(a=e.hint)==null?void 0:a.call(e,p.inputValue[e.key])},{default:l(()=>{var c,h,$;return[!e.type||e.type==="text"||e.type==="password"?(s(),r(n(q),{key:0,value:p.inputValue[e.key],"onUpdate:value":u=>p.inputValue[e.key]=u,placeholder:(c=e.placeholder)!=null?c:"",type:(h=e.type)!=null?h:"text",onInput:u=>t(u,e.key),onBlur:u=>v(u,e.key)},null,8,["value","onUpdate:value","placeholder","type","onInput","onBlur"])):e.type==="multiline-text"?(s(),r(n(H),{key:1,value:p.inputValue[e.key],"onUpdate:value":u=>p.inputValue[e.key]=u,placeholder:($=e.placeholder)!=null?$:"",onInput:u=>t(u,e.key),onBlur:u=>v(u,e.key)},null,8,["value","onUpdate:value","placeholder","onInput","onBlur"])):e.type==="select"?(s(),r(n(J),{key:2,value:p.inputValue[e.key],"onUpdate:value":u=>p.inputValue[e.key]=u,mode:e.mode},{default:l(()=>[(s(!0),A(B,null,T(e.options,u=>(s(),r(n(Q),{key:typeof u=="string"?u:u.value,value:typeof u=="string"?u:u.value},{default:l(()=>[d(f(typeof u=="string"?u:u.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","mode"])):g("",!0)]}),_:2},1032,["label","help"])}),128))]),_:1})]),_:1},8,["open"]))}}),me={class:"action-item"},ve=R({__name:"CrudView",props:{table:{},loading:{type:Boolean},title:{},emptyTitle:{},entityName:{},description:{},create:{type:Function},createButtonText:{},docsPath:{},live:{type:Boolean},fields:{}},setup(b){const m=b,_=N(null),I=(t,v)=>{var o;const i=(o=m.table.rows[0])==null?void 0:o.cells[v].type;if(!(i==="actions"||i==="slot"))return(e,a)=>p(e,a,v)},p=(t,v,i)=>{const o=t.cells[i],e=v.cells[i];return o.type==="text"&&e.type==="text"||o.type==="tag"&&e.type==="tag"?o.text.localeCompare(e.text):o.type==="tags"&&e.type==="tags"?o.tags[0].text.localeCompare(e.tags[0].text):o.type==="secret"&&e.type==="secret"||o.type==="link"&&e.type==="link"?o.text.localeCompare(e.text):(o.type==="actions"&&e.type==="actions",0)},C=async()=>{var t;m.fields?(t=_.value)==null||t.open():m.create&&await m.create({})},k=N(!1);async function w(t,v){if(!k.value){k.value=!0;try{"onClick"in t?await t.onClick({key:v.key}):"link"in t&&(typeof t.link=="string"&&P(t.link)?open(t.link,"_blank"):L.push(t.link))}finally{k.value=!1}}}const S=K(()=>({"--columnCount":`${m.table.columns.length}`}));return(t,v)=>{const i=ee("RouterLink");return s(),A(B,null,[y(n(M),{direction:"vertical",class:"crud-view"},{default:l(()=>{var o;return[y(n(D),{align:"center",justify:"space-between"},{default:l(()=>[t.title?(s(),r(n(te),{key:0},{default:l(()=>[d(f(t.title),1)]),_:1})):g("",!0),V(t.$slots,"more",{},void 0,!0)]),_:3}),t.description?(s(),r(n(F),{key:0},{default:l(()=>[d(f(t.description)+" ",1),V(t.$slots,"description",{},void 0,!0),t.docsPath?(s(),r(O,{key:0,path:t.docsPath},null,8,["path"])):g("",!0)]),_:3})):g("",!0),y(n(D),{gap:"middle"},{default:l(()=>[t.createButtonText?(s(),r(n(ae),{key:0,type:"primary",onClick:C},{default:l(()=>[d(f(t.createButtonText),1)]),_:1})):g("",!0),V(t.$slots,"secondary",{},void 0,!0)]),_:3}),V(t.$slots,"extra",{},void 0,!0),y(n(le),{"filter-dropdown":!0,size:"small",style:ne(S.value),"data-source":t.table.rows,loading:k.value||t.loading&&!t.live,height:400,columns:(o=t.table.columns)==null?void 0:o.map((e,a)=>{var c;return{...e,key:a,filtered:!0,align:(c=e.align)!=null?c:"center",sorter:I(e,a)}})},{emptyText:l(()=>[d(f(t.emptyTitle),1)]),headerCell:l(e=>[d(f(e.title),1)]),bodyCell:l(({column:{key:e},record:a})=>[a.cells[e].type==="slot"?V(t.$slots,a.cells[e].key,{key:0,payload:a.cells[e].payload},void 0,!0):(s(),r(n(ie),{key:1,open:a.cells[e].hover?void 0:!1},{content:l(()=>[y(n(F),{style:{width:"300px",overflow:"auto","font-family":"monospace"},copyable:"",content:a.cells[e].hover},null,8,["content"])]),default:l(()=>[a.cells[e].type==="text"?(s(),r(n(x),{key:0,secondary:a.cells[e].secondary,code:a.cells[e].code},{default:l(()=>[y(n(de),{dot:a.cells[e].contentType==="warning",color:"#faad14"},{default:l(()=>[d(f(a.cells[e].text),1)]),_:2},1032,["dot"])]),_:2},1032,["secondary","code"])):a.cells[e].type==="secret"?(s(),r(n(x),{key:1,copyable:{text:a.cells[e].text}},{default:l(()=>[d(" ******** ")]),_:2},1032,["copyable"])):a.cells[e].type==="tag"?(s(),r(n(z),{key:2,color:a.cells[e].tagColor},{default:l(()=>[d(f(a.cells[e].text),1)]),_:2},1032,["color"])):a.cells[e].type==="tags"?(s(),r(n(M),{key:3},{default:l(()=>[(s(!0),A(B,null,T(a.cells[e].tags,(c,h)=>(s(),r(n(z),{key:h,color:c.color},{default:l(()=>[d(f(c.text),1)]),_:2},1032,["color"]))),128))]),_:2},1024)):a.cells[e].type==="link"?(s(),r(i,{key:4,to:a.cells[e].to},{default:l(()=>[d(f(a.cells[e].text),1)]),_:2},1032,["to"])):a.cells[e].type==="actions"?(s(),r(n(se),{key:5},{overlay:l(()=>[y(n(oe),{disabled:k.value},{default:l(()=>[(s(!0),A(B,null,T(a.cells[e].actions.filter(c=>!c.hide),(c,h)=>(s(),r(n(ue),{key:h,danger:c.dangerous,onClick:$=>w(c,a)},{default:l(()=>[re("div",me,[c.icon?(s(),r(ce(c.icon),{key:0})):g("",!0),y(n(x),null,{default:l(()=>[d(f(c.label),1)]),_:2},1024)])]),_:2},1032,["danger","onClick"]))),128))]),_:2},1032,["disabled"])]),default:l(()=>[y(n(j),{style:{cursor:"pointer"},size:"25px"})]),_:2},1024)):g("",!0)]),_:2},1032,["open"]))]),footer:l(()=>[t.live?(s(),r(n(E),{key:0,justify:"end",gutter:10},{default:l(()=>[y(n(U),null,{default:l(()=>[y(n(pe),{size:"small"})]),_:1}),y(n(U),null,{default:l(()=>[y(n(x),null,{default:l(()=>[d(" auto updating ")]),_:1})]),_:1})]),_:1})):g("",!0)]),_:3},8,["style","data-source","loading","columns"])]}),_:3}),t.fields&&t.create?(s(),r(fe,{key:0,ref_key:"modalRef",ref:_,fields:t.fields,"entity-name":t.entityName,create:t.create},null,8,["fields","entity-name","create"])):g("",!0)],64)}}});const Ve=ye(ve,[["__scopeId","data-v-e8e1b31a"]]);export{Ve as C}; -//# sourceMappingURL=CrudView.ac8aad2f.js.map +import{A as U,a as E,r as L}from"./router.375df57e.js";import{_ as O}from"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import{i as P}from"./url.121c9984.js";import{G as j}from"./PhDotsThreeVertical.vue.d0b16f96.js";import{d as R,E as G,e as N,o as s,c as r,w as l,u as n,cM as Y,b as d,Y as A,eb as T,cz as Z,bL as q,cE as H,aB as J,aS as B,cU as Q,aG as y,e9 as f,S as g,cy as W,cL as X,f as K,r as ee,dh as D,dd as te,$ as V,db as F,bT as ae,cY as le,Z as ne,dc as x,d5 as z,bR as se,bz as oe,bx as ue,a as re,ec as ce,cO as ie,by as pe,a0 as de}from"./index.d0f12294.js";import{B as ye}from"./Badge.f6241be2.js";import{A as M}from"./index.a82e0ed1.js";(function(){try{var b=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(b._sentryDebugIds=b._sentryDebugIds||{},b._sentryDebugIds[m]="24cdb921-1af0-45c2-ad4a-22cde9f25c30",b._sentryDebugIdIdentifier="sentry-dbid-24cdb921-1af0-45c2-ad4a-22cde9f25c30")}catch{}})();const fe=R({__name:"CreationModal",props:{entityName:{},fields:{},create:{type:Function}},setup(b,{expose:m}){const _=b,I=`Create ${_.entityName}`,p=G({inputValue:{}}),C=N(!1),k=()=>C.value=!0,w=()=>{C.value=!1,p.inputValue={}},S=async()=>{try{await _.create(p.inputValue),w()}catch(i){i instanceof Error&&Y.error({message:"Failed to create",description:i.message})}},t=(i,o)=>{const e=i.target.value,a=_.fields.find(c=>c.key===o);a!=null&&a.format?p.inputValue[o]=a.format(e):p.inputValue[o]=e},v=(i,o)=>{const e=i.target.value,a=_.fields.find(c=>c.key===o);a!=null&&a.blur?p.inputValue[o]=a.blur(e):p.inputValue[o]=e};return m({open:k,close:w}),(i,o)=>(s(),r(n(X),{open:C.value,title:I,onCancel:w,onOk:S},{default:l(()=>[d(n(W),{layout:"vertical"},{default:l(()=>[(s(!0),A(B,null,T(i.fields,e=>{var a;return s(),r(n(Z),{key:e.key,label:e.label,help:(a=e.hint)==null?void 0:a.call(e,p.inputValue[e.key])},{default:l(()=>{var c,h,$;return[!e.type||e.type==="text"||e.type==="password"?(s(),r(n(q),{key:0,value:p.inputValue[e.key],"onUpdate:value":u=>p.inputValue[e.key]=u,placeholder:(c=e.placeholder)!=null?c:"",type:(h=e.type)!=null?h:"text",onInput:u=>t(u,e.key),onBlur:u=>v(u,e.key)},null,8,["value","onUpdate:value","placeholder","type","onInput","onBlur"])):e.type==="multiline-text"?(s(),r(n(H),{key:1,value:p.inputValue[e.key],"onUpdate:value":u=>p.inputValue[e.key]=u,placeholder:($=e.placeholder)!=null?$:"",onInput:u=>t(u,e.key),onBlur:u=>v(u,e.key)},null,8,["value","onUpdate:value","placeholder","onInput","onBlur"])):e.type==="select"?(s(),r(n(J),{key:2,value:p.inputValue[e.key],"onUpdate:value":u=>p.inputValue[e.key]=u,mode:e.mode},{default:l(()=>[(s(!0),A(B,null,T(e.options,u=>(s(),r(n(Q),{key:typeof u=="string"?u:u.value,value:typeof u=="string"?u:u.value},{default:l(()=>[y(f(typeof u=="string"?u:u.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","mode"])):g("",!0)]}),_:2},1032,["label","help"])}),128))]),_:1})]),_:1},8,["open"]))}}),me={class:"action-item"},ve=R({__name:"CrudView",props:{table:{},loading:{type:Boolean},title:{},emptyTitle:{},entityName:{},description:{},create:{type:Function},createButtonText:{},docsPath:{},live:{type:Boolean},fields:{}},setup(b){const m=b,_=N(null),I=(t,v)=>{var o;const i=(o=m.table.rows[0])==null?void 0:o.cells[v].type;if(!(i==="actions"||i==="slot"))return(e,a)=>p(e,a,v)},p=(t,v,i)=>{const o=t.cells[i],e=v.cells[i];return o.type==="text"&&e.type==="text"||o.type==="tag"&&e.type==="tag"?o.text.localeCompare(e.text):o.type==="tags"&&e.type==="tags"?o.tags[0].text.localeCompare(e.tags[0].text):o.type==="secret"&&e.type==="secret"||o.type==="link"&&e.type==="link"?o.text.localeCompare(e.text):(o.type==="actions"&&e.type==="actions",0)},C=async()=>{var t;m.fields?(t=_.value)==null||t.open():m.create&&await m.create({})},k=N(!1);async function w(t,v){if(!k.value){k.value=!0;try{"onClick"in t?await t.onClick({key:v.key}):"link"in t&&(typeof t.link=="string"&&P(t.link)?open(t.link,"_blank"):L.push(t.link))}finally{k.value=!1}}}const S=K(()=>({"--columnCount":`${m.table.columns.length}`}));return(t,v)=>{const i=ee("RouterLink");return s(),A(B,null,[d(n(M),{direction:"vertical",class:"crud-view"},{default:l(()=>{var o;return[d(n(D),{align:"center",justify:"space-between"},{default:l(()=>[t.title?(s(),r(n(te),{key:0},{default:l(()=>[y(f(t.title),1)]),_:1})):g("",!0),V(t.$slots,"more",{},void 0,!0)]),_:3}),t.description?(s(),r(n(F),{key:0},{default:l(()=>[y(f(t.description)+" ",1),V(t.$slots,"description",{},void 0,!0),t.docsPath?(s(),r(O,{key:0,path:t.docsPath},null,8,["path"])):g("",!0)]),_:3})):g("",!0),d(n(D),{gap:"middle"},{default:l(()=>[t.createButtonText?(s(),r(n(ae),{key:0,type:"primary",onClick:C},{default:l(()=>[y(f(t.createButtonText),1)]),_:1})):g("",!0),V(t.$slots,"secondary",{},void 0,!0)]),_:3}),V(t.$slots,"extra",{},void 0,!0),d(n(le),{"filter-dropdown":!0,size:"small",style:ne(S.value),"data-source":t.table.rows,loading:k.value||t.loading&&!t.live,height:400,columns:(o=t.table.columns)==null?void 0:o.map((e,a)=>{var c;return{...e,key:a,filtered:!0,align:(c=e.align)!=null?c:"center",sorter:I(e,a)}})},{emptyText:l(()=>[y(f(t.emptyTitle),1)]),headerCell:l(e=>[y(f(e.title),1)]),bodyCell:l(({column:{key:e},record:a})=>[a.cells[e].type==="slot"?V(t.$slots,a.cells[e].key,{key:0,payload:a.cells[e].payload},void 0,!0):(s(),r(n(ie),{key:1,open:a.cells[e].hover?void 0:!1},{content:l(()=>[d(n(F),{style:{width:"300px",overflow:"auto","font-family":"monospace"},copyable:"",content:a.cells[e].hover},null,8,["content"])]),default:l(()=>[a.cells[e].type==="text"?(s(),r(n(x),{key:0,secondary:a.cells[e].secondary,code:a.cells[e].code},{default:l(()=>[d(n(ye),{dot:a.cells[e].contentType==="warning",color:"#faad14"},{default:l(()=>[y(f(a.cells[e].text),1)]),_:2},1032,["dot"])]),_:2},1032,["secondary","code"])):a.cells[e].type==="secret"?(s(),r(n(x),{key:1,copyable:{text:a.cells[e].text}},{default:l(()=>[y(" ******** ")]),_:2},1032,["copyable"])):a.cells[e].type==="tag"?(s(),r(n(z),{key:2,color:a.cells[e].tagColor},{default:l(()=>[y(f(a.cells[e].text),1)]),_:2},1032,["color"])):a.cells[e].type==="tags"?(s(),r(n(M),{key:3},{default:l(()=>[(s(!0),A(B,null,T(a.cells[e].tags,(c,h)=>(s(),r(n(z),{key:h,color:c.color},{default:l(()=>[y(f(c.text),1)]),_:2},1032,["color"]))),128))]),_:2},1024)):a.cells[e].type==="link"?(s(),r(i,{key:4,to:a.cells[e].to},{default:l(()=>[y(f(a.cells[e].text),1)]),_:2},1032,["to"])):a.cells[e].type==="actions"?(s(),r(n(se),{key:5},{overlay:l(()=>[d(n(oe),{disabled:k.value},{default:l(()=>[(s(!0),A(B,null,T(a.cells[e].actions.filter(c=>!c.hide),(c,h)=>(s(),r(n(ue),{key:h,danger:c.dangerous,onClick:$=>w(c,a)},{default:l(()=>[re("div",me,[c.icon?(s(),r(ce(c.icon),{key:0})):g("",!0),d(n(x),null,{default:l(()=>[y(f(c.label),1)]),_:2},1024)])]),_:2},1032,["danger","onClick"]))),128))]),_:2},1032,["disabled"])]),default:l(()=>[d(n(j),{style:{cursor:"pointer"},size:"25px"})]),_:2},1024)):g("",!0)]),_:2},1032,["open"]))]),footer:l(()=>[t.live?(s(),r(n(E),{key:0,justify:"end",gutter:10},{default:l(()=>[d(n(U),null,{default:l(()=>[d(n(pe),{size:"small"})]),_:1}),d(n(U),null,{default:l(()=>[d(n(x),null,{default:l(()=>[y(" auto updating ")]),_:1})]),_:1})]),_:1})):g("",!0)]),_:3},8,["style","data-source","loading","columns"])]}),_:3}),t.fields&&t.create?(s(),r(fe,{key:0,ref_key:"modalRef",ref:_,fields:t.fields,"entity-name":t.entityName,create:t.create},null,8,["fields","entity-name","create"])):g("",!0)],64)}}});const Ve=de(ve,[["__scopeId","data-v-e8e1b31a"]]);export{Ve as C}; +//# sourceMappingURL=CrudView.423d8744.js.map diff --git a/abstra_statics/dist/assets/DeleteOutlined.0e27ef4f.js b/abstra_statics/dist/assets/DeleteOutlined.5a680b6a.js similarity index 56% rename from abstra_statics/dist/assets/DeleteOutlined.0e27ef4f.js rename to abstra_statics/dist/assets/DeleteOutlined.5a680b6a.js index 108edb49b7..15f3115dc2 100644 --- a/abstra_statics/dist/assets/DeleteOutlined.0e27ef4f.js +++ b/abstra_statics/dist/assets/DeleteOutlined.5a680b6a.js @@ -1,2 +1,2 @@ -import{b as l,ee as u,eO as c}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b9694083-09ec-40c8-9be7-c0baf743a57f",e._sentryDebugIdIdentifier="sentry-dbid-b9694083-09ec-40c8-9be7-c0baf743a57f")}catch{}})();function i(e){for(var t=1;t{var a;return s(),l(n(y),{class:"docs-button",href:`https://docs.abstra.io/${(a=e.path)!=null?a:""}`,target:"_blank",type:"text",size:"small"},{icon:o(()=>[f(n(c))]),default:o(()=>[e.$slots.default?u(e.$slots,"default",{key:0}):(s(),i(b,{key:1},[p("Docs")],64))]),_:3},8,["href"])}}});export{g as _}; -//# sourceMappingURL=DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js.map diff --git a/abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js b/abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js new file mode 100644 index 0000000000..3a51fdb05f --- /dev/null +++ b/abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js @@ -0,0 +1,2 @@ +import{B as r}from"./BookOutlined.7c922f07.js";import{d as c,o as s,c as l,w as o,b as f,u as d,$ as u,Y as i,aG as p,aS as b,bT as y}from"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="80d8e7c9-d784-4dd0-97e1-d59a240e31ea",t._sentryDebugIdIdentifier="sentry-dbid-80d8e7c9-d784-4dd0-97e1-d59a240e31ea")}catch{}})();const g=c({__name:"DocsButton",props:{path:{}},setup(t){return(e,n)=>{var a;return s(),l(d(y),{class:"docs-button",href:`https://docs.abstra.io/${(a=e.path)!=null?a:""}`,target:"_blank",type:"text",size:"small"},{icon:o(()=>[f(d(r))]),default:o(()=>[e.$slots.default?u(e.$slots,"default",{key:0}):(s(),i(b,{key:1},[p("Docs")],64))]),_:3},8,["href"])}}});export{g as _}; +//# sourceMappingURL=DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js.map diff --git a/abstra_statics/dist/assets/EditorLogin.90e551ed.js b/abstra_statics/dist/assets/EditorLogin.7c1613dd.js similarity index 86% rename from abstra_statics/dist/assets/EditorLogin.90e551ed.js rename to abstra_statics/dist/assets/EditorLogin.7c1613dd.js index 1deed64db2..10ac12819e 100644 --- a/abstra_statics/dist/assets/EditorLogin.90e551ed.js +++ b/abstra_statics/dist/assets/EditorLogin.7c1613dd.js @@ -1,2 +1,2 @@ -import{N as Q}from"./Navbar.059184c9.js";import{a as A}from"./asyncComputed.cfc0cdaf.js";import{m as H}from"./url.e93ecf3f.js";import{d as X,f as y,e as k,ea as $,o as r,Y as h,b as u,a as ee,u as a,c as s,w as i,by as C,aG as c,e9 as p,eV as l,dd as ae,aB as K,cT as f,cU as m,aS as T,eb as V,S as z,cz as g,bL as B,eg as te,bT as ne,cy as oe,a0 as ie}from"./index.8c3f27aa.js";import{A as re}from"./apiKey.e2e0503b.js";import"./gateway.8032b20a.js";import{O as D}from"./organization.2853982f.js";import{P as L}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import"./PhChats.vue.296ae643.js";import"./PhSignOut.vue.266bb925.js";import"./router.f4663fd5.js";import"./index.37c7ea66.js";import"./Avatar.8da44d42.js";import"./index.d667cd0d.js";import"./index.d33f3e49.js";import"./BookOutlined.b4191bff.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[_]="8ad3827b-dfdb-4ba1-bf9b-bb2e7660f78d",d._sentryDebugIdIdentifier="sentry-dbid-8ad3827b-dfdb-4ba1-bf9b-bb2e7660f78d")}catch{}})();const le={class:"container"},se={class:"content"},N="NEW_ORGANIZATION_KEY",I="NEW_PROJECT_KEY",ue=X({__name:"EditorLogin",setup(d){const{result:_,loading:E}=A(()=>D.list()),{result:R,loading:b,refetch:U}=A(async()=>{const t=e.value;return t.type!=="selected-organization"?[]:L.list(t.organizationId)}),O=y(()=>{var t,n;return(n=(t=_.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),x=y(()=>{var t,n;return(n=(t=R.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),Y=y(()=>e.value.type==="initial"?!0:e.value.type==="new-organization"?!e.value.organizationName||!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="new"?!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="initial"),F=async t=>await D.create(t.name),S=async(t,n)=>await L.create({organizationId:n,name:t.name}),j=async t=>await re.create({projectId:t,name:"default"}),e=k({type:"initial"}),G=y(()=>{if(e.value.type!=="initial")return e.value.type==="new-organization"?N:e.value.organizationId}),W=y(()=>e.value.type==="selected-organization"&&e.value.project.type==="new"?I:e.value.type==="selected-organization"&&e.value.project.type==="selected"?e.value.project.projectId:void 0);function M(t){t||(e.value={type:"initial"}),t===N?e.value={type:"new-organization",organizationName:"",project:{type:"new",projectName:""}}:(e.value={type:"selected-organization",organizationId:String(t),project:{type:"initial"}},U())}function q(t){e.value.type==="selected-organization"&&(t||(e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"initial"}}),t===I?e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"new",projectName:""}}:e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"selected",projectId:String(t)}})}const v=k(!1);async function J(){if(!v.value){v.value=!0;try{if(e.value.type==="initial")return;if(e.value.type==="new-organization"){const t=await F({name:e.value.organizationName}),n=await S({name:e.value.project.projectName},t.id),o=await j(n.id);o.value&&w(o.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="new"){const t=await S({name:e.value.project.projectName},e.value.organizationId),n=await j(t.id);n.value&&w(n.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="selected"){const t=await j(e.value.project.projectId);t.value&&w(t.value)}}finally{v.value=!1}}}const P=$(),Z=k(null);async function w(t){if(P.query.redirect){const n=P.query.redirect;if(!n.match(/http:\/\/localhost:\d+/))throw new Error("Invalid redirect");const o=decodeURIComponent(n);location.href=H(o,{"api-key":t})}else Z.value=t}return(t,n)=>(r(),h("div",le,[u(Q),ee("div",se,[a(E)||!a(_)?(r(),s(a(C),{key:0})):(r(),s(a(oe),{key:1,layout:"vertical",class:"card"},{default:i(()=>[u(a(ae),{level:3,style:{padding:"0px",margin:"0px","margin-bottom":"30px"}},{default:i(()=>[c(p(a(l).translate("i18n_create_or_choose_project")),1)]),_:1}),u(a(g),{label:a(l).translate("i18n_get_api_key_organization")},{default:i(()=>[u(a(K),{style:{width:"100%"},placeholder:a(l).translate("i18n_get_api_key_choose_organization"),size:"large",value:G.value,"onUpdate:value":M},{default:i(()=>[u(a(f),{label:a(l).translate("i18n_get_api_key_new_organization")},{default:i(()=>[(r(),s(a(m),{key:N},{default:i(()=>[c(p(a(l).translate("i18n_get_api_key_create_new_organization")),1)]),_:1}))]),_:1},8,["label"]),O.value.length>0?(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_existing_organizations")},{default:i(()=>[(r(!0),h(T,null,V(O.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[c(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:1},8,["placeholder","value"])]),_:1},8,["label"]),e.value.type=="new-organization"?(r(),s(a(g),{key:0,label:a(l).translate("i18n_get_api_key_organization_name")},{default:i(()=>[u(a(B),{value:e.value.organizationName,"onUpdate:value":n[0]||(n[0]=o=>e.value.organizationName=o),placeholder:a(l).translate("i18n_get_api_key_choose_organization_name"),size:"large"},null,8,["value","placeholder"])]),_:1},8,["label"])):(r(),s(a(g),{key:1,label:a(l).translate("i18n_get_api_key_project")},{default:i(()=>[u(a(K),{style:{width:"100%"},disabled:e.value.type!="selected-organization",placeholder:a(l).translate("i18n_get_api_key_choose_project"),size:"large",value:W.value,"onUpdate:value":q},te({default:i(()=>[a(b)?z("",!0):(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_new_project")},{default:i(()=>[(r(),s(a(m),{key:I},{default:i(()=>[c(p(a(l).translate("i18n_get_api_key_create_new_project")),1)]),_:1}))]),_:1},8,["label"])),x.value.length>0&&!a(b)?(r(),s(a(f),{key:1,label:a(l).translate("i18n_get_api_key_existing_projects")},{default:i(()=>[(r(!0),h(T,null,V(x.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[c(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:2},[a(b)?{name:"notFoundContent",fn:i(()=>[u(a(C),{size:"small"})]),key:"0"}:void 0]),1032,["disabled","placeholder","value"])]),_:1},8,["label"])),(e.value.type=="new-organization"||e.value.type=="selected-organization")&&e.value.project.type=="new"?(r(),s(a(g),{key:2,label:"Project name"},{default:i(()=>[u(a(B),{value:e.value.project.projectName,"onUpdate:value":n[1]||(n[1]=o=>e.value.project.projectName=o),placeholder:a(l).translate("i18n_get_api_key_choose_project_name"),size:"large"},null,8,["value","placeholder"])]),_:1})):z("",!0),u(a(g),{style:{"margin-top":"40px"}},{default:i(()=>[u(a(ne),{type:"primary",disabled:Y.value,loading:v.value,style:{width:"100%"},onClick:J},{default:i(()=>[c(p(a(l).translate("i18n_login_with_this_project")),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}))])]))}});const Se=ie(ue,[["__scopeId","data-v-11f078da"]]);export{Se as default}; -//# sourceMappingURL=EditorLogin.90e551ed.js.map +import{N as Q}from"./Navbar.8a0a89b3.js";import{a as A}from"./asyncComputed.703c33fd.js";import{m as H}from"./url.121c9984.js";import{d as X,f as y,e as k,ea as $,o as r,Y as h,b as u,a as ee,u as a,c as s,w as i,by as C,aG as c,e9 as p,eV as l,dd as ae,aB as K,cT as f,cU as m,aS as T,eb as V,S as z,cz as g,bL as B,eg as te,bT as ne,cy as oe,a0 as ie}from"./index.d0f12294.js";import{A as re}from"./apiKey.12cb6e13.js";import"./gateway.ae1d6857.js";import{O as D}from"./organization.03372a7f.js";import{P as L}from"./project.fad91605.js";import"./tables.318f703e.js";import"./PhChats.vue.1b5982bf.js";import"./PhSignOut.vue.6dacf893.js";import"./router.375df57e.js";import"./index.a82e0ed1.js";import"./Avatar.f6415f7c.js";import"./index.3b2f4dca.js";import"./index.3e715bc1.js";import"./BookOutlined.7c922f07.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_=new Error().stack;_&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[_]="b51b28e6-bbfe-45e3-9d4b-817d507a316b",d._sentryDebugIdIdentifier="sentry-dbid-b51b28e6-bbfe-45e3-9d4b-817d507a316b")}catch{}})();const le={class:"container"},se={class:"content"},N="NEW_ORGANIZATION_KEY",I="NEW_PROJECT_KEY",ue=X({__name:"EditorLogin",setup(d){const{result:_,loading:E}=A(()=>D.list()),{result:R,loading:b,refetch:U}=A(async()=>{const t=e.value;return t.type!=="selected-organization"?[]:L.list(t.organizationId)}),O=y(()=>{var t,n;return(n=(t=_.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),x=y(()=>{var t,n;return(n=(t=R.value)==null?void 0:t.map(o=>({key:o.id,label:o.name})))!=null?n:[]}),Y=y(()=>e.value.type==="initial"?!0:e.value.type==="new-organization"?!e.value.organizationName||!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="new"?!e.value.project.projectName:e.value.type==="selected-organization"&&e.value.project.type==="initial"),F=async t=>await D.create(t.name),S=async(t,n)=>await L.create({organizationId:n,name:t.name}),j=async t=>await re.create({projectId:t,name:"default"}),e=k({type:"initial"}),G=y(()=>{if(e.value.type!=="initial")return e.value.type==="new-organization"?N:e.value.organizationId}),W=y(()=>e.value.type==="selected-organization"&&e.value.project.type==="new"?I:e.value.type==="selected-organization"&&e.value.project.type==="selected"?e.value.project.projectId:void 0);function M(t){t||(e.value={type:"initial"}),t===N?e.value={type:"new-organization",organizationName:"",project:{type:"new",projectName:""}}:(e.value={type:"selected-organization",organizationId:String(t),project:{type:"initial"}},U())}function q(t){e.value.type==="selected-organization"&&(t||(e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"initial"}}),t===I?e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"new",projectName:""}}:e.value={type:"selected-organization",organizationId:e.value.organizationId,project:{type:"selected",projectId:String(t)}})}const v=k(!1);async function J(){if(!v.value){v.value=!0;try{if(e.value.type==="initial")return;if(e.value.type==="new-organization"){const t=await F({name:e.value.organizationName}),n=await S({name:e.value.project.projectName},t.id),o=await j(n.id);o.value&&w(o.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="new"){const t=await S({name:e.value.project.projectName},e.value.organizationId),n=await j(t.id);n.value&&w(n.value)}if(e.value.type==="selected-organization"&&e.value.project.type==="selected"){const t=await j(e.value.project.projectId);t.value&&w(t.value)}}finally{v.value=!1}}}const P=$(),Z=k(null);async function w(t){if(P.query.redirect){const n=P.query.redirect;if(!n.match(/http:\/\/localhost:\d+/))throw new Error("Invalid redirect");const o=decodeURIComponent(n);location.href=H(o,{"api-key":t})}else Z.value=t}return(t,n)=>(r(),h("div",le,[u(Q),ee("div",se,[a(E)||!a(_)?(r(),s(a(C),{key:0})):(r(),s(a(oe),{key:1,layout:"vertical",class:"card"},{default:i(()=>[u(a(ae),{level:3,style:{padding:"0px",margin:"0px","margin-bottom":"30px"}},{default:i(()=>[c(p(a(l).translate("i18n_create_or_choose_project")),1)]),_:1}),u(a(g),{label:a(l).translate("i18n_get_api_key_organization")},{default:i(()=>[u(a(K),{style:{width:"100%"},placeholder:a(l).translate("i18n_get_api_key_choose_organization"),size:"large",value:G.value,"onUpdate:value":M},{default:i(()=>[u(a(f),{label:a(l).translate("i18n_get_api_key_new_organization")},{default:i(()=>[(r(),s(a(m),{key:N},{default:i(()=>[c(p(a(l).translate("i18n_get_api_key_create_new_organization")),1)]),_:1}))]),_:1},8,["label"]),O.value.length>0?(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_existing_organizations")},{default:i(()=>[(r(!0),h(T,null,V(O.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[c(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:1},8,["placeholder","value"])]),_:1},8,["label"]),e.value.type=="new-organization"?(r(),s(a(g),{key:0,label:a(l).translate("i18n_get_api_key_organization_name")},{default:i(()=>[u(a(B),{value:e.value.organizationName,"onUpdate:value":n[0]||(n[0]=o=>e.value.organizationName=o),placeholder:a(l).translate("i18n_get_api_key_choose_organization_name"),size:"large"},null,8,["value","placeholder"])]),_:1},8,["label"])):(r(),s(a(g),{key:1,label:a(l).translate("i18n_get_api_key_project")},{default:i(()=>[u(a(K),{style:{width:"100%"},disabled:e.value.type!="selected-organization",placeholder:a(l).translate("i18n_get_api_key_choose_project"),size:"large",value:W.value,"onUpdate:value":q},te({default:i(()=>[a(b)?z("",!0):(r(),s(a(f),{key:0,label:a(l).translate("i18n_get_api_key_new_project")},{default:i(()=>[(r(),s(a(m),{key:I},{default:i(()=>[c(p(a(l).translate("i18n_get_api_key_create_new_project")),1)]),_:1}))]),_:1},8,["label"])),x.value.length>0&&!a(b)?(r(),s(a(f),{key:1,label:a(l).translate("i18n_get_api_key_existing_projects")},{default:i(()=>[(r(!0),h(T,null,V(x.value,o=>(r(),s(a(m),{key:o.key},{default:i(()=>[c(p(o.label),1)]),_:2},1024))),128))]),_:1},8,["label"])):z("",!0)]),_:2},[a(b)?{name:"notFoundContent",fn:i(()=>[u(a(C),{size:"small"})]),key:"0"}:void 0]),1032,["disabled","placeholder","value"])]),_:1},8,["label"])),(e.value.type=="new-organization"||e.value.type=="selected-organization")&&e.value.project.type=="new"?(r(),s(a(g),{key:2,label:"Project name"},{default:i(()=>[u(a(B),{value:e.value.project.projectName,"onUpdate:value":n[1]||(n[1]=o=>e.value.project.projectName=o),placeholder:a(l).translate("i18n_get_api_key_choose_project_name"),size:"large"},null,8,["value","placeholder"])]),_:1})):z("",!0),u(a(g),{style:{"margin-top":"40px"}},{default:i(()=>[u(a(ne),{type:"primary",disabled:Y.value,loading:v.value,style:{width:"100%"},onClick:J},{default:i(()=>[c(p(a(l).translate("i18n_login_with_this_project")),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}))])]))}});const Se=ie(ue,[["__scopeId","data-v-11f078da"]]);export{Se as default}; +//# sourceMappingURL=EditorLogin.7c1613dd.js.map diff --git a/abstra_statics/dist/assets/EditorsView.294706bd.js b/abstra_statics/dist/assets/EditorsView.19e3ced6.js similarity index 80% rename from abstra_statics/dist/assets/EditorsView.294706bd.js rename to abstra_statics/dist/assets/EditorsView.19e3ced6.js index 2406bb11ac..1d5c0695fc 100644 --- a/abstra_statics/dist/assets/EditorsView.294706bd.js +++ b/abstra_statics/dist/assets/EditorsView.19e3ced6.js @@ -1,2 +1,2 @@ -var y=Object.defineProperty;var C=(r,e,t)=>e in r?y(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var i=(r,e,t)=>(C(r,typeof e!="symbol"?e+"":e,t),t);import{C as I}from"./CrudView.ac8aad2f.js";import{e as n,f as b,ej as E,ep as T,d as k,ea as x,eo as z,o as g,Y as A,b as s,u as a,w as u,aS as _,c as O,cz as v,cS as R,aB as S,dh as V,S as F,cL as P}from"./index.8c3f27aa.js";import{a as w}from"./gateway.8032b20a.js";import{M as j}from"./member.ce73ad98.js";import"./tables.2ec18755.js";import{a as M}from"./ant-design.ae7d2f9f.js";import{T as D,G as B}from"./tagColorProvider.09f476d6.js";import"./router.f4663fd5.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="2c9394fb-ecd4-47c8-9d90-0c3ee2bef6ea",r._sentryDebugIdIdentifier="sentry-dbid-2c9394fb-ecd4-47c8-9d90-0c3ee2bef6ea")}catch{}})();const L=[{label:"Admin",value:"admin"},{label:"Editor",value:"editor"}],N={admin:"Has full access to the organization, projects and editors",editor:"Can only manage projects within their teams"};class U{constructor({authorEmail:e,organizationId:t,api:l,handlers:m}){i(this,"members",n([]));i(this,"teamOptions",n([]));i(this,"selectedMember",n(null));i(this,"draftMember",n(null));i(this,"creationFields",b(()=>this.getCreationFields()));i(this,"table",b(()=>this.makeCrudViewTable()));i(this,"loading",n(!1));i(this,"authorEmail");i(this,"organizationId");i(this,"api");i(this,"handlers");i(this,"currentMember",n(null));i(this,"teamColorProvider",new D);i(this,"confirmAddMember",async e=>{await this.api.create({organizationId:this.organizationId,email:e.email,teams:e.teams}),await this.fetchState()});i(this,"openEditMemberModal",e=>{this.draftMember.value=E.exports.cloneDeep(e),this.selectedMember.value=e,this.fetchTeamOptions()});i(this,"confirmUpdateMember",async()=>{var e,t;this.loading.value=!0,this.draftMember.value&&(await this.api.update(this.organizationId,this.draftMember.value.authorId,{role:(e=this.draftMember.value)==null?void 0:e.role,teams:(t=this.draftMember.value)==null?void 0:t.teams}),await this.fetchState(),this.draftMember.value=null,this.selectedMember.value=null,this.loading.value=!1)});i(this,"cancelEditMember",()=>{this.draftMember.value=null,this.selectedMember.value=null});this.authorEmail=e,this.organizationId=t,this.api=l,this.handlers=m}async fetchState(){this.loading.value=!0,await this.fetchMembers(),await this.fetchTeamOptions(),this.setCurrentMember(),this.loading.value=!1}setCurrentMember(){var e;this.currentMember.value=(e=this.members.value.find(t=>t.email===this.authorEmail))!=null?e:null}async fetchMembers(){this.members.value=await this.api.list(this.organizationId)}async fetchTeamOptions(){const e=await this.api.fetchTeamOptions(this.organizationId);this.teamOptions.value=e.map(t=>({label:t,value:t}))}async removeMember(e){var l;if(((l=w.getAuthor())==null?void 0:l.claims.email)===e.email){await M("Removing your own access will block you from this organization. Are you sure?",{okText:"Remove",cancelText:"Cancel"})&&(await this.api.delete({organizationId:this.organizationId,authorId:e.authorId}),this.handlers.onSelfRemove());return}await M(`Are you sure you want to remove ${e.email} access?`,{okText:"Remove",cancelText:"Cancel"})&&(await this.api.delete({organizationId:this.organizationId,authorId:e.authorId}),await this.fetchMembers())}getCreationFields(){var t;const e=[{key:"email",label:"Email",type:"text"}];return((t=this.currentMember.value)==null?void 0:t.role)==="admin"&&e.push({key:"teams",type:"select",mode:"tags",options:this.teamOptions.value,label:"Teams"}),e}makeCrudViewActions(e){var t;return((t=this.currentMember.value)==null?void 0:t.role)==="editor"?[]:[{icon:B,label:"Edit Permissions",onClick:()=>this.openEditMemberModal(e)},{icon:T,label:"Remove access",onClick:()=>this.removeMember(e),dangerous:!0}]}getTeamTags(e){const t=e.teams.map(l=>({text:l,color:this.teamColorProvider.getColor(l)}));return e.role==="admin"&&t.unshift({text:"Admin",color:"red"}),t}makeColumns(){var e;return((e=this.currentMember.value)==null?void 0:e.role)==="editor"?[{title:"Email",align:"center"},{title:"Teams",align:"center"}]:[{title:"Email",align:"center"},{title:"Teams",align:"center"},{title:"",align:"right"}]}makeCrudViewTable(){return{columns:this.makeColumns(),rows:this.members.value.map(e=>({key:e.email,cells:[{type:"text",text:e.email},{type:"tags",tags:this.getTeamTags(e)},{type:"actions",actions:this.makeCrudViewActions(e)}]}))}}}const se=k({__name:"EditorsView",setup(r){var f;const e=x(),t=z(),l=e.params.organizationId,m=new j,h=(f=w.getAuthor())==null?void 0:f.claims.email;if(!h)throw new Error("Author email is not available");const o=new U({organizationId:l,api:m,authorEmail:h,handlers:{onSelfRemove:()=>{t.push("organizations")}}});return o.fetchState(),(G,d)=>{var p;return g(),A(_,null,[s(I,{"entity-name":"editor",loading:a(o).loading.value,title:"Editors",description:"Manage the editors and their permissions for this organization.","empty-title":"No editors yet",table:a(o).table.value,"create-button-text":"Invite Editor",fields:a(o).creationFields.value,create:a(o).confirmAddMember},null,8,["loading","table","fields","create"]),s(a(P),{open:!!a(o).draftMember.value,title:`Editing ${(p=a(o).draftMember.value)==null?void 0:p.email}`,"ok-text":"Apply","cancel-text":"Cancel","confirm-loading":a(o).loading.value,onOk:a(o).confirmUpdateMember,onCancel:a(o).cancelEditMember},{default:u(()=>[a(o).draftMember.value?(g(),O(a(V),{key:0,vertical:"",justify:"center",gap:"0",style:{padding:"15px 0px 0px 0px"}},{default:u(()=>[s(a(v),{colon:!1,label:"Role",help:a(N)[a(o).draftMember.value.role]},{default:u(()=>[s(a(R),{value:a(o).draftMember.value.role,"onUpdate:value":d[0]||(d[0]=c=>a(o).draftMember.value.role=c),options:a(L)},null,8,["value","options"])]),_:1},8,["help"]),s(a(v),{colon:!1,label:"Teams",tooltip:"Editor will have access to projects within these teams"},{default:u(()=>[s(a(S),{value:a(o).draftMember.value.teams,"onUpdate:value":d[1]||(d[1]=c=>a(o).draftMember.value.teams=c),options:a(o).teamOptions.value,mode:"tags",placeholder:"Select or type new team name"},null,8,["value","options"])]),_:1})]),_:1})):F("",!0)]),_:1},8,["open","title","confirm-loading","onOk","onCancel"])],64)}}});export{se as default}; -//# sourceMappingURL=EditorsView.294706bd.js.map +var y=Object.defineProperty;var C=(r,e,t)=>e in r?y(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var i=(r,e,t)=>(C(r,typeof e!="symbol"?e+"":e,t),t);import{C as I}from"./CrudView.423d8744.js";import{e as n,f as b,ej as E,ep as T,d as k,ea as x,eo as z,o as g,Y as A,b as s,u as a,w as u,aS as _,c as O,cz as v,cS as R,aB as S,dh as V,S as F,cL as P}from"./index.d0f12294.js";import{a as w}from"./gateway.ae1d6857.js";import{M as j}from"./member.8ffb8c1d.js";import"./tables.318f703e.js";import{a as M}from"./ant-design.d89b18ab.js";import{T as D,G as B}from"./tagColorProvider.36a797cb.js";import"./router.375df57e.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="bde6d750-6390-48c1-b1a4-6de53b5561d6",r._sentryDebugIdIdentifier="sentry-dbid-bde6d750-6390-48c1-b1a4-6de53b5561d6")}catch{}})();const L=[{label:"Admin",value:"admin"},{label:"Editor",value:"editor"}],N={admin:"Has full access to the organization, projects and editors",editor:"Can only manage projects within their teams"};class U{constructor({authorEmail:e,organizationId:t,api:l,handlers:m}){i(this,"members",n([]));i(this,"teamOptions",n([]));i(this,"selectedMember",n(null));i(this,"draftMember",n(null));i(this,"creationFields",b(()=>this.getCreationFields()));i(this,"table",b(()=>this.makeCrudViewTable()));i(this,"loading",n(!1));i(this,"authorEmail");i(this,"organizationId");i(this,"api");i(this,"handlers");i(this,"currentMember",n(null));i(this,"teamColorProvider",new D);i(this,"confirmAddMember",async e=>{await this.api.create({organizationId:this.organizationId,email:e.email,teams:e.teams}),await this.fetchState()});i(this,"openEditMemberModal",e=>{this.draftMember.value=E.exports.cloneDeep(e),this.selectedMember.value=e,this.fetchTeamOptions()});i(this,"confirmUpdateMember",async()=>{var e,t;this.loading.value=!0,this.draftMember.value&&(await this.api.update(this.organizationId,this.draftMember.value.authorId,{role:(e=this.draftMember.value)==null?void 0:e.role,teams:(t=this.draftMember.value)==null?void 0:t.teams}),await this.fetchState(),this.draftMember.value=null,this.selectedMember.value=null,this.loading.value=!1)});i(this,"cancelEditMember",()=>{this.draftMember.value=null,this.selectedMember.value=null});this.authorEmail=e,this.organizationId=t,this.api=l,this.handlers=m}async fetchState(){this.loading.value=!0,await this.fetchMembers(),await this.fetchTeamOptions(),this.setCurrentMember(),this.loading.value=!1}setCurrentMember(){var e;this.currentMember.value=(e=this.members.value.find(t=>t.email===this.authorEmail))!=null?e:null}async fetchMembers(){this.members.value=await this.api.list(this.organizationId)}async fetchTeamOptions(){const e=await this.api.fetchTeamOptions(this.organizationId);this.teamOptions.value=e.map(t=>({label:t,value:t}))}async removeMember(e){var l;if(((l=w.getAuthor())==null?void 0:l.claims.email)===e.email){await M("Removing your own access will block you from this organization. Are you sure?",{okText:"Remove",cancelText:"Cancel"})&&(await this.api.delete({organizationId:this.organizationId,authorId:e.authorId}),this.handlers.onSelfRemove());return}await M(`Are you sure you want to remove ${e.email} access?`,{okText:"Remove",cancelText:"Cancel"})&&(await this.api.delete({organizationId:this.organizationId,authorId:e.authorId}),await this.fetchMembers())}getCreationFields(){var t;const e=[{key:"email",label:"Email",type:"text"}];return((t=this.currentMember.value)==null?void 0:t.role)==="admin"&&e.push({key:"teams",type:"select",mode:"tags",options:this.teamOptions.value,label:"Teams"}),e}makeCrudViewActions(e){var t;return((t=this.currentMember.value)==null?void 0:t.role)==="editor"?[]:[{icon:B,label:"Edit Permissions",onClick:()=>this.openEditMemberModal(e)},{icon:T,label:"Remove access",onClick:()=>this.removeMember(e),dangerous:!0}]}getTeamTags(e){const t=e.teams.map(l=>({text:l,color:this.teamColorProvider.getColor(l)}));return e.role==="admin"&&t.unshift({text:"Admin",color:"red"}),t}makeColumns(){var e;return((e=this.currentMember.value)==null?void 0:e.role)==="editor"?[{title:"Email",align:"center"},{title:"Teams",align:"center"}]:[{title:"Email",align:"center"},{title:"Teams",align:"center"},{title:"",align:"right"}]}makeCrudViewTable(){return{columns:this.makeColumns(),rows:this.members.value.map(e=>({key:e.email,cells:[{type:"text",text:e.email},{type:"tags",tags:this.getTeamTags(e)},{type:"actions",actions:this.makeCrudViewActions(e)}]}))}}}const se=k({__name:"EditorsView",setup(r){var p;const e=x(),t=z(),l=e.params.organizationId,m=new j,h=(p=w.getAuthor())==null?void 0:p.claims.email;if(!h)throw new Error("Author email is not available");const o=new U({organizationId:l,api:m,authorEmail:h,handlers:{onSelfRemove:()=>{t.push("organizations")}}});return o.fetchState(),(G,d)=>{var f;return g(),A(_,null,[s(I,{"entity-name":"editor",loading:a(o).loading.value,title:"Editors",description:"Manage the editors and their permissions for this organization.","empty-title":"No editors yet",table:a(o).table.value,"create-button-text":"Invite Editor",fields:a(o).creationFields.value,create:a(o).confirmAddMember},null,8,["loading","table","fields","create"]),s(a(P),{open:!!a(o).draftMember.value,title:`Editing ${(f=a(o).draftMember.value)==null?void 0:f.email}`,"ok-text":"Apply","cancel-text":"Cancel","confirm-loading":a(o).loading.value,onOk:a(o).confirmUpdateMember,onCancel:a(o).cancelEditMember},{default:u(()=>[a(o).draftMember.value?(g(),O(a(V),{key:0,vertical:"",justify:"center",gap:"0",style:{padding:"15px 0px 0px 0px"}},{default:u(()=>[s(a(v),{colon:!1,label:"Role",help:a(N)[a(o).draftMember.value.role]},{default:u(()=>[s(a(R),{value:a(o).draftMember.value.role,"onUpdate:value":d[0]||(d[0]=c=>a(o).draftMember.value.role=c),options:a(L)},null,8,["value","options"])]),_:1},8,["help"]),s(a(v),{colon:!1,label:"Teams",tooltip:"Editor will have access to projects within these teams"},{default:u(()=>[s(a(S),{value:a(o).draftMember.value.teams,"onUpdate:value":d[1]||(d[1]=c=>a(o).draftMember.value.teams=c),options:a(o).teamOptions.value,mode:"tags",placeholder:"Select or type new team name"},null,8,["value","options"])]),_:1})]),_:1})):F("",!0)]),_:1},8,["open","title","confirm-loading","onOk","onCancel"])],64)}}});export{se as default}; +//# sourceMappingURL=EditorsView.19e3ced6.js.map diff --git a/abstra_statics/dist/assets/EnvVars.173c13f5.js b/abstra_statics/dist/assets/EnvVars.173c13f5.js deleted file mode 100644 index f1f1a72fd5..0000000000 --- a/abstra_statics/dist/assets/EnvVars.173c13f5.js +++ /dev/null @@ -1,2 +0,0 @@ -import{_ as n,C as p}from"./View.vue_vue_type_script_setup_true_lang.dc951c99.js";import{d as i,ea as s,o as a,c as m,u as d}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import"./popupNotifcation.40886a7f.js";import"./fetch.fd4370bb.js";import"./record.a6861841.js";import"./SaveButton.f2d9e5cc.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";import"./CrudView.ac8aad2f.js";import"./router.f4663fd5.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./asyncComputed.cfc0cdaf.js";import"./polling.98a0bd01.js";import"./PhPencil.vue.47d672ed.js";import"./index.126762e2.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="a704622d-cffd-4ea4-bd9e-2e70481baaeb",o._sentryDebugIdIdentifier="sentry-dbid-a704622d-cffd-4ea4-bd9e-2e70481baaeb")}catch{}})();const z=i({__name:"EnvVars",setup(o){const r=s().params.projectId,t=new p(r);return(c,f)=>(a(),m(n,{"env-var-repository":d(t),mode:"console"},null,8,["env-var-repository"]))}});export{z as default}; -//# sourceMappingURL=EnvVars.173c13f5.js.map diff --git a/abstra_statics/dist/assets/EnvVars.53c4f0a6.js b/abstra_statics/dist/assets/EnvVars.53c4f0a6.js new file mode 100644 index 0000000000..1a63a5afa3 --- /dev/null +++ b/abstra_statics/dist/assets/EnvVars.53c4f0a6.js @@ -0,0 +1,2 @@ +import{_ as n,C as p}from"./View.vue_vue_type_script_setup_true_lang.1a7d99da.js";import{d as a,ea as i,o as s,c as m,u as d}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import"./popupNotifcation.a0a6244b.js";import"./fetch.e5ebd511.js";import"./record.8c284c67.js";import"./SaveButton.a02cacb0.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./CrudView.423d8744.js";import"./router.375df57e.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./asyncComputed.703c33fd.js";import"./polling.c979afd7.js";import"./PhPencil.vue.7418c4e5.js";import"./index.289665f1.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="aed3443d-8a53-4446-91aa-61860edfab82",o._sentryDebugIdIdentifier="sentry-dbid-aed3443d-8a53-4446-91aa-61860edfab82")}catch{}})();const z=a({__name:"EnvVars",setup(o){const e=i().params.projectId,t=new p(e);return(c,f)=>(s(),m(n,{"env-var-repository":d(t),mode:"console"},null,8,["env-var-repository"]))}});export{z as default}; +//# sourceMappingURL=EnvVars.53c4f0a6.js.map diff --git a/abstra_statics/dist/assets/EnvVarsEditor.1c2c38a0.js b/abstra_statics/dist/assets/EnvVarsEditor.1c2c38a0.js new file mode 100644 index 0000000000..bae2c72dda --- /dev/null +++ b/abstra_statics/dist/assets/EnvVarsEditor.1c2c38a0.js @@ -0,0 +1,2 @@ +import{d as i,o as p,c as a,w as n,b as m,u as t}from"./index.d0f12294.js";import"./editor.95f16260.js";import{W as s}from"./workspaces.e43325e2.js";import{C as d}from"./ContentLayout.f92ff80c.js";import{_ as c,E as f}from"./View.vue_vue_type_script_setup_true_lang.1a7d99da.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./asyncComputed.703c33fd.js";import"./record.8c284c67.js";import"./gateway.ae1d6857.js";import"./popupNotifcation.a0a6244b.js";import"./fetch.e5ebd511.js";import"./SaveButton.a02cacb0.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./CrudView.423d8744.js";import"./router.375df57e.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./polling.c979afd7.js";import"./PhPencil.vue.7418c4e5.js";import"./index.289665f1.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="7a7584c4-a0ea-4983-9e38-c2054ba11ac8",o._sentryDebugIdIdentifier="sentry-dbid-7a7584c4-a0ea-4983-9e38-c2054ba11ac8")}catch{}})();const F=i({__name:"EnvVarsEditor",setup(o){const r=new f;return(e,u)=>(p(),a(d,null,{default:n(()=>[m(c,{"env-var-repository":t(r),mode:"editor","file-opener":t(s)},null,8,["env-var-repository","file-opener"])]),_:1}))}});export{F as default}; +//# sourceMappingURL=EnvVarsEditor.1c2c38a0.js.map diff --git a/abstra_statics/dist/assets/EnvVarsEditor.b5d90e39.js b/abstra_statics/dist/assets/EnvVarsEditor.b5d90e39.js deleted file mode 100644 index 52855a6a14..0000000000 --- a/abstra_statics/dist/assets/EnvVarsEditor.b5d90e39.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as i,o as p,c as n,w as m,b as s,u as t}from"./index.8c3f27aa.js";import"./editor.e7656461.js";import{W as a}from"./workspaces.7bc437a6.js";import{C as f}from"./ContentLayout.60e2d770.js";import{_ as d,E as c}from"./View.vue_vue_type_script_setup_true_lang.dc951c99.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./asyncComputed.cfc0cdaf.js";import"./record.a6861841.js";import"./gateway.8032b20a.js";import"./popupNotifcation.40886a7f.js";import"./fetch.fd4370bb.js";import"./SaveButton.f2d9e5cc.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";import"./CrudView.ac8aad2f.js";import"./router.f4663fd5.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./polling.98a0bd01.js";import"./PhPencil.vue.47d672ed.js";import"./index.126762e2.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="237c1cd4-f6d9-4f23-a4bc-43fb5874b1f0",o._sentryDebugIdIdentifier="sentry-dbid-237c1cd4-f6d9-4f23-a4bc-43fb5874b1f0")}catch{}})();const F=i({__name:"EnvVarsEditor",setup(o){const r=new c;return(e,u)=>(p(),n(f,null,{default:m(()=>[s(d,{"env-var-repository":t(r),mode:"editor","file-opener":t(a)},null,8,["env-var-repository","file-opener"])]),_:1}))}});export{F as default}; -//# sourceMappingURL=EnvVarsEditor.b5d90e39.js.map diff --git a/abstra_statics/dist/assets/Error.092cf89d.js b/abstra_statics/dist/assets/Error.afd3d51a.js similarity index 68% rename from abstra_statics/dist/assets/Error.092cf89d.js rename to abstra_statics/dist/assets/Error.afd3d51a.js index abb7fea9a8..1dac27a005 100644 --- a/abstra_statics/dist/assets/Error.092cf89d.js +++ b/abstra_statics/dist/assets/Error.afd3d51a.js @@ -1,2 +1,2 @@ -import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import{d as v,ea as A,eo as x,f as w,o as i,Y as I,b as c,w as a,u as e,c as f,S as p,aG as s,e9 as l,dd as C,d9 as m,bT as N,a as T,da as B,eV as o,a0 as D}from"./index.8c3f27aa.js";import{u as V}from"./workspaceStore.a6063d10.js";import{C as E}from"./Card.c4293d90.js";import"./Logo.cf3e0e74.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./TabPane.2034bc94.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new R().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="f0b0f0f0-64b6-4f50-a2e2-cbaa039fd8b3",r._sentryDebugIdIdentifier="sentry-dbid-f0b0f0f0-64b6-4f50-a2e2-cbaa039fd8b3")}catch{}})();const S={class:"inner-content"},G={class:"card-content"},H=v({__name:"Error",setup(r){const d=A(),b=x(),u=V(),g=w(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=w(()=>{const{status:t}=d.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,title:o.translate("i18n_access_denied"),message:o.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:o.translate("i18n_internal_error"),message:o.translate("i18n_internal_error_message"),showAd:!1}}}),h=()=>{b.push({name:"playerHome"})};return(t,_)=>(i(),I("div",S,[c(e(C),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),c(e(m),{class:"message"},{default:a(()=>[s(l(n.value.message),1)]),_:1}),n.value.action?(i(),f(e(N),{key:0,type:"link",onClick:h},{default:a(()=>[s(l(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(i(),f(e(E),{key:1,bordered:!1,class:"card"},{default:a(()=>[T("div",G,[c(k,{style:{"margin-bottom":"10px"}}),c(e(m),null,{default:a(()=>[s("This page is part of "+l(g.value?`the ${g.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(i(),f(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),c(e(B),{href:"https://abstra.io"},{default:a(()=>[s("here")]),_:1}),s(".")]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}});const R=D(H,[["__scopeId","data-v-f16a0b67"]]);export{R as default}; -//# sourceMappingURL=Error.092cf89d.js.map +import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import{d as v,ea as A,eo as x,f as w,o as i,Y as I,b as c,w as a,u as e,c as f,S as p,aG as s,e9 as l,dd as C,d9 as m,bT as N,a as T,da as B,eV as o,a0 as D}from"./index.d0f12294.js";import{u as V}from"./workspaceStore.e47060bf.js";import{C as E}from"./Card.2a8fe028.js";import"./Logo.8f27935a.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./TabPane.79f4882f.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new R().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="f5286b47-e9e9-4f98-9e8f-9fa996f215bc",r._sentryDebugIdIdentifier="sentry-dbid-f5286b47-e9e9-4f98-9e8f-9fa996f215bc")}catch{}})();const S={class:"inner-content"},G={class:"card-content"},H=v({__name:"Error",setup(r){const d=A(),g=x(),u=V(),b=w(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=w(()=>{const{status:t}=d.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,title:o.translate("i18n_access_denied"),message:o.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:o.translate("i18n_internal_error"),message:o.translate("i18n_internal_error_message"),showAd:!1}}}),h=()=>{g.push({name:"playerHome"})};return(t,_)=>(i(),I("div",S,[c(e(C),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),c(e(m),{class:"message"},{default:a(()=>[s(l(n.value.message),1)]),_:1}),n.value.action?(i(),f(e(N),{key:0,type:"link",onClick:h},{default:a(()=>[s(l(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(i(),f(e(E),{key:1,bordered:!1,class:"card"},{default:a(()=>[T("div",G,[c(k,{style:{"margin-bottom":"10px"}}),c(e(m),null,{default:a(()=>[s("This page is part of "+l(b.value?`the ${b.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(i(),f(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),c(e(B),{href:"https://abstra.io"},{default:a(()=>[s("here")]),_:1}),s(".")]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}});const R=D(H,[["__scopeId","data-v-f16a0b67"]]);export{R as default}; +//# sourceMappingURL=Error.afd3d51a.js.map diff --git a/abstra_statics/dist/assets/ExclamationCircleOutlined.433881ab.js b/abstra_statics/dist/assets/ExclamationCircleOutlined.433881ab.js deleted file mode 100644 index 4f84f0a59f..0000000000 --- a/abstra_statics/dist/assets/ExclamationCircleOutlined.433881ab.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as l,ee as o,eD as f}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a032dc54-db64-4777-9fb3-27f61687a29c",e._sentryDebugIdIdentifier="sentry-dbid-a032dc54-db64-4777-9fb3-27f61687a29c")}catch{}})();function c(e){for(var t=1;tn[i]===void 0&&delete n[i]);const s=await l.get(`projects/${e}/executions`,n);return{executions:s.executions.map(i=>b.from(i)),totalCount:s.totalCount}}async fetchLogs(e,t){const n=await l.get(`projects/${e}/executions/${t}/logs`);return m.from(n)}async fetchThreadData(e,t){return(await l.get(`projects/${e}/executions/${t}/thread-data`)).response}}class m{constructor(e){this.dto=e}static from(e){return new m(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class b{constructor(e){this.dto=e}static from(e){return new b(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){return this.dto.buildId}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}const T=j({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(o(),a(c($),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(o(),a(c(k),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(o(),a(c(E),{key:2,style:{color:"#f69220"}})):e.status==="running"?(o(),a(c(P),{key:3})):S("",!0)}});export{R as E,T as _,L as e}; -//# sourceMappingURL=ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.5b24f710.js.map diff --git a/abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js b/abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js new file mode 100644 index 0000000000..49b0f8c515 --- /dev/null +++ b/abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js @@ -0,0 +1,2 @@ +import{C as l}from"./gateway.ae1d6857.js";import{b as u,ee as d,f1 as w,f2 as I,d as j,o as a,c as o,u as c,S}from"./index.d0f12294.js";import{L as P}from"./LoadingOutlined.bcfc8c20.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="51c6f7d4-ea2c-4e7f-aa19-94a9a65560ae",r._sentryDebugIdIdentifier="sentry-dbid-51c6f7d4-ea2c-4e7f-aa19-94a9a65560ae")}catch{}})();var F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const _=F;function C(r){for(var e=1;en[i]===void 0&&delete n[i]);const s=await l.get(`projects/${e}/executions`,n);return{executions:s.executions.map(i=>b.from(i)),totalCount:s.totalCount}}async fetchLogs(e,t){const n=await l.get(`projects/${e}/executions/${t}/logs`);return m.from(n)}async fetchThreadData(e,t){return(await l.get(`projects/${e}/executions/${t}/thread-data`)).response}}class m{constructor(e){this.dto=e}static from(e){return new m(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class b{constructor(e){this.dto=e}static from(e){return new b(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){return this.dto.buildId}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}const T=j({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(a(),o(c($),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(a(),o(c(k),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(a(),o(c(E),{key:2,style:{color:"#f69220"}})):e.status==="running"?(a(),o(c(P),{key:3})):S("",!0)}});export{R as E,T as _,L as e}; +//# sourceMappingURL=ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js.map diff --git a/abstra_statics/dist/assets/Files.3b1f241b.js b/abstra_statics/dist/assets/Files.4459e9ca.js similarity index 59% rename from abstra_statics/dist/assets/Files.3b1f241b.js rename to abstra_statics/dist/assets/Files.4459e9ca.js index 8b5eb78670..04c0f47f1d 100644 --- a/abstra_statics/dist/assets/Files.3b1f241b.js +++ b/abstra_statics/dist/assets/Files.4459e9ca.js @@ -1,2 +1,2 @@ -import{_ as q}from"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import{C as W}from"./ContentLayout.60e2d770.js";import{p as Y}from"./popupNotifcation.40886a7f.js";import{a as J}from"./ant-design.ae7d2f9f.js";import{a as Q}from"./asyncComputed.cfc0cdaf.js";import{d as H,D as I,f as A,o as c,Y as g,$ as R,S as w,e8 as X,a as f,b as i,ee as L,f5 as K,ea as ee,e as te,c as b,w as s,aG as _,u as o,dd as ae,db as F,bT as Z,e9 as D,d4 as ne,bR as oe,bz as re,bx as z,dc as N,cx as le,em as ie,en as se,a0 as ce}from"./index.8c3f27aa.js";import{C as k}from"./gateway.8032b20a.js";import"./tables.2ec18755.js";import{D as V}from"./DeleteOutlined.0e27ef4f.js";import{C as de}from"./Card.c4293d90.js";import"./BookOutlined.b4191bff.js";import"./record.a6861841.js";import"./string.0a3509c3.js";import"./TabPane.2034bc94.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="8bc9ac97-23a1-49c8-a514-706f5fe04207",a._sentryDebugIdIdentifier="sentry-dbid-8bc9ac97-23a1-49c8-a514-706f5fe04207")}catch{}})();var ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const pe=ue,fe=["width","height","fill","transform"],me={key:0},ye=f("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"},null,-1),he=[ye],ge={key:1},ve=f("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"},null,-1),_e=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),be=[ve,_e],we={key:2},Ae=f("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"},null,-1),Oe=[Ae],ke={key:3},Ce=f("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"},null,-1),je=[Ce],Ie={key:4},$e=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),Ze=[$e],De={key:5},Me=f("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"},null,-1),Se=[Me],Pe={name:"PhDotsThree"},xe=H({...Pe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,n=I("weight","regular"),r=I("size","1em"),p=I("color","currentColor"),$=I("mirrored",!1),m=A(()=>{var d;return(d=e.weight)!=null?d:n}),O=A(()=>{var d;return(d=e.size)!=null?d:r}),y=A(()=>{var d;return(d=e.color)!=null?d:p}),C=A(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(d,j)=>(c(),g("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:O.value,height:O.value,fill:y.value,transform:C.value},d.$attrs),[R(d.$slots,"default"),m.value==="bold"?(c(),g("g",me,he)):m.value==="duotone"?(c(),g("g",ge,be)):m.value==="fill"?(c(),g("g",we,Oe)):m.value==="light"?(c(),g("g",ke,je)):m.value==="regular"?(c(),g("g",Ie,Ze)):m.value==="thin"?(c(),g("g",De,Se)):w("",!0)],16,fe))}});function B(a){for(var e=1;e(ie("data-v-048030b3"),a=a(),se(),a),Ve=Ne(()=>f("br",null,null,-1)),Be={key:0},Ee={key:0,class:"file-size"},Te={class:"action-item"},He={class:"action-item"},Re=H({__name:"Files",setup(a){const n=ee().params.projectId,r=P.fromProjectId(n),{loading:p,result:$,refetch:m}=Q(()=>r.list());function O(t){var l,u;return{key:t.path,title:t.name,isLeaf:t.type==="file",file:t,children:t.type==="file"?[]:(u=(l=t.children)==null?void 0:l.map(O))!=null?u:[]}}const y=A(()=>{var t;return(t=$.value)==null?void 0:t.map(O)}),C=t=>{var l,u;return t.isLeaf?1:(u=(l=t.children)==null?void 0:l.reduce((h,v)=>h+C(v),0))!=null?u:0},d=A(()=>y.value?y==null?void 0:y.value.reduce((t,l)=>t+C(l),0):0),j=te(!1);function x(t){if(t&&t.type==="file")return;const l=document.createElement("input");l.type="file",l.onchange=async()=>{var h;const u=(h=l.files)==null?void 0:h[0];if(!!u)try{j.value=!0,await r.upload(u,t==null?void 0:t.path),await m()}catch{Y("Failed to upload file","File already exists")}finally{j.value=!1}},l.click()}async function G(t){if(!t)return;const l=await r.download(t.path),u=document.createElement("a");u.href=URL.createObjectURL(l),u.download=t.name,u.click()}async function U(t){if(!t)return;const l="Are you sure you want to delete this "+(t.type==="file"?"file":"directory and all its contents")+"?";await J(l)&&(await r.delete(t.path),await m())}return(t,l)=>(c(),b(W,null,{default:s(()=>[i(o(ae),null,{default:s(()=>[_("Files")]),_:1}),i(o(F),null,{default:s(()=>[_(" Here you can upload, download and delete files in your persistent dir."),Ve,_(" Files can be used in your scripts. "),i(q,{path:"cloud/files"}),R(t.$slots,"description",{},void 0,!0)]),_:3}),i(o(Z),{type:"primary",loading:j.value,onClick:l[0]||(l[0]=u=>x())},{default:s(()=>[i(o(T)),_(" Upload ")]),_:1},8,["loading"]),i(o(de),{class:"files"},{default:s(()=>[d.value>0?(c(),b(o(F),{key:0},{default:s(()=>[f("b",null,[_(D(d.value)+" file",1),d.value!==1?(c(),g("span",Be,"s")):w("",!0)])]),_:1})):w("",!0),y.value&&y.value.length>0?(c(),b(o(ne),{key:1,"tree-data":y.value,selectable:!1},{title:s(({title:u,isLeaf:h,file:v})=>[f("span",null,[_(D(u)+" ",1),h?(c(),g("span",Ee,"("+D(v.size)+")",1)):w("",!0)]),h?(c(),b(o(Z),{key:0,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>G(v)},{default:s(()=>[i(o(Fe))]),_:2},1032,["onClick"])):w("",!0),h?(c(),b(o(Z),{key:1,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>U(v)},{default:s(()=>[i(o(V))]),_:2},1032,["onClick"])):w("",!0),h?w("",!0):(c(),b(o(oe),{key:2},{overlay:s(()=>[i(o(re),{disabled:o(p)},{default:s(()=>[i(o(z),{danger:!1,onClick:()=>x(v)},{default:s(()=>[f("div",Te,[i(o(T)),i(o(N),null,{default:s(()=>[_(" Upload ")]),_:1})])]),_:2},1032,["onClick"]),i(o(z),{danger:!1,onClick:()=>U(v)},{default:s(()=>[f("div",He,[i(o(V)),i(o(N),null,{default:s(()=>[_(" Delete ")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1032,["disabled"])]),default:s(()=>[i(o(xe),{style:{cursor:"pointer",float:"inline-end"},size:"25px"})]),_:2},1024))]),_:1},8,["tree-data"])):(c(),b(o(le),{key:2,description:o(p)?"Loading...":"No files"},null,8,["description"]))]),_:1})]),_:3}))}});const rt=ce(Re,[["__scopeId","data-v-048030b3"]]);export{rt as default}; -//# sourceMappingURL=Files.3b1f241b.js.map +import{_ as q}from"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import{C as W}from"./ContentLayout.f92ff80c.js";import{p as Y}from"./popupNotifcation.a0a6244b.js";import{a as J}from"./ant-design.d89b18ab.js";import{a as Q}from"./asyncComputed.703c33fd.js";import{d as H,D as I,f as A,o as d,Y as b,$ as R,S as w,e8 as X,a as f,b as i,ee as L,f5 as K,ea as ee,e as te,c as _,w as s,aG as v,u as o,dd as ae,db as F,bT as Z,e9 as D,d4 as ne,bR as oe,bz as re,bx as z,dc as N,cx as le,em as ie,en as se,a0 as de}from"./index.d0f12294.js";import{C as k}from"./gateway.ae1d6857.js";import"./tables.318f703e.js";import{D as V}from"./DeleteOutlined.5a680b6a.js";import{C as ue}from"./Card.2a8fe028.js";import"./BookOutlined.7c922f07.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";import"./TabPane.79f4882f.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="2982a22b-49b7-4db4-a4fb-cfe8f945b3fc",a._sentryDebugIdIdentifier="sentry-dbid-2982a22b-49b7-4db4-a4fb-cfe8f945b3fc")}catch{}})();var ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const pe=ce,fe=["width","height","fill","transform"],me={key:0},ye=f("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"},null,-1),he=[ye],be={key:1},ge=f("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"},null,-1),ve=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),_e=[ge,ve],we={key:2},Ae=f("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"},null,-1),Oe=[Ae],ke={key:3},Ce=f("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"},null,-1),je=[Ce],Ie={key:4},$e=f("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},null,-1),Ze=[$e],De={key:5},Me=f("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"},null,-1),Se=[Me],Pe={name:"PhDotsThree"},xe=H({...Pe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,n=I("weight","regular"),r=I("size","1em"),p=I("color","currentColor"),$=I("mirrored",!1),m=A(()=>{var u;return(u=e.weight)!=null?u:n}),O=A(()=>{var u;return(u=e.size)!=null?u:r}),y=A(()=>{var u;return(u=e.color)!=null?u:p}),C=A(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(u,j)=>(d(),b("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:O.value,height:O.value,fill:y.value,transform:C.value},u.$attrs),[R(u.$slots,"default"),m.value==="bold"?(d(),b("g",me,he)):m.value==="duotone"?(d(),b("g",be,_e)):m.value==="fill"?(d(),b("g",we,Oe)):m.value==="light"?(d(),b("g",ke,je)):m.value==="regular"?(d(),b("g",Ie,Ze)):m.value==="thin"?(d(),b("g",De,Se)):w("",!0)],16,fe))}});function B(a){for(var e=1;e(ie("data-v-048030b3"),a=a(),se(),a),Ve=Ne(()=>f("br",null,null,-1)),Be={key:0},Ee={key:0,class:"file-size"},Te={class:"action-item"},He={class:"action-item"},Re=H({__name:"Files",setup(a){const n=ee().params.projectId,r=P.fromProjectId(n),{loading:p,result:$,refetch:m}=Q(()=>r.list());function O(t){var l,c;return{key:t.path,title:t.name,isLeaf:t.type==="file",file:t,children:t.type==="file"?[]:(c=(l=t.children)==null?void 0:l.map(O))!=null?c:[]}}const y=A(()=>{var t;return(t=$.value)==null?void 0:t.map(O)}),C=t=>{var l,c;return t.isLeaf?1:(c=(l=t.children)==null?void 0:l.reduce((h,g)=>h+C(g),0))!=null?c:0},u=A(()=>y.value?y==null?void 0:y.value.reduce((t,l)=>t+C(l),0):0),j=te(!1);function x(t){if(t&&t.type==="file")return;const l=document.createElement("input");l.type="file",l.onchange=async()=>{var h;const c=(h=l.files)==null?void 0:h[0];if(!!c)try{j.value=!0,await r.upload(c,t==null?void 0:t.path),await m()}catch{Y("Failed to upload file","File already exists")}finally{j.value=!1}},l.click()}async function G(t){if(!t)return;const l=await r.download(t.path),c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=t.name,c.click()}async function U(t){if(!t)return;const l="Are you sure you want to delete this "+(t.type==="file"?"file":"directory and all its contents")+"?";await J(l)&&(await r.delete(t.path),await m())}return(t,l)=>(d(),_(W,null,{default:s(()=>[i(o(ae),null,{default:s(()=>[v("Files")]),_:1}),i(o(F),null,{default:s(()=>[v(" Here you can upload, download and delete files in your persistent dir."),Ve,v(" Files can be used in your scripts. "),i(q,{path:"cloud/files"}),R(t.$slots,"description",{},void 0,!0)]),_:3}),i(o(Z),{type:"primary",loading:j.value,onClick:l[0]||(l[0]=c=>x())},{default:s(()=>[i(o(T)),v(" Upload ")]),_:1},8,["loading"]),i(o(ue),{class:"files"},{default:s(()=>[u.value>0?(d(),_(o(F),{key:0},{default:s(()=>[f("b",null,[v(D(u.value)+" file",1),u.value!==1?(d(),b("span",Be,"s")):w("",!0)])]),_:1})):w("",!0),y.value&&y.value.length>0?(d(),_(o(ne),{key:1,"tree-data":y.value,selectable:!1},{title:s(({title:c,isLeaf:h,file:g})=>[f("span",null,[v(D(c)+" ",1),h?(d(),b("span",Ee,"("+D(g.size)+")",1)):w("",!0)]),h?(d(),_(o(Z),{key:0,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>G(g)},{default:s(()=>[i(o(Fe))]),_:2},1032,["onClick"])):w("",!0),h?(d(),_(o(Z),{key:1,type:"text",size:"small",style:{float:"inline-end"},onClick:()=>U(g)},{default:s(()=>[i(o(V))]),_:2},1032,["onClick"])):w("",!0),h?w("",!0):(d(),_(o(oe),{key:2},{overlay:s(()=>[i(o(re),{disabled:o(p)},{default:s(()=>[i(o(z),{danger:!1,onClick:()=>x(g)},{default:s(()=>[f("div",Te,[i(o(T)),i(o(N),null,{default:s(()=>[v(" Upload ")]),_:1})])]),_:2},1032,["onClick"]),i(o(z),{danger:!1,onClick:()=>U(g)},{default:s(()=>[f("div",He,[i(o(V)),i(o(N),null,{default:s(()=>[v(" Delete ")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1032,["disabled"])]),default:s(()=>[i(o(xe),{style:{cursor:"pointer",float:"inline-end"},size:"25px"})]),_:2},1024))]),_:1},8,["tree-data"])):(d(),_(o(le),{key:2,description:o(p)?"Loading...":"No files"},null,8,["description"]))]),_:1})]),_:3}))}});const rt=de(Re,[["__scopeId","data-v-048030b3"]]);export{rt as default}; +//# sourceMappingURL=Files.4459e9ca.js.map diff --git a/abstra_statics/dist/assets/Form.6107acc8.js b/abstra_statics/dist/assets/Form.6107acc8.js deleted file mode 100644 index f694c3d4b8..0000000000 --- a/abstra_statics/dist/assets/Form.6107acc8.js +++ /dev/null @@ -1,2 +0,0 @@ -import{A as S}from"./api.ebb7a8be.js";import{b as F,i as I}from"./workspaceStore.a6063d10.js";import{b as U,r as T,c as x,d as L}from"./FormRunner.b9a7fe60.js";import{d as V,ea as W,eo as N,E as B,e as b,g as K,f as M,aL as q,X as G,ah as P,u as t,o as f,Y as X,b as h,c as D,w as y,S as Y,aG as C,dd as j,d9 as z,dh as H,a0 as J}from"./index.8c3f27aa.js";import{a as O}from"./asyncComputed.cfc0cdaf.js";import{u as E}from"./uuid.4ec4da84.js";import{L as Q}from"./CircularLoading.fdcc1083.js";import"./fetch.fd4370bb.js";import"./metadata.2beed20a.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./Login.vue_vue_type_script_setup_true_lang.4f858dcf.js";import"./Logo.cf3e0e74.js";import"./string.0a3509c3.js";import"./index.73b06b4b.js";import"./index.126762e2.js";import"./Steps.526dbd54.js";import"./index.f36b2f2c.js";import"./Watermark.41d3e1ab.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[n]="b1917480-4aa3-4a97-a218-8e0327ea3261",l._sentryDebugIdIdentifier="sentry-dbid-b1917480-4aa3-4a97-a218-8e0327ea3261")}catch{}})();const Z={key:0,class:"loading"},$=V({__name:"Form",setup(l){const n=W(),d=N(),_=B({playerKey:E()}),k=F(),u=b(null),v=b(!1);K(n,()=>{n.name==="form"&&R()});const{loading:m,result:a,error:g,refetch:R}=O(async()=>{_.playerKey=E();const r=n.path.slice(1),e=await I(r);if(!e){d.push({name:"error",params:{status:"404"}});return}const o=n.query[S];if(!e.isInitial&&!o){v.value=!0;return}const s=new x({formRunnerData:e,logService:null,connectionManager:new L(e.id,"player",n.query),onRedirect:w,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:c=>u.value=c}),i=s.getState();return u.value=i.formState,{runnerData:e,controller:s}}),A=M(()=>{const r=!m,e=!!g,o=!a||u.value===null;return r&&(e||o)});q(()=>{var r,e,o,s,i;A.value&&d.push({name:"error",params:{status:"500"}}),!!((r=a.value)!=null&&r.runnerData)&&(e=a.value)!=null&&e.runnerData&&(document.title=(i=(o=a.value)==null?void 0:o.runnerData.welcomeTitle)!=null?i:(s=a.value)==null?void 0:s.runnerData.title)});function w(r,e){window.removeEventListener("beforeunload",p),T("player",d,r,e)}G(async()=>{window.addEventListener("beforeunload",p)}),P(()=>{window.removeEventListener("beforeunload",p)});const p=r=>{var e;if((e=a.value)!=null&&e.controller.handleCloseAttempt())return r.preventDefault(),""};return(r,e)=>{var o,s,i,c;return t(m)?(f(),X("div",Z,[h(Q)])):v.value?(f(),D(t(H),{key:1,class:"unset-thread-container",vertical:""},{default:y(()=>[h(t(j),null,{default:y(()=>[C("Cannot open this link directly")]),_:1}),h(t(z),{class:"message"},{default:y(()=>[C(" This form must be accessed within a thread, either by clicking on it by notification email or the Kanban board ")]),_:1})]),_:1})):t(a)&&t(a).runnerData&&u.value&&!t(g)&&!t(m)?(f(),D(U,{key:_.playerKey,"form-runner-data":t(a).runnerData,"form-state":u.value,"is-preview":!1,"user-email":t(k).email,onRedirect:w,onActionClicked:(o=t(a))==null?void 0:o.controller.handleActionClick,onUpdateWidgetErrors:(s=t(a))==null?void 0:s.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(i=t(a))==null?void 0:i.controller.updateWidgetValue,onAuthComplete:(c=t(a))==null?void 0:c.controller.handleAuthComplete},null,8,["form-runner-data","form-state","user-email","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue","onAuthComplete"])):Y("",!0)}}});const Ce=J($,[["__scopeId","data-v-3aa2fe18"]]);export{Ce as default}; -//# sourceMappingURL=Form.6107acc8.js.map diff --git a/abstra_statics/dist/assets/Form.8943571e.js b/abstra_statics/dist/assets/Form.8943571e.js new file mode 100644 index 0000000000..101673e72d --- /dev/null +++ b/abstra_statics/dist/assets/Form.8943571e.js @@ -0,0 +1,2 @@ +import{A as S}from"./api.8656aeba.js";import{b as F,i as I}from"./workspaceStore.e47060bf.js";import{b as U,r as T,c as x,d as L}from"./FormRunner.8bf9d58d.js";import{d as V,ea as W,eo as N,E as B,e as w,g as K,f as M,aL as q,X as G,ah as P,u as t,o as f,Y as X,b as h,c as D,w as y,S as Y,aG as C,dd as j,d9 as z,dh as H,a0 as J}from"./index.d0f12294.js";import{a as O}from"./asyncComputed.703c33fd.js";import{u as E}from"./uuid.f9389d59.js";import{L as Q}from"./CircularLoading.13413fc4.js";import"./fetch.e5ebd511.js";import"./metadata.bc77f4b9.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./Login.vue_vue_type_script_setup_true_lang.9976d09a.js";import"./Logo.8f27935a.js";import"./string.d9c83adf.js";import"./index.c7e8afe7.js";import"./index.289665f1.js";import"./Steps.b72611f7.js";import"./index.2862b277.js";import"./Watermark.32de12c9.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[n]="d82ee942-2b92-444a-86f6-f260ab54379e",l._sentryDebugIdIdentifier="sentry-dbid-d82ee942-2b92-444a-86f6-f260ab54379e")}catch{}})();const Z={key:0,class:"loading"},$=V({__name:"Form",setup(l){const n=W(),d=N(),_=B({playerKey:E()}),k=F(),u=w(null),v=w(!1);K(n,()=>{n.name==="form"&&R()});const{loading:m,result:r,error:g,refetch:R}=O(async()=>{_.playerKey=E();const a=n.path.slice(1),e=await I(a);if(!e){d.push({name:"error",params:{status:"404"}});return}const o=n.query[S];if(!e.isInitial&&!o){v.value=!0;return}const s=new x({formRunnerData:e,logService:null,connectionManager:new L(e.id,"player",n.query),onRedirect:b,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:c=>u.value=c}),i=s.getState();return u.value=i.formState,{runnerData:e,controller:s}}),A=M(()=>{const a=!m,e=!!g,o=!r||u.value===null;return a&&(e||o)});q(()=>{var a,e,o,s,i;A.value&&d.push({name:"error",params:{status:"500"}}),!!((a=r.value)!=null&&a.runnerData)&&(e=r.value)!=null&&e.runnerData&&(document.title=(i=(o=r.value)==null?void 0:o.runnerData.welcomeTitle)!=null?i:(s=r.value)==null?void 0:s.runnerData.title)});function b(a,e){window.removeEventListener("beforeunload",p),T("player",d,a,e)}G(async()=>{window.addEventListener("beforeunload",p)}),P(()=>{window.removeEventListener("beforeunload",p)});const p=a=>{var e;if((e=r.value)!=null&&e.controller.handleCloseAttempt())return a.preventDefault(),""};return(a,e)=>{var o,s,i,c;return t(m)?(f(),X("div",Z,[h(Q)])):v.value?(f(),D(t(H),{key:1,class:"unset-thread-container",vertical:""},{default:y(()=>[h(t(j),null,{default:y(()=>[C("Cannot open this link directly")]),_:1}),h(t(z),{class:"message"},{default:y(()=>[C(" This form must be accessed within a thread, either by clicking on it by notification email or the Kanban board ")]),_:1})]),_:1})):t(r)&&t(r).runnerData&&u.value&&!t(g)&&!t(m)?(f(),D(U,{key:_.playerKey,"form-runner-data":t(r).runnerData,"form-state":u.value,"is-preview":!1,"user-email":t(k).email,onRedirect:b,onActionClicked:(o=t(r))==null?void 0:o.controller.handleActionClick,onUpdateWidgetErrors:(s=t(r))==null?void 0:s.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(i=t(r))==null?void 0:i.controller.updateWidgetValue,onAuthComplete:(c=t(r))==null?void 0:c.controller.handleAuthComplete},null,8,["form-runner-data","form-state","user-email","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue","onAuthComplete"])):Y("",!0)}}});const Ce=J($,[["__scopeId","data-v-3aa2fe18"]]);export{Ce as default}; +//# sourceMappingURL=Form.8943571e.js.map diff --git a/abstra_statics/dist/assets/FormEditor.ca445dd9.js b/abstra_statics/dist/assets/FormEditor.771039c7.js similarity index 76% rename from abstra_statics/dist/assets/FormEditor.ca445dd9.js rename to abstra_statics/dist/assets/FormEditor.771039c7.js index 3d769b9753..ec27344506 100644 --- a/abstra_statics/dist/assets/FormEditor.ca445dd9.js +++ b/abstra_statics/dist/assets/FormEditor.771039c7.js @@ -1,2 +1,2 @@ -import{A as G}from"./api.ebb7a8be.js";import{P as Te}from"./PlayerNavbar.dddcfb4f.js";import{b as Fe,u as Me}from"./workspaceStore.a6063d10.js";import{B as Ie}from"./BaseLayout.995c8c6b.js";import{R as Ue,S as Re,E as Ee,a as Le,I as Ve,L as $e}from"./SourceCode.38be4205.js";import{S as Be}from"./SaveButton.f2d9e5cc.js";import{F as D,a as De,b as He,c as Ne,d as Pe,r as We}from"./FormRunner.b9a7fe60.js";import{d as $,D as H,f as R,o as i,Y as A,$ as ze,S,e8 as Oe,a as F,X as Ze,E as je,c as _,w as t,b as a,u as e,cL as ne,a0 as W,e as C,dd as B,aG as f,cX as se,d9 as V,cz as x,bL as T,cy as ue,aS as ie,em as de,en as pe,bO as oe,bT as I,eb as Qe,dh as P,eo as qe,ea as Ge,aL as Je,g as re,N as Ke,O as Xe,eg as Ye,z as ea,e9 as Q,by as aa,cO as ta,da as la,aW as N,eS as oa}from"./index.8c3f27aa.js";import{a as ra}from"./asyncComputed.cfc0cdaf.js";import{W as na}from"./PlayerConfigProvider.4d4af7bc.js";import{F as sa}from"./PhArrowSquareOut.vue.da8bb581.js";import{G as ua}from"./PhFlowArrow.vue.f79c4ef2.js";import{F as ia}from"./metadata.2beed20a.js";import{F as da}from"./forms.95b70669.js";import"./editor.e7656461.js";import{W as J}from"./workspaces.7bc437a6.js";import{T as pa}from"./ThreadSelector.0fc03e39.js";import{A as ca}from"./index.126762e2.js";import{A as ma}from"./index.37c7ea66.js";import{N as va}from"./NavbarControls.0c752e0f.js";import{b as fa}from"./index.d667cd0d.js";import{A as q,T as ga}from"./TabPane.2034bc94.js";import{B as ha}from"./Badge.7a29ebdb.js";import{A as ya}from"./index.d18d35d7.js";import{C as ba}from"./Card.c4293d90.js";import"./fetch.fd4370bb.js";import"./LoadingOutlined.7a2941f5.js";import"./PhSignOut.vue.266bb925.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./uuid.4ec4da84.js";import"./scripts.ab5c52f3.js";import"./record.a6861841.js";import"./validations.1f9bbc1f.js";import"./string.0a3509c3.js";import"./PhCopy.vue.a05dc1a1.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhCopySimple.vue.cf5729b7.js";import"./PhCaretRight.vue.a26e962f.js";import"./PhBug.vue.96a42e8e.js";import"./PhQuestion.vue.5030f781.js";import"./polling.98a0bd01.js";import"./PhPencil.vue.47d672ed.js";import"./toggleHighContrast.5028b4ff.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";import"./Login.vue_vue_type_script_setup_true_lang.4f858dcf.js";import"./Logo.cf3e0e74.js";import"./CircularLoading.fdcc1083.js";import"./index.73b06b4b.js";import"./Steps.526dbd54.js";import"./index.f36b2f2c.js";import"./Watermark.41d3e1ab.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./index.eefd8753.js";import"./CloseCircleOutlined.7faf1c70.js";import"./popupNotifcation.40886a7f.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./PhChats.vue.296ae643.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[h]="9cc83cca-ae99-440d-9857-8619788cfc59",g._sentryDebugIdIdentifier="sentry-dbid-9cc83cca-ae99-440d-9857-8619788cfc59")}catch{}})();const _a=["width","height","fill","transform"],ka={key:0},wa=F("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"},null,-1),Sa=[wa],Ca={key:1},xa=F("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Aa=F("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Ta=[xa,Aa],Fa={key:2},Ma=F("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Ia=[Ma],Ua={key:3},Ra=F("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"},null,-1),Ea=[Ra],La={key:4},Va=F("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),$a=[Va],Ba={key:5},Da=F("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"},null,-1),Ha=[Da],Na={name:"PhArrowsClockwise"},Pa=$({...Na,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(g){const h=g,r=H("weight","regular"),k=H("size","1em"),s=H("color","currentColor"),o=H("mirrored",!1),v=R(()=>{var p;return(p=h.weight)!=null?p:r}),w=R(()=>{var p;return(p=h.size)!=null?p:k}),b=R(()=>{var p;return(p=h.color)!=null?p:s}),d=R(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(p,y)=>(i(),A("svg",Oe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:b.value,transform:d.value},p.$attrs),[ze(p.$slots,"default"),v.value==="bold"?(i(),A("g",ka,Sa)):v.value==="duotone"?(i(),A("g",Ca,Ta)):v.value==="fill"?(i(),A("g",Fa,Ia)):v.value==="light"?(i(),A("g",Ua,Ea)):v.value==="regular"?(i(),A("g",La,$a)):v.value==="thin"?(i(),A("g",Ba,Ha)):S("",!0)],16,_a))}}),Wa=$({__name:"ThreadSelectorModal",props:{showThreadModal:{type:Boolean},stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(g,{emit:h}){const r=()=>{h("update:show-thread-modal",!1),J.writeTestData(k.threadData)};Ze(async()=>k.threadData=await J.readTestData());const k=je({threadData:"{}"});return(s,o)=>(i(),_(e(ne),{open:s.showThreadModal,footer:null,onCancel:r},{default:t(()=>[a(pa,{stage:s.stage,"execution-config":s.executionConfig,"onUpdate:executionConfig":o[0]||(o[0]=v=>h("update:execution-config",v)),"onUpdate:showThreadModal":o[1]||(o[1]=v=>h("update:show-thread-modal",v)),onFixInvalidJson:o[2]||(o[2]=v=>h("fix-invalid-json",v,v))},null,8,["stage","execution-config"])]),_:1},8,["open"]))}});const za=W(Wa,[["__scopeId","data-v-24845f55"]]),ce=g=>(de("data-v-b2ed6a6d"),g=g(),pe(),g),Oa=ce(()=>F("i",null,"string",-1)),Za=ce(()=>F("i",null,"string list",-1)),ja=$({__name:"FormNotificationSettings",props:{form:{}},setup(g){const r=C(g.form);return(k,s)=>(i(),A(ie,null,[a(e(ue),{layout:"vertical"},{default:t(()=>[a(e(B),{level:4,width:"100%",height:"30px",style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0px"}},{default:t(()=>[f(" Thread waiting "),a(e(se),{checked:r.value.notificationTrigger.enabled,"onUpdate:checked":s[0]||(s[0]=o=>r.value.notificationTrigger.enabled=o)},{default:t(()=>[f(" Enabled ")]),_:1},8,["checked"])]),_:1}),a(e(V),{class:"description",style:{fontStyle:"italic",marginBottom:"20px"}},{default:t(()=>[f(" Send emails when the thread is waiting for the form to be filled ")]),_:1}),a(e(x),{label:"Variable name"},{default:t(()=>[a(e(T),{value:r.value.notificationTrigger.variable_name,"onUpdate:value":s[1]||(s[1]=o=>r.value.notificationTrigger.variable_name=o),disabled:!r.value.notificationTrigger.enabled,type:"text",placeholder:"variable_name"},null,8,["value","disabled"])]),_:1})]),_:1}),a(e(ca),{type:"info"},{message:t(()=>[a(e(V),null,{default:t(()=>[f(" Notifications are sent to the emails specified in the thread variables set here. The variables should contain a "),Oa,f(" or a "),Za,f(". ")]),_:1})]),_:1})],64))}});const Qa=W(ja,[["__scopeId","data-v-b2ed6a6d"]]),qa=$({__name:"FormSettings",props:{form:{}},setup(g){const r=C(g.form);return(k,s)=>(i(),_(e(ue),{layout:"vertical",class:"form-settings"},{default:t(()=>[a(Ue,{runtime:r.value},null,8,["runtime"]),a(e(x),{label:"Form name"},{default:t(()=>[a(e(T),{value:r.value.title,"onUpdate:value":s[0]||(s[0]=o=>r.value.title=o),type:"text",onChange:s[1]||(s[1]=o=>{var v;return r.value.title=(v=o.target.value)!=null?v:""})},null,8,["value"])]),_:1}),a(e(B),{level:3},{default:t(()=>[f(" Texts ")]),_:1}),a(e(B),{level:4},{default:t(()=>[f(" Welcome Screen ")]),_:1}),a(e(x),{label:"Title"},{default:t(()=>[a(e(T),{value:r.value.welcomeTitle,"onUpdate:value":s[2]||(s[2]=o=>r.value.welcomeTitle=o),type:"text",placeholder:r.value.title,disabled:r.value.autoStart},null,8,["value","placeholder","disabled"])]),_:1}),a(e(x),{label:"Description"},{default:t(()=>[a(e(T),{value:r.value.startMessage,"onUpdate:value":s[3]||(s[3]=o=>r.value.startMessage=o),type:"text",disabled:r.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(x),{label:"Start button label"},{default:t(()=>[a(e(T),{value:r.value.startButtonText,"onUpdate:value":s[4]||(s[4]=o=>r.value.startButtonText=o),type:"text",placeholder:"Start",disabled:r.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(x),null,{default:t(()=>[a(e(oe),{checked:r.value.autoStart,"onUpdate:checked":s[5]||(s[5]=o=>r.value.autoStart=o)},{default:t(()=>[f("Skip welcome screen")]),_:1},8,["checked"])]),_:1}),a(e(B),{level:4},{default:t(()=>[f(" End Screen ")]),_:1}),a(e(x),{label:"End text"},{default:t(()=>[a(e(T),{value:r.value.endMessage,"onUpdate:value":s[6]||(s[6]=o=>r.value.endMessage=o),type:"text",placeholder:"Thank you"},null,8,["value"])]),_:1}),a(e(x),{label:"Restart button label"},{default:t(()=>[a(e(T),{value:r.value.restartButtonText,"onUpdate:value":s[7]||(s[7]=o=>r.value.restartButtonText=o),placeholder:"Restart",type:"text",disabled:!r.value.allowRestart},null,8,["value","disabled"])]),_:1}),a(e(x),{help:!r.value.isInitial&&"Only initial forms can be restarted"},{default:t(()=>[a(e(oe),{checked:r.value.allowRestart,"onUpdate:checked":s[8]||(s[8]=o=>r.value.allowRestart=o),disabled:!r.value.isInitial},{default:t(()=>[f("Show restart button at the end")]),_:1},8,["checked","disabled"])]),_:1},8,["help"]),a(e(B),{level:4},{default:t(()=>[f(" Alert Messages ")]),_:1}),a(e(x),{label:"Error message"},{default:t(()=>[a(e(T),{value:r.value.errorMessage,"onUpdate:value":s[9]||(s[9]=o=>r.value.errorMessage=o),type:"text",placeholder:"Something went wrong"},null,8,["value"])]),_:1})]),_:1}))}});const Ga=W(qa,[["__scopeId","data-v-aff64cb2"]]),Ja=$({__name:"QueryParamsModal",props:{open:{type:Boolean},close:{type:Function},queryParams:{}},emits:["update:query-params"],setup(g,{emit:h}){const k=C(s(g.queryParams));function s(d){return Object.entries(d).map(([p,y])=>({key:p,value:y,id:Math.random().toString()}))}function o(){const d={};return k.value.forEach(({key:p,value:y})=>{d[p]=y}),d}const v=(d,p,y)=>{k.value[d]={key:p,value:y},h("update:query-params",o())},w=()=>{const d=k.value.length;k.value.push({key:`param-${d}`,value:"value"}),h("update:query-params",o())},b=d=>{k.value.splice(d,1),h("update:query-params",o())};return(d,p)=>(i(),_(e(ne),{open:d.open,onCancel:d.close},{footer:t(()=>[a(e(I),{type:"primary",onClick:d.close},{default:t(()=>[f("OK")]),_:1},8,["onClick"])]),default:t(()=>[a(e(P),{vertical:"",gap:"20"},{default:t(()=>[a(e(V),null,{default:t(()=>[f("Query params")]),_:1}),(i(!0),A(ie,null,Qe(k.value,(y,E)=>(i(),_(e(x),{key:E},{default:t(()=>[a(e(ma),null,{default:t(()=>[a(e(T),{value:y.key,"onUpdate:value":c=>y.key=c,type:"text",placeholder:"name",onChange:()=>v(E,y.key,y.value)},null,8,["value","onUpdate:value","onChange"]),a(e(T),{value:y.value,"onUpdate:value":c=>y.value=c,type:"text",placeholder:"value",disabled:y.key===e(G),onChange:()=>v(E,y.key,y.value)},null,8,["value","onUpdate:value","disabled","onChange"]),a(e(I),{danger:"",onClick:c=>b(E)},{default:t(()=>[f("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(x),null,{default:t(()=>[a(e(I),{type:"dashed",style:{width:"100%"},onClick:w},{default:t(()=>[f(" Add Query Param ")]),_:1})]),_:1})]),_:1})]),_:1},8,["open","onCancel"]))}}),Ka=g=>(de("data-v-bb8c2324"),g=g(),pe(),g),Xa={key:0},Ya={key:1},et=Ka(()=>F("br",null,null,-1)),at={class:"form-preview-container"},tt=$({__name:"FormEditor",setup(g){var ae;const h=qe(),r=Ge(),k=Fe(),s=Me(),o=C(null),v=C("source-code"),w=C(null),b=C(null),d=C(null),p=C({}),y=C(!1),E=n=>c.value={...c.value,attached:!!n},c=C({attached:!1,stageRunId:null,isInitial:!1}),L=R(()=>{var n;return(n=m.value)!=null&&n.form.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:!c.value.isInitial&&c.value.attached&&!c.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),me=(n,l)=>{var u;(u=o.value)==null||u.setHighlight(n,l)},ve=()=>{var n,l;(n=o.value)==null||n.restartEditor(),(l=o.value)==null||l.startPreviewMode()},fe=R(()=>!c.value.isInitial&&c.value.attached&&!c.value.stageRunId);Je(()=>c.value.stageRunId?p.value={...p.value,[G]:c.value.stageRunId}:null);const{result:m,loading:ge,refetch:he}=ra(async()=>{const[n,l]=await Promise.all([da.get(r.params.id),J.get()]);return c.value.isInitial=n.isInitial,ea({form:n,workspace:l})});re([()=>c.value.attached,p,m],()=>{K()});function ye(){var l;if(!m.value)return;const n=m.value.form.codeContent;(l=o.value)==null||l.updateLocalEditorCode(n),K()}function K(){if(!m.value)return;const n=!c.value.attached;d.value=m.value.form.makeRunnerData(m.value.workspace),w.value=new Ne({formRunnerData:d.value,logService:Y,connectionManager:new Pe(m.value.form.id,"editor",p.value,n),onFormStart:ve,onFormEnd:be,onRedirect:Se,onStateUpdate:u=>b.value=u,onStackTraceUpdate:me});const l=w.value.getState();b.value=l.formState}const be=()=>{var n,l,u;c.value={attached:!1,stageRunId:null,isInitial:(l=(n=m.value)==null?void 0:n.form.isInitial)!=null?l:!1},(u=o.value)==null||u.restartEditor()};function _e(){var n,l;(n=z.value)==null||n.closeConsole(),(l=w.value)==null||l.start()}function X(){var n,l;(n=o.value)==null||n.restartEditor(),(l=w.value)==null||l.resetForm()}function ke(){h.push({name:"stages"})}const z=C(null),we=n=>{!m.value||(m.value.form.file=n)},Y=$e.create();function Se(n,l){We("editor",h,n,l)}const Ce=()=>{var u;let n=`/${(u=m.value)==null?void 0:u.form.path}`;const l=new URLSearchParams(p.value);c.value.attached&&c.value.stageRunId&&l.set(G,c.value.stageRunId),window.open(`${n}?${l.toString()}`,"_blank")},O=C(!1),xe=R(()=>{if(!d.value)return"";const n=Object.entries(p.value),l="?"+n.map(([M,U])=>`${M}=${U}`).join("&"),u=n.length?l:"";return`/${d.value.path}${u}`}),ee=new Ke(Xe.boolean(),"dontShowReloadHelper"),Z=C((ae=ee.get())!=null?ae:!1),Ae=()=>{ee.set(!0),Z.value=!0};re(()=>r.params.id,()=>{he()});const j=n=>{var l;return n!==v.value&&((l=m.value)==null?void 0:l.form.hasChanges())};return(n,l)=>(i(),_(Ie,null,Ye({navbar:t(()=>[e(m)?(i(),_(e(fa),{key:0,title:e(m).form.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:ke},{extra:t(()=>[a(va,{"docs-path":"concepts/forms","editing-model":e(m).form},null,8,["editing-model"])]),_:1},8,["title"])):S("",!0)]),content:t(()=>[e(m)?(i(),_(Ee,{key:0},{left:t(()=>[a(e(ga),{"active-key":v.value,"onUpdate:activeKey":l[0]||(l[0]=u=>v.value=u)},{rightExtra:t(()=>[a(Be,{model:e(m).form,onSave:ye},null,8,["model"])]),default:t(()=>[a(e(q),{key:"source-code",tab:"Source code",disabled:j("source-code")},null,8,["disabled"]),a(e(q),{key:"settings",tab:"Settings",disabled:j("settings")},null,8,["disabled"]),a(e(q),{key:"notifications",tab:"Notifications",disabled:j("notifications")},null,8,["disabled"])]),_:1},8,["active-key"]),v.value==="source-code"?(i(),_(Le,{key:0,ref_key:"code",ref:o,script:e(m).form,workspace:e(m).workspace,onUpdateFile:we},null,8,["script","workspace"])):S("",!0),v.value==="settings"?(i(),_(Ga,{key:1,form:e(m).form},null,8,["form"])):S("",!0),v.value==="notifications"?(i(),_(Qa,{key:2,form:e(m).form},null,8,["form"])):S("",!0),y.value?(i(),_(za,{key:3,"execution-config":c.value,"onUpdate:executionConfig":l[1]||(l[1]=u=>c.value=u),"show-thread-modal":y.value,"onUpdate:showThreadModal":l[2]||(l[2]=u=>y.value=u),stage:e(m).form,onFixInvalidJson:l[3]||(l[3]=(u,M)=>{var U;return(U=z.value)==null?void 0:U.fixJson(u,M)})},null,8,["execution-config","show-thread-modal","stage"])):S("",!0)]),right:t(()=>[a(e(P),{gap:"10",align:"center",justify:"right",style:{"margin-top":"6px"}},{default:t(()=>{var u;return[a(e(V),null,{default:t(()=>[f(Q(c.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(se),{disabled:!!b.value&&e(D).includes((u=b.value)==null?void 0:u.type),checked:c.value.attached,"onUpdate:checked":E},null,8,["disabled","checked"]),a(e(ha),{dot:fe.value},{default:t(()=>{var M;return[a(e(I),{disabled:!!b.value&&e(D).includes((M=b.value)==null?void 0:M.type),style:{display:"flex",gap:"5px"},onClick:l[4]||(l[4]=U=>y.value=!0)},{icon:t(()=>[a(e(ua),{size:"20"})]),default:t(()=>[f("Thread")]),_:1},8,["disabled"])]}),_:1},8,["dot"])]}),_:1}),a(e(ya),{style:{margin:"7px 0px 16px"}}),e(ge)||!d.value||!b.value?(i(),_(e(aa),{key:0})):S("",!0),b.value&&d.value?(i(),_(e(P),{key:1,vertical:"",gap:"10",style:{height:"100%",overflow:"hidden"}},{default:t(()=>[a(e(P),{gap:"small"},{default:t(()=>[b.value.type&&e(De).includes(b.value.type)?(i(),_(e(ta),{key:0,placement:"bottom",open:Z.value?void 0:!0},{content:t(()=>[Z.value?(i(),A("span",Xa,"Reload form")):(i(),A("span",Ya,[f(" You can reload the form here"),et,a(e(la),{onClick:Ae},{default:t(()=>[f("Don't show this again")]),_:1})]))]),default:t(()=>[a(e(I),{disabled:!!L.value,onClick:X},{default:t(()=>[a(e(Pa),{size:"20"})]),_:1},8,["disabled"])]),_:1},8,["open"])):S("",!0),e(D).includes(b.value.type)?(i(),_(e(N),{key:1,placement:"bottom"},{title:t(()=>[f("Stop form")]),default:t(()=>[a(e(I),{onClick:X},{default:t(()=>[a(e(Ve),{size:"20"})]),_:1})]),_:1})):S("",!0),b.value.type==="waiting"?(i(),_(e(N),{key:2,placement:"bottom"},{title:t(()=>[f("Start form")]),default:t(()=>[a(e(I),{disabled:!!L.value,onClick:_e},{default:t(()=>[a(e(oa),{size:"20"})]),_:1},8,["disabled"])]),_:1})):S("",!0),a(e(T),{disabled:"",value:xe.value},null,8,["value"]),a(e(N),{placement:"bottom"},{title:t(()=>[f("Edit query params")]),default:t(()=>{var u;return[a(e(I),{disabled:!!b.value&&e(D).includes((u=b.value)==null?void 0:u.type),onClick:l[5]||(l[5]=M=>O.value=!0)},{default:t(()=>[a(e(ia),{size:"20"})]),_:1},8,["disabled"])]}),_:1}),a(e(N),{placement:"bottom"},{title:t(()=>[f("Open in Full Screen")]),default:t(()=>[a(e(I),{target:"_blank","aria-label":"Open in Full Screen","aria-describedby":"sss",disabled:!c.value.attached,onClick:Ce},{default:t(()=>[a(e(sa),{size:"20"})]),_:1},8,["disabled"])]),_:1})]),_:1}),F("div",at,[L.value?(i(),_(e(ba),{key:0,class:"unsaved-changes"},{default:t(()=>[a(e(V),{style:{"font-size":"18px","font-weight":"500"}},{default:t(()=>[f(Q(L.value.title),1)]),_:1}),a(e(V),{style:{"margin-bottom":"6px"}},{default:t(()=>[f(Q(L.value.message),1)]),_:1})]),_:1})):S("",!0),a(na,{class:"center","main-color":d.value.mainColor,background:d.value.theme,"font-family":d.value.fontFamily,locale:d.value.language},{default:t(()=>{var u,M,U,te,le;return[e(s).state.workspace?(i(),_(Te,{key:0,"current-path":e(m).form.path,"hide-login":!0,"runner-data":e(s).state.workspace},null,8,["current-path","runner-data"])):S("",!0),a(He,{"is-preview":"",class:"runner","form-runner-data":d.value,"form-state":b.value,disabled:!!L.value,"user-email":e(k).email,onUpdateWidgetErrors:(u=w.value)==null?void 0:u.updateWidgetFrontendErrors,onUpdateWidgetValue:(M=w.value)==null?void 0:M.updateWidgetValue,onActionClicked:(U=w.value)==null?void 0:U.handleActionClick,onAutoFillClicked:(te=w.value)==null?void 0:te.handleAutofillClick,onAuthComplete:(le=w.value)==null?void 0:le.handleAuthComplete},null,8,["form-runner-data","form-state","disabled","user-email","onUpdateWidgetErrors","onUpdateWidgetValue","onActionClicked","onAutoFillClicked","onAuthComplete"])]}),_:1},8,["main-color","background","font-family","locale"])])]),_:1})):S("",!0),a(Ja,{"query-params":p.value,"onUpdate:queryParams":l[6]||(l[6]=u=>p.value=u),open:O.value,close:()=>O.value=!1},null,8,["query-params","open","close"])]),_:1})):S("",!0)]),_:2},[e(m)?{name:"footer",fn:t(()=>[a(Re,{ref_key:"smartConsole",ref:z,"stage-type":"forms",stage:e(m).form,"log-service":e(Y),workspace:e(m).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});const cl=W(tt,[["__scopeId","data-v-bb8c2324"]]);export{cl as default}; -//# sourceMappingURL=FormEditor.ca445dd9.js.map +import{A as G}from"./api.8656aeba.js";import{P as Te}from"./PlayerNavbar.8e419fbd.js";import{b as Fe,u as Me}from"./workspaceStore.e47060bf.js";import{B as Ie}from"./BaseLayout.52f1acec.js";import{R as Ue,S as Re,E as Ee,a as Le,I as Ve,L as $e}from"./SourceCode.a748d690.js";import{S as Be}from"./SaveButton.a02cacb0.js";import{F as D,a as De,b as He,c as Ne,d as Pe,r as We}from"./FormRunner.8bf9d58d.js";import{d as $,D as H,f as R,o as i,Y as A,$ as ze,S,e8 as Oe,a as F,X as Ze,E as je,c as _,w as t,b as a,u as e,cL as ne,a0 as W,e as C,dd as B,aG as f,cX as se,d9 as V,cz as x,bL as T,cy as ue,aS as ie,em as de,en as pe,bO as oe,bT as I,eb as Qe,dh as P,eo as qe,ea as Ge,aL as Je,g as re,N as Ke,O as Xe,eg as Ye,z as ea,e9 as Q,by as aa,cO as ta,da as la,aW as N,eS as oa}from"./index.d0f12294.js";import{a as ra}from"./asyncComputed.703c33fd.js";import{W as na}from"./PlayerConfigProvider.e5e86f58.js";import{F as sa}from"./PhArrowSquareOut.vue.418ffcff.js";import{G as ua}from"./PhFlowArrow.vue.be952fce.js";import{F as ia}from"./metadata.bc77f4b9.js";import{F as da}from"./forms.ac0b102a.js";import"./editor.95f16260.js";import{W as J}from"./workspaces.e43325e2.js";import{T as pa}from"./ThreadSelector.f3c948bb.js";import{A as ca}from"./index.289665f1.js";import{A as ma}from"./index.a82e0ed1.js";import{N as va}from"./NavbarControls.be646660.js";import{b as fa}from"./index.3b2f4dca.js";import{A as q,T as ga}from"./TabPane.79f4882f.js";import{B as ha}from"./Badge.f6241be2.js";import{A as ba}from"./index.a552d580.js";import{C as ya}from"./Card.2a8fe028.js";import"./fetch.e5ebd511.js";import"./LoadingOutlined.bcfc8c20.js";import"./PhSignOut.vue.6dacf893.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./uuid.f9389d59.js";import"./scripts.9802e877.js";import"./record.8c284c67.js";import"./validations.2475f715.js";import"./string.d9c83adf.js";import"./PhCopy.vue.dfade011.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhCopySimple.vue.6b8fcb49.js";import"./PhCaretRight.vue.5db53029.js";import"./PhBug.vue.33662d9e.js";import"./PhQuestion.vue.f82af3dd.js";import"./polling.c979afd7.js";import"./PhPencil.vue.7418c4e5.js";import"./toggleHighContrast.0eb315ff.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./Login.vue_vue_type_script_setup_true_lang.9976d09a.js";import"./Logo.8f27935a.js";import"./CircularLoading.13413fc4.js";import"./index.c7e8afe7.js";import"./Steps.b72611f7.js";import"./index.2862b277.js";import"./Watermark.32de12c9.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./index.3814eba6.js";import"./CloseCircleOutlined.c0e3f3e1.js";import"./popupNotifcation.a0a6244b.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./PhChats.vue.1b5982bf.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[h]="0287ff04-74dc-4754-bf6b-db264791daf6",g._sentryDebugIdIdentifier="sentry-dbid-0287ff04-74dc-4754-bf6b-db264791daf6")}catch{}})();const _a=["width","height","fill","transform"],ka={key:0},wa=F("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"},null,-1),Sa=[wa],Ca={key:1},xa=F("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Aa=F("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Ta=[xa,Aa],Fa={key:2},Ma=F("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),Ia=[Ma],Ua={key:3},Ra=F("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"},null,-1),Ea=[Ra],La={key:4},Va=F("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},null,-1),$a=[Va],Ba={key:5},Da=F("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"},null,-1),Ha=[Da],Na={name:"PhArrowsClockwise"},Pa=$({...Na,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(g){const h=g,r=H("weight","regular"),k=H("size","1em"),s=H("color","currentColor"),o=H("mirrored",!1),v=R(()=>{var p;return(p=h.weight)!=null?p:r}),w=R(()=>{var p;return(p=h.size)!=null?p:k}),y=R(()=>{var p;return(p=h.color)!=null?p:s}),d=R(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(p,b)=>(i(),A("svg",Oe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:y.value,transform:d.value},p.$attrs),[ze(p.$slots,"default"),v.value==="bold"?(i(),A("g",ka,Sa)):v.value==="duotone"?(i(),A("g",Ca,Ta)):v.value==="fill"?(i(),A("g",Fa,Ia)):v.value==="light"?(i(),A("g",Ua,Ea)):v.value==="regular"?(i(),A("g",La,$a)):v.value==="thin"?(i(),A("g",Ba,Ha)):S("",!0)],16,_a))}}),Wa=$({__name:"ThreadSelectorModal",props:{showThreadModal:{type:Boolean},stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(g,{emit:h}){const r=()=>{h("update:show-thread-modal",!1),J.writeTestData(k.threadData)};Ze(async()=>k.threadData=await J.readTestData());const k=je({threadData:"{}"});return(s,o)=>(i(),_(e(ne),{open:s.showThreadModal,footer:null,onCancel:r},{default:t(()=>[a(pa,{stage:s.stage,"execution-config":s.executionConfig,"onUpdate:executionConfig":o[0]||(o[0]=v=>h("update:execution-config",v)),"onUpdate:showThreadModal":o[1]||(o[1]=v=>h("update:show-thread-modal",v)),onFixInvalidJson:o[2]||(o[2]=v=>h("fix-invalid-json",v,v))},null,8,["stage","execution-config"])]),_:1},8,["open"]))}});const za=W(Wa,[["__scopeId","data-v-24845f55"]]),ce=g=>(de("data-v-b2ed6a6d"),g=g(),pe(),g),Oa=ce(()=>F("i",null,"string",-1)),Za=ce(()=>F("i",null,"string list",-1)),ja=$({__name:"FormNotificationSettings",props:{form:{}},setup(g){const r=C(g.form);return(k,s)=>(i(),A(ie,null,[a(e(ue),{layout:"vertical"},{default:t(()=>[a(e(B),{level:4,width:"100%",height:"30px",style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0px"}},{default:t(()=>[f(" Thread waiting "),a(e(se),{checked:r.value.notificationTrigger.enabled,"onUpdate:checked":s[0]||(s[0]=o=>r.value.notificationTrigger.enabled=o)},{default:t(()=>[f(" Enabled ")]),_:1},8,["checked"])]),_:1}),a(e(V),{class:"description",style:{fontStyle:"italic",marginBottom:"20px"}},{default:t(()=>[f(" Send emails when the thread is waiting for the form to be filled ")]),_:1}),a(e(x),{label:"Variable name"},{default:t(()=>[a(e(T),{value:r.value.notificationTrigger.variable_name,"onUpdate:value":s[1]||(s[1]=o=>r.value.notificationTrigger.variable_name=o),disabled:!r.value.notificationTrigger.enabled,type:"text",placeholder:"variable_name"},null,8,["value","disabled"])]),_:1})]),_:1}),a(e(ca),{type:"info"},{message:t(()=>[a(e(V),null,{default:t(()=>[f(" Notifications are sent to the emails specified in the thread variables set here. The variables should contain a "),Oa,f(" or a "),Za,f(". ")]),_:1})]),_:1})],64))}});const Qa=W(ja,[["__scopeId","data-v-b2ed6a6d"]]),qa=$({__name:"FormSettings",props:{form:{}},setup(g){const r=C(g.form);return(k,s)=>(i(),_(e(ue),{layout:"vertical",class:"form-settings"},{default:t(()=>[a(Ue,{runtime:r.value},null,8,["runtime"]),a(e(x),{label:"Form name"},{default:t(()=>[a(e(T),{value:r.value.title,"onUpdate:value":s[0]||(s[0]=o=>r.value.title=o),type:"text",onChange:s[1]||(s[1]=o=>{var v;return r.value.title=(v=o.target.value)!=null?v:""})},null,8,["value"])]),_:1}),a(e(B),{level:3},{default:t(()=>[f(" Texts ")]),_:1}),a(e(B),{level:4},{default:t(()=>[f(" Welcome Screen ")]),_:1}),a(e(x),{label:"Title"},{default:t(()=>[a(e(T),{value:r.value.welcomeTitle,"onUpdate:value":s[2]||(s[2]=o=>r.value.welcomeTitle=o),type:"text",placeholder:r.value.title,disabled:r.value.autoStart},null,8,["value","placeholder","disabled"])]),_:1}),a(e(x),{label:"Description"},{default:t(()=>[a(e(T),{value:r.value.startMessage,"onUpdate:value":s[3]||(s[3]=o=>r.value.startMessage=o),type:"text",disabled:r.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(x),{label:"Start button label"},{default:t(()=>[a(e(T),{value:r.value.startButtonText,"onUpdate:value":s[4]||(s[4]=o=>r.value.startButtonText=o),type:"text",placeholder:"Start",disabled:r.value.autoStart},null,8,["value","disabled"])]),_:1}),a(e(x),null,{default:t(()=>[a(e(oe),{checked:r.value.autoStart,"onUpdate:checked":s[5]||(s[5]=o=>r.value.autoStart=o)},{default:t(()=>[f("Skip welcome screen")]),_:1},8,["checked"])]),_:1}),a(e(B),{level:4},{default:t(()=>[f(" End Screen ")]),_:1}),a(e(x),{label:"End text"},{default:t(()=>[a(e(T),{value:r.value.endMessage,"onUpdate:value":s[6]||(s[6]=o=>r.value.endMessage=o),type:"text",placeholder:"Thank you"},null,8,["value"])]),_:1}),a(e(x),{label:"Restart button label"},{default:t(()=>[a(e(T),{value:r.value.restartButtonText,"onUpdate:value":s[7]||(s[7]=o=>r.value.restartButtonText=o),placeholder:"Restart",type:"text",disabled:!r.value.allowRestart},null,8,["value","disabled"])]),_:1}),a(e(x),{help:!r.value.isInitial&&"Only initial forms can be restarted"},{default:t(()=>[a(e(oe),{checked:r.value.allowRestart,"onUpdate:checked":s[8]||(s[8]=o=>r.value.allowRestart=o),disabled:!r.value.isInitial},{default:t(()=>[f("Show restart button at the end")]),_:1},8,["checked","disabled"])]),_:1},8,["help"]),a(e(B),{level:4},{default:t(()=>[f(" Alert Messages ")]),_:1}),a(e(x),{label:"Error message"},{default:t(()=>[a(e(T),{value:r.value.errorMessage,"onUpdate:value":s[9]||(s[9]=o=>r.value.errorMessage=o),type:"text",placeholder:"Something went wrong"},null,8,["value"])]),_:1})]),_:1}))}});const Ga=W(qa,[["__scopeId","data-v-aff64cb2"]]),Ja=$({__name:"QueryParamsModal",props:{open:{type:Boolean},close:{type:Function},queryParams:{}},emits:["update:query-params"],setup(g,{emit:h}){const k=C(s(g.queryParams));function s(d){return Object.entries(d).map(([p,b])=>({key:p,value:b,id:Math.random().toString()}))}function o(){const d={};return k.value.forEach(({key:p,value:b})=>{d[p]=b}),d}const v=(d,p,b)=>{k.value[d]={key:p,value:b},h("update:query-params",o())},w=()=>{const d=k.value.length;k.value.push({key:`param-${d}`,value:"value"}),h("update:query-params",o())},y=d=>{k.value.splice(d,1),h("update:query-params",o())};return(d,p)=>(i(),_(e(ne),{open:d.open,onCancel:d.close},{footer:t(()=>[a(e(I),{type:"primary",onClick:d.close},{default:t(()=>[f("OK")]),_:1},8,["onClick"])]),default:t(()=>[a(e(P),{vertical:"",gap:"20"},{default:t(()=>[a(e(V),null,{default:t(()=>[f("Query params")]),_:1}),(i(!0),A(ie,null,Qe(k.value,(b,E)=>(i(),_(e(x),{key:E},{default:t(()=>[a(e(ma),null,{default:t(()=>[a(e(T),{value:b.key,"onUpdate:value":c=>b.key=c,type:"text",placeholder:"name",onChange:()=>v(E,b.key,b.value)},null,8,["value","onUpdate:value","onChange"]),a(e(T),{value:b.value,"onUpdate:value":c=>b.value=c,type:"text",placeholder:"value",disabled:b.key===e(G),onChange:()=>v(E,b.key,b.value)},null,8,["value","onUpdate:value","disabled","onChange"]),a(e(I),{danger:"",onClick:c=>y(E)},{default:t(()=>[f("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(x),null,{default:t(()=>[a(e(I),{type:"dashed",style:{width:"100%"},onClick:w},{default:t(()=>[f(" Add Query Param ")]),_:1})]),_:1})]),_:1})]),_:1},8,["open","onCancel"]))}}),Ka=g=>(de("data-v-bb8c2324"),g=g(),pe(),g),Xa={key:0},Ya={key:1},et=Ka(()=>F("br",null,null,-1)),at={class:"form-preview-container"},tt=$({__name:"FormEditor",setup(g){var ae;const h=qe(),r=Ge(),k=Fe(),s=Me(),o=C(null),v=C("source-code"),w=C(null),y=C(null),d=C(null),p=C({}),b=C(!1),E=n=>c.value={...c.value,attached:!!n},c=C({attached:!1,stageRunId:null,isInitial:!1}),L=R(()=>{var n;return(n=m.value)!=null&&n.form.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:!c.value.isInitial&&c.value.attached&&!c.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),me=(n,l)=>{var u;(u=o.value)==null||u.setHighlight(n,l)},ve=()=>{var n,l;(n=o.value)==null||n.restartEditor(),(l=o.value)==null||l.startPreviewMode()},fe=R(()=>!c.value.isInitial&&c.value.attached&&!c.value.stageRunId);Je(()=>c.value.stageRunId?p.value={...p.value,[G]:c.value.stageRunId}:null);const{result:m,loading:ge,refetch:he}=ra(async()=>{const[n,l]=await Promise.all([da.get(r.params.id),J.get()]);return c.value.isInitial=n.isInitial,ea({form:n,workspace:l})});re([()=>c.value.attached,p,m],()=>{K()});function be(){var l;if(!m.value)return;const n=m.value.form.codeContent;(l=o.value)==null||l.updateLocalEditorCode(n),K()}function K(){if(!m.value)return;const n=!c.value.attached;d.value=m.value.form.makeRunnerData(m.value.workspace),w.value=new Ne({formRunnerData:d.value,logService:Y,connectionManager:new Pe(m.value.form.id,"editor",p.value,n),onFormStart:ve,onFormEnd:ye,onRedirect:Se,onStateUpdate:u=>y.value=u,onStackTraceUpdate:me});const l=w.value.getState();y.value=l.formState}const ye=()=>{var n,l,u;c.value={attached:!1,stageRunId:null,isInitial:(l=(n=m.value)==null?void 0:n.form.isInitial)!=null?l:!1},(u=o.value)==null||u.restartEditor()};function _e(){var n,l;(n=z.value)==null||n.closeConsole(),(l=w.value)==null||l.start()}function X(){var n,l;(n=o.value)==null||n.restartEditor(),(l=w.value)==null||l.resetForm()}function ke(){h.push({name:"stages"})}const z=C(null),we=n=>{!m.value||(m.value.form.file=n)},Y=$e.create();function Se(n,l){We("editor",h,n,l)}const Ce=()=>{var u;let n=`/${(u=m.value)==null?void 0:u.form.path}`;const l=new URLSearchParams(p.value);c.value.attached&&c.value.stageRunId&&l.set(G,c.value.stageRunId),window.open(`${n}?${l.toString()}`,"_blank")},O=C(!1),xe=R(()=>{if(!d.value)return"";const n=Object.entries(p.value),l="?"+n.map(([M,U])=>`${M}=${U}`).join("&"),u=n.length?l:"";return`/${d.value.path}${u}`}),ee=new Ke(Xe.boolean(),"dontShowReloadHelper"),Z=C((ae=ee.get())!=null?ae:!1),Ae=()=>{ee.set(!0),Z.value=!0};re(()=>r.params.id,()=>{he()});const j=n=>{var l;return n!==v.value&&((l=m.value)==null?void 0:l.form.hasChanges())};return(n,l)=>(i(),_(Ie,null,Ye({navbar:t(()=>[e(m)?(i(),_(e(fa),{key:0,title:e(m).form.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:ke},{extra:t(()=>[a(va,{"docs-path":"concepts/forms","editing-model":e(m).form},null,8,["editing-model"])]),_:1},8,["title"])):S("",!0)]),content:t(()=>[e(m)?(i(),_(Ee,{key:0},{left:t(()=>[a(e(ga),{"active-key":v.value,"onUpdate:activeKey":l[0]||(l[0]=u=>v.value=u)},{rightExtra:t(()=>[a(Be,{model:e(m).form,onSave:be},null,8,["model"])]),default:t(()=>[a(e(q),{key:"source-code",tab:"Source code",disabled:j("source-code")},null,8,["disabled"]),a(e(q),{key:"settings",tab:"Settings",disabled:j("settings")},null,8,["disabled"]),a(e(q),{key:"notifications",tab:"Notifications",disabled:j("notifications")},null,8,["disabled"])]),_:1},8,["active-key"]),v.value==="source-code"?(i(),_(Le,{key:0,ref_key:"code",ref:o,script:e(m).form,workspace:e(m).workspace,onUpdateFile:we},null,8,["script","workspace"])):S("",!0),v.value==="settings"?(i(),_(Ga,{key:1,form:e(m).form},null,8,["form"])):S("",!0),v.value==="notifications"?(i(),_(Qa,{key:2,form:e(m).form},null,8,["form"])):S("",!0),b.value?(i(),_(za,{key:3,"execution-config":c.value,"onUpdate:executionConfig":l[1]||(l[1]=u=>c.value=u),"show-thread-modal":b.value,"onUpdate:showThreadModal":l[2]||(l[2]=u=>b.value=u),stage:e(m).form,onFixInvalidJson:l[3]||(l[3]=(u,M)=>{var U;return(U=z.value)==null?void 0:U.fixJson(u,M)})},null,8,["execution-config","show-thread-modal","stage"])):S("",!0)]),right:t(()=>[a(e(P),{gap:"10",align:"center",justify:"right",style:{"margin-top":"6px"}},{default:t(()=>{var u;return[a(e(V),null,{default:t(()=>[f(Q(c.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(se),{disabled:!!y.value&&e(D).includes((u=y.value)==null?void 0:u.type),checked:c.value.attached,"onUpdate:checked":E},null,8,["disabled","checked"]),a(e(ha),{dot:fe.value},{default:t(()=>{var M;return[a(e(I),{disabled:!!y.value&&e(D).includes((M=y.value)==null?void 0:M.type),style:{display:"flex",gap:"5px"},onClick:l[4]||(l[4]=U=>b.value=!0)},{icon:t(()=>[a(e(ua),{size:"20"})]),default:t(()=>[f("Thread")]),_:1},8,["disabled"])]}),_:1},8,["dot"])]}),_:1}),a(e(ba),{style:{margin:"7px 0px 16px"}}),e(ge)||!d.value||!y.value?(i(),_(e(aa),{key:0})):S("",!0),y.value&&d.value?(i(),_(e(P),{key:1,vertical:"",gap:"10",style:{height:"100%",overflow:"hidden"}},{default:t(()=>[a(e(P),{gap:"small"},{default:t(()=>[y.value.type&&e(De).includes(y.value.type)?(i(),_(e(ta),{key:0,placement:"bottom",open:Z.value?void 0:!0},{content:t(()=>[Z.value?(i(),A("span",Xa,"Reload form")):(i(),A("span",Ya,[f(" You can reload the form here"),et,a(e(la),{onClick:Ae},{default:t(()=>[f("Don't show this again")]),_:1})]))]),default:t(()=>[a(e(I),{disabled:!!L.value,onClick:X},{default:t(()=>[a(e(Pa),{size:"20"})]),_:1},8,["disabled"])]),_:1},8,["open"])):S("",!0),e(D).includes(y.value.type)?(i(),_(e(N),{key:1,placement:"bottom"},{title:t(()=>[f("Stop form")]),default:t(()=>[a(e(I),{onClick:X},{default:t(()=>[a(e(Ve),{size:"20"})]),_:1})]),_:1})):S("",!0),y.value.type==="waiting"?(i(),_(e(N),{key:2,placement:"bottom"},{title:t(()=>[f("Start form")]),default:t(()=>[a(e(I),{disabled:!!L.value,onClick:_e},{default:t(()=>[a(e(oa),{size:"20"})]),_:1},8,["disabled"])]),_:1})):S("",!0),a(e(T),{disabled:"",value:xe.value},null,8,["value"]),a(e(N),{placement:"bottom"},{title:t(()=>[f("Edit query params")]),default:t(()=>{var u;return[a(e(I),{disabled:!!y.value&&e(D).includes((u=y.value)==null?void 0:u.type),onClick:l[5]||(l[5]=M=>O.value=!0)},{default:t(()=>[a(e(ia),{size:"20"})]),_:1},8,["disabled"])]}),_:1}),a(e(N),{placement:"bottom"},{title:t(()=>[f("Open in Full Screen")]),default:t(()=>[a(e(I),{target:"_blank","aria-label":"Open in Full Screen","aria-describedby":"sss",disabled:!c.value.attached,onClick:Ce},{default:t(()=>[a(e(sa),{size:"20"})]),_:1},8,["disabled"])]),_:1})]),_:1}),F("div",at,[L.value?(i(),_(e(ya),{key:0,class:"unsaved-changes"},{default:t(()=>[a(e(V),{style:{"font-size":"18px","font-weight":"500"}},{default:t(()=>[f(Q(L.value.title),1)]),_:1}),a(e(V),{style:{"margin-bottom":"6px"}},{default:t(()=>[f(Q(L.value.message),1)]),_:1})]),_:1})):S("",!0),a(na,{class:"center","main-color":d.value.mainColor,background:d.value.theme,"font-family":d.value.fontFamily,locale:d.value.language},{default:t(()=>{var u,M,U,te,le;return[e(s).state.workspace?(i(),_(Te,{key:0,"current-path":e(m).form.path,"hide-login":!0,"runner-data":e(s).state.workspace},null,8,["current-path","runner-data"])):S("",!0),a(He,{"is-preview":"",class:"runner","form-runner-data":d.value,"form-state":y.value,disabled:!!L.value,"user-email":e(k).email,onUpdateWidgetErrors:(u=w.value)==null?void 0:u.updateWidgetFrontendErrors,onUpdateWidgetValue:(M=w.value)==null?void 0:M.updateWidgetValue,onActionClicked:(U=w.value)==null?void 0:U.handleActionClick,onAutoFillClicked:(te=w.value)==null?void 0:te.handleAutofillClick,onAuthComplete:(le=w.value)==null?void 0:le.handleAuthComplete},null,8,["form-runner-data","form-state","disabled","user-email","onUpdateWidgetErrors","onUpdateWidgetValue","onActionClicked","onAutoFillClicked","onAuthComplete"])]}),_:1},8,["main-color","background","font-family","locale"])])]),_:1})):S("",!0),a(Ja,{"query-params":p.value,"onUpdate:queryParams":l[6]||(l[6]=u=>p.value=u),open:O.value,close:()=>O.value=!1},null,8,["query-params","open","close"])]),_:1})):S("",!0)]),_:2},[e(m)?{name:"footer",fn:t(()=>[a(Re,{ref_key:"smartConsole",ref:z,"stage-type":"forms",stage:e(m).form,"log-service":e(Y),workspace:e(m).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});const cl=W(tt,[["__scopeId","data-v-bb8c2324"]]);export{cl as default}; +//# sourceMappingURL=FormEditor.771039c7.js.map diff --git a/abstra_statics/dist/assets/FormRunner.b9a7fe60.js b/abstra_statics/dist/assets/FormRunner.8bf9d58d.js similarity index 97% rename from abstra_statics/dist/assets/FormRunner.b9a7fe60.js rename to abstra_statics/dist/assets/FormRunner.8bf9d58d.js index 994f44e7f8..1a87c7ad99 100644 --- a/abstra_statics/dist/assets/FormRunner.b9a7fe60.js +++ b/abstra_statics/dist/assets/FormRunner.8bf9d58d.js @@ -1,2 +1,2 @@ -var R=Object.defineProperty;var A=(r,e,t)=>e in r?R(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var o=(r,e,t)=>(A(r,typeof e!="symbol"?e+"":e,t),t);import{i as isUrl}from"./url.e93ecf3f.js";import{d as defineComponent,D as inject,f as computed,o as openBlock,Y as createElementBlock,$ as renderSlot,S as createCommentVNode,e8 as mergeProps,a as createBaseVNode,ej as lodash,eV as i18nProvider,e9 as toDisplayString,u as unref,c as createBlock,ec as resolveDynamicComponent,a0 as _export_sfc,w as withCtx,aG as createTextVNode,e as ref,g as watch,b as createVNode,ed as normalizeClass,eW as StartWidget,eX as EndWidget,eY as ErrorWidget,aS as Fragment,eb as renderList,eZ as StyleProvider,eU as withKeys,bT as Button}from"./index.8c3f27aa.js";import{b as useUserStore}from"./workspaceStore.a6063d10.js";import{_ as _sfc_main$4}from"./Login.vue_vue_type_script_setup_true_lang.4f858dcf.js";import{L as LoadingIndicator}from"./CircularLoading.fdcc1083.js";import{S as Steps}from"./Steps.526dbd54.js";import{W as Watermark}from"./Watermark.41d3e1ab.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="deec0ac9-ffac-46d5-8324-18314b157a33",r._sentryDebugIdIdentifier="sentry-dbid-deec0ac9-ffac-46d5-8324-18314b157a33")}catch{}})();const Z=["width","height","fill","transform"],g={key:0},m=createBaseVNode("path",{d:"M112,36a12,12,0,0,0-12,12V60H24A20,20,0,0,0,4,80v96a20,20,0,0,0,20,20h76v12a12,12,0,0,0,24,0V48A12,12,0,0,0,112,36ZM28,172V84h72v88ZM252,80v96a20,20,0,0,1-20,20H152a12,12,0,0,1,0-24h76V84H152a12,12,0,0,1,0-24h80A20,20,0,0,1,252,80ZM88,112a12,12,0,0,1-12,12v20a12,12,0,0,1-24,0V124a12,12,0,0,1,0-24H76A12,12,0,0,1,88,112Z"},null,-1),y=[m],f={key:1},w=createBaseVNode("path",{d:"M240,80v96a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H232A8,8,0,0,1,240,80Z",opacity:"0.2"},null,-1),k=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),x=[w,k],S={key:2},z=createBaseVNode("path",{d:"M248,80v96a16,16,0,0,1-16,16H140a4,4,0,0,1-4-4V68a4,4,0,0,1,4-4h92A16,16,0,0,1,248,80ZM120,48V208a8,8,0,0,1-16,0V192H24A16,16,0,0,1,8,176V80A16,16,0,0,1,24,64h80V48a8,8,0,0,1,16,0ZM88,112a8,8,0,0,0-8-8H48a8,8,0,0,0,0,16h8v24a8,8,0,0,0,16,0V120h8A8,8,0,0,0,88,112Z"},null,-1),C=[z],B={key:3},b=createBaseVNode("path",{d:"M112,42a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80v96a14,14,0,0,0,14,14h82v18a6,6,0,0,0,12,0V48A6,6,0,0,0,112,42ZM24,178a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h82V178ZM246,80v96a14,14,0,0,1-14,14H144a6,6,0,0,1,0-12h88a2,2,0,0,0,2-2V80a2,2,0,0,0-2-2H144a6,6,0,0,1,0-12h88A14,14,0,0,1,246,80ZM86,112a6,6,0,0,1-6,6H70v26a6,6,0,0,1-12,0V118H48a6,6,0,0,1,0-12H80A6,6,0,0,1,86,112Z"},null,-1),N=[b],E={key:4},P=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),W=[P],$={key:5},j=createBaseVNode("path",{d:"M112,44a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80v96a12,12,0,0,0,12,12h84v20a4,4,0,0,0,8,0V48A4,4,0,0,0,112,44ZM24,180a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h84V180ZM244,80v96a12,12,0,0,1-12,12H144a4,4,0,0,1,0-8h88a4,4,0,0,0,4-4V80a4,4,0,0,0-4-4H144a4,4,0,0,1,0-8h88A12,12,0,0,1,244,80ZM84,112a4,4,0,0,1-4,4H68v28a4,4,0,0,1-8,0V116H48a4,4,0,0,1,0-8H80A4,4,0,0,1,84,112Z"},null,-1),T=[j],q={name:"PhTextbox"},G=defineComponent({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,t=inject("weight","regular"),a=inject("size","1em"),s=inject("color","currentColor"),l=inject("mirrored",!1),d=computed(()=>{var u;return(u=e.weight)!=null?u:t}),n=computed(()=>{var u;return(u=e.size)!=null?u:a}),c=computed(()=>{var u;return(u=e.color)!=null?u:s}),h=computed(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(u,v)=>(openBlock(),createElementBlock("svg",mergeProps({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:c.value,transform:h.value},u.$attrs),[renderSlot(u.$slots,"default"),d.value==="bold"?(openBlock(),createElementBlock("g",g,y)):d.value==="duotone"?(openBlock(),createElementBlock("g",f,x)):d.value==="fill"?(openBlock(),createElementBlock("g",S,C)):d.value==="light"?(openBlock(),createElementBlock("g",B,N)):d.value==="regular"?(openBlock(),createElementBlock("g",E,W)):d.value==="thin"?(openBlock(),createElementBlock("g",$,T)):createCommentVNode("",!0)],16,Z))}});function normalizePath(r){return r.startsWith("/")?r.slice(1):r}async function redirect(r,e,t,a={}){if(isUrl(t)){const s=new URLSearchParams(a),l=new URL(t);l.search=s.toString(),window.location.href=l.toString()}else{const s=t.replace(/\/$/,"");if(r==="player")await e.push({path:"/"+normalizePath(s),query:a});else if(r==="editor")await e.push({name:"formEditor",params:{formPath:normalizePath(s)},query:a});else if(r==="preview")await e.push({name:"formPreview",params:{formPath:normalizePath(s)},query:a});else throw new Error("Invalid routing")}}const WS_CLOSING_STATES=[WebSocket.CLOSING,WebSocket.CLOSED],WS_CUSTOM_CLOSING_REASONS={FRONTEND_FORM_RESTART:4e3};class FormConnectionManager{constructor(e,t,a,s){o(this,"ws",null);o(this,"heartbeatInterval");o(this,"onOpen",null);o(this,"onMessage",null);o(this,"onClose",null);this.formId=e,this.environment=t,this.userQueryParams=a,this._detached=s}set detached(e){this._detached=e}get url(){const e=location.protocol==="https:"?"wss:":"ws:",t=this.environment=="editor"?"_editor/api/forms/socket":"_socket",a=new URLSearchParams({id:this.formId,detached:this._detached?"true":"false",...this.userQueryParams});return`${e}//${location.host}/${t}?${a}`}handleOpen(e){if(!this.onOpen)throw new Error("onOpen is not set");this.onOpen(),e()}handleClose(e){(e.code===1006||!e.wasClean)&&clearInterval(this.heartbeatInterval),this.onClose&&this.onClose(e)}handleMessage(e){if(!this.onMessage)throw new Error("onMessage is not set");const t=JSON.parse(e.data);this.onMessage(t)}sendHeartbeat(){!this.ws||this.ws.readyState!==this.ws.OPEN||this.send({type:"execution:heartbeat"})}async send(e){if(!this.ws)throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not connected`);WS_CLOSING_STATES.includes(this.ws.readyState)&&await this.newConnection(),this.ws.send(JSON.stringify(e))}async close(e){this.ws&&this.ws.close(WS_CUSTOM_CLOSING_REASONS[e],e)}async newConnection(e=3,t){if(e!=0)return new Promise(a=>{clearInterval(this.heartbeatInterval),this.ws=new WebSocket(this.url,t),this.ws.onopen=()=>this.handleOpen(a),this.ws.onclose=s=>this.handleClose(s),this.ws.onmessage=s=>this.handleMessage(s),this.heartbeatInterval=setInterval(()=>this.sendHeartbeat(),2e3)}).catch(()=>{this.newConnection(e-1)})}isEditorConnection(){return this.environment==="editor"}}function isInputWidget(r){return"key"in r&&"value"in r&&"errors"in r}const executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(r){throw console.error(`[Error: execute_js]: ${r.message}, context: ${$context}`),r}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(r){return{type:"execute-js:response",value:await executeCode(r.context,r.code)}}const isSerializable=r=>{try{return JSON.stringify(r),!0}catch{return!1}},FORM_END_STATES=["default-end","page-end","error","lock-failed"],FORM_RUNNING_STATES=["authenticating","page","loading"];class FormRunnerController{constructor({formRunnerData:e,logService:t,connectionManager:a,onFormStart:s,onFormEnd:l,onRedirect:d,onStateUpdate:n,onStackTraceUpdate:c}){o(this,"connectionManager");o(this,"logService");o(this,"formRunnerData");o(this,"formState");o(this,"messageSeq",0);o(this,"executionId",null);o(this,"onFormStart");o(this,"onFormEnd");o(this,"onRedirect");o(this,"onStackTraceUpdate");o(this,"onStateUpdate");o(this,"userStore");o(this,"responseHistory",[]);o(this,"lastResponseHistory",[]);o(this,"handlers",{"execution:lock-failed":[e=>this.handleExecutionLockFailedMessage(e)],"execution:started":[e=>this.handleExecutionStartedMessage(e)],"execution:ended":[e=>this.handleExecutionEndedMessage(e)],"form:mount-page":[e=>this.handleMountPageMessage(e)],"form:update-page":[e=>this.handleUpdatePageMessage(e)],"auth:require-info":[e=>this.handleAuthRequireInfoMessage(e)],"auth:invalid-jwt":[e=>this.handleAuthInvalidJWTMessage(e)],"auth:valid-jwt":[e=>this.handleAuthValidTokenMessage(e)],"redirect:request":[e=>this.handleRedirectRequestMessage(e)],"execute-js:request":[e=>this.handleExecuteJSRequestMessage(e)]});o(this,"start",async()=>{this.setFormState({type:"loading"}),await this.connectionManager.newConnection(3,this.userStore.wsAuthHeaders)});o(this,"resetForm",async()=>{var e;(e=this.logService)==null||e.log({type:"stdout",log:"[Form reloaded]"}),await this.connectionManager.close("FRONTEND_FORM_RESTART"),this.resetState()});o(this,"reconnect",async()=>{this.resetState(),await this.start()});o(this,"resetState",()=>{this.messageSeq=0,this.setFormState({type:"waiting",actions:[this.getStartAction()]})});o(this,"startPageLoading",()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.formState.actions.some(e=>e.loading)||this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!0}))})});o(this,"debouncedFinishPageLoading",lodash.exports.debounce(()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!1}))})},500));o(this,"getStartAction",()=>this.actionFromMessage(this.formRunnerData.startButtonText||i18nProvider.translateIfFound("i18n_start_action",this.formRunnerData.language)));o(this,"getEndStateActions",()=>{const e=this.formRunnerData.restartButtonText||i18nProvider.translateIfFound("i18n_restart_action",this.formRunnerData.language);return this.formRunnerData.allowRestart?[this.actionFromMessage(e)]:[]});o(this,"getState",()=>({formState:this.formState}));o(this,"handleConnectionOpen",()=>{this.connectionManager.send({type:"execution:start"})});o(this,"widgetFromMessage",(e,t)=>{if(isInputWidget(e)){const a=e.errors.map(s=>i18nProvider.translateIfFound(s,this.formRunnerData.language,e));return{...e,input:!0,_pythonErrors:a,errors:a}}return{...e,input:!1,_pythonErrors:[],errors:[],key:e.type+t}});o(this,"actionFromMessage",e=>({name:e,label:i18nProvider.translateIfFound(e,this.formRunnerData.language,this.formRunnerData),disabled:!1,loading:!1}));o(this,"getAutofillVisibilty",e=>this.lastResponseHistory.length===0?!1:this.lastResponseHistory[0].some(t=>e.find(a=>a.key===t.key&&a.type===t.type&&"value"in a)));o(this,"handleAutofillClick",()=>{!this.lastResponseHistory[0]||this.formState.type==="page"&&(this.lastResponseHistory[0].forEach(t=>{!("widgets"in this.formState&&this.formState.widgets.find(s=>s.key===t.key&&s.type===t.type))||"value"in t&&this.updateWidgetValue(t.key,t.value)}),this.setFormState({...this.formState,showAutofill:!1}))});o(this,"handleAuthComplete",e=>{e&&this.formState.type==="authenticating"&&this.sendAuthSavedJWT(e)});o(this,"handleMessageReceived",e=>{const t=this.handlers[e.type];if(!t)throw new Error(`No handler for message type ${e.type}`);if(t.forEach(a=>a(e)),e.debug&&this.onStackTraceUpdate){const a=e.type==="execution:ended";this.onStackTraceUpdate(e.debug.stack,a)}});o(this,"handleActionClick",e=>{if(this.formState.type==="waiting")return this.start();if(this.formState.type==="page"){const t=e.name==="i18n_back_action";return this.hasErrors()&&!t?void 0:(this.setFormState({...this.formState,actions:this.formState.actions.map(a=>a.label===e.label?{...a,loading:!0}:a)}),this.lastResponseHistory.shift(),this.responseHistory.push(this.formState.widgets),this.sendFormPageResponse(this.getWidgetValues(),e))}if(this.formState.type==="default-end"||this.formState.type==="page-end")return this.setFormState({...this.formState,actions:[{...this.getStartAction(),loading:!0}]}),this.start()});o(this,"updateWidgetValue",(e,t)=>{if(this.formState.type!=="page")return;const a=this.formState.widgets.find(l=>"key"in l&&l.key===e);if(!a||!isInputWidget(a))return;const s=this.formState.widgets.map(l=>l.key===e?{...l,value:t}:l);this.setFormState({...this.formState,widgets:s}),this.sendFormUserEvent(this.getWidgetValues(),this.getSecrets())});o(this,"updateWidgetFrontendErrors",(e,t)=>{if(this.formState.type!=="page"||!this.formState.widgets.find(l=>l.key===e))return;const s=this.formState.widgets.map(l=>l.key===e?{...l,errors:l._pythonErrors.concat(t.map(d=>i18nProvider.translateIfFound(d,this.formRunnerData.language,l)))}:l);this.setFormState({...this.formState,widgets:s})});if(this.formRunnerData=e,this.logService=t,this.connectionManager=a,this.onFormStart=s,this.onFormEnd=l,this.onRedirect=d,this.onStateUpdate=n,this.onStackTraceUpdate=c,this.userStore=useUserStore(),this.connectionManager.onOpen=()=>this.handleConnectionOpen(),this.connectionManager.onMessage=h=>this.handleMessageReceived(h),this.connectionManager.onClose=h=>this.handleConnectionClose(h),this.formRunnerData.autoStart&&!this.connectionManager.isEditorConnection()){this.formState={type:"loading"},this.start();return}this.formState={type:"waiting",actions:[this.getStartAction()]}}set detached(e){this.connectionManager.detached=e}fullWidthFromMessage(e){return e.some(t=>"fullWidth"in t&&t.fullWidth)}async handleExecutionStartedMessage(e){this.executionId=e.executionId,this.onFormStart()}handleMountPageMessage(e){var a,s;const t=e.widgets.map(this.widgetFromMessage);if(e.endProgram){this.setFormState({type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)});return}this.setFormState({type:"page",widgets:t,actions:(s=(a=e.actions)==null?void 0:a.map(this.actionFromMessage))!=null?s:[],fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)})}async handleExecuteJSRequestMessage(e){const t=await executeJs(e);this.connectionManager.send(t)}async handleAuthRequireInfoMessage(e){const{jwt:t,isJWTValid:a}=this.userStore;if(t&&a()&&!e.refresh){this.sendAuthSavedJWT(t);return}this.setFormState({type:"authenticating"})}async handleAuthInvalidJWTMessage(e){this.setFormState({type:"authenticating"})}async handleAuthValidTokenMessage(e){}async handleExecutionLockFailedMessage(e){this.setFormState({type:"lock-failed"})}async handleRedirectRequestMessage(e){this.onRedirect(e.url,e.queryParams)}async handleUpdatePageMessage(e){if(e.seq===this.messageSeq){if(this.formState.type!=="page")throw new Error("Received form:update-page message while not in render-page state");this.setFormState({...this.formState,error:{message:e.validation.message,status:e.validation.status},widgets:e.widgets.map(this.widgetFromMessage),actions:this.formState.actions.map(t=>({...t,disabled:this.shouldDisableAction(t,e)}))}),this.debouncedFinishPageLoading()}}shouldDisableAction(e,t){if(e.name==="i18n_back_action"||this.formState.type!=="page")return!1;const s=t.widgets.map(this.widgetFromMessage).some(d=>d.errors.length>0),l=t.validation.status===!1||Boolean(t.validation.message);return s||l}async handleExecutionEndedMessage(e){var t;this.lastResponseHistory=[...this.responseHistory],this.responseHistory=[],!FORM_END_STATES.includes(this.formState.type)&&(e.exitStatus==="SUCCESS"&&(this.setFormState({type:"default-end",actions:this.getEndStateActions()}),(t=this.logService)==null||t.log({type:"stdout",log:"[Form run finished]"})),e.exitStatus==="EXCEPTION"&&this.setFormState({type:"error",message:e.exception,executionId:this.executionId}),this.onFormEnd())}sendFormPageResponse(e,t,a){this.connectionManager.send({type:"form:page-response",payload:e,secrets:a,action:t==null?void 0:t.name,seq:++this.messageSeq})}sendFormUserEvent(e,t){this.startPageLoading(),this.connectionManager.send({type:"form:user-event",payload:e,secrets:t,seq:++this.messageSeq})}sendAuthSavedJWT(e){this.connectionManager.send({type:"auth:saved-jwt",jwt:e})}handleCloseAttempt(){return FORM_END_STATES.includes(this.formState.type)||this.formState.type==="waiting"?!1:(this.connectionManager.send({type:"debug:close-attempt"}),!0)}handleConnectionClose(e){e.code!==WS_CUSTOM_CLOSING_REASONS.FRONTEND_FORM_RESTART&&FORM_RUNNING_STATES.includes(this.formState.type)&&this.reconnect()}setFormState(e){this.formState=Object.freeze(e),this.onStateUpdate(e)}getSecrets(){return this.formState.type!=="page"?[]:this.formState.widgets.filter(e=>"secret"in e).reduce((e,t)=>"key"in t&&"secret"in t?[...e,{key:t.key,secret:t.secret}]:e,[])}setWidgetValidationFunction(e,t){if(this.formState.type!=="page")return;const a=this.formState.widgets.find(s=>"key"in s&&s.key===e);!a||!isInputWidget(a)||(a.validationFunction=t)}hasErrors(){var e;return this.formState.type!=="page"?!1:((e=this.formState.error)==null?void 0:e.status)===!1||this.formState.widgets.some(t=>t.errors.length>0)}getWidgetValue(e){if(this.formState.type!=="page")return null;const t=this.formState.widgets.find(a=>"key"in a&&a.key===e);if(!t||!isInputWidget(t))return null}getWidgetValues(){return this.formState.type!=="page"?{}:this.formState.widgets.reduce((e,t)=>("value"in t&&(e[t.key]=t.value),e),{})}}const _hoisted_1$2={class:"text"},_sfc_main$3=defineComponent({__name:"component",props:{locale:{}},setup(r){return(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$2,toDisplayString(unref(i18nProvider).translate("i18n_lock_failed_not_running",e.locale)),1))}}),_hoisted_1$1={class:"outline-button"},_sfc_main$2=defineComponent({__name:"OutlineButton",props:{icon:{},noShadow:{type:Boolean},status:{}},setup(r){return(e,t)=>(openBlock(),createElementBlock("button",_hoisted_1$1,[e.icon?(openBlock(),createBlock(resolveDynamicComponent(e.icon),{key:0,class:"icon",color:"#fff"})):createCommentVNode("",!0),renderSlot(e.$slots,"default",{},void 0,!0)]))}}),OutlineButton_vue_vue_type_style_index_0_scoped_2d3b9e41_lang="",OutlineButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-2d3b9e41"]]),_sfc_main$1=defineComponent({__name:"FormAutoFill",emits:["click"],setup(r,{emit:e}){return(t,a)=>(openBlock(),createBlock(OutlineButton,{icon:unref(G),class:"form-auto-fill-btn",onClick:a[0]||(a[0]=s=>e("click"))},{default:withCtx(()=>[createTextVNode(" Repeat last answer ")]),_:1},8,["icon"]))}}),FormAutoFill_vue_vue_type_style_index_0_scoped_39354e61_lang="",FormAutoFill=_export_sfc(_sfc_main$1,[["__scopeId","data-v-39354e61"]]),_hoisted_1={class:"center"},_hoisted_2={key:0,class:"loading-wrapper"},_hoisted_3={class:"form-wrapper"},_hoisted_4=["id"],_hoisted_5={key:5,class:"span-error"},_hoisted_6={key:0,class:"buttons"},_sfc_main=defineComponent({__name:"FormRunner",props:{formRunnerData:{},formState:{},isPreview:{type:Boolean},disabled:{type:Boolean}},emits:["action-clicked","auto-fill-clicked","update-widget-value","update-widget-errors","auth-complete"],setup(r,{emit:e}){const t=r,a=ref(null),s=ref({}),l=()=>{!a.value||(a.value.scrollTop=0)};watch(()=>t.formState,(n,c)=>{n.type==="page"&&(c==null?void 0:c.type)==="page"&&n.refreshKey!==c.refreshKey&&l()});const d=()=>{var n,c;return((n=t.formState)==null?void 0:n.type)==="page"?t.formState.fullWidth:((c=t.formState)==null?void 0:c.type)==="page-end"?t.formState.fullWidth&&t.formState.widgets.length>0:!1};return(n,c)=>{var h,u,v,M;return openBlock(),createElementBlock("div",_hoisted_1,[n.isPreview&&((h=n.formState)==null?void 0:h.type)==="page"&&n.formState.showAutofill?(openBlock(),createBlock(FormAutoFill,{key:0,class:"auto-fill-btn",form:n.formRunnerData,style:{"z-index":1},onClick:c[0]||(c[0]=i=>e("auto-fill-clicked"))},null,8,["form"])):createCommentVNode("",!0),((u=n.formState)==null?void 0:u.type)==="page"?(openBlock(),createBlock(Steps,{key:1,"steps-info":n.formState.steps},null,8,["steps-info"])):createCommentVNode("",!0),createBaseVNode("main",{ref_key:"scrollableContainer",ref:a,class:normalizeClass([{disabled:n.disabled}]),style:{padding:"50px 0px","box-sizing":"border-box"}},[!n.formState||n.formState.type=="loading"?(openBlock(),createElementBlock("div",_hoisted_2,[createVNode(LoadingIndicator)])):n.formState.type==="authenticating"?(openBlock(),createBlock(_sfc_main$4,{key:1,locale:n.formRunnerData.language,"logo-url":(v=n.formRunnerData.logoUrl)!=null?v:void 0,"brand-name":(M=n.formRunnerData.brandName)!=null?M:void 0,onDone:c[1]||(c[1]=i=>e("auth-complete",i))},null,8,["locale","logo-url","brand-name"])):(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["form",{"full-width":d()}])},[createBaseVNode("div",_hoisted_3,[n.formState.type==="waiting"?(openBlock(),createBlock(StartWidget,{key:0,form:n.formRunnerData},null,8,["form"])):n.formState.type==="default-end"?(openBlock(),createBlock(EndWidget,{key:1,"end-message":n.formRunnerData.endMessage,locale:n.formRunnerData.language},null,8,["end-message","locale"])):n.formState.type==="error"?(openBlock(),createBlock(ErrorWidget,{key:2,"error-message":n.formRunnerData.errorMessage,"execution-id":n.formState.executionId,locale:n.formRunnerData.language},null,8,["error-message","execution-id","locale"])):n.formState.type==="lock-failed"?(openBlock(),createBlock(_sfc_main$3,{key:3,locale:n.formRunnerData.language},null,8,["locale"])):(openBlock(!0),createElementBlock(Fragment,{key:4},renderList(n.formState.widgets,(i,_)=>{var F;return openBlock(),createElementBlock("div",{id:i.type+_,key:(F=i.key)!=null?F:i.type+_,class:"widget"},[(openBlock(),createBlock(resolveDynamicComponent(i.type),{ref_for:!0,ref:p=>"key"in i?s.value[i.key]=p:null,key:i.key+"_"+n.formState.refreshKey,value:unref(isInputWidget)(i)&&i.value,errors:i.errors,"user-props":i,locale:n.formRunnerData.language,"onUpdate:value":p=>e("update-widget-value",i.key,p),"onUpdate:errors":p=>e("update-widget-errors",i.key,p)},null,40,["value","errors","user-props","locale","onUpdate:value","onUpdate:errors"])),(openBlock(!0),createElementBlock(Fragment,null,renderList(i.errors,p=>(openBlock(),createElementBlock("span",{key:p,class:"span-error"},toDisplayString(p),1))),128))],8,_hoisted_4)}),128)),n.formState.type==="page"&&n.formState.error&&n.formState.error.status===!1?(openBlock(),createElementBlock("span",_hoisted_5,toDisplayString(n.formState.error.message||unref(i18nProvider).translateIfFound("i18n_generic_validation_error",n.formRunnerData.language)),1)):createCommentVNode("",!0)]),"actions"in n.formState?(openBlock(),createElementBlock("div",_hoisted_6,[createVNode(unref(StyleProvider),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.formState.actions,i=>(openBlock(),createBlock(unref(Button),{key:i.name,class:normalizeClass(["next-button",{"next-button__disabled":i.disabled||i.loading}]),loading:i.loading,disabled:i.disabled||i.loading,onClick:_=>e("action-clicked",i),onKeydown:withKeys(_=>e("action-clicked",i),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(i.label),1)]),_:2},1032,["class","loading","disabled","onClick","onKeydown"]))),128))]),_:1})])):createCommentVNode("",!0)],2))],2),createVNode(Watermark,{"page-id":n.formRunnerData.id,locale:n.formRunnerData.language},null,8,["page-id","locale"])])}}}),FormRunner_vue_vue_type_style_index_0_scoped_838a6001_lang="",FormRunner=_export_sfc(_sfc_main,[["__scopeId","data-v-838a6001"]]);export{FORM_RUNNING_STATES as F,FORM_END_STATES as a,FormRunner as b,FormRunnerController as c,FormConnectionManager as d,redirect as r}; -//# sourceMappingURL=FormRunner.b9a7fe60.js.map +var R=Object.defineProperty;var A=(r,e,t)=>e in r?R(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var o=(r,e,t)=>(A(r,typeof e!="symbol"?e+"":e,t),t);import{i as isUrl}from"./url.121c9984.js";import{d as defineComponent,D as inject,f as computed,o as openBlock,Y as createElementBlock,$ as renderSlot,S as createCommentVNode,e8 as mergeProps,a as createBaseVNode,ej as lodash,eV as i18nProvider,e9 as toDisplayString,u as unref,c as createBlock,ec as resolveDynamicComponent,a0 as _export_sfc,w as withCtx,aG as createTextVNode,e as ref,g as watch,b as createVNode,ed as normalizeClass,eW as StartWidget,eX as EndWidget,eY as ErrorWidget,aS as Fragment,eb as renderList,eZ as StyleProvider,eU as withKeys,bT as Button}from"./index.d0f12294.js";import{b as useUserStore}from"./workspaceStore.e47060bf.js";import{_ as _sfc_main$4}from"./Login.vue_vue_type_script_setup_true_lang.9976d09a.js";import{L as LoadingIndicator}from"./CircularLoading.13413fc4.js";import{S as Steps}from"./Steps.b72611f7.js";import{W as Watermark}from"./Watermark.32de12c9.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="bd700e2c-7c6e-4792-90bc-4aa33efa12d9",r._sentryDebugIdIdentifier="sentry-dbid-bd700e2c-7c6e-4792-90bc-4aa33efa12d9")}catch{}})();const Z=["width","height","fill","transform"],g={key:0},m=createBaseVNode("path",{d:"M112,36a12,12,0,0,0-12,12V60H24A20,20,0,0,0,4,80v96a20,20,0,0,0,20,20h76v12a12,12,0,0,0,24,0V48A12,12,0,0,0,112,36ZM28,172V84h72v88ZM252,80v96a20,20,0,0,1-20,20H152a12,12,0,0,1,0-24h76V84H152a12,12,0,0,1,0-24h80A20,20,0,0,1,252,80ZM88,112a12,12,0,0,1-12,12v20a12,12,0,0,1-24,0V124a12,12,0,0,1,0-24H76A12,12,0,0,1,88,112Z"},null,-1),y=[m],f={key:1},w=createBaseVNode("path",{d:"M240,80v96a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H232A8,8,0,0,1,240,80Z",opacity:"0.2"},null,-1),k=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),x=[w,k],S={key:2},z=createBaseVNode("path",{d:"M248,80v96a16,16,0,0,1-16,16H140a4,4,0,0,1-4-4V68a4,4,0,0,1,4-4h92A16,16,0,0,1,248,80ZM120,48V208a8,8,0,0,1-16,0V192H24A16,16,0,0,1,8,176V80A16,16,0,0,1,24,64h80V48a8,8,0,0,1,16,0ZM88,112a8,8,0,0,0-8-8H48a8,8,0,0,0,0,16h8v24a8,8,0,0,0,16,0V120h8A8,8,0,0,0,88,112Z"},null,-1),C=[z],B={key:3},b=createBaseVNode("path",{d:"M112,42a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80v96a14,14,0,0,0,14,14h82v18a6,6,0,0,0,12,0V48A6,6,0,0,0,112,42ZM24,178a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h82V178ZM246,80v96a14,14,0,0,1-14,14H144a6,6,0,0,1,0-12h88a2,2,0,0,0,2-2V80a2,2,0,0,0-2-2H144a6,6,0,0,1,0-12h88A14,14,0,0,1,246,80ZM86,112a6,6,0,0,1-6,6H70v26a6,6,0,0,1-12,0V118H48a6,6,0,0,1,0-12H80A6,6,0,0,1,86,112Z"},null,-1),N=[b],E={key:4},P=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),W=[P],$={key:5},j=createBaseVNode("path",{d:"M112,44a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80v96a12,12,0,0,0,12,12h84v20a4,4,0,0,0,8,0V48A4,4,0,0,0,112,44ZM24,180a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h84V180ZM244,80v96a12,12,0,0,1-12,12H144a4,4,0,0,1,0-8h88a4,4,0,0,0,4-4V80a4,4,0,0,0-4-4H144a4,4,0,0,1,0-8h88A12,12,0,0,1,244,80ZM84,112a4,4,0,0,1-4,4H68v28a4,4,0,0,1-8,0V116H48a4,4,0,0,1,0-8H80A4,4,0,0,1,84,112Z"},null,-1),T=[j],q={name:"PhTextbox"},G=defineComponent({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,t=inject("weight","regular"),a=inject("size","1em"),s=inject("color","currentColor"),l=inject("mirrored",!1),d=computed(()=>{var u;return(u=e.weight)!=null?u:t}),n=computed(()=>{var u;return(u=e.size)!=null?u:a}),c=computed(()=>{var u;return(u=e.color)!=null?u:s}),h=computed(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(u,v)=>(openBlock(),createElementBlock("svg",mergeProps({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:c.value,transform:h.value},u.$attrs),[renderSlot(u.$slots,"default"),d.value==="bold"?(openBlock(),createElementBlock("g",g,y)):d.value==="duotone"?(openBlock(),createElementBlock("g",f,x)):d.value==="fill"?(openBlock(),createElementBlock("g",S,C)):d.value==="light"?(openBlock(),createElementBlock("g",B,N)):d.value==="regular"?(openBlock(),createElementBlock("g",E,W)):d.value==="thin"?(openBlock(),createElementBlock("g",$,T)):createCommentVNode("",!0)],16,Z))}});function normalizePath(r){return r.startsWith("/")?r.slice(1):r}async function redirect(r,e,t,a={}){if(isUrl(t)){const s=new URLSearchParams(a),l=new URL(t);l.search=s.toString(),window.location.href=l.toString()}else{const s=t.replace(/\/$/,"");if(r==="player")await e.push({path:"/"+normalizePath(s),query:a});else if(r==="editor")await e.push({name:"formEditor",params:{formPath:normalizePath(s)},query:a});else if(r==="preview")await e.push({name:"formPreview",params:{formPath:normalizePath(s)},query:a});else throw new Error("Invalid routing")}}const WS_CLOSING_STATES=[WebSocket.CLOSING,WebSocket.CLOSED],WS_CUSTOM_CLOSING_REASONS={FRONTEND_FORM_RESTART:4e3};class FormConnectionManager{constructor(e,t,a,s){o(this,"ws",null);o(this,"heartbeatInterval");o(this,"onOpen",null);o(this,"onMessage",null);o(this,"onClose",null);this.formId=e,this.environment=t,this.userQueryParams=a,this._detached=s}set detached(e){this._detached=e}get url(){const e=location.protocol==="https:"?"wss:":"ws:",t=this.environment=="editor"?"_editor/api/forms/socket":"_socket",a=new URLSearchParams({id:this.formId,detached:this._detached?"true":"false",...this.userQueryParams});return`${e}//${location.host}/${t}?${a}`}handleOpen(e){if(!this.onOpen)throw new Error("onOpen is not set");this.onOpen(),e()}handleClose(e){(e.code===1006||!e.wasClean)&&clearInterval(this.heartbeatInterval),this.onClose&&this.onClose(e)}handleMessage(e){if(!this.onMessage)throw new Error("onMessage is not set");const t=JSON.parse(e.data);this.onMessage(t)}sendHeartbeat(){!this.ws||this.ws.readyState!==this.ws.OPEN||this.send({type:"execution:heartbeat"})}async send(e){if(!this.ws)throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not connected`);WS_CLOSING_STATES.includes(this.ws.readyState)&&await this.newConnection(),this.ws.send(JSON.stringify(e))}async close(e){this.ws&&this.ws.close(WS_CUSTOM_CLOSING_REASONS[e],e)}async newConnection(e=3,t){if(e!=0)return new Promise(a=>{clearInterval(this.heartbeatInterval),this.ws=new WebSocket(this.url,t),this.ws.onopen=()=>this.handleOpen(a),this.ws.onclose=s=>this.handleClose(s),this.ws.onmessage=s=>this.handleMessage(s),this.heartbeatInterval=setInterval(()=>this.sendHeartbeat(),2e3)}).catch(()=>{this.newConnection(e-1)})}isEditorConnection(){return this.environment==="editor"}}function isInputWidget(r){return"key"in r&&"value"in r&&"errors"in r}const executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(r){throw console.error(`[Error: execute_js]: ${r.message}, context: ${$context}`),r}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(r){return{type:"execute-js:response",value:await executeCode(r.context,r.code)}}const isSerializable=r=>{try{return JSON.stringify(r),!0}catch{return!1}},FORM_END_STATES=["default-end","page-end","error","lock-failed"],FORM_RUNNING_STATES=["authenticating","page","loading"];class FormRunnerController{constructor({formRunnerData:e,logService:t,connectionManager:a,onFormStart:s,onFormEnd:l,onRedirect:d,onStateUpdate:n,onStackTraceUpdate:c}){o(this,"connectionManager");o(this,"logService");o(this,"formRunnerData");o(this,"formState");o(this,"messageSeq",0);o(this,"executionId",null);o(this,"onFormStart");o(this,"onFormEnd");o(this,"onRedirect");o(this,"onStackTraceUpdate");o(this,"onStateUpdate");o(this,"userStore");o(this,"responseHistory",[]);o(this,"lastResponseHistory",[]);o(this,"handlers",{"execution:lock-failed":[e=>this.handleExecutionLockFailedMessage(e)],"execution:started":[e=>this.handleExecutionStartedMessage(e)],"execution:ended":[e=>this.handleExecutionEndedMessage(e)],"form:mount-page":[e=>this.handleMountPageMessage(e)],"form:update-page":[e=>this.handleUpdatePageMessage(e)],"auth:require-info":[e=>this.handleAuthRequireInfoMessage(e)],"auth:invalid-jwt":[e=>this.handleAuthInvalidJWTMessage(e)],"auth:valid-jwt":[e=>this.handleAuthValidTokenMessage(e)],"redirect:request":[e=>this.handleRedirectRequestMessage(e)],"execute-js:request":[e=>this.handleExecuteJSRequestMessage(e)]});o(this,"start",async()=>{this.setFormState({type:"loading"}),await this.connectionManager.newConnection(3,this.userStore.wsAuthHeaders)});o(this,"resetForm",async()=>{var e;(e=this.logService)==null||e.log({type:"stdout",log:"[Form reloaded]"}),await this.connectionManager.close("FRONTEND_FORM_RESTART"),this.resetState()});o(this,"reconnect",async()=>{this.resetState(),await this.start()});o(this,"resetState",()=>{this.messageSeq=0,this.setFormState({type:"waiting",actions:[this.getStartAction()]})});o(this,"startPageLoading",()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.formState.actions.some(e=>e.loading)||this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!0}))})});o(this,"debouncedFinishPageLoading",lodash.exports.debounce(()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!1}))})},500));o(this,"getStartAction",()=>this.actionFromMessage(this.formRunnerData.startButtonText||i18nProvider.translateIfFound("i18n_start_action",this.formRunnerData.language)));o(this,"getEndStateActions",()=>{const e=this.formRunnerData.restartButtonText||i18nProvider.translateIfFound("i18n_restart_action",this.formRunnerData.language);return this.formRunnerData.allowRestart?[this.actionFromMessage(e)]:[]});o(this,"getState",()=>({formState:this.formState}));o(this,"handleConnectionOpen",()=>{this.connectionManager.send({type:"execution:start"})});o(this,"widgetFromMessage",(e,t)=>{if(isInputWidget(e)){const a=e.errors.map(s=>i18nProvider.translateIfFound(s,this.formRunnerData.language,e));return{...e,input:!0,_pythonErrors:a,errors:a}}return{...e,input:!1,_pythonErrors:[],errors:[],key:e.type+t}});o(this,"actionFromMessage",e=>({name:e,label:i18nProvider.translateIfFound(e,this.formRunnerData.language,this.formRunnerData),disabled:!1,loading:!1}));o(this,"getAutofillVisibilty",e=>this.lastResponseHistory.length===0?!1:this.lastResponseHistory[0].some(t=>e.find(a=>a.key===t.key&&a.type===t.type&&"value"in a)));o(this,"handleAutofillClick",()=>{!this.lastResponseHistory[0]||this.formState.type==="page"&&(this.lastResponseHistory[0].forEach(t=>{!("widgets"in this.formState&&this.formState.widgets.find(s=>s.key===t.key&&s.type===t.type))||"value"in t&&this.updateWidgetValue(t.key,t.value)}),this.setFormState({...this.formState,showAutofill:!1}))});o(this,"handleAuthComplete",e=>{e&&this.formState.type==="authenticating"&&this.sendAuthSavedJWT(e)});o(this,"handleMessageReceived",e=>{const t=this.handlers[e.type];if(!t)throw new Error(`No handler for message type ${e.type}`);if(t.forEach(a=>a(e)),e.debug&&this.onStackTraceUpdate){const a=e.type==="execution:ended";this.onStackTraceUpdate(e.debug.stack,a)}});o(this,"handleActionClick",e=>{if(this.formState.type==="waiting")return this.start();if(this.formState.type==="page"){const t=e.name==="i18n_back_action";return this.hasErrors()&&!t?void 0:(this.setFormState({...this.formState,actions:this.formState.actions.map(a=>a.label===e.label?{...a,loading:!0}:a)}),this.lastResponseHistory.shift(),this.responseHistory.push(this.formState.widgets),this.sendFormPageResponse(this.getWidgetValues(),e))}if(this.formState.type==="default-end"||this.formState.type==="page-end")return this.setFormState({...this.formState,actions:[{...this.getStartAction(),loading:!0}]}),this.start()});o(this,"updateWidgetValue",(e,t)=>{if(this.formState.type!=="page")return;const a=this.formState.widgets.find(l=>"key"in l&&l.key===e);if(!a||!isInputWidget(a))return;const s=this.formState.widgets.map(l=>l.key===e?{...l,value:t}:l);this.setFormState({...this.formState,widgets:s}),this.sendFormUserEvent(this.getWidgetValues(),this.getSecrets())});o(this,"updateWidgetFrontendErrors",(e,t)=>{if(this.formState.type!=="page"||!this.formState.widgets.find(l=>l.key===e))return;const s=this.formState.widgets.map(l=>l.key===e?{...l,errors:l._pythonErrors.concat(t.map(d=>i18nProvider.translateIfFound(d,this.formRunnerData.language,l)))}:l);this.setFormState({...this.formState,widgets:s})});if(this.formRunnerData=e,this.logService=t,this.connectionManager=a,this.onFormStart=s,this.onFormEnd=l,this.onRedirect=d,this.onStateUpdate=n,this.onStackTraceUpdate=c,this.userStore=useUserStore(),this.connectionManager.onOpen=()=>this.handleConnectionOpen(),this.connectionManager.onMessage=h=>this.handleMessageReceived(h),this.connectionManager.onClose=h=>this.handleConnectionClose(h),this.formRunnerData.autoStart&&!this.connectionManager.isEditorConnection()){this.formState={type:"loading"},this.start();return}this.formState={type:"waiting",actions:[this.getStartAction()]}}set detached(e){this.connectionManager.detached=e}fullWidthFromMessage(e){return e.some(t=>"fullWidth"in t&&t.fullWidth)}async handleExecutionStartedMessage(e){this.executionId=e.executionId,this.onFormStart()}handleMountPageMessage(e){var a,s;const t=e.widgets.map(this.widgetFromMessage);if(e.endProgram){this.setFormState({type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)});return}this.setFormState({type:"page",widgets:t,actions:(s=(a=e.actions)==null?void 0:a.map(this.actionFromMessage))!=null?s:[],fullWidth:this.fullWidthFromMessage(e.widgets),steps:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t)})}async handleExecuteJSRequestMessage(e){const t=await executeJs(e);this.connectionManager.send(t)}async handleAuthRequireInfoMessage(e){const{jwt:t,isJWTValid:a}=this.userStore;if(t&&a()&&!e.refresh){this.sendAuthSavedJWT(t);return}this.setFormState({type:"authenticating"})}async handleAuthInvalidJWTMessage(e){this.setFormState({type:"authenticating"})}async handleAuthValidTokenMessage(e){}async handleExecutionLockFailedMessage(e){this.setFormState({type:"lock-failed"})}async handleRedirectRequestMessage(e){this.onRedirect(e.url,e.queryParams)}async handleUpdatePageMessage(e){if(e.seq===this.messageSeq){if(this.formState.type!=="page")throw new Error("Received form:update-page message while not in render-page state");this.setFormState({...this.formState,error:{message:e.validation.message,status:e.validation.status},widgets:e.widgets.map(this.widgetFromMessage),actions:this.formState.actions.map(t=>({...t,disabled:this.shouldDisableAction(t,e)}))}),this.debouncedFinishPageLoading()}}shouldDisableAction(e,t){if(e.name==="i18n_back_action"||this.formState.type!=="page")return!1;const s=t.widgets.map(this.widgetFromMessage).some(d=>d.errors.length>0),l=t.validation.status===!1||Boolean(t.validation.message);return s||l}async handleExecutionEndedMessage(e){var t;this.lastResponseHistory=[...this.responseHistory],this.responseHistory=[],!FORM_END_STATES.includes(this.formState.type)&&(e.exitStatus==="SUCCESS"&&(this.setFormState({type:"default-end",actions:this.getEndStateActions()}),(t=this.logService)==null||t.log({type:"stdout",log:"[Form run finished]"})),e.exitStatus==="EXCEPTION"&&this.setFormState({type:"error",message:e.exception,executionId:this.executionId}),this.onFormEnd())}sendFormPageResponse(e,t,a){this.connectionManager.send({type:"form:page-response",payload:e,secrets:a,action:t==null?void 0:t.name,seq:++this.messageSeq})}sendFormUserEvent(e,t){this.startPageLoading(),this.connectionManager.send({type:"form:user-event",payload:e,secrets:t,seq:++this.messageSeq})}sendAuthSavedJWT(e){this.connectionManager.send({type:"auth:saved-jwt",jwt:e})}handleCloseAttempt(){return FORM_END_STATES.includes(this.formState.type)||this.formState.type==="waiting"?!1:(this.connectionManager.send({type:"debug:close-attempt"}),!0)}handleConnectionClose(e){e.code!==WS_CUSTOM_CLOSING_REASONS.FRONTEND_FORM_RESTART&&FORM_RUNNING_STATES.includes(this.formState.type)&&this.reconnect()}setFormState(e){this.formState=Object.freeze(e),this.onStateUpdate(e)}getSecrets(){return this.formState.type!=="page"?[]:this.formState.widgets.filter(e=>"secret"in e).reduce((e,t)=>"key"in t&&"secret"in t?[...e,{key:t.key,secret:t.secret}]:e,[])}setWidgetValidationFunction(e,t){if(this.formState.type!=="page")return;const a=this.formState.widgets.find(s=>"key"in s&&s.key===e);!a||!isInputWidget(a)||(a.validationFunction=t)}hasErrors(){var e;return this.formState.type!=="page"?!1:((e=this.formState.error)==null?void 0:e.status)===!1||this.formState.widgets.some(t=>t.errors.length>0)}getWidgetValue(e){if(this.formState.type!=="page")return null;const t=this.formState.widgets.find(a=>"key"in a&&a.key===e);if(!t||!isInputWidget(t))return null}getWidgetValues(){return this.formState.type!=="page"?{}:this.formState.widgets.reduce((e,t)=>("value"in t&&(e[t.key]=t.value),e),{})}}const _hoisted_1$2={class:"text"},_sfc_main$3=defineComponent({__name:"component",props:{locale:{}},setup(r){return(e,t)=>(openBlock(),createElementBlock("div",_hoisted_1$2,toDisplayString(unref(i18nProvider).translate("i18n_lock_failed_not_running",e.locale)),1))}}),_hoisted_1$1={class:"outline-button"},_sfc_main$2=defineComponent({__name:"OutlineButton",props:{icon:{},noShadow:{type:Boolean},status:{}},setup(r){return(e,t)=>(openBlock(),createElementBlock("button",_hoisted_1$1,[e.icon?(openBlock(),createBlock(resolveDynamicComponent(e.icon),{key:0,class:"icon",color:"#fff"})):createCommentVNode("",!0),renderSlot(e.$slots,"default",{},void 0,!0)]))}}),OutlineButton_vue_vue_type_style_index_0_scoped_2d3b9e41_lang="",OutlineButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-2d3b9e41"]]),_sfc_main$1=defineComponent({__name:"FormAutoFill",emits:["click"],setup(r,{emit:e}){return(t,a)=>(openBlock(),createBlock(OutlineButton,{icon:unref(G),class:"form-auto-fill-btn",onClick:a[0]||(a[0]=s=>e("click"))},{default:withCtx(()=>[createTextVNode(" Repeat last answer ")]),_:1},8,["icon"]))}}),FormAutoFill_vue_vue_type_style_index_0_scoped_39354e61_lang="",FormAutoFill=_export_sfc(_sfc_main$1,[["__scopeId","data-v-39354e61"]]),_hoisted_1={class:"center"},_hoisted_2={key:0,class:"loading-wrapper"},_hoisted_3={class:"form-wrapper"},_hoisted_4=["id"],_hoisted_5={key:5,class:"span-error"},_hoisted_6={key:0,class:"buttons"},_sfc_main=defineComponent({__name:"FormRunner",props:{formRunnerData:{},formState:{},isPreview:{type:Boolean},disabled:{type:Boolean}},emits:["action-clicked","auto-fill-clicked","update-widget-value","update-widget-errors","auth-complete"],setup(r,{emit:e}){const t=r,a=ref(null),s=ref({}),l=()=>{!a.value||(a.value.scrollTop=0)};watch(()=>t.formState,(n,c)=>{n.type==="page"&&(c==null?void 0:c.type)==="page"&&n.refreshKey!==c.refreshKey&&l()});const d=()=>{var n,c;return((n=t.formState)==null?void 0:n.type)==="page"?t.formState.fullWidth:((c=t.formState)==null?void 0:c.type)==="page-end"?t.formState.fullWidth&&t.formState.widgets.length>0:!1};return(n,c)=>{var h,u,v,M;return openBlock(),createElementBlock("div",_hoisted_1,[n.isPreview&&((h=n.formState)==null?void 0:h.type)==="page"&&n.formState.showAutofill?(openBlock(),createBlock(FormAutoFill,{key:0,class:"auto-fill-btn",form:n.formRunnerData,style:{"z-index":1},onClick:c[0]||(c[0]=i=>e("auto-fill-clicked"))},null,8,["form"])):createCommentVNode("",!0),((u=n.formState)==null?void 0:u.type)==="page"?(openBlock(),createBlock(Steps,{key:1,"steps-info":n.formState.steps},null,8,["steps-info"])):createCommentVNode("",!0),createBaseVNode("main",{ref_key:"scrollableContainer",ref:a,class:normalizeClass([{disabled:n.disabled}]),style:{padding:"50px 0px","box-sizing":"border-box"}},[!n.formState||n.formState.type=="loading"?(openBlock(),createElementBlock("div",_hoisted_2,[createVNode(LoadingIndicator)])):n.formState.type==="authenticating"?(openBlock(),createBlock(_sfc_main$4,{key:1,locale:n.formRunnerData.language,"logo-url":(v=n.formRunnerData.logoUrl)!=null?v:void 0,"brand-name":(M=n.formRunnerData.brandName)!=null?M:void 0,onDone:c[1]||(c[1]=i=>e("auth-complete",i))},null,8,["locale","logo-url","brand-name"])):(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["form",{"full-width":d()}])},[createBaseVNode("div",_hoisted_3,[n.formState.type==="waiting"?(openBlock(),createBlock(StartWidget,{key:0,form:n.formRunnerData},null,8,["form"])):n.formState.type==="default-end"?(openBlock(),createBlock(EndWidget,{key:1,"end-message":n.formRunnerData.endMessage,locale:n.formRunnerData.language},null,8,["end-message","locale"])):n.formState.type==="error"?(openBlock(),createBlock(ErrorWidget,{key:2,"error-message":n.formRunnerData.errorMessage,"execution-id":n.formState.executionId,locale:n.formRunnerData.language},null,8,["error-message","execution-id","locale"])):n.formState.type==="lock-failed"?(openBlock(),createBlock(_sfc_main$3,{key:3,locale:n.formRunnerData.language},null,8,["locale"])):(openBlock(!0),createElementBlock(Fragment,{key:4},renderList(n.formState.widgets,(i,_)=>{var F;return openBlock(),createElementBlock("div",{id:i.type+_,key:(F=i.key)!=null?F:i.type+_,class:"widget"},[(openBlock(),createBlock(resolveDynamicComponent(i.type),{ref_for:!0,ref:p=>"key"in i?s.value[i.key]=p:null,key:i.key+"_"+n.formState.refreshKey,value:unref(isInputWidget)(i)&&i.value,errors:i.errors,"user-props":i,locale:n.formRunnerData.language,"onUpdate:value":p=>e("update-widget-value",i.key,p),"onUpdate:errors":p=>e("update-widget-errors",i.key,p)},null,40,["value","errors","user-props","locale","onUpdate:value","onUpdate:errors"])),(openBlock(!0),createElementBlock(Fragment,null,renderList(i.errors,p=>(openBlock(),createElementBlock("span",{key:p,class:"span-error"},toDisplayString(p),1))),128))],8,_hoisted_4)}),128)),n.formState.type==="page"&&n.formState.error&&n.formState.error.status===!1?(openBlock(),createElementBlock("span",_hoisted_5,toDisplayString(n.formState.error.message||unref(i18nProvider).translateIfFound("i18n_generic_validation_error",n.formRunnerData.language)),1)):createCommentVNode("",!0)]),"actions"in n.formState?(openBlock(),createElementBlock("div",_hoisted_6,[createVNode(unref(StyleProvider),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.formState.actions,i=>(openBlock(),createBlock(unref(Button),{key:i.name,class:normalizeClass(["next-button",{"next-button__disabled":i.disabled||i.loading}]),loading:i.loading,disabled:i.disabled||i.loading,onClick:_=>e("action-clicked",i),onKeydown:withKeys(_=>e("action-clicked",i),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(i.label),1)]),_:2},1032,["class","loading","disabled","onClick","onKeydown"]))),128))]),_:1})])):createCommentVNode("",!0)],2))],2),createVNode(Watermark,{"page-id":n.formRunnerData.id,locale:n.formRunnerData.language},null,8,["page-id","locale"])])}}}),FormRunner_vue_vue_type_style_index_0_scoped_838a6001_lang="",FormRunner=_export_sfc(_sfc_main,[["__scopeId","data-v-838a6001"]]);export{FORM_RUNNING_STATES as F,FORM_END_STATES as a,FormRunner as b,FormRunnerController as c,FormConnectionManager as d,redirect as r}; +//# sourceMappingURL=FormRunner.8bf9d58d.js.map diff --git a/abstra_statics/dist/assets/Home.21b55f91.js b/abstra_statics/dist/assets/Home.21b55f91.js deleted file mode 100644 index 093e0ebb27..0000000000 --- a/abstra_statics/dist/assets/Home.21b55f91.js +++ /dev/null @@ -1,2 +0,0 @@ -import{i as h}from"./metadata.2beed20a.js";import{W as k}from"./Watermark.41d3e1ab.js";import{F as b}from"./PhArrowSquareOut.vue.da8bb581.js";import{d as w,eo as v,f as x,e as C,u as e,o as t,Y as m,b as p,w as r,S as D,c as n,aG as f,d9 as y,aS as I,eb as z,dh as _,ec as S,e9 as F,ed as T,a0 as B}from"./index.8c3f27aa.js";import{u as H}from"./workspaceStore.a6063d10.js";import"./index.2d55f403.js";import{L}from"./LoadingOutlined.7a2941f5.js";import{C as N}from"./Card.c4293d90.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./TabPane.2034bc94.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="9ead3cf5-4a75-4d7b-8aac-e7e9ce28b877",o._sentryDebugIdIdentifier="sentry-dbid-9ead3cf5-4a75-4d7b-8aac-e7e9ce28b877")}catch{}})();const V={key:0,class:"home-container"},W=w({__name:"Home",setup(o){const i=v(),l=H(),u=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(d=>d.id!=="home"))||[]}),c=C(null),g=async(s,d)=>{c.value=d,await i.push({path:`/${s}`}),c.value=null};return(s,d)=>e(l).state.workspace?(t(),m("div",V,[p(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[u.value.length===0?(t(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[f(" There are no forms available for you. ")]),_:1})):(t(!0),m(I,{key:1},z(u.value,a=>(t(),n(e(N),{key:a.id,class:T(["form-card",{loading:c.value===a.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(a.path,a.id)},{default:r(()=>[p(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(t(),n(S(e(h)(a.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[f(F(a.name),1)]),_:2},1024),c.value!==a.id?(t(),n(e(b),{key:0,size:"20"})):(t(),n(e(L),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),p(k,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):D("",!0)}});const Z=B(W,[["__scopeId","data-v-060376d1"]]);export{Z as default}; -//# sourceMappingURL=Home.21b55f91.js.map diff --git a/abstra_statics/dist/assets/Home.44eb0d15.js b/abstra_statics/dist/assets/Home.44eb0d15.js deleted file mode 100644 index be5dc5ff83..0000000000 --- a/abstra_statics/dist/assets/Home.44eb0d15.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a0 as t,r as c,o as s,c as r}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e9772065-375f-4d8c-8130-31c3fbd5382e",e._sentryDebugIdIdentifier="sentry-dbid-e9772065-375f-4d8c-8130-31c3fbd5382e")}catch{}})();const d={};function _(e,o){const n=c("RouterView");return s(),r(n,{class:"router"})}const a=t(d,[["render",_],["__scopeId","data-v-3c2b9654"]]);export{a as default}; -//# sourceMappingURL=Home.44eb0d15.js.map diff --git a/abstra_statics/dist/assets/Home.5c6a1d41.js b/abstra_statics/dist/assets/Home.5c6a1d41.js new file mode 100644 index 0000000000..a856002062 --- /dev/null +++ b/abstra_statics/dist/assets/Home.5c6a1d41.js @@ -0,0 +1,2 @@ +import{a0 as t,r as a,o as s,c as d}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5ad87a08-9089-4c24-a8df-7aa4f538d714",e._sentryDebugIdIdentifier="sentry-dbid-5ad87a08-9089-4c24-a8df-7aa4f538d714")}catch{}})();const r={};function c(e,o){const n=a("RouterView");return s(),d(n,{class:"router"})}const f=t(r,[["render",c],["__scopeId","data-v-3c2b9654"]]);export{f as default}; +//# sourceMappingURL=Home.5c6a1d41.js.map diff --git a/abstra_statics/dist/assets/Home.c18c55fc.js b/abstra_statics/dist/assets/Home.c18c55fc.js new file mode 100644 index 0000000000..f3a11db76d --- /dev/null +++ b/abstra_statics/dist/assets/Home.c18c55fc.js @@ -0,0 +1,2 @@ +import{i as h}from"./metadata.bc77f4b9.js";import{W as k}from"./Watermark.32de12c9.js";import{F as w}from"./PhArrowSquareOut.vue.418ffcff.js";import{d as b,eo as v,f as x,e as C,u as e,o as a,Y as f,b as p,w as r,S as D,c as n,aG as m,d9 as y,aS as I,eb as z,dh as _,ec as S,e9 as F,ed as T,a0 as B}from"./index.d0f12294.js";import{u as H}from"./workspaceStore.e47060bf.js";import"./index.a26d75c2.js";import{L}from"./LoadingOutlined.bcfc8c20.js";import{C as N}from"./Card.2a8fe028.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./TabPane.79f4882f.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="2ffa21c9-e2fd-4329-b341-d3d57a91e06c",o._sentryDebugIdIdentifier="sentry-dbid-2ffa21c9-e2fd-4329-b341-d3d57a91e06c")}catch{}})();const V={key:0,class:"home-container"},W=b({__name:"Home",setup(o){const i=v(),l=H(),u=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(c=>c.id!=="home"))||[]}),d=C(null),g=async(s,c)=>{d.value=c,await i.push({path:`/${s}`}),d.value=null};return(s,c)=>e(l).state.workspace?(a(),f("div",V,[p(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[u.value.length===0?(a(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(a(!0),f(I,{key:1},z(u.value,t=>(a(),n(e(N),{key:t.id,class:T(["form-card",{loading:d.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(t.path,t.id)},{default:r(()=>[p(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(a(),n(S(e(h)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(t.name),1)]),_:2},1024),d.value!==t.id?(a(),n(e(w),{key:0,size:"20"})):(a(),n(e(L),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),p(k,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):D("",!0)}});const Z=B(W,[["__scopeId","data-v-060376d1"]]);export{Z as default}; +//# sourceMappingURL=Home.c18c55fc.js.map diff --git a/abstra_statics/dist/assets/HookEditor.4c4202a3.js b/abstra_statics/dist/assets/HookEditor.8e39c563.js similarity index 64% rename from abstra_statics/dist/assets/HookEditor.4c4202a3.js rename to abstra_statics/dist/assets/HookEditor.8e39c563.js index e717f6ce66..86c33e556b 100644 --- a/abstra_statics/dist/assets/HookEditor.4c4202a3.js +++ b/abstra_statics/dist/assets/HookEditor.8e39c563.js @@ -1,2 +1,2 @@ -import{B as V}from"./BaseLayout.995c8c6b.js";import{R as z,S as j,E as J,a as K,L as X}from"./SourceCode.38be4205.js";import{S as Y}from"./SaveButton.f2d9e5cc.js";import{a as Z}from"./asyncComputed.cfc0cdaf.js";import{d as F,o as i,c,w as o,b as a,u as e,bL as x,cz as m,cy as M,f as G,E as ee,e as k,g as te,aB as ae,Y as S,eb as R,bT as A,aG as v,aS as E,cE as L,S as y,dc as Q,a as oe,e9 as N,d5 as le,eo as re,ea as ne,eg as se,z as ue,dh as $,cX as ie}from"./index.8c3f27aa.js";import{H as de}from"./scripts.ab5c52f3.js";import"./editor.e7656461.js";import{W as pe}from"./workspaces.7bc437a6.js";import{_ as ce}from"./RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js";import{A as b}from"./api.ebb7a8be.js";import{T as fe}from"./ThreadSelector.0fc03e39.js";import{D as me,A as ve}from"./index.a0ca3dcb.js";import{C as he,A as P}from"./CollapsePanel.14b56554.js";import{A as O}from"./index.37c7ea66.js";import{B as ge}from"./Badge.7a29ebdb.js";import{A as ke}from"./index.d18d35d7.js";import{N as ye}from"./NavbarControls.0c752e0f.js";import{b as be}from"./index.d667cd0d.js";import{A as D,T as W}from"./TabPane.2034bc94.js";import"./uuid.4ec4da84.js";import"./validations.1f9bbc1f.js";import"./string.0a3509c3.js";import"./PhCopy.vue.a05dc1a1.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhCopySimple.vue.cf5729b7.js";import"./PhCaretRight.vue.a26e962f.js";import"./PhBug.vue.96a42e8e.js";import"./PhQuestion.vue.5030f781.js";import"./LoadingOutlined.7a2941f5.js";import"./polling.98a0bd01.js";import"./PhPencil.vue.47d672ed.js";import"./toggleHighContrast.5028b4ff.js";import"./index.126762e2.js";import"./Card.c4293d90.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";import"./record.a6861841.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./fetch.fd4370bb.js";import"./metadata.2beed20a.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./index.eefd8753.js";import"./CloseCircleOutlined.7faf1c70.js";import"./popupNotifcation.40886a7f.js";import"./PhArrowSquareOut.vue.da8bb581.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./PhChats.vue.296ae643.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[f]="8cdf5f9e-dbe2-4b4c-afd6-5db0a8fbf30c",h._sentryDebugIdIdentifier="sentry-dbid-8cdf5f9e-dbe2-4b4c-afd6-5db0a8fbf30c")}catch{}})();const _e=F({__name:"HookSettings",props:{hook:{}},setup(h){return(f,g)=>(i(),c(e(M),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:o(()=>[a(e(m),{label:"Name",required:""},{default:o(()=>[a(e(x),{value:f.hook.title,"onUpdate:value":g[0]||(g[0]=d=>f.hook.title=d)},null,8,["value"])]),_:1}),a(z,{runtime:f.hook},null,8,["runtime"])]),_:1}))}}),Ce={style:{display:"flex","flex-direction":"column",gap:"10px"}},we={key:0},xe=F({__name:"HookTester",props:{hook:{},disabledWarning:{},executionConfig:{}},emits:["update:stage-run-id","update:execution-config"],setup(h,{expose:f,emit:g}){const d=h,T=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"}],I=G(()=>{var t;if((t=l.response)!=null&&t.status)return l.response.status>=500?"red":l.response.status>=400?"orange":l.response.status>=200?"green":"blue"}),l=ee({shouldSelectStageRun:!d.hook.isInitial,stageRunId:d.executionConfig.stageRunId,queryParams:[],headers:[{key:"Content-Type",value:"application/json"}],method:"POST",body:JSON.stringify({foo:123,bar:"abc"},null,4)}),_=l.queryParams.find(t=>t.name===b);d.executionConfig.stageRunId&&!_&&l.queryParams.push({name:b,value:d.executionConfig.stageRunId});const C=k(!1),p=async()=>{C.value=!0;try{const t={method:l.method,query:l.queryParams.reduce((r,{name:n,value:s})=>(n&&s&&(r[n]=s),r),{}),body:l.body,headers:l.headers.reduce((r,{key:n,value:s})=>(n&&s&&(r[n]=s),r),{})},u=d.executionConfig.attached?await d.hook.run(t):await d.hook.test(t);l.response=u}finally{C.value=!1,g("update:execution-config",{attached:!1,stageRunId:null,isInitial:d.hook.isInitial})}};te([()=>d.executionConfig.stageRunId,()=>l.queryParams],([t,u])=>{const r=u.find(n=>n.name===b);if(t&&!r){l.queryParams.push({name:b,value:t});return}if(!t&&r){l.queryParams=l.queryParams.filter(n=>n.name!==b);return}t&&r&&t!==r.value&&(r.value=t)});const U=()=>{l.queryParams.push({name:"",value:""})},q=t=>{l.queryParams=l.queryParams.filter((u,r)=>r!==t)},B=()=>{l.headers.push({key:"",value:""})},H=t=>{l.headers=l.headers.filter((u,r)=>r!==t)};return f({runHook:p}),(t,u)=>(i(),c(e(M),{layout:"vertical",style:{overflow:"auto"}},{default:o(()=>[a(e(m),{label:"Method"},{default:o(()=>[a(e(ae),{value:l.method,options:T,onSelect:u[0]||(u[0]=r=>l.method=r)},null,8,["value"])]),_:1}),a(e(m),null,{default:o(()=>[a(e(he),{ghost:""},{default:o(()=>[a(e(P),{header:`Query Params (${l.queryParams.length})`},{default:o(()=>[(i(!0),S(E,null,R(l.queryParams,(r,n)=>(i(),c(e(m),{key:n},{default:o(()=>[a(e(O),null,{default:o(()=>[a(e(x),{value:r.name,"onUpdate:value":s=>r.name=s,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(x),{value:r.value,"onUpdate:value":s=>r.value=s,type:"text",placeholder:"value",disabled:r.name===e(b)},null,8,["value","onUpdate:value","disabled"]),a(e(A),{danger:"",onClick:s=>q(n)},{default:o(()=>[v("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(m),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:U},{default:o(()=>[v(" Add Query Param ")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:`Headers (${l.headers.length})`},{default:o(()=>[(i(!0),S(E,null,R(l.headers,(r,n)=>(i(),c(e(m),{key:n,label:n===0?"Headers":void 0},{default:o(()=>[a(e(O),null,{default:o(()=>[a(e(x),{value:r.key,"onUpdate:value":s=>r.key=s,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(x),{value:r.value,"onUpdate:value":s=>r.value=s,type:"text",placeholder:"value"},null,8,["value","onUpdate:value"]),a(e(A),{danger:"",onClick:s=>H(n)},{default:o(()=>[v("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["label"]))),128)),a(e(m),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:B},{default:o(()=>[v("Add Header")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:"Body"},{default:o(()=>[l.method!=="GET"?(i(),c(e(m),{key:0},{default:o(()=>[a(e(L),{value:l.body,"onUpdate:value":u[1]||(u[1]=r=>l.body=r)},null,8,["value"])]),_:1})):y("",!0)]),_:1}),a(e(P),null,{header:o(()=>[a(e(ge),{dot:t.executionConfig.attached&&!t.executionConfig.stageRunId},{default:o(()=>[a(e(Q),null,{default:o(()=>[v("Thread")]),_:1})]),_:1},8,["dot"])]),default:o(()=>[a(fe,{stage:t.hook,"execution-config":d.executionConfig,"onUpdate:executionConfig":u[2]||(u[2]=r=>g("update:execution-config",r))},null,8,["stage","execution-config"])]),_:1})]),_:1})]),_:1}),a(e(m),null,{default:o(()=>[oe("div",Ce,[a(ce,{loading:C.value,disabled:t.disabledWarning,onClick:p,onSave:u[3]||(u[3]=r=>t.hook.save())},null,8,["loading","disabled"])])]),_:1}),a(e(ke),{orientation:"left"},{default:o(()=>[v("Response")]),_:1}),l.response?(i(),S("div",we,[a(e(le),{color:I.value},{default:o(()=>[v(N(l.response.status),1)]),_:1},8,["color"]),a(e(ve),null,{default:o(()=>[(i(!0),S(E,null,R(l.response.headers,(r,n)=>(i(),c(e(me),{key:n,label:n},{default:o(()=>[v(N(r),1)]),_:2},1032,["label"]))),128))]),_:1}),a(e(L),{value:l.response.body},null,8,["value"])])):y("",!0)]),_:1}))}}),xt=F({__name:"HookEditor",setup(h){const f=re(),g=ne(),d=k(null),T=k(null),I=n=>{!t.value||(t.value.hook.file=n)},l=k("source-code"),_=k("preview");function C(){var s;if(!t.value)return;const n=t.value.hook.codeContent;(s=d.value)==null||s.updateLocalEditorCode(n)}const p=k({attached:!1,stageRunId:null,isInitial:!1}),U=n=>p.value={...p.value,attached:!!n},q=G(()=>{var n;return(n=t.value)!=null&&n.hook.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:!p.value.isInitial&&p.value.attached&&!p.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null});function B(){f.push({name:"stages"})}const H=k(null),{result:t}=Z(async()=>{const[n,s]=await Promise.all([pe.get(),de.get(g.params.id)]);return p.value.isInitial=s.isInitial,ue({workspace:n,hook:s})}),u=X.create(),r=n=>{var s;return n!==l.value&&((s=t.value)==null?void 0:s.hook.hasChanges())};return(n,s)=>(i(),c(V,null,se({navbar:o(()=>[e(t)?(i(),c(e(be),{key:0,title:e(t).hook.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:B},{extra:o(()=>[a(ye,{"docs-path":"concepts/hooks","editing-model":e(t).hook},null,8,["editing-model"])]),_:1},8,["title"])):y("",!0)]),content:o(()=>[e(t)?(i(),c(J,{key:0},{left:o(()=>[a(e(W),{"active-key":l.value,"onUpdate:activeKey":s[0]||(s[0]=w=>l.value=w)},{rightExtra:o(()=>[a(Y,{model:e(t).hook,onSave:C},null,8,["model"])]),default:o(()=>[a(e(D),{key:"source-code",tab:"Source code",disabled:r("source-code")},null,8,["disabled"]),a(e(D),{key:"settings",tab:"Settings",disabled:r("settings")},null,8,["disabled"])]),_:1},8,["active-key"]),l.value==="source-code"?(i(),c(K,{key:0,ref_key:"code",ref:d,script:e(t).hook,workspace:e(t).workspace,onUpdateFile:I},null,8,["script","workspace"])):y("",!0),e(t).hook&&l.value==="settings"?(i(),c(_e,{key:1,hook:e(t).hook},null,8,["hook"])):y("",!0)]),right:o(()=>[a(e(W),{"active-key":_.value,"onUpdate:activeKey":s[1]||(s[1]=w=>_.value=w)},{rightExtra:o(()=>[a(e($),{align:"center",gap:"middle"},{default:o(()=>[a(e($),{gap:"small"},{default:o(()=>[a(e(Q),null,{default:o(()=>[v(N(p.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(ie),{checked:p.value.attached,"onUpdate:checked":U},null,8,["checked"])]),_:1})]),_:1})]),default:o(()=>[a(e(D),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(t).hook&&_.value==="preview"?(i(),c(xe,{key:0,ref_key:"tester",ref:T,"execution-config":p.value,"onUpdate:executionConfig":s[2]||(s[2]=w=>p.value=w),hook:e(t).hook,"disabled-warning":q.value},null,8,["execution-config","hook","disabled-warning"])):y("",!0)]),_:1})):y("",!0)]),_:2},[e(t)?{name:"footer",fn:o(()=>[a(j,{ref_key:"smartConsole",ref:H,"stage-type":"hooks",stage:e(t).hook,"log-service":e(u),workspace:e(t).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{xt as default}; -//# sourceMappingURL=HookEditor.4c4202a3.js.map +import{B as V}from"./BaseLayout.52f1acec.js";import{R as z,S as j,E as J,a as K,L as X}from"./SourceCode.a748d690.js";import{S as Y}from"./SaveButton.a02cacb0.js";import{a as Z}from"./asyncComputed.703c33fd.js";import{d as F,o as i,c,w as o,b as a,u as e,bL as x,cz as f,cy as M,f as G,E as ee,e as k,g as te,aB as ae,Y as S,eb as R,bT as A,aG as v,aS as E,cE as L,S as y,dc as Q,a as oe,e9 as N,d5 as le,eo as re,ea as ne,eg as se,z as ue,dh as $,cX as ie}from"./index.d0f12294.js";import{H as de}from"./scripts.9802e877.js";import"./editor.95f16260.js";import{W as pe}from"./workspaces.e43325e2.js";import{_ as ce}from"./RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js";import{A as b}from"./api.8656aeba.js";import{T as me}from"./ThreadSelector.f3c948bb.js";import{D as fe,A as ve}from"./index.c44d2714.js";import{C as he,A as P}from"./CollapsePanel.40b6e69e.js";import{A as O}from"./index.a82e0ed1.js";import{B as ge}from"./Badge.f6241be2.js";import{A as ke}from"./index.a552d580.js";import{N as ye}from"./NavbarControls.be646660.js";import{b as be}from"./index.3b2f4dca.js";import{A as D,T as W}from"./TabPane.79f4882f.js";import"./uuid.f9389d59.js";import"./validations.2475f715.js";import"./string.d9c83adf.js";import"./PhCopy.vue.dfade011.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhCopySimple.vue.6b8fcb49.js";import"./PhCaretRight.vue.5db53029.js";import"./PhBug.vue.33662d9e.js";import"./PhQuestion.vue.f82af3dd.js";import"./LoadingOutlined.bcfc8c20.js";import"./polling.c979afd7.js";import"./PhPencil.vue.7418c4e5.js";import"./toggleHighContrast.0eb315ff.js";import"./index.289665f1.js";import"./Card.2a8fe028.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./record.8c284c67.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./fetch.e5ebd511.js";import"./metadata.bc77f4b9.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./index.3814eba6.js";import"./CloseCircleOutlined.c0e3f3e1.js";import"./popupNotifcation.a0a6244b.js";import"./PhArrowSquareOut.vue.418ffcff.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./PhChats.vue.1b5982bf.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[m]="8615fbbb-df33-4942-9775-9b7de220c149",h._sentryDebugIdIdentifier="sentry-dbid-8615fbbb-df33-4942-9775-9b7de220c149")}catch{}})();const _e=F({__name:"HookSettings",props:{hook:{}},setup(h){return(m,g)=>(i(),c(e(M),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:o(()=>[a(e(f),{label:"Name",required:""},{default:o(()=>[a(e(x),{value:m.hook.title,"onUpdate:value":g[0]||(g[0]=d=>m.hook.title=d)},null,8,["value"])]),_:1}),a(z,{runtime:m.hook},null,8,["runtime"])]),_:1}))}}),Ce={style:{display:"flex","flex-direction":"column",gap:"10px"}},we={key:0},xe=F({__name:"HookTester",props:{hook:{},disabledWarning:{},executionConfig:{}},emits:["update:stage-run-id","update:execution-config"],setup(h,{expose:m,emit:g}){const d=h,T=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"}],I=G(()=>{var t;if((t=l.response)!=null&&t.status)return l.response.status>=500?"red":l.response.status>=400?"orange":l.response.status>=200?"green":"blue"}),l=ee({shouldSelectStageRun:!d.hook.isInitial,stageRunId:d.executionConfig.stageRunId,queryParams:[],headers:[{key:"Content-Type",value:"application/json"}],method:"POST",body:JSON.stringify({foo:123,bar:"abc"},null,4)}),_=l.queryParams.find(t=>t.name===b);d.executionConfig.stageRunId&&!_&&l.queryParams.push({name:b,value:d.executionConfig.stageRunId});const C=k(!1),p=async()=>{C.value=!0;try{const t={method:l.method,query:l.queryParams.reduce((r,{name:n,value:s})=>(n&&s&&(r[n]=s),r),{}),body:l.body,headers:l.headers.reduce((r,{key:n,value:s})=>(n&&s&&(r[n]=s),r),{})},u=d.executionConfig.attached?await d.hook.run(t):await d.hook.test(t);l.response=u}finally{C.value=!1,g("update:execution-config",{attached:!1,stageRunId:null,isInitial:d.hook.isInitial})}};te([()=>d.executionConfig.stageRunId,()=>l.queryParams],([t,u])=>{const r=u.find(n=>n.name===b);if(t&&!r){l.queryParams.push({name:b,value:t});return}if(!t&&r){l.queryParams=l.queryParams.filter(n=>n.name!==b);return}t&&r&&t!==r.value&&(r.value=t)});const U=()=>{l.queryParams.push({name:"",value:""})},q=t=>{l.queryParams=l.queryParams.filter((u,r)=>r!==t)},B=()=>{l.headers.push({key:"",value:""})},H=t=>{l.headers=l.headers.filter((u,r)=>r!==t)};return m({runHook:p}),(t,u)=>(i(),c(e(M),{layout:"vertical",style:{overflow:"auto"}},{default:o(()=>[a(e(f),{label:"Method"},{default:o(()=>[a(e(ae),{value:l.method,options:T,onSelect:u[0]||(u[0]=r=>l.method=r)},null,8,["value"])]),_:1}),a(e(f),null,{default:o(()=>[a(e(he),{ghost:""},{default:o(()=>[a(e(P),{header:`Query Params (${l.queryParams.length})`},{default:o(()=>[(i(!0),S(E,null,R(l.queryParams,(r,n)=>(i(),c(e(f),{key:n},{default:o(()=>[a(e(O),null,{default:o(()=>[a(e(x),{value:r.name,"onUpdate:value":s=>r.name=s,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(x),{value:r.value,"onUpdate:value":s=>r.value=s,type:"text",placeholder:"value",disabled:r.name===e(b)},null,8,["value","onUpdate:value","disabled"]),a(e(A),{danger:"",onClick:s=>q(n)},{default:o(()=>[v("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),a(e(f),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:U},{default:o(()=>[v(" Add Query Param ")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:`Headers (${l.headers.length})`},{default:o(()=>[(i(!0),S(E,null,R(l.headers,(r,n)=>(i(),c(e(f),{key:n,label:n===0?"Headers":void 0},{default:o(()=>[a(e(O),null,{default:o(()=>[a(e(x),{value:r.key,"onUpdate:value":s=>r.key=s,type:"text",placeholder:"name"},null,8,["value","onUpdate:value"]),a(e(x),{value:r.value,"onUpdate:value":s=>r.value=s,type:"text",placeholder:"value"},null,8,["value","onUpdate:value"]),a(e(A),{danger:"",onClick:s=>H(n)},{default:o(()=>[v("remove")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["label"]))),128)),a(e(f),null,{default:o(()=>[a(e(A),{type:"dashed",style:{width:"100%"},onClick:B},{default:o(()=>[v("Add Header")]),_:1})]),_:1})]),_:1},8,["header"]),a(e(P),{header:"Body"},{default:o(()=>[l.method!=="GET"?(i(),c(e(f),{key:0},{default:o(()=>[a(e(L),{value:l.body,"onUpdate:value":u[1]||(u[1]=r=>l.body=r)},null,8,["value"])]),_:1})):y("",!0)]),_:1}),a(e(P),null,{header:o(()=>[a(e(ge),{dot:t.executionConfig.attached&&!t.executionConfig.stageRunId},{default:o(()=>[a(e(Q),null,{default:o(()=>[v("Thread")]),_:1})]),_:1},8,["dot"])]),default:o(()=>[a(me,{stage:t.hook,"execution-config":d.executionConfig,"onUpdate:executionConfig":u[2]||(u[2]=r=>g("update:execution-config",r))},null,8,["stage","execution-config"])]),_:1})]),_:1})]),_:1}),a(e(f),null,{default:o(()=>[oe("div",Ce,[a(ce,{loading:C.value,disabled:t.disabledWarning,onClick:p,onSave:u[3]||(u[3]=r=>t.hook.save())},null,8,["loading","disabled"])])]),_:1}),a(e(ke),{orientation:"left"},{default:o(()=>[v("Response")]),_:1}),l.response?(i(),S("div",we,[a(e(le),{color:I.value},{default:o(()=>[v(N(l.response.status),1)]),_:1},8,["color"]),a(e(ve),null,{default:o(()=>[(i(!0),S(E,null,R(l.response.headers,(r,n)=>(i(),c(e(fe),{key:n,label:n},{default:o(()=>[v(N(r),1)]),_:2},1032,["label"]))),128))]),_:1}),a(e(L),{value:l.response.body},null,8,["value"])])):y("",!0)]),_:1}))}}),xt=F({__name:"HookEditor",setup(h){const m=re(),g=ne(),d=k(null),T=k(null),I=n=>{!t.value||(t.value.hook.file=n)},l=k("source-code"),_=k("preview");function C(){var s;if(!t.value)return;const n=t.value.hook.codeContent;(s=d.value)==null||s.updateLocalEditorCode(n)}const p=k({attached:!1,stageRunId:null,isInitial:!1}),U=n=>p.value={...p.value,attached:!!n},q=G(()=>{var n;return(n=t.value)!=null&&n.hook.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:!p.value.isInitial&&p.value.attached&&!p.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null});function B(){m.push({name:"stages"})}const H=k(null),{result:t}=Z(async()=>{const[n,s]=await Promise.all([pe.get(),de.get(g.params.id)]);return p.value.isInitial=s.isInitial,ue({workspace:n,hook:s})}),u=X.create(),r=n=>{var s;return n!==l.value&&((s=t.value)==null?void 0:s.hook.hasChanges())};return(n,s)=>(i(),c(V,null,se({navbar:o(()=>[e(t)?(i(),c(e(be),{key:0,title:e(t).hook.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:B},{extra:o(()=>[a(ye,{"docs-path":"concepts/hooks","editing-model":e(t).hook},null,8,["editing-model"])]),_:1},8,["title"])):y("",!0)]),content:o(()=>[e(t)?(i(),c(J,{key:0},{left:o(()=>[a(e(W),{"active-key":l.value,"onUpdate:activeKey":s[0]||(s[0]=w=>l.value=w)},{rightExtra:o(()=>[a(Y,{model:e(t).hook,onSave:C},null,8,["model"])]),default:o(()=>[a(e(D),{key:"source-code",tab:"Source code",disabled:r("source-code")},null,8,["disabled"]),a(e(D),{key:"settings",tab:"Settings",disabled:r("settings")},null,8,["disabled"])]),_:1},8,["active-key"]),l.value==="source-code"?(i(),c(K,{key:0,ref_key:"code",ref:d,script:e(t).hook,workspace:e(t).workspace,onUpdateFile:I},null,8,["script","workspace"])):y("",!0),e(t).hook&&l.value==="settings"?(i(),c(_e,{key:1,hook:e(t).hook},null,8,["hook"])):y("",!0)]),right:o(()=>[a(e(W),{"active-key":_.value,"onUpdate:activeKey":s[1]||(s[1]=w=>_.value=w)},{rightExtra:o(()=>[a(e($),{align:"center",gap:"middle"},{default:o(()=>[a(e($),{gap:"small"},{default:o(()=>[a(e(Q),null,{default:o(()=>[v(N(p.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(ie),{checked:p.value.attached,"onUpdate:checked":U},null,8,["checked"])]),_:1})]),_:1})]),default:o(()=>[a(e(D),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(t).hook&&_.value==="preview"?(i(),c(xe,{key:0,ref_key:"tester",ref:T,"execution-config":p.value,"onUpdate:executionConfig":s[2]||(s[2]=w=>p.value=w),hook:e(t).hook,"disabled-warning":q.value},null,8,["execution-config","hook","disabled-warning"])):y("",!0)]),_:1})):y("",!0)]),_:2},[e(t)?{name:"footer",fn:o(()=>[a(j,{ref_key:"smartConsole",ref:H,"stage-type":"hooks",stage:e(t).hook,"log-service":e(u),workspace:e(t).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{xt as default}; +//# sourceMappingURL=HookEditor.8e39c563.js.map diff --git a/abstra_statics/dist/assets/JobEditor.080bdf78.js b/abstra_statics/dist/assets/JobEditor.a781566d.js similarity index 97% rename from abstra_statics/dist/assets/JobEditor.080bdf78.js rename to abstra_statics/dist/assets/JobEditor.a781566d.js index 101a9ba755..8da91b9b78 100644 --- a/abstra_statics/dist/assets/JobEditor.080bdf78.js +++ b/abstra_statics/dist/assets/JobEditor.a781566d.js @@ -1,3 +1,3 @@ -import{B as bn}from"./BaseLayout.995c8c6b.js";import{R as _n,S as Mn,E as In,a as xn,L as Cn}from"./SourceCode.38be4205.js";import{S as Fn}from"./SaveButton.f2d9e5cc.js";import{a as Vn}from"./asyncComputed.cfc0cdaf.js";import{eE as Wn,d as We,f as ge,e as te,R as Ln,o as x,Y as ye,b as _,w as E,u as v,aB as at,aG as W,aS as Me,eb as Pe,c as L,e9 as Ce,cU as ot,cz as St,bL as Tt,d7 as ut,cB as lt,S as oe,e$ as $t,dd as wr,E as $n,cy as An,eo as Un,ea as Zn,eg as zn,z as Rn,dh as At,dc as Hn,cX as qn}from"./index.8c3f27aa.js";import{J as Yn}from"./scripts.ab5c52f3.js";import"./editor.e7656461.js";import{W as Pn}from"./workspaces.7bc437a6.js";import{A as jn,a as Jn}from"./index.d2b068b5.js";import{A as Gn}from"./index.37c7ea66.js";import{_ as Bn}from"./RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js";import{N as Qn}from"./NavbarControls.0c752e0f.js";import{b as Kn}from"./index.d667cd0d.js";import{A as ct,T as Ut}from"./TabPane.2034bc94.js";import"./uuid.4ec4da84.js";import"./validations.1f9bbc1f.js";import"./string.0a3509c3.js";import"./PhCopy.vue.a05dc1a1.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhCopySimple.vue.cf5729b7.js";import"./PhCaretRight.vue.a26e962f.js";import"./Badge.7a29ebdb.js";import"./PhBug.vue.96a42e8e.js";import"./PhQuestion.vue.5030f781.js";import"./LoadingOutlined.7a2941f5.js";import"./polling.98a0bd01.js";import"./PhPencil.vue.47d672ed.js";import"./toggleHighContrast.5028b4ff.js";import"./index.126762e2.js";import"./Card.c4293d90.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";import"./record.a6861841.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./CloseCircleOutlined.7faf1c70.js";import"./popupNotifcation.40886a7f.js";import"./PhArrowSquareOut.vue.da8bb581.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./PhChats.vue.296ae643.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c4030b61-79f0-48ae-8b75-574b3f38c57c",t._sentryDebugIdIdentifier="sentry-dbid-c4030b61-79f0-48ae-8b75-574b3f38c57c")}catch{}})();const dt={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},Xn=["hourly","daily","weekly","monthly","custom"],es={custom:{minute:"*",hour:"*",day:"*",month:"*",weekday:"*"},hourly:{minute:"0",hour:"*",day:"*",month:"*",weekday:"*"},daily:{minute:"0",hour:"6",day:"*",month:"*",weekday:"*"},weekly:{minute:"0",hour:"6",day:"*",month:"*",weekday:"1"},monthly:{minute:"0",hour:"6",day:"1",month:"*",weekday:"*"}};var z={};Object.defineProperty(z,"__esModule",{value:!0});class fe extends Error{}class ts extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class rs extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ns extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class pe extends fe{}class vr extends fe{constructor(e){super(`Invalid unit ${e}`)}}class U extends fe{}class K extends fe{constructor(){super("Zone is an abstract class")}}const h="numeric",G="short",Z="long",Ge={year:h,month:h,day:h},kr={year:h,month:G,day:h},ss={year:h,month:G,day:h,weekday:G},Sr={year:h,month:Z,day:h},Tr={year:h,month:Z,day:h,weekday:Z},Or={hour:h,minute:h},Dr={hour:h,minute:h,second:h},Nr={hour:h,minute:h,second:h,timeZoneName:G},Er={hour:h,minute:h,second:h,timeZoneName:Z},br={hour:h,minute:h,hourCycle:"h23"},_r={hour:h,minute:h,second:h,hourCycle:"h23"},Mr={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:G},Ir={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Z},xr={year:h,month:h,day:h,hour:h,minute:h},Cr={year:h,month:h,day:h,hour:h,minute:h,second:h},Fr={year:h,month:G,day:h,hour:h,minute:h},Vr={year:h,month:G,day:h,hour:h,minute:h,second:h},is={year:h,month:G,day:h,weekday:G,hour:h,minute:h},Wr={year:h,month:Z,day:h,hour:h,minute:h,timeZoneName:G},Lr={year:h,month:Z,day:h,hour:h,minute:h,second:h,timeZoneName:G},$r={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,timeZoneName:Z},Ar={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,second:h,timeZoneName:Z};class Se{get type(){throw new K}get name(){throw new K}get ianaName(){return this.name}get isUniversal(){throw new K}offsetName(e,r){throw new K}formatOffset(e,r){throw new K}offset(e){throw new K}equals(e){throw new K}get isValid(){throw new K}}let ft=null;class Le extends Se{static get instance(){return ft===null&&(ft=new Le),ft}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Jr(e,r,n)}formatOffset(e,r){return Fe(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let je={};function as(t){return je[t]||(je[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),je[t]}const os={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function us(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,u,o,l,c]=n;return[a,s,i,u,o,l,c]}function ls(t,e){const r=t.formatToParts(e),n=[];for(let s=0;s=0?w:1e3+w,(g-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Zt={};function cs(t,e={}){const r=JSON.stringify([t,e]);let n=Zt[r];return n||(n=new Intl.ListFormat(t,e),Zt[r]=n),n}let Ot={};function Dt(t,e={}){const r=JSON.stringify([t,e]);let n=Ot[r];return n||(n=new Intl.DateTimeFormat(t,e),Ot[r]=n),n}let Nt={};function ds(t,e={}){const r=JSON.stringify([t,e]);let n=Nt[r];return n||(n=new Intl.NumberFormat(t,e),Nt[r]=n),n}let Et={};function fs(t,e={}){const{base:r,...n}=e,s=JSON.stringify([t,n]);let i=Et[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Et[s]=i),i}let Ie=null;function hs(){return Ie||(Ie=new Intl.DateTimeFormat().resolvedOptions().locale,Ie)}let zt={};function ms(t){let e=zt[t];if(!e){const r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,zt[t]=e}return e}function ys(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let n,s;try{n=Dt(t).resolvedOptions(),s=t}catch{const o=t.substring(0,r);n=Dt(o).resolvedOptions(),s=o}const{numberingSystem:i,calendar:a}=n;return[s,i,a]}}function ps(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function gs(t){const e=[];for(let r=1;r<=12;r++){const n=O.utc(2009,r,1);e.push(t(n))}return e}function ws(t){const e=[];for(let r=1;r<=7;r++){const n=O.utc(2016,11,13+r);e.push(t(n))}return e}function ze(t,e,r,n){const s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}function vs(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class ks{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:i,...a}=n;if(!r||Object.keys(a).length>0){const u={useGrouping:!1,...n};n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=ds(e,u)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Ct(e,3);return F(r,this.padTo)}}}class Ss{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),u=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&B.create(u).valid?(s=u,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Dt(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ts{constructor(e,r,n){this.opts={style:"long",...n},!r&&Pr()&&(this.rtf=fs(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):zs(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Os={firstDay:1,minimalDays:4,weekend:[6,7]};class M{static fromOpts(e){return M.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=!1){const a=e||C.defaultLocale,u=a||(i?"en-US":hs()),o=r||C.defaultNumberingSystem,l=n||C.defaultOutputCalendar,c=bt(s)||C.defaultWeekSettings;return new M(u,o,l,c,a)}static resetCache(){Ie=null,Ot={},Nt={},Et={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return M.create(e,r,n,s)}constructor(e,r,n,s,i){const[a,u,o]=ys(e);this.locale=a,this.numberingSystem=r||u||null,this.outputCalendar=n||o||null,this.weekSettings=s,this.intl=ps(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=vs(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:M.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,bt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return ze(this,e,Qr,()=>{const n=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=gs(i=>this.extract(i,n,"month"))),this.monthsCache[s][e]})}weekdays(e,r=!1){return ze(this,e,en,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=ws(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return ze(this,void 0,()=>tn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[O.utc(2016,11,13,9),O.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ze(this,e,rn,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[O.utc(-40,1,1),O.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const s=this.dtFormatter(e,r),i=s.formatToParts(),a=i.find(u=>u.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new ks(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Ss(e,this.intl,r)}relFormatter(e={}){return new Ts(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cs(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:jr()?ms(this.locale):Os}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ht=null;class A extends Se{static get utcInstance(){return ht===null&&(ht=new A(0)),ht}static instance(e){return e===0?A.utcInstance:new A(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new A(nt(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Fe(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Fe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Fe(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Ur extends Se{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function re(t,e){if(T(t)||t===null)return e;if(t instanceof Se)return t;if(Es(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Le.instance:r==="utc"||r==="gmt"?A.utcInstance:A.parseSpecifier(r)||B.create(t)}else return ce(t)?A.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ur(t)}let Rt=()=>Date.now(),Ht="system",qt=null,Yt=null,Pt=null,jt=60,Jt,Gt=null;class C{static get now(){return Rt}static set now(e){Rt=e}static set defaultZone(e){Ht=e}static get defaultZone(){return re(Ht,Le.instance)}static get defaultLocale(){return qt}static set defaultLocale(e){qt=e}static get defaultNumberingSystem(){return Yt}static set defaultNumberingSystem(e){Yt=e}static get defaultOutputCalendar(){return Pt}static set defaultOutputCalendar(e){Pt=e}static get defaultWeekSettings(){return Gt}static set defaultWeekSettings(e){Gt=bt(e)}static get twoDigitCutoffYear(){return jt}static set twoDigitCutoffYear(e){jt=e%100}static get throwOnInvalid(){return Jt}static set throwOnInvalid(e){Jt=e}static resetCaches(){M.resetCache(),B.resetCache()}}class J{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zr=[0,31,59,90,120,151,181,212,243,273,304,334],zr=[0,31,60,91,121,152,182,213,244,274,305,335];function H(t,e){return new J("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Mt(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function Rr(t,e,r){return r+($e(t)?zr:Zr)[e-1]}function Hr(t,e){const r=$e(t)?zr:Zr,n=r.findIndex(i=>iVe(n,e,r)?(l=n+1,o=1):l=n,{weekYear:l,weekNumber:o,weekday:u,...st(t)}}function Bt(t,e=4,r=1){const{weekYear:n,weekNumber:s,weekday:i}=t,a=It(Mt(n,1,e),r),u=we(n);let o=s*7+i-a-7+e,l;o<1?(l=n-1,o+=we(l)):o>u?(l=n+1,o-=we(n)):l=n;const{month:c,day:p}=Hr(l,o);return{year:l,month:c,day:p,...st(t)}}function mt(t){const{year:e,month:r,day:n}=t,s=Rr(e,r,n);return{year:e,ordinal:s,...st(t)}}function Qt(t){const{year:e,ordinal:r}=t,{month:n,day:s}=Hr(e,r);return{year:e,month:n,day:s,...st(t)}}function Kt(t,e){if(!T(t.localWeekday)||!T(t.localWeekNumber)||!T(t.localWeekYear)){if(!T(t.weekday)||!T(t.weekNumber)||!T(t.weekYear))throw new pe("Cannot mix locale-based week fields with ISO-based week fields");return T(t.localWeekday)||(t.weekday=t.localWeekday),T(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),T(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Ds(t,e=4,r=1){const n=tt(t.weekYear),s=q(t.weekNumber,1,Ve(t.weekYear,e,r)),i=q(t.weekday,1,7);return n?s?i?!1:H("weekday",t.weekday):H("week",t.weekNumber):H("weekYear",t.weekYear)}function Ns(t){const e=tt(t.year),r=q(t.ordinal,1,we(t.year));return e?r?!1:H("ordinal",t.ordinal):H("year",t.year)}function qr(t){const e=tt(t.year),r=q(t.month,1,12),n=q(t.day,1,Qe(t.year,t.month));return e?r?n?!1:H("day",t.day):H("month",t.month):H("year",t.year)}function Yr(t){const{hour:e,minute:r,second:n,millisecond:s}=t,i=q(e,0,23)||e===24&&r===0&&n===0&&s===0,a=q(r,0,59),u=q(n,0,59),o=q(s,0,999);return i?a?u?o?!1:H("millisecond",s):H("second",n):H("minute",r):H("hour",e)}function T(t){return typeof t>"u"}function ce(t){return typeof t=="number"}function tt(t){return typeof t=="number"&&t%1===0}function Es(t){return typeof t=="string"}function bs(t){return Object.prototype.toString.call(t)==="[object Date]"}function Pr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function jr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function _s(t){return Array.isArray(t)?t:[t]}function Xt(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{const i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Ms(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ke(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function bt(t){if(t==null)return null;if(typeof t!="object")throw new U("Week settings must be an object");if(!q(t.firstDay,1,7)||!q(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!q(e,1,7)))throw new U("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function q(t,e,r){return tt(t)&&t>=e&&t<=r}function Is(t,e){return t-e*Math.floor(t/e)}function F(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function ee(t){if(!(T(t)||t===null||t===""))return parseInt(t,10)}function se(t){if(!(T(t)||t===null||t===""))return parseFloat(t)}function xt(t){if(!(T(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ct(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function $e(t){return t%4===0&&(t%100!==0||t%400===0)}function we(t){return $e(t)?366:365}function Qe(t,e){const r=Is(e-1,12)+1,n=t+(e-r)/12;return r===2?$e(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function rt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function er(t,e,r){return-It(Mt(t,1,e),r)+e-1}function Ve(t,e=4,r=1){const n=er(t,e,r),s=er(t+1,e,r);return(we(t)-n+s)/7}function _t(t){return t>99?t:t>C.twoDigitCutoffYear?1900+t:2e3+t}function Jr(t,e,r,n=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a={timeZoneName:e,...i},u=new Intl.DateTimeFormat(r,a).formatToParts(s).find(o=>o.type.toLowerCase()==="timezonename");return u?u.value:null}function nt(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function Gr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new U(`Invalid unit value ${t}`);return e}function Ke(t,e){const r={};for(const n in t)if(ke(t,n)){const s=t[n];if(s==null)continue;r[e(n)]=Gr(s)}return r}function Fe(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${F(r,2)}:${F(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${F(r,2)}${F(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function st(t){return Ms(t,["hour","minute","second","millisecond"])}const xs=["January","February","March","April","May","June","July","August","September","October","November","December"],Br=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Cs=["J","F","M","A","M","J","J","A","S","O","N","D"];function Qr(t){switch(t){case"narrow":return[...Cs];case"short":return[...Br];case"long":return[...xs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Kr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fs=["M","T","W","T","F","S","S"];function en(t){switch(t){case"narrow":return[...Fs];case"short":return[...Xr];case"long":return[...Kr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const tn=["AM","PM"],Vs=["Before Christ","Anno Domini"],Ws=["BC","AD"],Ls=["B","A"];function rn(t){switch(t){case"narrow":return[...Ls];case"short":return[...Ws];case"long":return[...Vs];default:return null}}function $s(t){return tn[t.hour<12?0:1]}function As(t,e){return en(e)[t.weekday-1]}function Us(t,e){return Qr(e)[t.month-1]}function Zs(t,e){return rn(e)[t.year<0?0:1]}function zs(t,e,r="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const p=t==="days";switch(e){case 1:return p?"tomorrow":`next ${s[t][0]}`;case-1:return p?"yesterday":`last ${s[t][0]}`;case 0:return p?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,u=Math.abs(e),o=u===1,l=s[t],c=n?o?l[1]:l[2]||l[1]:o?s[t][0]:t;return a?`${u} ${c} ago`:`in ${u} ${c}`}function tr(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const Rs={D:Ge,DD:kr,DDD:Sr,DDDD:Tr,t:Or,tt:Dr,ttt:Nr,tttt:Er,T:br,TT:_r,TTT:Mr,TTTT:Ir,f:xr,ff:Fr,fff:Wr,ffff:$r,F:Cr,FF:Vr,FFF:Lr,FFFF:Ar};class ${static create(e,r={}){return new $(e,r)}static parseFormat(e){let r=null,n="",s=!1;const i=[];for(let a=0;a0&&i.push({literal:s||/^\s+$/.test(n),val:n}),r=null,n="",s=!s):s||u===r?n+=u:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=u,r=u)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Rs[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return F(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(d,w)=>this.loc.extract(e,d,w),a=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",u=()=>n?$s(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(d,w)=>n?Us(e,d):i(w?{month:d}:{month:d,day:"numeric"},"month"),l=(d,w)=>n?As(e,d):i(w?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),c=d=>{const w=$.macroTokenToFormatOpts(d);return w?this.formatWithSystemDefault(e,w):d},p=d=>n?Zs(e,d):i({era:d},"era"),g=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return p("short");case"GG":return p("long");case"GGGGG":return p("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(d)}};return tr($.parseFormat(r),g)}formatDurationFromString(e,r){const n=o=>{switch(o[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=o=>l=>{const c=n(l);return c?this.num(o.get(c),l.length):l},i=$.parseFormat(r),a=i.reduce((o,{literal:l,val:c})=>l?o:o.concat(c),[]),u=e.shiftTo(...a.map(n).filter(o=>o));return tr(i,s(u))}}const nn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Te(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Oe(...t){return e=>t.reduce(([r,n,s],i)=>{const[a,u,o]=i(e,s);return[{...r,...a},u||n,o]},[{},null,1]).slice(0,2)}function De(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const s=r.exec(t);if(s)return n(s)}return[null,null]}function sn(...t){return(e,r)=>{const n={};let s;for(s=0;sd!==void 0&&(w||d&&c)?-d:d;return[{years:g(se(r)),months:g(se(n)),weeks:g(se(s)),days:g(se(i)),hours:g(se(a)),minutes:g(se(u)),seconds:g(se(o),o==="-0"),milliseconds:g(xt(l),p)}]}const ti={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wt(t,e,r,n,s,i,a){const u={year:e.length===2?_t(ee(e)):ee(e),month:Br.indexOf(r)+1,day:ee(n),hour:ee(s),minute:ee(i)};return a&&(u.second=ee(a)),t&&(u.weekday=t.length>3?Kr.indexOf(t)+1:Xr.indexOf(t)+1),u}const ri=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ni(t){const[,e,r,n,s,i,a,u,o,l,c,p]=t,g=Wt(e,s,n,r,i,a,u);let d;return o?d=ti[o]:l?d=0:d=nt(c,p),[g,new A(d)]}function si(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ai=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,oi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function rr(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,s,n,r,i,a,u),A.utcInstance]}function ui(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,u,r,n,s,i,a),A.utcInstance]}const li=Te(qs,Vt),ci=Te(Ys,Vt),di=Te(Ps,Vt),fi=Te(on),ln=Oe(Qs,Ne,Ae,Ue),hi=Oe(js,Ne,Ae,Ue),mi=Oe(Js,Ne,Ae,Ue),yi=Oe(Ne,Ae,Ue);function pi(t){return De(t,[li,ln],[ci,hi],[di,mi],[fi,yi])}function gi(t){return De(si(t),[ri,ni])}function wi(t){return De(t,[ii,rr],[ai,rr],[oi,ui])}function vi(t){return De(t,[Xs,ei])}const ki=Oe(Ne);function Si(t){return De(t,[Ks,ki])}const Ti=Te(Gs,Bs),Oi=Te(un),Di=Oe(Ne,Ae,Ue);function Ni(t){return De(t,[Ti,ln],[Oi,Di])}const nr="Invalid Duration",cn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ei={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...cn},R=146097/400,he=146097/4800,bi={years:{quarters:4,months:12,weeks:R/7,days:R,hours:R*24,minutes:R*24*60,seconds:R*24*60*60,milliseconds:R*24*60*60*1e3},quarters:{months:3,weeks:R/28,days:R/4,hours:R*24/4,minutes:R*24*60/4,seconds:R*24*60*60/4,milliseconds:R*24*60*60*1e3/4},months:{weeks:he/7,days:he,hours:he*24,minutes:he*24*60,seconds:he*24*60*60,milliseconds:he*24*60*60*1e3},...cn},le=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],_i=le.slice(0).reverse();function X(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new N(n)}function dn(t,e){var r;let n=(r=e.milliseconds)!=null?r:0;for(const s of _i.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function sr(t,e){const r=dn(t,e)<0?-1:1;le.reduceRight((n,s)=>{if(T(e[s]))return n;if(n){const i=e[n]*r,a=t[s][n],u=Math.floor(i/a);e[s]+=u*r,e[n]-=u*a*r}return s},null),le.reduce((n,s)=>{if(T(e[s]))return n;if(n){const i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s]}return s},null)}function Mi(t){const e={};for(const[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}class N{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?bi:Ei;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||M.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return N.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new U(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new N({values:Ke(e,N.normalizeUnit),loc:M.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(ce(e))return N.fromMillis(e);if(N.isDuration(e))return e;if(typeof e=="object")return N.fromObject(e);throw new U(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=vi(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=Si(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the Duration is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ns(n);return new N({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new vr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?$.create(this.loc,n).formatDurationFromString(this,e):nr}toHuman(e={}){if(!this.isValid)return nr;const r=le.map(n=>{const s=this.values[n];return T(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(s)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ct(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},O.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?dn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e),n={};for(const s of le)(ke(r.values,s)||ke(this.values,s))&&(n[s]=r.get(s)+this.get(s));return X(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=Gr(e(this.values[n],n));return X(this,{values:r},!0)}get(e){return this[N.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...Ke(e,N.normalizeUnit)};return X(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return X(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return sr(this.matrix,e),X(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Mi(this.normalize().shiftToAll().toObject());return X(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>N.normalizeUnit(a));const r={},n={},s=this.toObject();let i;for(const a of le)if(e.indexOf(a)>=0){i=a;let u=0;for(const l in n)u+=this.matrix[l][a]*n[l],n[l]=0;ce(s[a])&&(u+=s[a]);const o=Math.trunc(u);r[a]=o,n[a]=(u*1e3-o*1e3)/1e3}else ce(s[a])&&(n[a]=s[a]);for(const a in n)n[a]!==0&&(r[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return sr(this.matrix,r),X(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return X(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of le)if(!r(this.values[n],e.values[n]))return!1;return!0}}const me="Invalid Interval";function Ii(t,e){return!t||!t.isValid?I.invalid("missing or invalid start"):!e||!e.isValid?I.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?I.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(_e).filter(a=>this.contains(a)).sort((a,u)=>a.toMillis()-u.toMillis()),n=[];let{s}=this,i=0;for(;s+this.e?this.e:a;n.push(I.fromDateTimes(s,u)),s=u,i+=1}return n}splitBy(e){const r=N.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;const a=[];for(;no*s));i=+u>+this.e?this.e:u,a.push(I.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e=n?null:I.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.se.e?this.e:e.e;return I.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const s=[],i=e.map(o=>[{time:o.s,type:"s"},{time:o.e,type:"e"}]),a=Array.prototype.concat(...i),u=a.sort((o,l)=>o.time-l.time);for(const o of u)n+=o.type==="s"?1:-1,n===1?r=o.time:(r&&+r!=+o.time&&s.push(I.fromDateTimes(r,o.time)),r=null);return I.merge(s)}difference(...e){return I.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:me}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ge,r={}){return this.isValid?$.create(this.s.loc.clone(r),e).formatInterval(this):me}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:me}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:me}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:me}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:me}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):N.invalid(this.invalidReason)}mapEndpoints(e){return I.fromDateTimes(e(this.s),e(this.e))}}class xe{static hasDST(e=C.defaultZone){const r=O.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return B.isValidZone(e)}static normalizeZone(e){return re(e,C.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return M.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return M.create(r,null,"gregory").eras(e)}static features(){return{relative:Pr(),localeWeek:jr()}}}function ir(t,e){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(N.fromMillis(n).as("days"))}function xi(t,e,r){const n=[["years",(o,l)=>l.year-o.year],["quarters",(o,l)=>l.quarter-o.quarter+(l.year-o.year)*4],["months",(o,l)=>l.month-o.month+(l.year-o.year)*12],["weeks",(o,l)=>{const c=ir(o,l);return(c-c%7)/7}],["days",ir]],s={},i=t;let a,u;for(const[o,l]of n)r.indexOf(o)>=0&&(a=o,s[o]=l(t,e),u=i.plus(s),u>e?(s[o]--,t=i.plus(s),t>e&&(u=t,s[o]--,t=i.plus(s))):t=u);return[t,s,u,a]}function Ci(t,e,r,n){let[s,i,a,u]=xi(t,e,r);const o=e-s,l=r.filter(p=>["hours","minutes","seconds","milliseconds"].indexOf(p)>=0);l.length===0&&(a0?N.fromMillis(o,n).shiftTo(...l).plus(c):c}const Lt={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},ar={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Fi=Lt.hanidec.replace(/[\[|\]]/g,"").split("");function Vi(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}function P({numberingSystem:t},e=""){return new RegExp(`${Lt[t||"latn"]}${e}`)}const Wi="missing Intl.DateTimeFormat.formatToParts support";function b(t,e=r=>r){return{regex:t,deser:([r])=>e(Vi(r))}}const Li=String.fromCharCode(160),fn=`[ ${Li}]`,hn=new RegExp(fn,"g");function $i(t){return t.replace(/\./g,"\\.?").replace(hn,fn)}function or(t){return t.replace(/\./g,"").replace(hn," ").toLowerCase()}function j(t,e){return t===null?null:{regex:RegExp(t.map($i).join("|")),deser:([r])=>t.findIndex(n=>or(r)===or(n))+e}}function ur(t,e){return{regex:t,deser:([,r,n])=>nt(r,n),groups:e}}function Re(t){return{regex:t,deser:([e])=>e}}function Ai(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ui(t,e){const r=P(e),n=P(e,"{2}"),s=P(e,"{3}"),i=P(e,"{4}"),a=P(e,"{6}"),u=P(e,"{1,2}"),o=P(e,"{1,3}"),l=P(e,"{1,6}"),c=P(e,"{1,9}"),p=P(e,"{2,4}"),g=P(e,"{4,6}"),d=k=>({regex:RegExp(Ai(k.val)),deser:([y])=>y,literal:!0}),f=(k=>{if(t.literal)return d(k);switch(k.val){case"G":return j(e.eras("short"),0);case"GG":return j(e.eras("long"),0);case"y":return b(l);case"yy":return b(p,_t);case"yyyy":return b(i);case"yyyyy":return b(g);case"yyyyyy":return b(a);case"M":return b(u);case"MM":return b(n);case"MMM":return j(e.months("short",!0),1);case"MMMM":return j(e.months("long",!0),1);case"L":return b(u);case"LL":return b(n);case"LLL":return j(e.months("short",!1),1);case"LLLL":return j(e.months("long",!1),1);case"d":return b(u);case"dd":return b(n);case"o":return b(o);case"ooo":return b(s);case"HH":return b(n);case"H":return b(u);case"hh":return b(n);case"h":return b(u);case"mm":return b(n);case"m":return b(u);case"q":return b(u);case"qq":return b(n);case"s":return b(u);case"ss":return b(n);case"S":return b(o);case"SSS":return b(s);case"u":return Re(c);case"uu":return Re(u);case"uuu":return b(r);case"a":return j(e.meridiems(),0);case"kkkk":return b(i);case"kk":return b(p,_t);case"W":return b(u);case"WW":return b(n);case"E":case"c":return b(r);case"EEE":return j(e.weekdays("short",!1),1);case"EEEE":return j(e.weekdays("long",!1),1);case"ccc":return j(e.weekdays("short",!0),1);case"cccc":return j(e.weekdays("long",!0),1);case"Z":case"ZZ":return ur(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return ur(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return Re(/[a-z_+-/]{1,256}?/i);case" ":return Re(/[^\S\n\r]/);default:return d(k)}})(t)||{invalidReason:Wi};return f.token=t,f}const Zi={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function zi(t,e,r){const{type:n,value:s}=t;if(n==="literal"){const o=/^\s+$/.test(s);return{literal:!o,val:o?" ":s}}const i=e[n];let a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=r.hour12?"hour12":"hour24");let u=Zi[a];if(typeof u=="object"&&(u=u[i]),u)return{literal:!1,val:u}}function Ri(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function Hi(t,e,r){const n=t.match(e);if(n){const s={};let i=1;for(const a in r)if(ke(r,a)){const u=r[a],o=u.groups?u.groups+1:1;!u.literal&&u.token&&(s[u.token.val[0]]=u.deser(n.slice(i,i+o))),i+=o}return[n,s]}else return[n,{}]}function qi(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return T(t.z)||(r=B.create(t.z)),T(t.Z)||(r||(r=new A(t.Z)),n=t.Z),T(t.q)||(t.M=(t.q-1)*3+1),T(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),T(t.u)||(t.S=xt(t.u)),[Object.keys(t).reduce((i,a)=>{const u=e(a);return u&&(i[u]=t[a]),i},{}),r,n]}let yt=null;function Yi(){return yt||(yt=O.fromMillis(1555555555555)),yt}function Pi(t,e){if(t.literal)return t;const r=$.macroTokenToFormatOpts(t.val),n=pn(r,e);return n==null||n.includes(void 0)?t:n}function mn(t,e){return Array.prototype.concat(...t.map(r=>Pi(r,e)))}function yn(t,e,r){const n=mn($.parseFormat(r),t),s=n.map(a=>Ui(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[a,u]=Ri(s),o=RegExp(a,"i"),[l,c]=Hi(e,o,u),[p,g,d]=c?qi(c):[null,null,void 0];if(ke(c,"a")&&ke(c,"H"))throw new pe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:o,rawMatches:l,matches:c,result:p,zone:g,specificOffset:d}}}function ji(t,e,r){const{result:n,zone:s,specificOffset:i,invalidReason:a}=yn(t,e,r);return[n,s,i,a]}function pn(t,e){if(!t)return null;const n=$.create(e,t).dtFormatter(Yi()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>zi(a,t,i))}const pt="Invalid DateTime",lr=864e13;function He(t){return new J("unsupported zone",`the zone "${t.name}" is not supported`)}function gt(t){return t.weekData===null&&(t.weekData=Be(t.c)),t.weekData}function wt(t){return t.localWeekData===null&&(t.localWeekData=Be(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ie(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new O({...r,...e,old:r})}function gn(t,e,r){let n=t-e*60*1e3;const s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function qe(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Je(t,e,r){return gn(rt(t),e,r)}function cr(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:s,day:Math.min(t.c.day,Qe(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=N.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=rt(i);let[o,l]=gn(u,r,t.zone);return a!==0&&(o+=a,l=t.zone.offset(o)),{ts:o,o:l}}function be(t,e,r,n,s,i){const{setZone:a,zone:u}=r;if(t&&Object.keys(t).length!==0||e){const o=e||u,l=O.fromObject(t,{...r,zone:o,specificOffset:i});return a?l:l.setZone(u)}else return O.invalid(new J("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Ye(t,e,r=!0){return t.isValid?$.create(M.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function vt(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=F(t.c.year,r?6:4),e?(n+="-",n+=F(t.c.month),n+="-",n+=F(t.c.day)):(n+=F(t.c.month),n+=F(t.c.day)),n}function dr(t,e,r,n,s,i){let a=F(t.c.hour);return e?(a+=":",a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=":")):a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=F(t.c.second),(t.c.millisecond!==0||!n)&&(a+=".",a+=F(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=F(Math.trunc(-t.o/60)),a+=":",a+=F(Math.trunc(-t.o%60))):(a+="+",a+=F(Math.trunc(t.o/60)),a+=":",a+=F(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const wn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ji={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Gi={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vn=["year","month","day","hour","minute","second","millisecond"],Bi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qi=["year","ordinal","hour","minute","second","millisecond"];function Ki(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new vr(t);return e}function fr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ki(t)}}function hr(t,e){const r=re(e.zone,C.defaultZone),n=M.fromObject(e),s=C.now();let i,a;if(T(t.year))i=s;else{for(const l of vn)T(t[l])&&(t[l]=wn[l]);const u=qr(t)||Yr(t);if(u)return O.invalid(u);const o=r.offset(s);[i,a]=Je(t,o,r)}return new O({ts:i,zone:r,loc:n,o:a})}function mr(t,e,r){const n=T(r.round)?!0:r.round,s=(a,u)=>(a=Ct(a,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(a,u)),i=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(i(r.unit),r.unit);for(const a of r.units){const u=i(a);if(Math.abs(u)>=1)return s(u,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function yr(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class O{constructor(e){const r=e.zone||C.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new J("invalid input"):null)||(r.isValid?null:He(r));this.ts=T(e.ts)?C.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else{const u=r.offset(this.ts);s=qe(this.ts,u),n=Number.isNaN(s.year)?new J("invalid input"):null,s=n?null:s,i=n?null:u}this._zone=r,this.loc=e.loc||M.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new O({})}static local(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static utc(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return e.zone=A.utcInstance,hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static fromJSDate(e,r={}){const n=bs(e)?e.valueOf():NaN;if(Number.isNaN(n))return O.invalid("invalid input");const s=re(r.zone,C.defaultZone);return s.isValid?new O({ts:n,zone:s,loc:M.fromObject(r)}):O.invalid(He(s))}static fromMillis(e,r={}){if(ce(e))return e<-lr||e>lr?O.invalid("Timestamp out of range"):new O({ts:e,zone:re(r.zone,C.defaultZone),loc:M.fromObject(r)});throw new U(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(ce(e))return new O({ts:e*1e3,zone:re(r.zone,C.defaultZone),loc:M.fromObject(r)});throw new U("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=re(r.zone,C.defaultZone);if(!n.isValid)return O.invalid(He(n));const s=M.fromObject(r),i=Ke(e,fr),{minDaysInFirstWeek:a,startOfWeek:u}=Kt(i,s),o=C.now(),l=T(r.specificOffset)?n.offset(o):r.specificOffset,c=!T(i.ordinal),p=!T(i.year),g=!T(i.month)||!T(i.day),d=p||g,w=i.weekYear||i.weekNumber;if((d||c)&&w)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&c)throw new pe("Can't mix ordinal dates with month/day");const f=w||i.weekday&&!d;let k,y,D=qe(o,l);f?(k=Bi,y=Ji,D=Be(D,a,u)):c?(k=Qi,y=Gi,D=mt(D)):(k=vn,y=wn);let V=!1;for(const Ee of k){const En=i[Ee];T(En)?V?i[Ee]=y[Ee]:i[Ee]=D[Ee]:V=!0}const Y=f?Ds(i,a,u):c?Ns(i):qr(i),Q=Y||Yr(i);if(Q)return O.invalid(Q);const On=f?Bt(i,a,u):c?Qt(i):i,[Dn,Nn]=Je(On,l,n),it=new O({ts:Dn,zone:n,o:Nn,loc:s});return i.weekday&&d&&e.weekday!==it.weekday?O.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${it.toISO()}`):it}static fromISO(e,r={}){const[n,s]=pi(e);return be(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,s]=gi(e);return be(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,s]=wi(e);return be(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(T(e)||T(r))throw new U("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[u,o,l,c]=ji(a,e,r);return c?O.invalid(c):be(u,o,n,`format ${r}`,e,l)}static fromString(e,r,n={}){return O.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,s]=Ni(e);return be(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the DateTime is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ts(n);return new O({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=pn(e,M.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return mn($.parseFormat(e),M.fromObject(r)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?gt(this).weekYear:NaN}get weekNumber(){return this.isValid?gt(this).weekNumber:NaN}get weekday(){return this.isValid?gt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wt(this).weekday:NaN}get localWeekNumber(){return this.isValid?wt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wt(this).weekYear:NaN}get ordinal(){return this.isValid?mt(this.c).ordinal:NaN}get monthShort(){return this.isValid?xe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=rt(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*r),u=this.zone.offset(n-i*r);if(a===u)return[this];const o=n-a*r,l=n-u*r,c=qe(o,a),p=qe(l,u);return c.hour===p.hour&&c.minute===p.minute&&c.second===p.second&&c.millisecond===p.millisecond?[ie(this,{ts:o}),ie(this,{ts:l})]:[this]}get isInLeapYear(){return $e(this.year)}get daysInMonth(){return Qe(this.year,this.month)}get daysInYear(){return this.isValid?we(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ve(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ve(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:s}=$.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(A.instance(e),r)}toLocal(){return this.setZone(C.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=re(e,C.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){const i=e.offset(this.ts),a=this.toObject();[s]=Je(a,i,e)}return ie(this,{ts:s,zone:e})}else return O.invalid(He(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return ie(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=Ke(e,fr),{minDaysInFirstWeek:n,startOfWeek:s}=Kt(r,this.loc),i=!T(r.weekYear)||!T(r.weekNumber)||!T(r.weekday),a=!T(r.ordinal),u=!T(r.year),o=!T(r.month)||!T(r.day),l=u||o,c=r.weekYear||r.weekNumber;if((l||a)&&c)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new pe("Can't mix ordinal dates with month/day");let p;i?p=Bt({...Be(this.c,n,s),...r},n,s):T(r.ordinal)?(p={...this.toObject(),...r},T(r.day)&&(p.day=Math.min(Qe(p.year,p.month),p.day))):p=Qt({...mt(this.c),...r});const[g,d]=Je(p,this.o,this.zone);return ie(this,{ts:g,o:d})}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return ie(this,cr(this,r))}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e).negate();return ie(this,cr(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},s=N.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),u=a?this:e,o=a?e:this,l=Ci(u,o,i,s);return a?l.negate():l}diffNow(e="milliseconds",r={}){return this.diff(O.now(),e,r)}until(e){return this.isValid?I.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=s&&s<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||O.fromObject({},{zone:this.zone}),n=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(O.isDateTime))throw new U("max requires all arguments be DateTimes");return Xt(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return yn(a,e,r)}static fromStringExplain(e,r,n={}){return O.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return Ge}static get DATE_MED(){return kr}static get DATE_MED_WITH_WEEKDAY(){return ss}static get DATE_FULL(){return Sr}static get DATE_HUGE(){return Tr}static get TIME_SIMPLE(){return Or}static get TIME_WITH_SECONDS(){return Dr}static get TIME_WITH_SHORT_OFFSET(){return Nr}static get TIME_WITH_LONG_OFFSET(){return Er}static get TIME_24_SIMPLE(){return br}static get TIME_24_WITH_SECONDS(){return _r}static get TIME_24_WITH_SHORT_OFFSET(){return Mr}static get TIME_24_WITH_LONG_OFFSET(){return Ir}static get DATETIME_SHORT(){return xr}static get DATETIME_SHORT_WITH_SECONDS(){return Cr}static get DATETIME_MED(){return Fr}static get DATETIME_MED_WITH_SECONDS(){return Vr}static get DATETIME_MED_WITH_WEEKDAY(){return is}static get DATETIME_FULL(){return Wr}static get DATETIME_FULL_WITH_SECONDS(){return Lr}static get DATETIME_HUGE(){return $r}static get DATETIME_HUGE_WITH_SECONDS(){return Ar}}function _e(t){if(O.isDateTime(t))return t;if(t&&t.valueOf&&ce(t.valueOf()))return O.fromJSDate(t);if(t&&typeof t=="object")return O.fromObject(t);throw new U(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Xi="3.4.4";z.DateTime=O;z.Duration=N;z.FixedOffsetZone=A;z.IANAZone=B;z.Info=xe;z.Interval=I;z.InvalidZone=Ur;z.Settings=C;z.SystemZone=Le;z.VERSION=Xi;z.Zone=Se;var ae=z;S.prototype.addYear=function(){this._date=this._date.plus({years:1})};S.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")};S.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")};S.prototype.addHour=function(){var t=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=t&&(this._date=this._date.plus({hours:1}))};S.prototype.addMinute=function(){var t=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=t&&(this._date=this._date.minus({hours:1}))};S.prototype.subtractMinute=function(){var t=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};S.prototype.subtractSecond=function(){var t=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};S.prototype.getDate=function(){return this._date.day};S.prototype.getFullYear=function(){return this._date.year};S.prototype.getDay=function(){var t=this._date.weekday;return t==7?0:t};S.prototype.getMonth=function(){return this._date.month-1};S.prototype.getHours=function(){return this._date.hour};S.prototype.getMinutes=function(){return this._date.minute};S.prototype.getSeconds=function(){return this._date.second};S.prototype.getMilliseconds=function(){return this._date.millisecond};S.prototype.getTime=function(){return this._date.valueOf()};S.prototype.getUTCDate=function(){return this._getUTC().day};S.prototype.getUTCFullYear=function(){return this._getUTC().year};S.prototype.getUTCDay=function(){var t=this._getUTC().weekday;return t==7?0:t};S.prototype.getUTCMonth=function(){return this._getUTC().month-1};S.prototype.getUTCHours=function(){return this._getUTC().hour};S.prototype.getUTCMinutes=function(){return this._getUTC().minute};S.prototype.getUTCSeconds=function(){return this._getUTC().second};S.prototype.toISOString=function(){return this._date.toUTC().toISO()};S.prototype.toJSON=function(){return this._date.toJSON()};S.prototype.setDate=function(t){this._date=this._date.set({day:t})};S.prototype.setFullYear=function(t){this._date=this._date.set({year:t})};S.prototype.setDay=function(t){this._date=this._date.set({weekday:t})};S.prototype.setMonth=function(t){this._date=this._date.set({month:t+1})};S.prototype.setHours=function(t){this._date=this._date.set({hour:t})};S.prototype.setMinutes=function(t){this._date=this._date.set({minute:t})};S.prototype.setSeconds=function(t){this._date=this._date.set({second:t})};S.prototype.setMilliseconds=function(t){this._date=this._date.set({millisecond:t})};S.prototype._getUTC=function(){return this._date.toUTC()};S.prototype.toString=function(){return this.toDate().toString()};S.prototype.toDate=function(){return this._date.toJSDate()};S.prototype.isLastDayOfMonth=function(){var t=this._date.plus({days:1}).startOf("day");return this._date.month!==t.month};S.prototype.isLastWeekdayOfMonth=function(){var t=this._date.plus({days:7}).startOf("day");return this._date.month!==t.month};function S(t,e){var r={zone:e};if(t?t instanceof S?this._date=t._date:t instanceof Date?this._date=ae.DateTime.fromJSDate(t,r):typeof t=="number"?this._date=ae.DateTime.fromMillis(t,r):typeof t=="string"&&(this._date=ae.DateTime.fromISO(t,r),this._date.isValid||(this._date=ae.DateTime.fromRFC2822(t,r)),this._date.isValid||(this._date=ae.DateTime.fromSQL(t,r)),this._date.isValid||(this._date=ae.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=ae.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(t));e&&e!==this._date.zoneName&&(this._date=this._date.setZone(e))}var ea=S;function ue(t){return{start:t,count:1}}function pr(t,e){t.end=e,t.step=e-t.start,t.count=2}function kt(t,e,r){e&&(e.count===2?(t.push(ue(e.start)),t.push(ue(e.end))):t.push(e)),r&&t.push(r)}function ta(t){for(var e=[],r=void 0,n=0;nl.end?a=a.concat(Array.from({length:l.end-l.start+1}).map(function(g,d){var w=l.start+d;return(w-l.start)%l.step===0?w:null}).filter(function(g){return g!=null})):l.end===r-l.step+1?a.push(l.start+"/"+l.step):a.push(l.start+"-"+l.end+"/"+l.step)}return a.join(",")}var ia=sa,de=ea,aa=ia,gr=1e4;function m(t,e){this._options=e,this._utc=e.utc||!1,this._tz=this._utc?"UTC":e.tz,this._currentDate=new de(e.currentDate,this._tz),this._startDate=e.startDate?new de(e.startDate,this._tz):null,this._endDate=e.endDate?new de(e.endDate,this._tz):null,this._isIterator=e.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=e.nthDayOfWeek||0,this.fields=m._freezeFields(t)}m.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"];m.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"};m.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}];m.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31];m.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}};m.parseDefaults=["0","*","*","*","*","*"];m.standardValidCharacters=/^[,*\d/-]+$/;m.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/;m.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/;m.validCharacters={second:m.standardValidCharacters,minute:m.standardValidCharacters,hour:m.standardValidCharacters,dayOfMonth:m.dayOfMonthValidCharacters,month:m.standardValidCharacters,dayOfWeek:m.dayOfWeekValidCharacters};m._isValidConstraintChar=function(e,r){return typeof r!="string"?!1:e.chars.some(function(n){return r.indexOf(n)>-1})};m._parseField=function(e,r,n){switch(e){case"month":case"dayOfWeek":var s=m.aliases[e];r=r.replace(/[a-z]{3}/gi,function(o){if(o=o.toLowerCase(),typeof s[o]<"u")return s[o];throw new Error('Validation error, cannot resolve alias "'+o+'"')});break}if(!m.validCharacters[e].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(o){var l=[];function c(w){if(w instanceof Array)for(var f=0,k=w.length;fn.max)throw new Error("Constraint error, got value "+y+" expected range "+n.min+"-"+n.max);l.push(y)}else{if(m._isValidConstraintChar(n,w)){l.push(w);return}var D=+w;if(Number.isNaN(D)||Dn.max)throw new Error("Constraint error, got value "+w+" expected range "+n.min+"-"+n.max);e==="dayOfWeek"&&(D=D%7),l.push(D)}}var p=o.split(",");if(!p.every(function(w){return w.length>0}))throw new Error("Invalid list value format");if(p.length>1)for(var g=0,d=p.length;g2)throw new Error("Invalid repeat: "+o);return c.length>1?(c[0]==+c[0]&&(c=[c[0]+"-"+n.max,c[1]]),u(c[0],c[c.length-1])):u(o,l)}function u(o,l){var c=[],p=o.split("-");if(p.length>1){if(p.length<2)return+o;if(!p[0].length){if(!p[1].length)throw new Error("Invalid range: "+o);return+o}var g=+p[0],d=+p[1];if(Number.isNaN(g)||Number.isNaN(d)||gn.max)throw new Error("Constraint error, got range "+g+"-"+d+" expected range "+n.min+"-"+n.max);if(g>d)throw new Error("Invalid range: "+o);var w=+l;if(Number.isNaN(w)||w<=0)throw new Error("Constraint error, cannot repeat at every "+w+" time.");e==="dayOfWeek"&&d%7===0&&c.push(0);for(var f=g,k=d;f<=k;f++){var y=c.indexOf(f)!==-1;!y&&w>0&&w%l===0?(w=1,c.push(f)):w++}return c}return Number.isNaN(+o)?o:+o}return i(r)};m._sortCompareFn=function(t,e){var r=typeof t=="number",n=typeof e=="number";return r&&n?t-e:!r&&n?1:r&&!n?-1:t.localeCompare(e)};m._handleMaxDaysInMonth=function(t){if(t.month.length===1){var e=m.daysInMonth[t.month[0]-1];if(t.dayOfMonth[0]>e)throw new Error("Invalid explicit day of month definition");return t.dayOfMonth.filter(function(r){return r==="L"?!0:r<=e}).sort(m._sortCompareFn)}};m._freezeFields=function(t){for(var e=0,r=m.map.length;e=y)return D[V]===y;return D[0]===y}function n(y,D){if(D<6){if(y.getDate()<8&&D===1)return!0;var V=y.getDate()%7?1:0,Y=y.getDate()-y.getDate()%7,Q=Math.floor(Y/7)+V;return Q===D}return!1}function s(y){return y.length>0&&y.some(function(D){return typeof D=="string"&&D.indexOf("L")>=0})}e=e||!1;var i=e?"subtract":"add",a=new de(this._currentDate,this._tz),u=this._startDate,o=this._endDate,l=a.getTime(),c=0;function p(y){return y.some(function(D){if(!s([D]))return!1;var V=Number.parseInt(D[0])%7;if(Number.isNaN(V))throw new Error("Invalid last weekday of the month expression: "+D);return a.getDay()===V&&a.isLastWeekdayOfMonth()})}for(;c=m.daysInMonth[a.getMonth()],f=this.fields.dayOfWeek.length===m.constraints[5].max-m.constraints[5].min+1,k=a.getHours();if(!g&&(!d||f)){this._applyTimezoneShift(a,i,"Day");continue}if(!w&&f&&!g){this._applyTimezoneShift(a,i,"Day");continue}if(w&&!f&&!d){this._applyTimezoneShift(a,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(a,this._nthDayOfWeek)){this._applyTimezoneShift(a,i,"Day");continue}if(!r(a.getMonth()+1,this.fields.month)){this._applyTimezoneShift(a,i,"Month");continue}if(r(k,this.fields.hour)){if(this._dstEnd===k&&!e){this._dstEnd=null,this._applyTimezoneShift(a,"add","Hour");continue}}else if(this._dstStart!==k){this._dstStart=null,this._applyTimezoneShift(a,i,"Hour");continue}else if(!r(k-1,this.fields.hour)){a[i+"Hour"]();continue}if(!r(a.getMinutes(),this.fields.minute)){this._applyTimezoneShift(a,i,"Minute");continue}if(!r(a.getSeconds(),this.fields.second)){this._applyTimezoneShift(a,i,"Second");continue}if(l===a.getTime()){i==="add"||a.getMilliseconds()===0?this._applyTimezoneShift(a,i,"Second"):a.setMilliseconds(0);continue}break}if(c>=gr)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new de(a,this._tz),this._hasIterated=!0,a};m.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e};m.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e};m.prototype.hasNext=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};m.prototype.hasPrev=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(!0),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};m.prototype.iterate=function(e,r){var n=[];if(e>=0)for(var s=0,i=e;si;s--)try{var a=this.prev();n.push(a),r&&r(a,s)}catch{break}return n};m.prototype.reset=function(e){this._currentDate=new de(e||this._options.currentDate)};m.prototype.stringify=function(e){for(var r=[],n=e?0:1,s=m.map.length;n"u"&&(a.currentDate=new de(void 0,n._tz)),m.predefined[i]&&(i=m.predefined[i]);var u=[],o=(i+"").trim().split(/\s+/);if(o.length>6)throw new Error("Invalid cron expression");for(var l=m.map.length-o.length,c=0,p=m.map.length;cp?c:c-l];if(c1){var Q=+Y[Y.length-1];if(/,/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(Y.length>2||Number.isNaN(Q)||Q<1||Q>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return a.nthDayOfWeek=Q,Y[0]}return V}}return s(e,r)};m.fieldsToExpression=function(e,r){function n(g,d,w){if(!d)throw new Error("Validation error, Field "+g+" is missing");if(d.length===0)throw new Error("Validation error, Field "+g+" contains no values");for(var f=0,k=d.length;fw.max))throw new Error("Constraint error, got value "+y+" expected range "+w.min+"-"+w.max)}}for(var s={},i=0,a=m.map.length;i6)return{interval:Xe.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+e)};ne.parseExpression=function(e,r){return Xe.parse(e,r)};ne.fieldsToExpression=function(e,r){return Xe.fieldsToExpression(e,r)};ne.parseString=function(e){for(var r=e.split(` +import{B as bn}from"./BaseLayout.52f1acec.js";import{R as _n,S as Mn,E as In,a as xn,L as Cn}from"./SourceCode.a748d690.js";import{S as Fn}from"./SaveButton.a02cacb0.js";import{a as Vn}from"./asyncComputed.703c33fd.js";import{eE as Wn,d as We,f as ge,e as te,R as Ln,o as x,Y as ye,b as _,w as E,u as v,aB as at,aG as W,aS as Me,eb as Pe,c as L,e9 as Ce,cU as ot,cz as St,bL as Tt,d7 as ut,cB as lt,S as oe,e$ as $t,dd as wr,E as $n,cy as An,eo as Un,ea as Zn,eg as zn,z as Rn,dh as At,dc as Hn,cX as qn}from"./index.d0f12294.js";import{J as Yn}from"./scripts.9802e877.js";import"./editor.95f16260.js";import{W as Pn}from"./workspaces.e43325e2.js";import{A as jn,a as Jn}from"./index.81ae2c34.js";import{A as Gn}from"./index.a82e0ed1.js";import{_ as Bn}from"./RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js";import{N as Qn}from"./NavbarControls.be646660.js";import{b as Kn}from"./index.3b2f4dca.js";import{A as ct,T as Ut}from"./TabPane.79f4882f.js";import"./uuid.f9389d59.js";import"./validations.2475f715.js";import"./string.d9c83adf.js";import"./PhCopy.vue.dfade011.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhCopySimple.vue.6b8fcb49.js";import"./PhCaretRight.vue.5db53029.js";import"./Badge.f6241be2.js";import"./PhBug.vue.33662d9e.js";import"./PhQuestion.vue.f82af3dd.js";import"./LoadingOutlined.bcfc8c20.js";import"./polling.c979afd7.js";import"./PhPencil.vue.7418c4e5.js";import"./toggleHighContrast.0eb315ff.js";import"./index.289665f1.js";import"./Card.2a8fe028.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./record.8c284c67.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./CloseCircleOutlined.c0e3f3e1.js";import"./popupNotifcation.a0a6244b.js";import"./PhArrowSquareOut.vue.418ffcff.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./PhChats.vue.1b5982bf.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="94903ea1-7cc0-4c84-a2bb-1db9367549c8",t._sentryDebugIdIdentifier="sentry-dbid-94903ea1-7cc0-4c84-a2bb-1db9367549c8")}catch{}})();const dt={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},Xn=["hourly","daily","weekly","monthly","custom"],es={custom:{minute:"*",hour:"*",day:"*",month:"*",weekday:"*"},hourly:{minute:"0",hour:"*",day:"*",month:"*",weekday:"*"},daily:{minute:"0",hour:"6",day:"*",month:"*",weekday:"*"},weekly:{minute:"0",hour:"6",day:"*",month:"*",weekday:"1"},monthly:{minute:"0",hour:"6",day:"1",month:"*",weekday:"*"}};var z={};Object.defineProperty(z,"__esModule",{value:!0});class fe extends Error{}class ts extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class rs extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ns extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class pe extends fe{}class vr extends fe{constructor(e){super(`Invalid unit ${e}`)}}class U extends fe{}class K extends fe{constructor(){super("Zone is an abstract class")}}const h="numeric",G="short",Z="long",Ge={year:h,month:h,day:h},kr={year:h,month:G,day:h},ss={year:h,month:G,day:h,weekday:G},Sr={year:h,month:Z,day:h},Tr={year:h,month:Z,day:h,weekday:Z},Or={hour:h,minute:h},Dr={hour:h,minute:h,second:h},Nr={hour:h,minute:h,second:h,timeZoneName:G},Er={hour:h,minute:h,second:h,timeZoneName:Z},br={hour:h,minute:h,hourCycle:"h23"},_r={hour:h,minute:h,second:h,hourCycle:"h23"},Mr={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:G},Ir={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Z},xr={year:h,month:h,day:h,hour:h,minute:h},Cr={year:h,month:h,day:h,hour:h,minute:h,second:h},Fr={year:h,month:G,day:h,hour:h,minute:h},Vr={year:h,month:G,day:h,hour:h,minute:h,second:h},is={year:h,month:G,day:h,weekday:G,hour:h,minute:h},Wr={year:h,month:Z,day:h,hour:h,minute:h,timeZoneName:G},Lr={year:h,month:Z,day:h,hour:h,minute:h,second:h,timeZoneName:G},$r={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,timeZoneName:Z},Ar={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h,second:h,timeZoneName:Z};class Se{get type(){throw new K}get name(){throw new K}get ianaName(){return this.name}get isUniversal(){throw new K}offsetName(e,r){throw new K}formatOffset(e,r){throw new K}offset(e){throw new K}equals(e){throw new K}get isValid(){throw new K}}let ft=null;class Le extends Se{static get instance(){return ft===null&&(ft=new Le),ft}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Jr(e,r,n)}formatOffset(e,r){return Fe(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let je={};function as(t){return je[t]||(je[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),je[t]}const os={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function us(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,u,o,l,c]=n;return[a,s,i,u,o,l,c]}function ls(t,e){const r=t.formatToParts(e),n=[];for(let s=0;s=0?w:1e3+w,(g-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Zt={};function cs(t,e={}){const r=JSON.stringify([t,e]);let n=Zt[r];return n||(n=new Intl.ListFormat(t,e),Zt[r]=n),n}let Ot={};function Dt(t,e={}){const r=JSON.stringify([t,e]);let n=Ot[r];return n||(n=new Intl.DateTimeFormat(t,e),Ot[r]=n),n}let Nt={};function ds(t,e={}){const r=JSON.stringify([t,e]);let n=Nt[r];return n||(n=new Intl.NumberFormat(t,e),Nt[r]=n),n}let Et={};function fs(t,e={}){const{base:r,...n}=e,s=JSON.stringify([t,n]);let i=Et[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Et[s]=i),i}let Ie=null;function hs(){return Ie||(Ie=new Intl.DateTimeFormat().resolvedOptions().locale,Ie)}let zt={};function ms(t){let e=zt[t];if(!e){const r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,zt[t]=e}return e}function ys(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let n,s;try{n=Dt(t).resolvedOptions(),s=t}catch{const o=t.substring(0,r);n=Dt(o).resolvedOptions(),s=o}const{numberingSystem:i,calendar:a}=n;return[s,i,a]}}function ps(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function gs(t){const e=[];for(let r=1;r<=12;r++){const n=O.utc(2009,r,1);e.push(t(n))}return e}function ws(t){const e=[];for(let r=1;r<=7;r++){const n=O.utc(2016,11,13+r);e.push(t(n))}return e}function ze(t,e,r,n){const s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}function vs(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class ks{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:i,...a}=n;if(!r||Object.keys(a).length>0){const u={useGrouping:!1,...n};n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=ds(e,u)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Ct(e,3);return F(r,this.padTo)}}}class Ss{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),u=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&B.create(u).valid?(s=u,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Dt(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ts{constructor(e,r,n){this.opts={style:"long",...n},!r&&Pr()&&(this.rtf=fs(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):zs(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Os={firstDay:1,minimalDays:4,weekend:[6,7]};class M{static fromOpts(e){return M.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=!1){const a=e||C.defaultLocale,u=a||(i?"en-US":hs()),o=r||C.defaultNumberingSystem,l=n||C.defaultOutputCalendar,c=bt(s)||C.defaultWeekSettings;return new M(u,o,l,c,a)}static resetCache(){Ie=null,Ot={},Nt={},Et={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return M.create(e,r,n,s)}constructor(e,r,n,s,i){const[a,u,o]=ys(e);this.locale=a,this.numberingSystem=r||u||null,this.outputCalendar=n||o||null,this.weekSettings=s,this.intl=ps(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=vs(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:M.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,bt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return ze(this,e,Qr,()=>{const n=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=gs(i=>this.extract(i,n,"month"))),this.monthsCache[s][e]})}weekdays(e,r=!1){return ze(this,e,en,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=ws(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return ze(this,void 0,()=>tn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[O.utc(2016,11,13,9),O.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ze(this,e,rn,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[O.utc(-40,1,1),O.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const s=this.dtFormatter(e,r),i=s.formatToParts(),a=i.find(u=>u.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new ks(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Ss(e,this.intl,r)}relFormatter(e={}){return new Ts(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cs(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:jr()?ms(this.locale):Os}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ht=null;class A extends Se{static get utcInstance(){return ht===null&&(ht=new A(0)),ht}static instance(e){return e===0?A.utcInstance:new A(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new A(nt(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Fe(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Fe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Fe(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Ur extends Se{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function re(t,e){if(T(t)||t===null)return e;if(t instanceof Se)return t;if(Es(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Le.instance:r==="utc"||r==="gmt"?A.utcInstance:A.parseSpecifier(r)||B.create(t)}else return ce(t)?A.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ur(t)}let Rt=()=>Date.now(),Ht="system",qt=null,Yt=null,Pt=null,jt=60,Jt,Gt=null;class C{static get now(){return Rt}static set now(e){Rt=e}static set defaultZone(e){Ht=e}static get defaultZone(){return re(Ht,Le.instance)}static get defaultLocale(){return qt}static set defaultLocale(e){qt=e}static get defaultNumberingSystem(){return Yt}static set defaultNumberingSystem(e){Yt=e}static get defaultOutputCalendar(){return Pt}static set defaultOutputCalendar(e){Pt=e}static get defaultWeekSettings(){return Gt}static set defaultWeekSettings(e){Gt=bt(e)}static get twoDigitCutoffYear(){return jt}static set twoDigitCutoffYear(e){jt=e%100}static get throwOnInvalid(){return Jt}static set throwOnInvalid(e){Jt=e}static resetCaches(){M.resetCache(),B.resetCache()}}class J{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zr=[0,31,59,90,120,151,181,212,243,273,304,334],zr=[0,31,60,91,121,152,182,213,244,274,305,335];function H(t,e){return new J("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Mt(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function Rr(t,e,r){return r+($e(t)?zr:Zr)[e-1]}function Hr(t,e){const r=$e(t)?zr:Zr,n=r.findIndex(i=>iVe(n,e,r)?(l=n+1,o=1):l=n,{weekYear:l,weekNumber:o,weekday:u,...st(t)}}function Bt(t,e=4,r=1){const{weekYear:n,weekNumber:s,weekday:i}=t,a=It(Mt(n,1,e),r),u=we(n);let o=s*7+i-a-7+e,l;o<1?(l=n-1,o+=we(l)):o>u?(l=n+1,o-=we(n)):l=n;const{month:c,day:p}=Hr(l,o);return{year:l,month:c,day:p,...st(t)}}function mt(t){const{year:e,month:r,day:n}=t,s=Rr(e,r,n);return{year:e,ordinal:s,...st(t)}}function Qt(t){const{year:e,ordinal:r}=t,{month:n,day:s}=Hr(e,r);return{year:e,month:n,day:s,...st(t)}}function Kt(t,e){if(!T(t.localWeekday)||!T(t.localWeekNumber)||!T(t.localWeekYear)){if(!T(t.weekday)||!T(t.weekNumber)||!T(t.weekYear))throw new pe("Cannot mix locale-based week fields with ISO-based week fields");return T(t.localWeekday)||(t.weekday=t.localWeekday),T(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),T(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Ds(t,e=4,r=1){const n=tt(t.weekYear),s=q(t.weekNumber,1,Ve(t.weekYear,e,r)),i=q(t.weekday,1,7);return n?s?i?!1:H("weekday",t.weekday):H("week",t.weekNumber):H("weekYear",t.weekYear)}function Ns(t){const e=tt(t.year),r=q(t.ordinal,1,we(t.year));return e?r?!1:H("ordinal",t.ordinal):H("year",t.year)}function qr(t){const e=tt(t.year),r=q(t.month,1,12),n=q(t.day,1,Qe(t.year,t.month));return e?r?n?!1:H("day",t.day):H("month",t.month):H("year",t.year)}function Yr(t){const{hour:e,minute:r,second:n,millisecond:s}=t,i=q(e,0,23)||e===24&&r===0&&n===0&&s===0,a=q(r,0,59),u=q(n,0,59),o=q(s,0,999);return i?a?u?o?!1:H("millisecond",s):H("second",n):H("minute",r):H("hour",e)}function T(t){return typeof t>"u"}function ce(t){return typeof t=="number"}function tt(t){return typeof t=="number"&&t%1===0}function Es(t){return typeof t=="string"}function bs(t){return Object.prototype.toString.call(t)==="[object Date]"}function Pr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function jr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function _s(t){return Array.isArray(t)?t:[t]}function Xt(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{const i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Ms(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ke(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function bt(t){if(t==null)return null;if(typeof t!="object")throw new U("Week settings must be an object");if(!q(t.firstDay,1,7)||!q(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!q(e,1,7)))throw new U("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function q(t,e,r){return tt(t)&&t>=e&&t<=r}function Is(t,e){return t-e*Math.floor(t/e)}function F(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function ee(t){if(!(T(t)||t===null||t===""))return parseInt(t,10)}function se(t){if(!(T(t)||t===null||t===""))return parseFloat(t)}function xt(t){if(!(T(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ct(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function $e(t){return t%4===0&&(t%100!==0||t%400===0)}function we(t){return $e(t)?366:365}function Qe(t,e){const r=Is(e-1,12)+1,n=t+(e-r)/12;return r===2?$e(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function rt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function er(t,e,r){return-It(Mt(t,1,e),r)+e-1}function Ve(t,e=4,r=1){const n=er(t,e,r),s=er(t+1,e,r);return(we(t)-n+s)/7}function _t(t){return t>99?t:t>C.twoDigitCutoffYear?1900+t:2e3+t}function Jr(t,e,r,n=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a={timeZoneName:e,...i},u=new Intl.DateTimeFormat(r,a).formatToParts(s).find(o=>o.type.toLowerCase()==="timezonename");return u?u.value:null}function nt(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function Gr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new U(`Invalid unit value ${t}`);return e}function Ke(t,e){const r={};for(const n in t)if(ke(t,n)){const s=t[n];if(s==null)continue;r[e(n)]=Gr(s)}return r}function Fe(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${F(r,2)}:${F(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${F(r,2)}${F(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function st(t){return Ms(t,["hour","minute","second","millisecond"])}const xs=["January","February","March","April","May","June","July","August","September","October","November","December"],Br=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Cs=["J","F","M","A","M","J","J","A","S","O","N","D"];function Qr(t){switch(t){case"narrow":return[...Cs];case"short":return[...Br];case"long":return[...xs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Kr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fs=["M","T","W","T","F","S","S"];function en(t){switch(t){case"narrow":return[...Fs];case"short":return[...Xr];case"long":return[...Kr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const tn=["AM","PM"],Vs=["Before Christ","Anno Domini"],Ws=["BC","AD"],Ls=["B","A"];function rn(t){switch(t){case"narrow":return[...Ls];case"short":return[...Ws];case"long":return[...Vs];default:return null}}function $s(t){return tn[t.hour<12?0:1]}function As(t,e){return en(e)[t.weekday-1]}function Us(t,e){return Qr(e)[t.month-1]}function Zs(t,e){return rn(e)[t.year<0?0:1]}function zs(t,e,r="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const p=t==="days";switch(e){case 1:return p?"tomorrow":`next ${s[t][0]}`;case-1:return p?"yesterday":`last ${s[t][0]}`;case 0:return p?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,u=Math.abs(e),o=u===1,l=s[t],c=n?o?l[1]:l[2]||l[1]:o?s[t][0]:t;return a?`${u} ${c} ago`:`in ${u} ${c}`}function tr(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const Rs={D:Ge,DD:kr,DDD:Sr,DDDD:Tr,t:Or,tt:Dr,ttt:Nr,tttt:Er,T:br,TT:_r,TTT:Mr,TTTT:Ir,f:xr,ff:Fr,fff:Wr,ffff:$r,F:Cr,FF:Vr,FFF:Lr,FFFF:Ar};class ${static create(e,r={}){return new $(e,r)}static parseFormat(e){let r=null,n="",s=!1;const i=[];for(let a=0;a0&&i.push({literal:s||/^\s+$/.test(n),val:n}),r=null,n="",s=!s):s||u===r?n+=u:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=u,r=u)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Rs[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return F(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(d,w)=>this.loc.extract(e,d,w),a=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",u=()=>n?$s(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(d,w)=>n?Us(e,d):i(w?{month:d}:{month:d,day:"numeric"},"month"),l=(d,w)=>n?As(e,d):i(w?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),c=d=>{const w=$.macroTokenToFormatOpts(d);return w?this.formatWithSystemDefault(e,w):d},p=d=>n?Zs(e,d):i({era:d},"era"),g=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return p("short");case"GG":return p("long");case"GGGGG":return p("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(d)}};return tr($.parseFormat(r),g)}formatDurationFromString(e,r){const n=o=>{switch(o[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=o=>l=>{const c=n(l);return c?this.num(o.get(c),l.length):l},i=$.parseFormat(r),a=i.reduce((o,{literal:l,val:c})=>l?o:o.concat(c),[]),u=e.shiftTo(...a.map(n).filter(o=>o));return tr(i,s(u))}}const nn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Te(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Oe(...t){return e=>t.reduce(([r,n,s],i)=>{const[a,u,o]=i(e,s);return[{...r,...a},u||n,o]},[{},null,1]).slice(0,2)}function De(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const s=r.exec(t);if(s)return n(s)}return[null,null]}function sn(...t){return(e,r)=>{const n={};let s;for(s=0;sd!==void 0&&(w||d&&c)?-d:d;return[{years:g(se(r)),months:g(se(n)),weeks:g(se(s)),days:g(se(i)),hours:g(se(a)),minutes:g(se(u)),seconds:g(se(o),o==="-0"),milliseconds:g(xt(l),p)}]}const ti={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wt(t,e,r,n,s,i,a){const u={year:e.length===2?_t(ee(e)):ee(e),month:Br.indexOf(r)+1,day:ee(n),hour:ee(s),minute:ee(i)};return a&&(u.second=ee(a)),t&&(u.weekday=t.length>3?Kr.indexOf(t)+1:Xr.indexOf(t)+1),u}const ri=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ni(t){const[,e,r,n,s,i,a,u,o,l,c,p]=t,g=Wt(e,s,n,r,i,a,u);let d;return o?d=ti[o]:l?d=0:d=nt(c,p),[g,new A(d)]}function si(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ai=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,oi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function rr(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,s,n,r,i,a,u),A.utcInstance]}function ui(t){const[,e,r,n,s,i,a,u]=t;return[Wt(e,u,r,n,s,i,a),A.utcInstance]}const li=Te(qs,Vt),ci=Te(Ys,Vt),di=Te(Ps,Vt),fi=Te(on),ln=Oe(Qs,Ne,Ae,Ue),hi=Oe(js,Ne,Ae,Ue),mi=Oe(Js,Ne,Ae,Ue),yi=Oe(Ne,Ae,Ue);function pi(t){return De(t,[li,ln],[ci,hi],[di,mi],[fi,yi])}function gi(t){return De(si(t),[ri,ni])}function wi(t){return De(t,[ii,rr],[ai,rr],[oi,ui])}function vi(t){return De(t,[Xs,ei])}const ki=Oe(Ne);function Si(t){return De(t,[Ks,ki])}const Ti=Te(Gs,Bs),Oi=Te(un),Di=Oe(Ne,Ae,Ue);function Ni(t){return De(t,[Ti,ln],[Oi,Di])}const nr="Invalid Duration",cn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ei={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...cn},R=146097/400,he=146097/4800,bi={years:{quarters:4,months:12,weeks:R/7,days:R,hours:R*24,minutes:R*24*60,seconds:R*24*60*60,milliseconds:R*24*60*60*1e3},quarters:{months:3,weeks:R/28,days:R/4,hours:R*24/4,minutes:R*24*60/4,seconds:R*24*60*60/4,milliseconds:R*24*60*60*1e3/4},months:{weeks:he/7,days:he,hours:he*24,minutes:he*24*60,seconds:he*24*60*60,milliseconds:he*24*60*60*1e3},...cn},le=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],_i=le.slice(0).reverse();function X(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new N(n)}function dn(t,e){var r;let n=(r=e.milliseconds)!=null?r:0;for(const s of _i.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function sr(t,e){const r=dn(t,e)<0?-1:1;le.reduceRight((n,s)=>{if(T(e[s]))return n;if(n){const i=e[n]*r,a=t[s][n],u=Math.floor(i/a);e[s]+=u*r,e[n]-=u*a*r}return s},null),le.reduce((n,s)=>{if(T(e[s]))return n;if(n){const i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s]}return s},null)}function Mi(t){const e={};for(const[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}class N{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?bi:Ei;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||M.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return N.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new U(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new N({values:Ke(e,N.normalizeUnit),loc:M.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(ce(e))return N.fromMillis(e);if(N.isDuration(e))return e;if(typeof e=="object")return N.fromObject(e);throw new U(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=vi(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=Si(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the Duration is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ns(n);return new N({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new vr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?$.create(this.loc,n).formatDurationFromString(this,e):nr}toHuman(e={}){if(!this.isValid)return nr;const r=le.map(n=>{const s=this.values[n];return T(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(s)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ct(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},O.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?dn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e),n={};for(const s of le)(ke(r.values,s)||ke(this.values,s))&&(n[s]=r.get(s)+this.get(s));return X(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=Gr(e(this.values[n],n));return X(this,{values:r},!0)}get(e){return this[N.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...Ke(e,N.normalizeUnit)};return X(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return X(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return sr(this.matrix,e),X(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Mi(this.normalize().shiftToAll().toObject());return X(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>N.normalizeUnit(a));const r={},n={},s=this.toObject();let i;for(const a of le)if(e.indexOf(a)>=0){i=a;let u=0;for(const l in n)u+=this.matrix[l][a]*n[l],n[l]=0;ce(s[a])&&(u+=s[a]);const o=Math.trunc(u);r[a]=o,n[a]=(u*1e3-o*1e3)/1e3}else ce(s[a])&&(n[a]=s[a]);for(const a in n)n[a]!==0&&(r[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return sr(this.matrix,r),X(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return X(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of le)if(!r(this.values[n],e.values[n]))return!1;return!0}}const me="Invalid Interval";function Ii(t,e){return!t||!t.isValid?I.invalid("missing or invalid start"):!e||!e.isValid?I.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?I.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(_e).filter(a=>this.contains(a)).sort((a,u)=>a.toMillis()-u.toMillis()),n=[];let{s}=this,i=0;for(;s+this.e?this.e:a;n.push(I.fromDateTimes(s,u)),s=u,i+=1}return n}splitBy(e){const r=N.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;const a=[];for(;no*s));i=+u>+this.e?this.e:u,a.push(I.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e=n?null:I.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.se.e?this.e:e.e;return I.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const s=[],i=e.map(o=>[{time:o.s,type:"s"},{time:o.e,type:"e"}]),a=Array.prototype.concat(...i),u=a.sort((o,l)=>o.time-l.time);for(const o of u)n+=o.type==="s"?1:-1,n===1?r=o.time:(r&&+r!=+o.time&&s.push(I.fromDateTimes(r,o.time)),r=null);return I.merge(s)}difference(...e){return I.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:me}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ge,r={}){return this.isValid?$.create(this.s.loc.clone(r),e).formatInterval(this):me}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:me}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:me}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:me}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:me}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):N.invalid(this.invalidReason)}mapEndpoints(e){return I.fromDateTimes(e(this.s),e(this.e))}}class xe{static hasDST(e=C.defaultZone){const r=O.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return B.isValidZone(e)}static normalizeZone(e){return re(e,C.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return M.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return M.create(r,null,"gregory").eras(e)}static features(){return{relative:Pr(),localeWeek:jr()}}}function ir(t,e){const r=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(N.fromMillis(n).as("days"))}function xi(t,e,r){const n=[["years",(o,l)=>l.year-o.year],["quarters",(o,l)=>l.quarter-o.quarter+(l.year-o.year)*4],["months",(o,l)=>l.month-o.month+(l.year-o.year)*12],["weeks",(o,l)=>{const c=ir(o,l);return(c-c%7)/7}],["days",ir]],s={},i=t;let a,u;for(const[o,l]of n)r.indexOf(o)>=0&&(a=o,s[o]=l(t,e),u=i.plus(s),u>e?(s[o]--,t=i.plus(s),t>e&&(u=t,s[o]--,t=i.plus(s))):t=u);return[t,s,u,a]}function Ci(t,e,r,n){let[s,i,a,u]=xi(t,e,r);const o=e-s,l=r.filter(p=>["hours","minutes","seconds","milliseconds"].indexOf(p)>=0);l.length===0&&(a0?N.fromMillis(o,n).shiftTo(...l).plus(c):c}const Lt={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},ar={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Fi=Lt.hanidec.replace(/[\[|\]]/g,"").split("");function Vi(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}function P({numberingSystem:t},e=""){return new RegExp(`${Lt[t||"latn"]}${e}`)}const Wi="missing Intl.DateTimeFormat.formatToParts support";function b(t,e=r=>r){return{regex:t,deser:([r])=>e(Vi(r))}}const Li=String.fromCharCode(160),fn=`[ ${Li}]`,hn=new RegExp(fn,"g");function $i(t){return t.replace(/\./g,"\\.?").replace(hn,fn)}function or(t){return t.replace(/\./g,"").replace(hn," ").toLowerCase()}function j(t,e){return t===null?null:{regex:RegExp(t.map($i).join("|")),deser:([r])=>t.findIndex(n=>or(r)===or(n))+e}}function ur(t,e){return{regex:t,deser:([,r,n])=>nt(r,n),groups:e}}function Re(t){return{regex:t,deser:([e])=>e}}function Ai(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ui(t,e){const r=P(e),n=P(e,"{2}"),s=P(e,"{3}"),i=P(e,"{4}"),a=P(e,"{6}"),u=P(e,"{1,2}"),o=P(e,"{1,3}"),l=P(e,"{1,6}"),c=P(e,"{1,9}"),p=P(e,"{2,4}"),g=P(e,"{4,6}"),d=k=>({regex:RegExp(Ai(k.val)),deser:([y])=>y,literal:!0}),f=(k=>{if(t.literal)return d(k);switch(k.val){case"G":return j(e.eras("short"),0);case"GG":return j(e.eras("long"),0);case"y":return b(l);case"yy":return b(p,_t);case"yyyy":return b(i);case"yyyyy":return b(g);case"yyyyyy":return b(a);case"M":return b(u);case"MM":return b(n);case"MMM":return j(e.months("short",!0),1);case"MMMM":return j(e.months("long",!0),1);case"L":return b(u);case"LL":return b(n);case"LLL":return j(e.months("short",!1),1);case"LLLL":return j(e.months("long",!1),1);case"d":return b(u);case"dd":return b(n);case"o":return b(o);case"ooo":return b(s);case"HH":return b(n);case"H":return b(u);case"hh":return b(n);case"h":return b(u);case"mm":return b(n);case"m":return b(u);case"q":return b(u);case"qq":return b(n);case"s":return b(u);case"ss":return b(n);case"S":return b(o);case"SSS":return b(s);case"u":return Re(c);case"uu":return Re(u);case"uuu":return b(r);case"a":return j(e.meridiems(),0);case"kkkk":return b(i);case"kk":return b(p,_t);case"W":return b(u);case"WW":return b(n);case"E":case"c":return b(r);case"EEE":return j(e.weekdays("short",!1),1);case"EEEE":return j(e.weekdays("long",!1),1);case"ccc":return j(e.weekdays("short",!0),1);case"cccc":return j(e.weekdays("long",!0),1);case"Z":case"ZZ":return ur(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return ur(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return Re(/[a-z_+-/]{1,256}?/i);case" ":return Re(/[^\S\n\r]/);default:return d(k)}})(t)||{invalidReason:Wi};return f.token=t,f}const Zi={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function zi(t,e,r){const{type:n,value:s}=t;if(n==="literal"){const o=/^\s+$/.test(s);return{literal:!o,val:o?" ":s}}const i=e[n];let a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=r.hour12?"hour12":"hour24");let u=Zi[a];if(typeof u=="object"&&(u=u[i]),u)return{literal:!1,val:u}}function Ri(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function Hi(t,e,r){const n=t.match(e);if(n){const s={};let i=1;for(const a in r)if(ke(r,a)){const u=r[a],o=u.groups?u.groups+1:1;!u.literal&&u.token&&(s[u.token.val[0]]=u.deser(n.slice(i,i+o))),i+=o}return[n,s]}else return[n,{}]}function qi(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return T(t.z)||(r=B.create(t.z)),T(t.Z)||(r||(r=new A(t.Z)),n=t.Z),T(t.q)||(t.M=(t.q-1)*3+1),T(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),T(t.u)||(t.S=xt(t.u)),[Object.keys(t).reduce((i,a)=>{const u=e(a);return u&&(i[u]=t[a]),i},{}),r,n]}let yt=null;function Yi(){return yt||(yt=O.fromMillis(1555555555555)),yt}function Pi(t,e){if(t.literal)return t;const r=$.macroTokenToFormatOpts(t.val),n=pn(r,e);return n==null||n.includes(void 0)?t:n}function mn(t,e){return Array.prototype.concat(...t.map(r=>Pi(r,e)))}function yn(t,e,r){const n=mn($.parseFormat(r),t),s=n.map(a=>Ui(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[a,u]=Ri(s),o=RegExp(a,"i"),[l,c]=Hi(e,o,u),[p,g,d]=c?qi(c):[null,null,void 0];if(ke(c,"a")&&ke(c,"H"))throw new pe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:o,rawMatches:l,matches:c,result:p,zone:g,specificOffset:d}}}function ji(t,e,r){const{result:n,zone:s,specificOffset:i,invalidReason:a}=yn(t,e,r);return[n,s,i,a]}function pn(t,e){if(!t)return null;const n=$.create(e,t).dtFormatter(Yi()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>zi(a,t,i))}const pt="Invalid DateTime",lr=864e13;function He(t){return new J("unsupported zone",`the zone "${t.name}" is not supported`)}function gt(t){return t.weekData===null&&(t.weekData=Be(t.c)),t.weekData}function wt(t){return t.localWeekData===null&&(t.localWeekData=Be(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ie(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new O({...r,...e,old:r})}function gn(t,e,r){let n=t-e*60*1e3;const s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function qe(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Je(t,e,r){return gn(rt(t),e,r)}function cr(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:s,day:Math.min(t.c.day,Qe(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=N.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=rt(i);let[o,l]=gn(u,r,t.zone);return a!==0&&(o+=a,l=t.zone.offset(o)),{ts:o,o:l}}function be(t,e,r,n,s,i){const{setZone:a,zone:u}=r;if(t&&Object.keys(t).length!==0||e){const o=e||u,l=O.fromObject(t,{...r,zone:o,specificOffset:i});return a?l:l.setZone(u)}else return O.invalid(new J("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Ye(t,e,r=!0){return t.isValid?$.create(M.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function vt(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=F(t.c.year,r?6:4),e?(n+="-",n+=F(t.c.month),n+="-",n+=F(t.c.day)):(n+=F(t.c.month),n+=F(t.c.day)),n}function dr(t,e,r,n,s,i){let a=F(t.c.hour);return e?(a+=":",a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=":")):a+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=F(t.c.second),(t.c.millisecond!==0||!n)&&(a+=".",a+=F(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=F(Math.trunc(-t.o/60)),a+=":",a+=F(Math.trunc(-t.o%60))):(a+="+",a+=F(Math.trunc(t.o/60)),a+=":",a+=F(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const wn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ji={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Gi={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vn=["year","month","day","hour","minute","second","millisecond"],Bi=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qi=["year","ordinal","hour","minute","second","millisecond"];function Ki(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new vr(t);return e}function fr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ki(t)}}function hr(t,e){const r=re(e.zone,C.defaultZone),n=M.fromObject(e),s=C.now();let i,a;if(T(t.year))i=s;else{for(const l of vn)T(t[l])&&(t[l]=wn[l]);const u=qr(t)||Yr(t);if(u)return O.invalid(u);const o=r.offset(s);[i,a]=Je(t,o,r)}return new O({ts:i,zone:r,loc:n,o:a})}function mr(t,e,r){const n=T(r.round)?!0:r.round,s=(a,u)=>(a=Ct(a,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(a,u)),i=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(i(r.unit),r.unit);for(const a of r.units){const u=i(a);if(Math.abs(u)>=1)return s(u,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function yr(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class O{constructor(e){const r=e.zone||C.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new J("invalid input"):null)||(r.isValid?null:He(r));this.ts=T(e.ts)?C.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else{const u=r.offset(this.ts);s=qe(this.ts,u),n=Number.isNaN(s.year)?new J("invalid input"):null,s=n?null:s,i=n?null:u}this._zone=r,this.loc=e.loc||M.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new O({})}static local(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static utc(){const[e,r]=yr(arguments),[n,s,i,a,u,o,l]=r;return e.zone=A.utcInstance,hr({year:n,month:s,day:i,hour:a,minute:u,second:o,millisecond:l},e)}static fromJSDate(e,r={}){const n=bs(e)?e.valueOf():NaN;if(Number.isNaN(n))return O.invalid("invalid input");const s=re(r.zone,C.defaultZone);return s.isValid?new O({ts:n,zone:s,loc:M.fromObject(r)}):O.invalid(He(s))}static fromMillis(e,r={}){if(ce(e))return e<-lr||e>lr?O.invalid("Timestamp out of range"):new O({ts:e,zone:re(r.zone,C.defaultZone),loc:M.fromObject(r)});throw new U(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(ce(e))return new O({ts:e*1e3,zone:re(r.zone,C.defaultZone),loc:M.fromObject(r)});throw new U("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=re(r.zone,C.defaultZone);if(!n.isValid)return O.invalid(He(n));const s=M.fromObject(r),i=Ke(e,fr),{minDaysInFirstWeek:a,startOfWeek:u}=Kt(i,s),o=C.now(),l=T(r.specificOffset)?n.offset(o):r.specificOffset,c=!T(i.ordinal),p=!T(i.year),g=!T(i.month)||!T(i.day),d=p||g,w=i.weekYear||i.weekNumber;if((d||c)&&w)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&c)throw new pe("Can't mix ordinal dates with month/day");const f=w||i.weekday&&!d;let k,y,D=qe(o,l);f?(k=Bi,y=Ji,D=Be(D,a,u)):c?(k=Qi,y=Gi,D=mt(D)):(k=vn,y=wn);let V=!1;for(const Ee of k){const En=i[Ee];T(En)?V?i[Ee]=y[Ee]:i[Ee]=D[Ee]:V=!0}const Y=f?Ds(i,a,u):c?Ns(i):qr(i),Q=Y||Yr(i);if(Q)return O.invalid(Q);const On=f?Bt(i,a,u):c?Qt(i):i,[Dn,Nn]=Je(On,l,n),it=new O({ts:Dn,zone:n,o:Nn,loc:s});return i.weekday&&d&&e.weekday!==it.weekday?O.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${it.toISO()}`):it}static fromISO(e,r={}){const[n,s]=pi(e);return be(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,s]=gi(e);return be(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,s]=wi(e);return be(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(T(e)||T(r))throw new U("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[u,o,l,c]=ji(a,e,r);return c?O.invalid(c):be(u,o,n,`format ${r}`,e,l)}static fromString(e,r,n={}){return O.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,s]=Ni(e);return be(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new U("need to specify a reason the DateTime is invalid");const n=e instanceof J?e:new J(e,r);if(C.throwOnInvalid)throw new ts(n);return new O({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=pn(e,M.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return mn($.parseFormat(e),M.fromObject(r)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?gt(this).weekYear:NaN}get weekNumber(){return this.isValid?gt(this).weekNumber:NaN}get weekday(){return this.isValid?gt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wt(this).weekday:NaN}get localWeekNumber(){return this.isValid?wt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wt(this).weekYear:NaN}get ordinal(){return this.isValid?mt(this.c).ordinal:NaN}get monthShort(){return this.isValid?xe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=rt(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*r),u=this.zone.offset(n-i*r);if(a===u)return[this];const o=n-a*r,l=n-u*r,c=qe(o,a),p=qe(l,u);return c.hour===p.hour&&c.minute===p.minute&&c.second===p.second&&c.millisecond===p.millisecond?[ie(this,{ts:o}),ie(this,{ts:l})]:[this]}get isInLeapYear(){return $e(this.year)}get daysInMonth(){return Qe(this.year,this.month)}get daysInYear(){return this.isValid?we(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ve(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ve(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:s}=$.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(A.instance(e),r)}toLocal(){return this.setZone(C.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=re(e,C.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){const i=e.offset(this.ts),a=this.toObject();[s]=Je(a,i,e)}return ie(this,{ts:s,zone:e})}else return O.invalid(He(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return ie(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=Ke(e,fr),{minDaysInFirstWeek:n,startOfWeek:s}=Kt(r,this.loc),i=!T(r.weekYear)||!T(r.weekNumber)||!T(r.weekday),a=!T(r.ordinal),u=!T(r.year),o=!T(r.month)||!T(r.day),l=u||o,c=r.weekYear||r.weekNumber;if((l||a)&&c)throw new pe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new pe("Can't mix ordinal dates with month/day");let p;i?p=Bt({...Be(this.c,n,s),...r},n,s):T(r.ordinal)?(p={...this.toObject(),...r},T(r.day)&&(p.day=Math.min(Qe(p.year,p.month),p.day))):p=Qt({...mt(this.c),...r});const[g,d]=Je(p,this.o,this.zone);return ie(this,{ts:g,o:d})}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return ie(this,cr(this,r))}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e).negate();return ie(this,cr(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},s=N.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),u=a?this:e,o=a?e:this,l=Ci(u,o,i,s);return a?l.negate():l}diffNow(e="milliseconds",r={}){return this.diff(O.now(),e,r)}until(e){return this.isValid?I.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=s&&s<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||O.fromObject({},{zone:this.zone}),n=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(O.isDateTime))throw new U("max requires all arguments be DateTimes");return Xt(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return yn(a,e,r)}static fromStringExplain(e,r,n={}){return O.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return Ge}static get DATE_MED(){return kr}static get DATE_MED_WITH_WEEKDAY(){return ss}static get DATE_FULL(){return Sr}static get DATE_HUGE(){return Tr}static get TIME_SIMPLE(){return Or}static get TIME_WITH_SECONDS(){return Dr}static get TIME_WITH_SHORT_OFFSET(){return Nr}static get TIME_WITH_LONG_OFFSET(){return Er}static get TIME_24_SIMPLE(){return br}static get TIME_24_WITH_SECONDS(){return _r}static get TIME_24_WITH_SHORT_OFFSET(){return Mr}static get TIME_24_WITH_LONG_OFFSET(){return Ir}static get DATETIME_SHORT(){return xr}static get DATETIME_SHORT_WITH_SECONDS(){return Cr}static get DATETIME_MED(){return Fr}static get DATETIME_MED_WITH_SECONDS(){return Vr}static get DATETIME_MED_WITH_WEEKDAY(){return is}static get DATETIME_FULL(){return Wr}static get DATETIME_FULL_WITH_SECONDS(){return Lr}static get DATETIME_HUGE(){return $r}static get DATETIME_HUGE_WITH_SECONDS(){return Ar}}function _e(t){if(O.isDateTime(t))return t;if(t&&t.valueOf&&ce(t.valueOf()))return O.fromJSDate(t);if(t&&typeof t=="object")return O.fromObject(t);throw new U(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Xi="3.4.4";z.DateTime=O;z.Duration=N;z.FixedOffsetZone=A;z.IANAZone=B;z.Info=xe;z.Interval=I;z.InvalidZone=Ur;z.Settings=C;z.SystemZone=Le;z.VERSION=Xi;z.Zone=Se;var ae=z;S.prototype.addYear=function(){this._date=this._date.plus({years:1})};S.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")};S.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")};S.prototype.addHour=function(){var t=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=t&&(this._date=this._date.plus({hours:1}))};S.prototype.addMinute=function(){var t=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=t&&(this._date=this._date.minus({hours:1}))};S.prototype.subtractMinute=function(){var t=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};S.prototype.subtractSecond=function(){var t=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>t&&(this._date=this._date.minus({hours:1}))};S.prototype.getDate=function(){return this._date.day};S.prototype.getFullYear=function(){return this._date.year};S.prototype.getDay=function(){var t=this._date.weekday;return t==7?0:t};S.prototype.getMonth=function(){return this._date.month-1};S.prototype.getHours=function(){return this._date.hour};S.prototype.getMinutes=function(){return this._date.minute};S.prototype.getSeconds=function(){return this._date.second};S.prototype.getMilliseconds=function(){return this._date.millisecond};S.prototype.getTime=function(){return this._date.valueOf()};S.prototype.getUTCDate=function(){return this._getUTC().day};S.prototype.getUTCFullYear=function(){return this._getUTC().year};S.prototype.getUTCDay=function(){var t=this._getUTC().weekday;return t==7?0:t};S.prototype.getUTCMonth=function(){return this._getUTC().month-1};S.prototype.getUTCHours=function(){return this._getUTC().hour};S.prototype.getUTCMinutes=function(){return this._getUTC().minute};S.prototype.getUTCSeconds=function(){return this._getUTC().second};S.prototype.toISOString=function(){return this._date.toUTC().toISO()};S.prototype.toJSON=function(){return this._date.toJSON()};S.prototype.setDate=function(t){this._date=this._date.set({day:t})};S.prototype.setFullYear=function(t){this._date=this._date.set({year:t})};S.prototype.setDay=function(t){this._date=this._date.set({weekday:t})};S.prototype.setMonth=function(t){this._date=this._date.set({month:t+1})};S.prototype.setHours=function(t){this._date=this._date.set({hour:t})};S.prototype.setMinutes=function(t){this._date=this._date.set({minute:t})};S.prototype.setSeconds=function(t){this._date=this._date.set({second:t})};S.prototype.setMilliseconds=function(t){this._date=this._date.set({millisecond:t})};S.prototype._getUTC=function(){return this._date.toUTC()};S.prototype.toString=function(){return this.toDate().toString()};S.prototype.toDate=function(){return this._date.toJSDate()};S.prototype.isLastDayOfMonth=function(){var t=this._date.plus({days:1}).startOf("day");return this._date.month!==t.month};S.prototype.isLastWeekdayOfMonth=function(){var t=this._date.plus({days:7}).startOf("day");return this._date.month!==t.month};function S(t,e){var r={zone:e};if(t?t instanceof S?this._date=t._date:t instanceof Date?this._date=ae.DateTime.fromJSDate(t,r):typeof t=="number"?this._date=ae.DateTime.fromMillis(t,r):typeof t=="string"&&(this._date=ae.DateTime.fromISO(t,r),this._date.isValid||(this._date=ae.DateTime.fromRFC2822(t,r)),this._date.isValid||(this._date=ae.DateTime.fromSQL(t,r)),this._date.isValid||(this._date=ae.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",r))):this._date=ae.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(t));e&&e!==this._date.zoneName&&(this._date=this._date.setZone(e))}var ea=S;function ue(t){return{start:t,count:1}}function pr(t,e){t.end=e,t.step=e-t.start,t.count=2}function kt(t,e,r){e&&(e.count===2?(t.push(ue(e.start)),t.push(ue(e.end))):t.push(e)),r&&t.push(r)}function ta(t){for(var e=[],r=void 0,n=0;nl.end?a=a.concat(Array.from({length:l.end-l.start+1}).map(function(g,d){var w=l.start+d;return(w-l.start)%l.step===0?w:null}).filter(function(g){return g!=null})):l.end===r-l.step+1?a.push(l.start+"/"+l.step):a.push(l.start+"-"+l.end+"/"+l.step)}return a.join(",")}var ia=sa,de=ea,aa=ia,gr=1e4;function m(t,e){this._options=e,this._utc=e.utc||!1,this._tz=this._utc?"UTC":e.tz,this._currentDate=new de(e.currentDate,this._tz),this._startDate=e.startDate?new de(e.startDate,this._tz):null,this._endDate=e.endDate?new de(e.endDate,this._tz):null,this._isIterator=e.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=e.nthDayOfWeek||0,this.fields=m._freezeFields(t)}m.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"];m.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"};m.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}];m.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31];m.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}};m.parseDefaults=["0","*","*","*","*","*"];m.standardValidCharacters=/^[,*\d/-]+$/;m.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/;m.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/;m.validCharacters={second:m.standardValidCharacters,minute:m.standardValidCharacters,hour:m.standardValidCharacters,dayOfMonth:m.dayOfMonthValidCharacters,month:m.standardValidCharacters,dayOfWeek:m.dayOfWeekValidCharacters};m._isValidConstraintChar=function(e,r){return typeof r!="string"?!1:e.chars.some(function(n){return r.indexOf(n)>-1})};m._parseField=function(e,r,n){switch(e){case"month":case"dayOfWeek":var s=m.aliases[e];r=r.replace(/[a-z]{3}/gi,function(o){if(o=o.toLowerCase(),typeof s[o]<"u")return s[o];throw new Error('Validation error, cannot resolve alias "'+o+'"')});break}if(!m.validCharacters[e].test(r))throw new Error("Invalid characters, got value: "+r);r.indexOf("*")!==-1?r=r.replace(/\*/g,n.min+"-"+n.max):r.indexOf("?")!==-1&&(r=r.replace(/\?/g,n.min+"-"+n.max));function i(o){var l=[];function c(w){if(w instanceof Array)for(var f=0,k=w.length;fn.max)throw new Error("Constraint error, got value "+y+" expected range "+n.min+"-"+n.max);l.push(y)}else{if(m._isValidConstraintChar(n,w)){l.push(w);return}var D=+w;if(Number.isNaN(D)||Dn.max)throw new Error("Constraint error, got value "+w+" expected range "+n.min+"-"+n.max);e==="dayOfWeek"&&(D=D%7),l.push(D)}}var p=o.split(",");if(!p.every(function(w){return w.length>0}))throw new Error("Invalid list value format");if(p.length>1)for(var g=0,d=p.length;g2)throw new Error("Invalid repeat: "+o);return c.length>1?(c[0]==+c[0]&&(c=[c[0]+"-"+n.max,c[1]]),u(c[0],c[c.length-1])):u(o,l)}function u(o,l){var c=[],p=o.split("-");if(p.length>1){if(p.length<2)return+o;if(!p[0].length){if(!p[1].length)throw new Error("Invalid range: "+o);return+o}var g=+p[0],d=+p[1];if(Number.isNaN(g)||Number.isNaN(d)||gn.max)throw new Error("Constraint error, got range "+g+"-"+d+" expected range "+n.min+"-"+n.max);if(g>d)throw new Error("Invalid range: "+o);var w=+l;if(Number.isNaN(w)||w<=0)throw new Error("Constraint error, cannot repeat at every "+w+" time.");e==="dayOfWeek"&&d%7===0&&c.push(0);for(var f=g,k=d;f<=k;f++){var y=c.indexOf(f)!==-1;!y&&w>0&&w%l===0?(w=1,c.push(f)):w++}return c}return Number.isNaN(+o)?o:+o}return i(r)};m._sortCompareFn=function(t,e){var r=typeof t=="number",n=typeof e=="number";return r&&n?t-e:!r&&n?1:r&&!n?-1:t.localeCompare(e)};m._handleMaxDaysInMonth=function(t){if(t.month.length===1){var e=m.daysInMonth[t.month[0]-1];if(t.dayOfMonth[0]>e)throw new Error("Invalid explicit day of month definition");return t.dayOfMonth.filter(function(r){return r==="L"?!0:r<=e}).sort(m._sortCompareFn)}};m._freezeFields=function(t){for(var e=0,r=m.map.length;e=y)return D[V]===y;return D[0]===y}function n(y,D){if(D<6){if(y.getDate()<8&&D===1)return!0;var V=y.getDate()%7?1:0,Y=y.getDate()-y.getDate()%7,Q=Math.floor(Y/7)+V;return Q===D}return!1}function s(y){return y.length>0&&y.some(function(D){return typeof D=="string"&&D.indexOf("L")>=0})}e=e||!1;var i=e?"subtract":"add",a=new de(this._currentDate,this._tz),u=this._startDate,o=this._endDate,l=a.getTime(),c=0;function p(y){return y.some(function(D){if(!s([D]))return!1;var V=Number.parseInt(D[0])%7;if(Number.isNaN(V))throw new Error("Invalid last weekday of the month expression: "+D);return a.getDay()===V&&a.isLastWeekdayOfMonth()})}for(;c=m.daysInMonth[a.getMonth()],f=this.fields.dayOfWeek.length===m.constraints[5].max-m.constraints[5].min+1,k=a.getHours();if(!g&&(!d||f)){this._applyTimezoneShift(a,i,"Day");continue}if(!w&&f&&!g){this._applyTimezoneShift(a,i,"Day");continue}if(w&&!f&&!d){this._applyTimezoneShift(a,i,"Day");continue}if(this._nthDayOfWeek>0&&!n(a,this._nthDayOfWeek)){this._applyTimezoneShift(a,i,"Day");continue}if(!r(a.getMonth()+1,this.fields.month)){this._applyTimezoneShift(a,i,"Month");continue}if(r(k,this.fields.hour)){if(this._dstEnd===k&&!e){this._dstEnd=null,this._applyTimezoneShift(a,"add","Hour");continue}}else if(this._dstStart!==k){this._dstStart=null,this._applyTimezoneShift(a,i,"Hour");continue}else if(!r(k-1,this.fields.hour)){a[i+"Hour"]();continue}if(!r(a.getMinutes(),this.fields.minute)){this._applyTimezoneShift(a,i,"Minute");continue}if(!r(a.getSeconds(),this.fields.second)){this._applyTimezoneShift(a,i,"Second");continue}if(l===a.getTime()){i==="add"||a.getMilliseconds()===0?this._applyTimezoneShift(a,i,"Second"):a.setMilliseconds(0);continue}break}if(c>=gr)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new de(a,this._tz),this._hasIterated=!0,a};m.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e};m.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e};m.prototype.hasNext=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};m.prototype.hasPrev=function(){var t=this._currentDate,e=this._hasIterated;try{return this._findSchedule(!0),!0}catch{return!1}finally{this._currentDate=t,this._hasIterated=e}};m.prototype.iterate=function(e,r){var n=[];if(e>=0)for(var s=0,i=e;si;s--)try{var a=this.prev();n.push(a),r&&r(a,s)}catch{break}return n};m.prototype.reset=function(e){this._currentDate=new de(e||this._options.currentDate)};m.prototype.stringify=function(e){for(var r=[],n=e?0:1,s=m.map.length;n"u"&&(a.currentDate=new de(void 0,n._tz)),m.predefined[i]&&(i=m.predefined[i]);var u=[],o=(i+"").trim().split(/\s+/);if(o.length>6)throw new Error("Invalid cron expression");for(var l=m.map.length-o.length,c=0,p=m.map.length;cp?c:c-l];if(c1){var Q=+Y[Y.length-1];if(/,/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(V))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(Y.length>2||Number.isNaN(Q)||Q<1||Q>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return a.nthDayOfWeek=Q,Y[0]}return V}}return s(e,r)};m.fieldsToExpression=function(e,r){function n(g,d,w){if(!d)throw new Error("Validation error, Field "+g+" is missing");if(d.length===0)throw new Error("Validation error, Field "+g+" contains no values");for(var f=0,k=d.length;fw.max))throw new Error("Constraint error, got value "+y+" expected range "+w.min+"-"+w.max)}}for(var s={},i=0,a=m.map.length;i6)return{interval:Xe.parse(r.slice(0,6).join(" ")),command:r.slice(6,r.length)};throw new Error("Invalid entry: "+e)};ne.parseExpression=function(e,r){return Xe.parse(e,r)};ne.fieldsToExpression=function(e,r){return Xe.fieldsToExpression(e,r)};ne.parseString=function(e){for(var r=e.split(` `),n={variables:{},expressions:[],errors:{}},s=0,i=r.length;s0){if(o.match(/^#/))continue;if(u=o.match(/^(.*)=(.*)$/))n.variables[u[1]]=u[2];else{var l=null;try{l=ne._parseEntry("0 "+o),n.expressions.push(l.interval)}catch(c){n.errors[o]=c}}}}return n};ne.parseFile=function(e,r){ca.readFile(e,function(n,s){if(n){r(n);return}return r(null,ne.parseString(s.toString()))})};var kn=ne;function et(t){return`${t.minute} ${t.hour} ${t.day} ${t.month} ${t.weekday}`}function Sn(t){const[e,r,n,s,i]=t.split(" ");return{minute:e||"*",hour:r||"*",day:n||"*",month:s||"*",weekday:i||"*"}}const da=t=>t.some(e=>e.includes("-")||e.includes(",")||e.includes("/"));function fa(t){const{hour:e,day:r,weekday:n,month:s,minute:i}=t;return da([s,r,n,e,i])||s!=="*"?"custom":n!=="*"?r==="*"?"weekly":"custom":r!=="*"?"monthly":e!=="*"?"daily":i!=="*"?"hourly":"custom"}function ha(t){return t.split(" ").length===5}function Tn(t){try{return kn.parseExpression(t,{}),!0}catch{return!1}}const ma=We({__name:"CronEditor",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){const r=t,n=ge(()=>{const f=r.value.hour,k=r.value.minute;return $t(`${f}:${k}`,"HH:mm")}),s=te(!1),i=ge(()=>o.value.periodicity!="custom"?{message:"",status:"success"}:s.value&&ha(o.value.crontabStr)||Tn(o.value.crontabStr)?{message:"",status:"success"}:{message:"Invalid expression",status:"error"});function a(f){switch(fa(f)){case"custom":return{periodicity:"custom",crontabStr:et(f)};case"hourly":return{periodicity:"hourly",minute:f.minute};case"daily":return{periodicity:"daily",hour:f.hour,minute:f.minute};case"weekly":return{periodicity:"weekly",weekday:f.weekday,hour:f.hour,minute:f.minute};case"monthly":return{periodicity:"monthly",day:f.day,hour:f.hour,minute:f.minute}}}function u(f){switch(f.periodicity){case"custom":return Sn(f.crontabStr);case"hourly":return{minute:f.minute,hour:"*",day:"*",month:"*",weekday:"*"};case"daily":return{minute:f.minute,hour:f.hour,day:"*",month:"*",weekday:"*"};case"weekly":return{minute:f.minute,hour:f.hour,day:"*",month:"*",weekday:f.weekday};case"monthly":return{minute:f.minute,hour:f.hour,day:f.day,month:"*",weekday:"*"}}}const o=Ln(a(r.value));function l(f){o.value={periodicity:"custom",crontabStr:f},e("update:value",u(o.value))}const c=f=>{o.value=a(es[f]),e("update:value",u(o.value))},p=f=>{parseInt(f)>59||(o.value={periodicity:"hourly",minute:f.length?f:"0"},e("update:value",u(o.value)))},g=f=>{const k=$t(f);switch(o.value.periodicity){case"daily":o.value={periodicity:o.value.periodicity,hour:k.hour().toString(),minute:k.minute().toString()};break;case"weekly":o.value={periodicity:o.value.periodicity,weekday:o.value.weekday,hour:k.hour().toString(),minute:k.minute().toString()};break;case"monthly":o.value={periodicity:o.value.periodicity,day:o.value.day,hour:k.hour().toString(),minute:k.minute().toString()};break}e("update:value",u(o.value))},d=f=>{o.value={periodicity:"weekly",weekday:f,hour:"0",minute:"0"},e("update:value",u(o.value))},w=f=>{o.value={periodicity:"monthly",day:f,hour:"0",minute:"0"},e("update:value",u(o.value))};return(f,k)=>(x(),ye(Me,null,[_(v(St),{title:"Recurrence"},{default:E(()=>[_(v(at),{placeholder:"Choose a periodicity",value:o.value.periodicity,"onUpdate:value":c},{default:E(()=>[W(" > "),(x(!0),ye(Me,null,Pe(v(Xn),(y,D)=>(x(),L(v(ot),{key:D,value:y},{default:E(()=>[W(Ce(y),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),_(v(St),{help:i.value.message,"validate-status":i.value.status},{default:E(()=>[o.value.periodicity==="custom"?(x(),L(v(Tt),{key:0,value:o.value.crontabStr,"onUpdate:value":l,onBlur:k[0]||(k[0]=y=>s.value=!1),onFocus:k[1]||(k[1]=y=>s.value=!0)},null,8,["value"])):o.value.periodicity==="hourly"?(x(),L(v(Tt),{key:1,value:parseInt(f.value.minute),"onUpdate:value":p},{addonBefore:E(()=>[W(" at ")]),addonAfter:E(()=>[W(" minutes ")]),_:1},8,["value"])):o.value.periodicity==="daily"?(x(),L(v(lt),{key:2},{default:E(()=>[W(" on "),_(v(ut),{value:n.value,format:"HH:mm","allow-clear":!1,"onUpdate:value":g},null,8,["value"]),W(" UTC ")]),_:1})):o.value.periodicity==="weekly"?(x(),L(v(lt),{key:3},{default:E(()=>[W(" on "),_(v(at),{style:{width:"200px"},value:Object.values(v(dt))[parseInt(o.value.weekday)],"onUpdate:value":d},{default:E(()=>[(x(!0),ye(Me,null,Pe(v(dt),(y,D)=>(x(),L(v(ot),{key:D,value:D,selected:y===Object.values(v(dt))[parseInt(f.value.weekday)]},{default:E(()=>[W(Ce(y),1)]),_:2},1032,["value","selected"]))),128))]),_:1},8,["value"]),W(" at "),_(v(ut),{value:n.value,format:"HH:mm","allow-clear":!1,"onUpdate:value":g},null,8,["value"]),W(" UTC ")]),_:1})):o.value.periodicity==="monthly"?(x(),L(v(lt),{key:4},{default:E(()=>[W(" on "),_(v(at),{style:{width:"60px"},value:o.value.day,"onUpdate:value":w},{default:E(()=>[(x(),ye(Me,null,Pe(31,y=>_(v(ot),{key:y,value:y},{default:E(()=>[W(Ce(y),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"]),W(" at "),_(v(ut),{value:n.value,format:"HH:mm","allow-clear":!1,"onUpdate:value":g},null,8,["value"]),W(" UTC ")]),_:1})):oe("",!0)]),_:1},8,["help","validate-status"])],64))}}),ya=We({__name:"NextRuns",props:{crontab:{}},setup(t){const e=t,r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=ge(()=>new Intl.DateTimeFormat("en-US",{dateStyle:"full",timeStyle:"long",timeZone:r})),s=ge(()=>{const a=kn.parseExpression(et(e.crontab),{tz:"UTC"}),u=[];for(let o=0;o<8;o++)u.push(a.next().toDate());return u}),i=ge(()=>Tn(et(e.crontab)));return(a,u)=>(x(),L(v(Gn),{direction:"vertical",style:{width:"100%"}},{default:E(()=>[_(v(wr),{level:3},{default:E(()=>[W("Next Runs")]),_:1}),i.value?(x(),L(v(jn),{key:0,size:"small",bordered:""},{default:E(()=>[(x(!0),ye(Me,null,Pe(s.value,(o,l)=>(x(),L(v(Jn),{key:l},{default:E(()=>[W(Ce(n.value.format(o)),1)]),_:2},1024))),128))]),_:1})):oe("",!0)]),_:1}))}}),pa=We({__name:"JobSettings",props:{job:{}},setup(t){const r=te(t.job),n=$n(Sn(r.value.schedule)),s=i=>{n.minute==i.minute&&n.hour==i.hour&&n.day==i.day&&n.month==i.month&&n.weekday==i.weekday||(n.minute=i.minute,n.hour=i.hour,n.day=i.day,n.month=i.month,n.weekday=i.weekday,r.value.schedule=et(n))};return(i,a)=>(x(),L(v(An),{class:"schedule-editor",layout:"vertical",style:{"padding-bottom":"50px"}},{default:E(()=>[_(v(St),{label:"Name",required:""},{default:E(()=>[_(v(Tt),{value:r.value.title,"onUpdate:value":a[0]||(a[0]=u=>r.value.title=u)},null,8,["value"])]),_:1}),_(_n,{runtime:r.value},null,8,["runtime"]),_(v(wr),{level:3},{default:E(()=>[W("Schedule")]),_:1}),_(ma,{value:n,"onUpdate:value":s},null,8,["value"]),_(ya,{crontab:n},null,8,["crontab"])]),_:1}))}}),ga={style:{width:"100%",display:"flex","flex-direction":"column"}},wa=We({__name:"JobTester",props:{job:{},executionConfig:{},disabledWarning:{}},setup(t,{expose:e}){const r=t,n=te(!1);async function s(){n.value=!0;try{r.executionConfig.attached?await r.job.run():await r.job.test()}finally{n.value=!1}}return e({test:s}),(i,a)=>(x(),ye("div",ga,[_(Bn,{loading:n.value,style:{"max-width":"350px"},disabled:i.disabledWarning,onClick:s,onSave:a[0]||(a[0]=u=>i.job.save())},null,8,["loading","disabled"])]))}}),lo=We({__name:"JobEditor",setup(t){const e=Un(),r=Zn(),n=te(null);function s(){e.push({name:"stages"})}const i=te(null),a=k=>{!d.value||(d.value.job.file=k)},u=te("source-code"),o=te("preview");function l(){var y;if(!d.value)return;const k=d.value.job.codeContent;(y=i.value)==null||y.updateLocalEditorCode(k)}const c=te({attached:!1,stageRunId:null,isInitial:!0}),p=k=>c.value={...c.value,attached:!!k},g=ge(()=>{var k;return(k=d.value)!=null&&k.job.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:null}),{result:d}=Vn(()=>Promise.all([Pn.get(),Yn.get(r.params.id)]).then(([k,y])=>Rn({workspace:k,job:y}))),w=Cn.create(),f=k=>{var y;return k!==u.value&&((y=d.value)==null?void 0:y.job.hasChanges())};return(k,y)=>(x(),L(bn,null,zn({navbar:E(()=>[v(d)?(x(),L(v(Kn),{key:0,title:v(d).job.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:s},{extra:E(()=>[_(Qn,{"editing-model":v(d).job},null,8,["editing-model"])]),_:1},8,["title"])):oe("",!0)]),content:E(()=>[v(d)?(x(),L(In,{key:0},{left:E(()=>[_(v(Ut),{"active-key":u.value,"onUpdate:activeKey":y[0]||(y[0]=D=>u.value=D)},{rightExtra:E(()=>[_(Fn,{model:v(d).job,onSave:l},null,8,["model"])]),default:E(()=>[_(v(ct),{key:"source-code",tab:"Source code",disabled:f("source-code")},null,8,["disabled"]),_(v(ct),{key:"settings",tab:"Settings",disabled:f("settings")},null,8,["disabled"])]),_:1},8,["active-key"]),u.value==="source-code"?(x(),L(xn,{key:0,script:v(d).job,workspace:v(d).workspace,onUpdateFile:a},null,8,["script","workspace"])):oe("",!0),v(d).job&&u.value==="settings"?(x(),L(pa,{key:1,job:v(d).job},null,8,["job"])):oe("",!0)]),right:E(()=>[_(v(Ut),{"active-key":o.value,"onUpdate:activeKey":y[1]||(y[1]=D=>o.value=D)},{rightExtra:E(()=>[_(v(At),{align:"center",gap:"middle"},{default:E(()=>[_(v(At),{gap:"small"},{default:E(()=>[_(v(Hn),null,{default:E(()=>[W(Ce(c.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),_(v(qn),{checked:c.value.attached,"onUpdate:checked":p},null,8,["checked"])]),_:1})]),_:1})]),default:E(()=>[_(v(ct),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),v(d).job?(x(),L(wa,{key:0,ref_key:"tester",ref:n,"execution-config":c.value,job:v(d).job,"disabled-warning":g.value},null,8,["execution-config","job","disabled-warning"])):oe("",!0)]),_:1})):oe("",!0)]),_:2},[v(d)?{name:"footer",fn:E(()=>[_(Mn,{"stage-type":"jobs",stage:v(d).job,"log-service":v(w),workspace:v(d).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{lo as default}; -//# sourceMappingURL=JobEditor.080bdf78.js.map +//# sourceMappingURL=JobEditor.a781566d.js.map diff --git a/abstra_statics/dist/assets/Live.089a1ef4.js b/abstra_statics/dist/assets/Live.089a1ef4.js new file mode 100644 index 0000000000..fa72f2a1f1 --- /dev/null +++ b/abstra_statics/dist/assets/Live.089a1ef4.js @@ -0,0 +1,2 @@ +import{C as O}from"./CrudView.423d8744.js";import{a as F}from"./asyncComputed.703c33fd.js";import{d as R,D as z,f as M,o as n,Y as g,$ as q,S as P,e8 as Y,a as v,X,ar as J,u as e,aS as K,eb as Q,c as I,w as t,b as a,aG as o,e9 as S,db as _,cO as e1,by as t1,a0 as W,ea as a1,bT as x,dh as Z,dc as N,da as E,d5 as l1,dd as T,em as o1,en as s1,cH as r1}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{g as i1,B as n1,a as d1}from"./datetime.19a96164.js";import{O as c1}from"./organization.03372a7f.js";import{P as u1}from"./project.fad91605.js";import"./tables.318f703e.js";import{C as H,r as V}from"./router.375df57e.js";import{u as p1}from"./polling.c979afd7.js";import{_ as h1,E as m1}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js";import{G as f1}from"./PhArrowCounterClockwise.vue.70f7f135.js";import{F as B}from"./PhArrowSquareOut.vue.418ffcff.js";import{G as U}from"./PhChats.vue.1b5982bf.js";import{I as g1}from"./PhCopySimple.vue.6b8fcb49.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";import"./LoadingOutlined.bcfc8c20.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[s]="bad9ee78-1947-49d0-9197-dbcb9059d61d",h._sentryDebugIdIdentifier="sentry-dbid-bad9ee78-1947-49d0-9197-dbcb9059d61d")}catch{}})();const y1=["width","height","fill","transform"],_1={key:0},v1=v("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"},null,-1),b1=[v1],w1={key:1},k1=v("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"},null,-1),L1=v("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),C1=[k1,L1],A1={key:2},j1=v("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"},null,-1),Z1=[j1],I1={key:3},x1=v("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"},null,-1),M1=[x1],S1={key:4},$1=v("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),N1=[$1],z1={key:5},T1=v("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"},null,-1),B1=[T1],E1={name:"PhRocketLaunch"},V1=R({...E1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const s=h,c=z("weight","regular"),y=z("size","1em"),b=z("color","currentColor"),w=z("mirrored",!1),m=M(()=>{var u;return(u=s.weight)!=null?u:c}),k=M(()=>{var u;return(u=s.size)!=null?u:y}),L=M(()=>{var u;return(u=s.color)!=null?u:b}),d=M(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:w?"scale(-1, 1)":void 0);return(u,C)=>(n(),g("svg",Y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:k.value,height:k.value,fill:L.value,transform:d.value},u.$attrs),[q(u.$slots,"default"),m.value==="bold"?(n(),g("g",_1,b1)):m.value==="duotone"?(n(),g("g",w1,C1)):m.value==="fill"?(n(),g("g",A1,Z1)):m.value==="light"?(n(),g("g",I1,M1)):m.value==="regular"?(n(),g("g",S1,N1)):m.value==="thin"?(n(),g("g",z1,B1)):P("",!0)],16,y1))}});class A{constructor(s,c,y,b){this.major=s,this.minor=c,this.patch=y,this.dev=b}static from(s){if(s===null)return new A(0,0,0);const c=/^(\d+\.\d+\.\d+)(.dev(\d+))?$/,y=s.match(c);if(!y)return new A(0,0,0);const[,b,,w]=y,[m,k,L]=b.split(".").map(Number),d=w?Number(w):void 0;return isNaN(m)||isNaN(k)||isNaN(L)?new A(0,0,0):d&&isNaN(d)?new A(0,0,0):new A(m,k,L,d)}gte(s){return this.major!==s.major?this.major>=s.major:this.minor!==s.minor?this.minor>=s.minor:this.patch>=s.patch}get version(){const s=this.dev?`.dev${this.dev}`:"";return`${this.major}.${this.minor}.${this.patch}${s}`}}const P1=A.from("2.16.10"),R1={key:0,class:"flex-row"},D1={key:1,class:"flex-row"},H1={key:2,class:"flex-row"},U1=R({__name:"ExecutionsShort",props:{stageId:{},projectId:{}},emits:["select"],setup(h,{emit:s}){const c=h,y=new m1,{result:b,refetch:w,loading:m}=F(async()=>{const{executions:C}=await y.list({projectId:c.projectId,stageId:c.stageId,limit:6});return C}),k=C=>{s("select",C)},L=C=>i1(C,{weekday:void 0}),{startPolling:d,endPolling:u}=p1({task:w,interval:15e3});return X(()=>d()),J(()=>u()),(C,D)=>e(b)?(n(),g("div",R1,[(n(!0),g(K,null,Q(e(b),l=>(n(),I(e(e1),{key:l.id,title:L(l.createdAt),onClick:r=>k(l)},{content:t(()=>[a(e(_),null,{default:t(()=>[o("Status: "+S(l.status),1)]),_:2},1024),a(e(_),null,{default:t(()=>[o("Duration: "+S(l.duration_seconds),1)]),_:2},1024),a(e(_),null,{default:t(()=>[o("Build: "+S(l.buildId.slice(0,6)),1)]),_:2},1024)]),default:t(()=>[a(h1,{status:l.status},null,8,["status"])]),_:2},1032,["title","onClick"]))),128))])):e(m)?(n(),g("div",D1,[a(e(t1))])):(n(),g("div",H1,"None"))}});const F1=W(U1,[["__scopeId","data-v-9d19fd00"]]),G=h=>(o1("data-v-014a16b7"),h=h(),s1(),h),W1={style:{"max-width":"250px",overflow:"hidden","text-overflow":"ellipsis ellipsis","white-space":"nowrap"}},G1={key:1},O1=G(()=>v("div",{class:"flex-container",style:{width:"10%"}},[v("p",null,"OR")],-1)),q1=G(()=>v("br",null,null,-1)),Y1=R({__name:"Live",setup(h){const c=a1().params.projectId,y=()=>{V.push({name:"web-editor",params:{projectId:c}})},b=()=>{var r;const l=(r=d.value)==null?void 0:r.project.getUrl();l&&window.open(l,"_blank")},w=M(()=>{var l;return(l=d==null?void 0:d.value)==null?void 0:l.organization.featureFlags.WEB_EDITOR}),m=()=>{var j,p,$;const l=(p=(j=d.value)==null?void 0:j.buildSpec)==null?void 0:p.abstraVersion;if(!l)return;let r="threads";A.from(l).gte(P1)||(r="_player/"+r);const i=(($=d.value)==null?void 0:$.project.getUrl())+r;window.open(i,"_blank")},k=l=>{V.push({name:"logs",params:{projectId:c},query:{stageId:l.stageId,executionId:l.id}})},{loading:L,result:d}=F(async()=>{const[l,r]=await Promise.all([u1.get(c),n1.list(c)]),f=r.find(p=>p.latest),[i,j]=await Promise.all([f&&d1.get(f.id),c1.get(l.organizationId)]);return{buildSpec:i,project:l,organization:j}}),u=l=>{var i;if(!("path"in l)||!l.path)return;const r=l.type==="form"?`/${l.path}`:`/_hooks/${l.path}`,f=(i=d.value)==null?void 0:i.project.getUrl(r);!f||(navigator.clipboard.writeText(f),r1.success("Copied URL to clipboard"))},C=l=>l.type=="form"?`/${l.path}`:l.type=="hook"?`/_hooks/${l.path}`:l.type=="job"?`${l.schedule}`:"",D=M(()=>{var f;const l=[{title:"Type",align:"left"},{title:"Title",align:"left"},{title:"Trigger",align:"left"},{title:"Last Runs"},{title:"",align:"right"}],r=(f=d.value)==null?void 0:f.buildSpec;return r?{columns:l,rows:r.runtimes.map(i=>({key:i.id,cells:[{type:"tag",text:i.type.charAt(0).toUpperCase()+i.type.slice(1),tagColor:"default"},{type:"slot",key:"title",payload:{runtime:i}},{type:"slot",key:"trigger",payload:{runtime:i}},{type:"slot",key:"last-runs",payload:{runtime:i}},{type:"actions",actions:[{icon:f1,label:"View script logs",onClick:()=>V.push({name:"logs",params:{projectId:c},query:{stageId:i.id}})},{icon:g1,label:"Copy URL",onClick:()=>u(i),hide:!["form","hook"].includes(i.type)}]}]}))}:{columns:l,rows:[]}});return(l,r)=>{var f,i,j;return e(L)||((j=(i=(f=e(d))==null?void 0:f.buildSpec)==null?void 0:i.runtimes.length)!=null?j:0)>0?(n(),I(O,{key:0,"empty-title":"","entity-name":"build",description:"Access and monitor your project's current scripts here.",table:D.value,loading:e(L),title:"Live View"},{description:t(()=>[a(e(Z),{gap:"middle",style:{"margin-top":"12px"}},{default:t(()=>[a(e(x),{onClick:b},{default:t(()=>[o(" Home"),a(e(B),{class:"icon",size:16})]),_:1}),a(e(x),{onClick:m},{default:t(()=>[o(" Threads"),a(e(B),{class:"icon",size:16})]),_:1}),w.value?(n(),I(e(x),{key:0,type:"primary",onClick:y},{default:t(()=>[o(" Web Editor"),a(e(B),{class:"icon",size:16})]),_:1})):P("",!0)]),_:1})]),title:t(({payload:p})=>{var $;return[v("div",W1,[p.runtime.type!="form"?(n(),I(e(N),{key:0},{default:t(()=>[o(S(p.runtime.title),1)]),_:2},1024)):p.runtime.type=="form"?(n(),I(e(E),{key:1,href:($=e(d))==null?void 0:$.project.getUrl(p.runtime.path),target:"_blank"},{default:t(()=>[o(S(p.runtime.title),1)]),_:2},1032,["href"])):P("",!0)])]}),"last-runs":t(({payload:p})=>[a(F1,{"stage-id":p.runtime.id,"project-id":e(c),onSelect:k},null,8,["stage-id","project-id"])]),trigger:t(({payload:p})=>[a(e(l1),{color:"default",class:"ellipsis"},{default:t(()=>[o(S(C(p.runtime)),1)]),_:2},1024)]),_:1},8,["table","loading"])):(n(),g("section",G1,[a(e(Z),{gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:t(()=>[a(e(T),{style:{display:"flex","align-items":"center",gap:"5px"},level:2},{default:t(()=>[a(e(V1),{size:"42",color:"#d14056"}),o(" Waiting for your first deploy! ")]),_:1}),a(e(_),null,{default:t(()=>[o(" Your live stages will appear here once you make your first deploy ")]),_:1})]),_:1}),w.value?(n(),I(e(Z),{key:0,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:t(()=>[a(e(Z),{gap:"small",style:{width:"80%"}},{default:t(()=>[a(e(Z),{vertical:"",align:"end",style:{width:"45%"}},{default:t(()=>[a(e(T),{level:5},{default:t(()=>[o(" Start with our cloud environment ")]),_:1}),a(e(x),{type:"primary",onClick:y},{default:t(()=>[o(" Go to Web Editor"),a(e(B),{class:"icon",size:16})]),_:1})]),_:1}),O1,a(e(Z),{vertical:"",align:"start",style:{width:"45%"}},{default:t(()=>[a(e(T),{level:5},{default:t(()=>[o(" Set up your local one ")]),_:1}),a(e(_),null,{default:t(()=>[o(" Install the editor using pip: "),a(e(N),{code:"",copyable:""},{default:t(()=>[o("pip install abstra")]),_:1})]),_:1}),a(e(_),null,{default:t(()=>[o(" Run the editor: "),a(e(N),{code:"",copyable:""},{default:t(()=>[o("abstra editor my-new-project")]),_:1})]),_:1})]),_:1})]),_:1}),a(e(_),null,{default:t(()=>[o(" Check out the documentation: "),a(e(E),{href:"https://docs.abstra.io",target:"_blank"},{default:t(()=>[o("Abstra Docs")]),_:1})]),_:1}),a(e(_),null,{default:t(()=>[o(" Feeling lost? "),a(e(x),{target:"_blank",type:"default",size:"small",onClick:r[0]||(r[0]=()=>e(H).showNewMessage("I need help getting started with Abstra"))},{default:t(()=>[a(e(U))]),_:1})]),_:1})]),_:1})):(n(),I(e(Z),{key:1,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:t(()=>[a(e(T),{style:{display:"flex","align-items":"center",gap:"5px"},level:4},{default:t(()=>[o(" Set up your local environment ")]),_:1}),a(e(_),null,{default:t(()=>[o(" Install the editor using pip: "),a(e(N),{code:"",copyable:""},{default:t(()=>[o("pip install abstra")]),_:1}),q1,o(" Run the editor: "),a(e(N),{code:"",copyable:""},{default:t(()=>[o("abstra editor my-new-project")]),_:1})]),_:1}),a(e(_),null,{default:t(()=>[o(" Check out the documentation: "),a(e(E),{href:"https://docs.abstra.io",target:"_blank"},{default:t(()=>[o("Abstra Docs")]),_:1})]),_:1}),a(e(_),null,{default:t(()=>[o(" Feeling lost? "),a(e(x),{target:"_blank",type:"default",size:"small",onClick:r[1]||(r[1]=()=>e(H).showNewMessage("I need help getting started with Abstra"))},{default:t(()=>[a(e(U))]),_:1})]),_:1})]),_:1}))]))}}});const we=W(Y1,[["__scopeId","data-v-014a16b7"]]);export{we as default}; +//# sourceMappingURL=Live.089a1ef4.js.map diff --git a/abstra_statics/dist/assets/Live.be7d3f72.js b/abstra_statics/dist/assets/Live.be7d3f72.js deleted file mode 100644 index fe31e3b30f..0000000000 --- a/abstra_statics/dist/assets/Live.be7d3f72.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C as O}from"./CrudView.ac8aad2f.js";import{a as F}from"./asyncComputed.cfc0cdaf.js";import{d as R,D as z,f as M,o as n,Y as g,$ as q,S as P,e8 as Y,a as b,X,ar as J,u as t,aS as K,eb as Q,c as I,w as e,b as a,aG as o,e9 as S,db as _,cO as t1,by as e1,a0 as W,ea as a1,bT as x,dh as Z,dc as N,da as E,d5 as l1,dd as T,em as o1,en as s1,cH as r1}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{g as i1,B as n1,a as d1}from"./datetime.c7490e96.js";import{O as c1}from"./organization.2853982f.js";import{P as u1}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import{C as H,r as V}from"./router.f4663fd5.js";import{u as p1}from"./polling.98a0bd01.js";import{_ as f1,E as h1}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.5b24f710.js";import{G as m1}from"./PhArrowCounterClockwise.vue.e0916215.js";import{F as B}from"./PhArrowSquareOut.vue.da8bb581.js";import{G as U}from"./PhChats.vue.296ae643.js";import{I as g1}from"./PhCopySimple.vue.cf5729b7.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";import"./LoadingOutlined.7a2941f5.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[s]="f11c142b-468f-4d81-bff6-4784bbad2870",f._sentryDebugIdIdentifier="sentry-dbid-f11c142b-468f-4d81-bff6-4784bbad2870")}catch{}})();const y1=["width","height","fill","transform"],_1={key:0},b1=b("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"},null,-1),v1=[b1],w1={key:1},k1=b("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"},null,-1),L1=b("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),C1=[k1,L1],A1={key:2},j1=b("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"},null,-1),Z1=[j1],I1={key:3},x1=b("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"},null,-1),M1=[x1],S1={key:4},$1=b("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),N1=[$1],z1={key:5},T1=b("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"},null,-1),B1=[T1],E1={name:"PhRocketLaunch"},V1=R({...E1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const s=f,c=z("weight","regular"),y=z("size","1em"),v=z("color","currentColor"),w=z("mirrored",!1),h=M(()=>{var u;return(u=s.weight)!=null?u:c}),k=M(()=>{var u;return(u=s.size)!=null?u:y}),L=M(()=>{var u;return(u=s.color)!=null?u:v}),d=M(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:w?"scale(-1, 1)":void 0);return(u,C)=>(n(),g("svg",Y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:k.value,height:k.value,fill:L.value,transform:d.value},u.$attrs),[q(u.$slots,"default"),h.value==="bold"?(n(),g("g",_1,v1)):h.value==="duotone"?(n(),g("g",w1,C1)):h.value==="fill"?(n(),g("g",A1,Z1)):h.value==="light"?(n(),g("g",I1,M1)):h.value==="regular"?(n(),g("g",S1,N1)):h.value==="thin"?(n(),g("g",z1,B1)):P("",!0)],16,y1))}});class A{constructor(s,c,y,v){this.major=s,this.minor=c,this.patch=y,this.dev=v}static from(s){if(s===null)return new A(0,0,0);const c=/^(\d+\.\d+\.\d+)(.dev(\d+))?$/,y=s.match(c);if(!y)return new A(0,0,0);const[,v,,w]=y,[h,k,L]=v.split(".").map(Number),d=w?Number(w):void 0;return isNaN(h)||isNaN(k)||isNaN(L)?new A(0,0,0):d&&isNaN(d)?new A(0,0,0):new A(h,k,L,d)}gte(s){return this.major!==s.major?this.major>=s.major:this.minor!==s.minor?this.minor>=s.minor:this.patch>=s.patch}get version(){const s=this.dev?`.dev${this.dev}`:"";return`${this.major}.${this.minor}.${this.patch}${s}`}}const P1=A.from("2.16.10"),R1={key:0,class:"flex-row"},D1={key:1,class:"flex-row"},H1={key:2,class:"flex-row"},U1=R({__name:"ExecutionsShort",props:{stageId:{},projectId:{}},emits:["select"],setup(f,{emit:s}){const c=f,y=new h1,{result:v,refetch:w,loading:h}=F(async()=>{const{executions:C}=await y.list({projectId:c.projectId,stageId:c.stageId,limit:6});return C}),k=C=>{s("select",C)},L=C=>i1(C,{weekday:void 0}),{startPolling:d,endPolling:u}=p1({task:w,interval:15e3});return X(()=>d()),J(()=>u()),(C,D)=>t(v)?(n(),g("div",R1,[(n(!0),g(K,null,Q(t(v),l=>(n(),I(t(t1),{key:l.id,title:L(l.createdAt),onClick:r=>k(l)},{content:e(()=>[a(t(_),null,{default:e(()=>[o("Status: "+S(l.status),1)]),_:2},1024),a(t(_),null,{default:e(()=>[o("Duration: "+S(l.duration_seconds),1)]),_:2},1024),a(t(_),null,{default:e(()=>[o("Build: "+S(l.buildId.slice(0,6)),1)]),_:2},1024)]),default:e(()=>[a(f1,{status:l.status},null,8,["status"])]),_:2},1032,["title","onClick"]))),128))])):t(h)?(n(),g("div",D1,[a(t(e1))])):(n(),g("div",H1,"None"))}});const F1=W(U1,[["__scopeId","data-v-9d19fd00"]]),G=f=>(o1("data-v-014a16b7"),f=f(),s1(),f),W1={style:{"max-width":"250px",overflow:"hidden","text-overflow":"ellipsis ellipsis","white-space":"nowrap"}},G1={key:1},O1=G(()=>b("div",{class:"flex-container",style:{width:"10%"}},[b("p",null,"OR")],-1)),q1=G(()=>b("br",null,null,-1)),Y1=R({__name:"Live",setup(f){const c=a1().params.projectId,y=()=>{V.push({name:"web-editor",params:{projectId:c}})},v=()=>{var r;const l=(r=d.value)==null?void 0:r.project.getUrl();l&&window.open(l,"_blank")},w=M(()=>{var l;return(l=d==null?void 0:d.value)==null?void 0:l.organization.featureFlags.WEB_EDITOR}),h=()=>{var j,p,$;const l=(p=(j=d.value)==null?void 0:j.buildSpec)==null?void 0:p.abstraVersion;if(!l)return;let r="threads";A.from(l).gte(P1)||(r="_player/"+r);const i=(($=d.value)==null?void 0:$.project.getUrl())+r;window.open(i,"_blank")},k=l=>{V.push({name:"logs",params:{projectId:c},query:{stageId:l.stageId,executionId:l.id}})},{loading:L,result:d}=F(async()=>{const[l,r]=await Promise.all([u1.get(c),n1.list(c)]),m=r.find(p=>p.latest),[i,j]=await Promise.all([m&&d1.get(m.id),c1.get(l.organizationId)]);return{buildSpec:i,project:l,organization:j}}),u=l=>{var i;if(!("path"in l)||!l.path)return;const r=l.type==="form"?`/${l.path}`:`/_hooks/${l.path}`,m=(i=d.value)==null?void 0:i.project.getUrl(r);!m||(navigator.clipboard.writeText(m),r1.success("Copied URL to clipboard"))},C=l=>l.type=="form"?`/${l.path}`:l.type=="hook"?`/_hooks/${l.path}`:l.type=="job"?`${l.schedule}`:"",D=M(()=>{var m;const l=[{title:"Type",align:"left"},{title:"Title",align:"left"},{title:"Trigger",align:"left"},{title:"Last Runs"},{title:"",align:"right"}],r=(m=d.value)==null?void 0:m.buildSpec;return r?{columns:l,rows:r.runtimes.map(i=>({key:i.id,cells:[{type:"tag",text:i.type.charAt(0).toUpperCase()+i.type.slice(1),tagColor:"default"},{type:"slot",key:"title",payload:{runtime:i}},{type:"slot",key:"trigger",payload:{runtime:i}},{type:"slot",key:"last-runs",payload:{runtime:i}},{type:"actions",actions:[{icon:m1,label:"View script logs",onClick:()=>V.push({name:"logs",params:{projectId:c},query:{stageId:i.id}})},{icon:g1,label:"Copy URL",onClick:()=>u(i),hide:!["form","hook"].includes(i.type)}]}]}))}:{columns:l,rows:[]}});return(l,r)=>{var m,i,j;return t(L)||((j=(i=(m=t(d))==null?void 0:m.buildSpec)==null?void 0:i.runtimes.length)!=null?j:0)>0?(n(),I(O,{key:0,"empty-title":"","entity-name":"build",description:"Access and monitor your project's current scripts here.",table:D.value,loading:t(L),title:"Live View"},{description:e(()=>[a(t(Z),{gap:"middle",style:{"margin-top":"12px"}},{default:e(()=>[a(t(x),{onClick:v},{default:e(()=>[o(" Home"),a(t(B),{class:"icon",size:16})]),_:1}),a(t(x),{onClick:h},{default:e(()=>[o(" Threads"),a(t(B),{class:"icon",size:16})]),_:1}),w.value?(n(),I(t(x),{key:0,type:"primary",onClick:y},{default:e(()=>[o(" Web Editor"),a(t(B),{class:"icon",size:16})]),_:1})):P("",!0)]),_:1})]),title:e(({payload:p})=>{var $;return[b("div",W1,[p.runtime.type!="form"?(n(),I(t(N),{key:0},{default:e(()=>[o(S(p.runtime.title),1)]),_:2},1024)):p.runtime.type=="form"?(n(),I(t(E),{key:1,href:($=t(d))==null?void 0:$.project.getUrl(p.runtime.path),target:"_blank"},{default:e(()=>[o(S(p.runtime.title),1)]),_:2},1032,["href"])):P("",!0)])]}),"last-runs":e(({payload:p})=>[a(F1,{"stage-id":p.runtime.id,"project-id":t(c),onSelect:k},null,8,["stage-id","project-id"])]),trigger:e(({payload:p})=>[a(t(l1),{color:"default",class:"ellipsis"},{default:e(()=>[o(S(C(p.runtime)),1)]),_:2},1024)]),_:1},8,["table","loading"])):(n(),g("section",G1,[a(t(Z),{gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:e(()=>[a(t(T),{style:{display:"flex","align-items":"center",gap:"5px"},level:2},{default:e(()=>[a(t(V1),{size:"42",color:"#d14056"}),o(" Waiting for your first deploy! ")]),_:1}),a(t(_),null,{default:e(()=>[o(" Your live stages will appear here once you make your first deploy ")]),_:1})]),_:1}),w.value?(n(),I(t(Z),{key:0,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:e(()=>[a(t(Z),{gap:"small",style:{width:"80%"}},{default:e(()=>[a(t(Z),{vertical:"",align:"end",style:{width:"45%"}},{default:e(()=>[a(t(T),{level:5},{default:e(()=>[o(" Start with our cloud environment ")]),_:1}),a(t(x),{type:"primary",onClick:y},{default:e(()=>[o(" Go to Web Editor"),a(t(B),{class:"icon",size:16})]),_:1})]),_:1}),O1,a(t(Z),{vertical:"",align:"start",style:{width:"45%"}},{default:e(()=>[a(t(T),{level:5},{default:e(()=>[o(" Set up your local one ")]),_:1}),a(t(_),null,{default:e(()=>[o(" Install the editor using pip: "),a(t(N),{code:"",copyable:""},{default:e(()=>[o("pip install abstra")]),_:1})]),_:1}),a(t(_),null,{default:e(()=>[o(" Run the editor: "),a(t(N),{code:"",copyable:""},{default:e(()=>[o("abstra editor my-new-project")]),_:1})]),_:1})]),_:1})]),_:1}),a(t(_),null,{default:e(()=>[o(" Check out the documentation: "),a(t(E),{href:"https://docs.abstra.io",target:"_blank"},{default:e(()=>[o("Abstra Docs")]),_:1})]),_:1}),a(t(_),null,{default:e(()=>[o(" Feeling lost? "),a(t(x),{target:"_blank",type:"default",size:"small",onClick:r[0]||(r[0]=()=>t(H).showNewMessage("I need help getting started with Abstra"))},{default:e(()=>[a(t(U))]),_:1})]),_:1})]),_:1})):(n(),I(t(Z),{key:1,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:e(()=>[a(t(T),{style:{display:"flex","align-items":"center",gap:"5px"},level:4},{default:e(()=>[o(" Set up your local environment ")]),_:1}),a(t(_),null,{default:e(()=>[o(" Install the editor using pip: "),a(t(N),{code:"",copyable:""},{default:e(()=>[o("pip install abstra")]),_:1}),q1,o(" Run the editor: "),a(t(N),{code:"",copyable:""},{default:e(()=>[o("abstra editor my-new-project")]),_:1})]),_:1}),a(t(_),null,{default:e(()=>[o(" Check out the documentation: "),a(t(E),{href:"https://docs.abstra.io",target:"_blank"},{default:e(()=>[o("Abstra Docs")]),_:1})]),_:1}),a(t(_),null,{default:e(()=>[o(" Feeling lost? "),a(t(x),{target:"_blank",type:"default",size:"small",onClick:r[1]||(r[1]=()=>t(H).showNewMessage("I need help getting started with Abstra"))},{default:e(()=>[a(t(U))]),_:1})]),_:1})]),_:1}))]))}}});const wt=W(Y1,[["__scopeId","data-v-014a16b7"]]);export{wt as default}; -//# sourceMappingURL=Live.be7d3f72.js.map diff --git a/abstra_statics/dist/assets/LoadingContainer.23bc0e74.js b/abstra_statics/dist/assets/LoadingContainer.23bc0e74.js new file mode 100644 index 0000000000..9aca80fe48 --- /dev/null +++ b/abstra_statics/dist/assets/LoadingContainer.23bc0e74.js @@ -0,0 +1,2 @@ +import{d as t,o as d,Y as o,b as s,u as r,by as _,a0 as c}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f9ead8d2-9e06-4aa3-a983-a07c1d2a2134",e._sentryDebugIdIdentifier="sentry-dbid-f9ead8d2-9e06-4aa3-a983-a07c1d2a2134")}catch{}})();const i={class:"centered"},f=t({__name:"LoadingContainer",setup(e){return(a,n)=>(d(),o("div",i,[s(r(_))]))}});const u=c(f,[["__scopeId","data-v-52e6209a"]]);export{u as L}; +//# sourceMappingURL=LoadingContainer.23bc0e74.js.map diff --git a/abstra_statics/dist/assets/LoadingContainer.e327afe8.js b/abstra_statics/dist/assets/LoadingContainer.e327afe8.js deleted file mode 100644 index dccf52c195..0000000000 --- a/abstra_statics/dist/assets/LoadingContainer.e327afe8.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as t,o,Y as s,b as d,u as r,by as _,a0 as c}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="44aae580-4e77-4325-9449-dd211ae2c4f7",e._sentryDebugIdIdentifier="sentry-dbid-44aae580-4e77-4325-9449-dd211ae2c4f7")}catch{}})();const i={class:"centered"},f=t({__name:"LoadingContainer",setup(e){return(n,a)=>(o(),s("div",i,[d(r(_))]))}});const u=c(f,[["__scopeId","data-v-52e6209a"]]);export{u as L}; -//# sourceMappingURL=LoadingContainer.e327afe8.js.map diff --git a/abstra_statics/dist/assets/LoadingOutlined.7a2941f5.js b/abstra_statics/dist/assets/LoadingOutlined.bcfc8c20.js similarity index 51% rename from abstra_statics/dist/assets/LoadingOutlined.7a2941f5.js rename to abstra_statics/dist/assets/LoadingOutlined.bcfc8c20.js index 0c0ccd0809..cd129646bc 100644 --- a/abstra_statics/dist/assets/LoadingOutlined.7a2941f5.js +++ b/abstra_statics/dist/assets/LoadingOutlined.bcfc8c20.js @@ -1,2 +1,2 @@ -import{b as o,ee as f,eL as u}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="debb4d60-6282-45dd-a8bf-684feb8baa64",e._sentryDebugIdIdentifier="sentry-dbid-debb4d60-6282-45dd-a8bf-684feb8baa64")}catch{}})();function i(e){for(var t=1;t{if(!!_()){e.value.stage="loading";try{await y.authenticate(e.value.info.email),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(d),d=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(d)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},k=i=>{if(!i){e.value.info.email="";return}e.value.info.email=i.toLowerCase()},w=async()=>{var i;if(!!((i=e.value.info)!=null&&i.email)){e.value.stage="loading";try{const o=await y.verify(e.value.info.email,e.value.token);if(!o)throw new Error("[Passwordless] Login did not return an user");S.trackSession(),s("done",o),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},E=()=>{e.value.info&&f()},P=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(i,o)=>(c(),h("div",M,[v("div",j,[n(N,{"hide-text":"",size:"large"}),v("h2",null,r(a(t).translate("i18n_auth_validate_your_email_login",null,{brandName:"Abstra"})),1)]),e.value.stage==="collect-info"?(c(),b(a(L),{key:0,class:"section"},{default:u(()=>[v("div",G,r(a(t).translate("i18n_auth_info_description")),1),n(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(t).translate("i18n_auth_info_invalid_email"):""},{default:u(()=>[n(a(I),{type:"email",value:e.value.info.email,placeholder:a(t).translate("i18n_auth_enter_your_work_email"),onBlur:_,onKeyup:A(f,["enter"]),onChange:o[0]||(o[0]=g=>k(g.target.value))},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),n(a(p),{type:"primary",onClick:f},{default:u(()=>[m(r(a(t).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(c(),b(a(L),{key:1,class:"section"},{default:u(()=>[v("div",O,r(a(t).translate("i18n_auth_token_label",null,e.value.info)),1),n(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(t).translate("i18n_auth_token_invalid"):""},{default:u(()=>[n(a(I),{value:e.value.token,"onUpdate:value":o[1]||(o[1]=g=>e.value.token=g),type:"number",placeholder:a(t).translate("i18n_auth_enter_your_token"),onKeyup:A(w,["enter"])},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),n(a(p),{type:"primary",onClick:w},{default:u(()=>[m(r(a(t).translate("i18n_auth_token_verify_email")),1)]),_:1}),n(a(p),{onClick:P},{default:u(()=>[m(r(a(t).translate("i18n_auth_edit_email")),1)]),_:1}),n(a(p),{disabled:!!e.value.secsToAllowResend,onClick:E},{default:u(()=>[m(r(a(t).translate("i18n_auth_token_resend_email"))+" ("+r(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),v("div",Y,r(a(t).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(c(),h("div",H,[n(C)])):q("",!0)]))}});const Q=x(J,[["__scopeId","data-v-b9707eaf"]]),W=async()=>{const l=y.getAuthor();if(!l)return;const{status:s}=await U.getInfo();if(s==="active")return;const e=new URLSearchParams({token:l.jwt,status:s});window.location.replace(`${z.onboarding}/setup?${e}`)},X={key:0,class:"login"},Z={key:1,class:"loading"},ee=R({__name:"Login",setup(l){const s=D(),e=V();async function _(){await W(),e.query.redirect?await s.push({path:e.query.redirect,query:{...e.query,redirect:e.query["prev-redirect"],"prev-redirect":void 0}}):s.push({name:"home"})}const d=$(()=>!y.getAuthor());return K(()=>{d.value||_()}),(f,k)=>d.value?(c(),h("div",X,[n(Q,{onDone:_})])):(c(),h("div",Z,[n(C)]))}});const ue=x(ee,[["__scopeId","data-v-e4e9b925"]]);export{ue as default}; -//# sourceMappingURL=Login.5cce10a1.js.map +import{L as C}from"./CircularLoading.13413fc4.js";import{d as R,e as B,o as d,Y as h,a as v,b as n,e9 as r,u as a,c as b,w as u,S as q,eV as t,bL as I,eU as A,cz as T,aG as m,bT as p,cy as L,a0 as x,eo as D,ea as V,f as $,dF as K}from"./index.d0f12294.js";import{_ as N}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import{T as S,b as U}from"./router.375df57e.js";import{i as F}from"./string.d9c83adf.js";import{a as y,E as z}from"./gateway.ae1d6857.js";import"./Logo.8f27935a.js";import"./popupNotifcation.a0a6244b.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[s]="c8882575-a012-4432-9100-8ca94a460573",l._sentryDebugIdIdentifier="sentry-dbid-c8882575-a012-4432-9100-8ca94a460573")}catch{}})();const M={class:"form"},j={class:"header"},G={class:"description"},O={class:"description"},Y={class:"footer"},H={key:2,class:"loading"},J=R({__name:"Passwordless",emits:["done"],setup(l,{emit:s}){const e=B({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0});function _(){const i=e.value.info.email,o=F(i);return e.value.invalid=!o,o}let c;const f=async()=>{if(!!_()){e.value.stage="loading";try{await y.authenticate(e.value.info.email),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(c),c=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(c)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},k=i=>{if(!i){e.value.info.email="";return}e.value.info.email=i.toLowerCase()},w=async()=>{var i;if(!!((i=e.value.info)!=null&&i.email)){e.value.stage="loading";try{const o=await y.verify(e.value.info.email,e.value.token);if(!o)throw new Error("[Passwordless] Login did not return an user");S.trackSession(),s("done",o),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},E=()=>{e.value.info&&f()},P=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(i,o)=>(d(),h("div",M,[v("div",j,[n(N,{"hide-text":"",size:"large"}),v("h2",null,r(a(t).translate("i18n_auth_validate_your_email_login",null,{brandName:"Abstra"})),1)]),e.value.stage==="collect-info"?(d(),b(a(L),{key:0,class:"section"},{default:u(()=>[v("div",G,r(a(t).translate("i18n_auth_info_description")),1),n(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(t).translate("i18n_auth_info_invalid_email"):""},{default:u(()=>[n(a(I),{type:"email",value:e.value.info.email,placeholder:a(t).translate("i18n_auth_enter_your_work_email"),onBlur:_,onKeyup:A(f,["enter"]),onChange:o[0]||(o[0]=g=>k(g.target.value))},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),n(a(p),{type:"primary",onClick:f},{default:u(()=>[m(r(a(t).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(d(),b(a(L),{key:1,class:"section"},{default:u(()=>[v("div",O,r(a(t).translate("i18n_auth_token_label",null,e.value.info)),1),n(a(T),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(t).translate("i18n_auth_token_invalid"):""},{default:u(()=>[n(a(I),{value:e.value.token,"onUpdate:value":o[1]||(o[1]=g=>e.value.token=g),type:"number",placeholder:a(t).translate("i18n_auth_enter_your_token"),onKeyup:A(w,["enter"])},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),n(a(p),{type:"primary",onClick:w},{default:u(()=>[m(r(a(t).translate("i18n_auth_token_verify_email")),1)]),_:1}),n(a(p),{onClick:P},{default:u(()=>[m(r(a(t).translate("i18n_auth_edit_email")),1)]),_:1}),n(a(p),{disabled:!!e.value.secsToAllowResend,onClick:E},{default:u(()=>[m(r(a(t).translate("i18n_auth_token_resend_email"))+" ("+r(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),v("div",Y,r(a(t).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(d(),h("div",H,[n(C)])):q("",!0)]))}});const Q=x(J,[["__scopeId","data-v-b9707eaf"]]),W=async()=>{const l=y.getAuthor();if(!l)return;const{status:s}=await U.getInfo();if(s==="active")return;const e=new URLSearchParams({token:l.jwt,status:s});window.location.replace(`${z.onboarding}/setup?${e}`)},X={key:0,class:"login"},Z={key:1,class:"loading"},ee=R({__name:"Login",setup(l){const s=D(),e=V();async function _(){await W(),e.query.redirect?await s.push({path:e.query.redirect,query:{...e.query,redirect:e.query["prev-redirect"],"prev-redirect":void 0}}):s.push({name:"home"})}const c=$(()=>!y.getAuthor());return K(()=>{c.value||_()}),(f,k)=>c.value?(d(),h("div",X,[n(Q,{onDone:_})])):(d(),h("div",Z,[n(C)]))}});const ue=x(ee,[["__scopeId","data-v-e4e9b925"]]);export{ue as default}; +//# sourceMappingURL=Login.49260e5e.js.map diff --git a/abstra_statics/dist/assets/Login.d911dd80.js b/abstra_statics/dist/assets/Login.d911dd80.js deleted file mode 100644 index 4d9f9fa7a6..0000000000 --- a/abstra_statics/dist/assets/Login.d911dd80.js +++ /dev/null @@ -1,2 +0,0 @@ -import{_ as i}from"./Login.vue_vue_type_script_setup_true_lang.4f858dcf.js";import{d as f,eo as _,ea as m,o as l,Y as b,b as y,u as p,a0 as g}from"./index.8c3f27aa.js";import{u as w}from"./workspaceStore.a6063d10.js";import"./Logo.cf3e0e74.js";import"./string.0a3509c3.js";import"./CircularLoading.fdcc1083.js";import"./index.73b06b4b.js";import"./index.126762e2.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="69f19fe9-2799-46e4-becb-a69bf0a68cd8",e._sentryDebugIdIdentifier="sentry-dbid-69f19fe9-2799-46e4-becb-a69bf0a68cd8")}catch{}})();const k={class:"runner"},h=f({__name:"Login",setup(e){const o=_(),r=m(),s=w(),u=async()=>{const{redirect:t,...a}=r.query;if(t){await o.push({path:t,query:a,params:r.params});return}o.push({name:"playerHome",query:a})};return(t,a)=>{var n,c,d;return l(),b("div",k,[y(i,{"logo-url":(c=(n=p(s).state.workspace)==null?void 0:n.logoUrl)!=null?c:void 0,"brand-name":(d=p(s).state.workspace)==null?void 0:d.brandName,onDone:u},null,8,["logo-url","brand-name"])])}}});const S=g(h,[["__scopeId","data-v-a7e3f7bf"]]);export{S as default}; -//# sourceMappingURL=Login.d911dd80.js.map diff --git a/abstra_statics/dist/assets/Login.fc60d0fc.js b/abstra_statics/dist/assets/Login.fc60d0fc.js new file mode 100644 index 0000000000..829611bca0 --- /dev/null +++ b/abstra_statics/dist/assets/Login.fc60d0fc.js @@ -0,0 +1,2 @@ +import{_ as d}from"./Login.vue_vue_type_script_setup_true_lang.9976d09a.js";import{d as f,eo as _,ea as m,o as l,Y as b,b as y,u as c,a0 as g}from"./index.d0f12294.js";import{u as w}from"./workspaceStore.e47060bf.js";import"./Logo.8f27935a.js";import"./string.d9c83adf.js";import"./CircularLoading.13413fc4.js";import"./index.c7e8afe7.js";import"./index.289665f1.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="fff011b6-1922-4525-949b-308413e1906b",e._sentryDebugIdIdentifier="sentry-dbid-fff011b6-1922-4525-949b-308413e1906b")}catch{}})();const k={class:"runner"},h=f({__name:"Login",setup(e){const o=_(),r=m(),n=w(),i=async()=>{const{redirect:t,...s}=r.query;if(t){await o.push({path:t,query:s,params:r.params});return}o.push({name:"playerHome",query:s})};return(t,s)=>{var a,p,u;return l(),b("div",k,[y(d,{"logo-url":(p=(a=c(n).state.workspace)==null?void 0:a.logoUrl)!=null?p:void 0,"brand-name":(u=c(n).state.workspace)==null?void 0:u.brandName,onDone:i},null,8,["logo-url","brand-name"])])}}});const S=g(h,[["__scopeId","data-v-a7e3f7bf"]]);export{S as default}; +//# sourceMappingURL=Login.fc60d0fc.js.map diff --git a/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.4f858dcf.js b/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.9976d09a.js similarity index 94% rename from abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.4f858dcf.js rename to abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.9976d09a.js index 3fc3466ee9..0cc180af07 100644 --- a/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.4f858dcf.js +++ b/abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.9976d09a.js @@ -1,2 +1,2 @@ -import{d as b,D as k,f as y,o as t,Y as m,$ as O,S as H,e8 as K,a as o,X as j,b as d,w as c,u as l,aG as h,da as F,em as G,en as W,a0 as B,e as X,eV as r,e9 as v,c as Z,Z as q,bL as P,eU as S,cz as N,bT as A,cy as D}from"./index.8c3f27aa.js";import{O as $,S as J,A as Y,b as Q}from"./workspaceStore.a6063d10.js";import{L as x}from"./Logo.cf3e0e74.js";import{i as ee}from"./string.0a3509c3.js";import{L as ae}from"./CircularLoading.fdcc1083.js";import{t as le}from"./index.73b06b4b.js";import{A as te}from"./index.126762e2.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="f5df4100-1aab-4578-b124-44170518ca37",n._sentryDebugIdIdentifier="sentry-dbid-f5df4100-1aab-4578-b124-44170518ca37")}catch{}})();const oe=["width","height","fill","transform"],ne={key:0},se=o("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),ie=[se],re={key:1},de=o("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ue=o("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),ce=[de,ue],me={key:2},ve=o("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),_e=[ve],pe={key:3},fe=o("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),he=[fe],ge={key:4},ye=o("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),Ze=[ye],we={key:5},ke=o("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),Ae=[ke],be={name:"PhSpinner"},Me=b({...be,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const s=n,u=k("weight","regular"),e=k("size","1em"),_=k("color","currentColor"),M=k("mirrored",!1),p=y(()=>{var i;return(i=s.weight)!=null?i:u}),g=y(()=>{var i;return(i=s.size)!=null?i:e}),L=y(()=>{var i;return(i=s.color)!=null?i:_}),V=y(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:M?"scale(-1, 1)":void 0);return(i,w)=>(t(),m("svg",K({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:L.value,transform:V.value},i.$attrs),[O(i.$slots,"default"),p.value==="bold"?(t(),m("g",ne,ie)):p.value==="duotone"?(t(),m("g",re,ce)):p.value==="fill"?(t(),m("g",me,_e)):p.value==="light"?(t(),m("g",pe,he)):p.value==="regular"?(t(),m("g",ge,Ze)):p.value==="thin"?(t(),m("g",we,Ae)):H("",!0)],16,oe))}}),E=n=>(G("data-v-3f7d7e6f"),n=n(),W(),n),Le={class:"oidc-container"},Ve=E(()=>o("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),Ie=E(()=>o("p",{class:"centered"},"Please complete the login process in the popup window.",-1)),Ce={class:"centered"},He=b({__name:"Oidc",emits:["done"],setup(n,{emit:s}){const u=async()=>{const _=await new $().login();if(!_)throw new Error("[OIDC] Login did not return an user");s("done",_)};return j(()=>u()),(e,_)=>(t(),m("div",Le,[d(l(Me),{size:60,style:{"margin-bottom":"50px"}},{default:c(()=>[Ve]),_:1}),Ie,o("p",Ce,[h(" If it has not appear automatically, please "),d(l(F),{onClick:u},{default:c(()=>[h("click here")]),_:1}),h(". ")])]))}});const Te=B(He,[["__scopeId","data-v-3f7d7e6f"]]),Pe={class:"header"},Se={class:"description"},Ne={class:"description"},De={class:"footer"},Be={key:3,class:"loading"},$e=b({__name:"Passwordless",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const u=n,e=X({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}),{useToken:_}=le,{token:M}=_(),p=M.value.colorPrimaryBg,g=new Y,L=y(()=>{var a;return(a=J.instance)==null?void 0:a.isLocal}),V=r.translate("i18n_local_auth_info_description",u.locale);function i(){const a=e.value.info.email,f=ee(a);return e.value.invalid=!f,f}let w;const I=async()=>{if(!!i()){e.value.stage="loading";try{await g.authenticate(e.value.info.email),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(w),w=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&(clearInterval(w),e.value.secsToAllowResend=0)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},U=a=>{if(!a){e.value.info.email="";return}e.value.info.email=a.toLowerCase()},T=async()=>{if(!!e.value.info.email){e.value.stage="loading";try{const a=await g.verify(e.value.info.email,e.value.token);if(!a)throw new Error("[Passwordless] Login did not return an user");s("done",a),e.value.stage="loading"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},z=()=>{e.value.info.email&&I()},R=()=>{e.value={stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}};return(a,f)=>(t(),m("div",{class:"form",style:q({backgroundColor:l(p)})},[o("div",Pe,[d(x,{"hide-text":"",size:"large","image-url":a.logoUrl,"brand-name":a.brandName},null,8,["image-url","brand-name"]),o("h2",null,v(l(r).translate("i18n_auth_validate_your_email_login",a.locale,{brandName:a.brandName})),1)]),L.value?(t(),Z(l(te),{key:0,message:l(V),type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):H("",!0),e.value.stage==="collect-info"?(t(),Z(l(D),{key:1,class:"section"},{default:c(()=>[o("div",Se,v(l(r).translate("i18n_auth_info_description",a.locale)),1),d(l(N),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?l(r).translate("i18n_auth_info_invalid_email",a.locale):""},{default:c(()=>[d(l(P),{type:"email",value:e.value.info.email,placeholder:l(r).translate("i18n_auth_enter_your_email",a.locale),onBlur:i,onKeyup:S(I,["enter"]),onChange:f[0]||(f[0]=C=>U(C.target.value))},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),d(l(A),{type:"primary",onClick:I},{default:c(()=>[h(v(l(r).translate("i18n_auth_info_send_code",a.locale)),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(t(),Z(l(D),{key:2,class:"section"},{default:c(()=>[o("div",Ne,v(l(r).translate("i18n_auth_token_label",a.locale,e.value.info)),1),d(l(N),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?l(r).translate("i18n_auth_token_invalid",a.locale):""},{default:c(()=>[d(l(P),{value:e.value.token,"onUpdate:value":f[1]||(f[1]=C=>e.value.token=C),type:"number",placeholder:l(r).translate("i18n_auth_enter_your_token",a.locale),onKeyup:S(T,["enter"])},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),d(l(A),{type:"primary",onClick:T},{default:c(()=>[h(v(l(r).translate("i18n_auth_token_verify_email",a.locale)),1)]),_:1}),d(l(A),{onClick:R},{default:c(()=>[h(v(l(r).translate("i18n_auth_edit_email",a.locale)),1)]),_:1}),d(l(A),{disabled:!!e.value.secsToAllowResend,onClick:z},{default:c(()=>[h(v(l(r).translate("i18n_auth_token_resend_email",a.locale))+" ("+v(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),o("div",De,v(l(r).translate("i18n_auth_token_footer_alternative_email",a.locale)),1)]),_:1})):e.value.stage==="loading"?(t(),m("div",Be,[d(ae)])):H("",!0)],4))}});const Ee=B($e,[["__scopeId","data-v-24af7ec8"]]),Ge=b({__name:"Login",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const u=e=>{Q().saveJWT(e),s("done",e)};return(e,_)=>l($).isConfigured()?(t(),Z(Te,{key:0,onDone:u})):(t(),Z(Ee,{key:1,locale:e.locale,"logo-url":e.logoUrl,"brand-name":e.brandName,onDone:u},null,8,["locale","logo-url","brand-name"]))}});export{Ge as _}; -//# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.4f858dcf.js.map +import{d as b,D as k,f as y,o as t,Y as m,$ as O,S as H,e8 as K,a as o,X as j,b as d,w as c,u as l,aG as h,da as F,em as G,en as W,a0 as B,e as X,eV as r,e9 as v,c as Z,Z as q,bL as P,eU as S,cz as N,bT as A,cy as D}from"./index.d0f12294.js";import{O as $,S as J,A as Y,b as Q}from"./workspaceStore.e47060bf.js";import{L as x}from"./Logo.8f27935a.js";import{i as ee}from"./string.d9c83adf.js";import{L as ae}from"./CircularLoading.13413fc4.js";import{t as le}from"./index.c7e8afe7.js";import{A as te}from"./index.289665f1.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="af4485c4-d0b0-42aa-be15-a6b40c43f627",n._sentryDebugIdIdentifier="sentry-dbid-af4485c4-d0b0-42aa-be15-a6b40c43f627")}catch{}})();const oe=["width","height","fill","transform"],ne={key:0},se=o("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),ie=[se],re={key:1},de=o("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ue=o("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),ce=[de,ue],me={key:2},ve=o("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),_e=[ve],pe={key:3},fe=o("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),he=[fe],ge={key:4},ye=o("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),Ze=[ye],we={key:5},ke=o("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),Ae=[ke],be={name:"PhSpinner"},Me=b({...be,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const s=n,u=k("weight","regular"),e=k("size","1em"),_=k("color","currentColor"),M=k("mirrored",!1),p=y(()=>{var i;return(i=s.weight)!=null?i:u}),g=y(()=>{var i;return(i=s.size)!=null?i:e}),L=y(()=>{var i;return(i=s.color)!=null?i:_}),V=y(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:M?"scale(-1, 1)":void 0);return(i,w)=>(t(),m("svg",K({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:L.value,transform:V.value},i.$attrs),[O(i.$slots,"default"),p.value==="bold"?(t(),m("g",ne,ie)):p.value==="duotone"?(t(),m("g",re,ce)):p.value==="fill"?(t(),m("g",me,_e)):p.value==="light"?(t(),m("g",pe,he)):p.value==="regular"?(t(),m("g",ge,Ze)):p.value==="thin"?(t(),m("g",we,Ae)):H("",!0)],16,oe))}}),E=n=>(G("data-v-3f7d7e6f"),n=n(),W(),n),Le={class:"oidc-container"},Ve=E(()=>o("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),Ie=E(()=>o("p",{class:"centered"},"Please complete the login process in the popup window.",-1)),Ce={class:"centered"},He=b({__name:"Oidc",emits:["done"],setup(n,{emit:s}){const u=async()=>{const _=await new $().login();if(!_)throw new Error("[OIDC] Login did not return an user");s("done",_)};return j(()=>u()),(e,_)=>(t(),m("div",Le,[d(l(Me),{size:60,style:{"margin-bottom":"50px"}},{default:c(()=>[Ve]),_:1}),Ie,o("p",Ce,[h(" If it has not appear automatically, please "),d(l(F),{onClick:u},{default:c(()=>[h("click here")]),_:1}),h(". ")])]))}});const Te=B(He,[["__scopeId","data-v-3f7d7e6f"]]),Pe={class:"header"},Se={class:"description"},Ne={class:"description"},De={class:"footer"},Be={key:3,class:"loading"},$e=b({__name:"Passwordless",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const u=n,e=X({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}),{useToken:_}=le,{token:M}=_(),p=M.value.colorPrimaryBg,g=new Y,L=y(()=>{var a;return(a=J.instance)==null?void 0:a.isLocal}),V=r.translate("i18n_local_auth_info_description",u.locale);function i(){const a=e.value.info.email,f=ee(a);return e.value.invalid=!f,f}let w;const I=async()=>{if(!!i()){e.value.stage="loading";try{await g.authenticate(e.value.info.email),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(w),w=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&(clearInterval(w),e.value.secsToAllowResend=0)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},U=a=>{if(!a){e.value.info.email="";return}e.value.info.email=a.toLowerCase()},T=async()=>{if(!!e.value.info.email){e.value.stage="loading";try{const a=await g.verify(e.value.info.email,e.value.token);if(!a)throw new Error("[Passwordless] Login did not return an user");s("done",a),e.value.stage="loading"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},z=()=>{e.value.info.email&&I()},R=()=>{e.value={stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}};return(a,f)=>(t(),m("div",{class:"form",style:q({backgroundColor:l(p)})},[o("div",Pe,[d(x,{"hide-text":"",size:"large","image-url":a.logoUrl,"brand-name":a.brandName},null,8,["image-url","brand-name"]),o("h2",null,v(l(r).translate("i18n_auth_validate_your_email_login",a.locale,{brandName:a.brandName})),1)]),L.value?(t(),Z(l(te),{key:0,message:l(V),type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):H("",!0),e.value.stage==="collect-info"?(t(),Z(l(D),{key:1,class:"section"},{default:c(()=>[o("div",Se,v(l(r).translate("i18n_auth_info_description",a.locale)),1),d(l(N),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?l(r).translate("i18n_auth_info_invalid_email",a.locale):""},{default:c(()=>[d(l(P),{type:"email",value:e.value.info.email,placeholder:l(r).translate("i18n_auth_enter_your_email",a.locale),onBlur:i,onKeyup:S(I,["enter"]),onChange:f[0]||(f[0]=C=>U(C.target.value))},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),d(l(A),{type:"primary",onClick:I},{default:c(()=>[h(v(l(r).translate("i18n_auth_info_send_code",a.locale)),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(t(),Z(l(D),{key:2,class:"section"},{default:c(()=>[o("div",Ne,v(l(r).translate("i18n_auth_token_label",a.locale,e.value.info)),1),d(l(N),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?l(r).translate("i18n_auth_token_invalid",a.locale):""},{default:c(()=>[d(l(P),{value:e.value.token,"onUpdate:value":f[1]||(f[1]=C=>e.value.token=C),type:"number",placeholder:l(r).translate("i18n_auth_enter_your_token",a.locale),onKeyup:S(T,["enter"])},null,8,["value","placeholder","onKeyup"])]),_:1},8,["validate-status","help"]),d(l(A),{type:"primary",onClick:T},{default:c(()=>[h(v(l(r).translate("i18n_auth_token_verify_email",a.locale)),1)]),_:1}),d(l(A),{onClick:R},{default:c(()=>[h(v(l(r).translate("i18n_auth_edit_email",a.locale)),1)]),_:1}),d(l(A),{disabled:!!e.value.secsToAllowResend,onClick:z},{default:c(()=>[h(v(l(r).translate("i18n_auth_token_resend_email",a.locale))+" ("+v(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),o("div",De,v(l(r).translate("i18n_auth_token_footer_alternative_email",a.locale)),1)]),_:1})):e.value.stage==="loading"?(t(),m("div",Be,[d(ae)])):H("",!0)],4))}});const Ee=B($e,[["__scopeId","data-v-24af7ec8"]]),Ge=b({__name:"Login",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(n,{emit:s}){const u=e=>{Q().saveJWT(e),s("done",e)};return(e,_)=>l($).isConfigured()?(t(),Z(Te,{key:0,onDone:u})):(t(),Z(Ee,{key:1,locale:e.locale,"logo-url":e.logoUrl,"brand-name":e.brandName,onDone:u},null,8,["locale","logo-url","brand-name"]))}});export{Ge as _}; +//# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.9976d09a.js.map diff --git a/abstra_statics/dist/assets/Logo.8f27935a.js b/abstra_statics/dist/assets/Logo.8f27935a.js new file mode 100644 index 0000000000..f63dae3b00 --- /dev/null +++ b/abstra_statics/dist/assets/Logo.8f27935a.js @@ -0,0 +1,2 @@ +import{d as i,eh as l,f as d,o as a,Y as t,S as r,e9 as _,a0 as f}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6c03f379-c5bf-43a5-af45-3a9da8df3560",e._sentryDebugIdIdentifier="sentry-dbid-6c03f379-c5bf-43a5-af45-3a9da8df3560")}catch{}})();const g={class:"logo"},p=["src","alt"],u={key:1},m=i({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const o=e;l(s=>({"4352941e":n.value}));const n=d(()=>o.size==="large"?"80px":"50px"),c=d(()=>`${o.brandName} Logo`);return(s,y)=>(a(),t("div",g,[s.imageUrl?(a(),t("img",{key:0,class:"logo-img",src:s.imageUrl,alt:c.value},null,8,p)):r("",!0),s.hideText?r("",!0):(a(),t("span",u,_(s.brandName),1))]))}});const h=f(m,[["__scopeId","data-v-16688d14"]]);export{h as L}; +//# sourceMappingURL=Logo.8f27935a.js.map diff --git a/abstra_statics/dist/assets/Logo.cf3e0e74.js b/abstra_statics/dist/assets/Logo.cf3e0e74.js deleted file mode 100644 index d5833e9eb3..0000000000 --- a/abstra_statics/dist/assets/Logo.cf3e0e74.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as i,eh as l,f as d,o as t,Y as a,S as r,e9 as _,a0 as g}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="71bd66bb-41b6-498c-83c5-42e657f0ef7f",e._sentryDebugIdIdentifier="sentry-dbid-71bd66bb-41b6-498c-83c5-42e657f0ef7f")}catch{}})();const p={class:"logo"},f=["src","alt"],u={key:1},b=i({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const o=e;l(s=>({"4352941e":n.value}));const n=d(()=>o.size==="large"?"80px":"50px"),c=d(()=>`${o.brandName} Logo`);return(s,m)=>(t(),a("div",p,[s.imageUrl?(t(),a("img",{key:0,class:"logo-img",src:s.imageUrl,alt:c.value},null,8,f)):r("",!0),s.hideText?r("",!0):(t(),a("span",u,_(s.brandName),1))]))}});const h=g(b,[["__scopeId","data-v-16688d14"]]);export{h as L}; -//# sourceMappingURL=Logo.cf3e0e74.js.map diff --git a/abstra_statics/dist/assets/Logs.67028068.js b/abstra_statics/dist/assets/Logs.38b173b7.js similarity index 91% rename from abstra_statics/dist/assets/Logs.67028068.js rename to abstra_statics/dist/assets/Logs.38b173b7.js index bf63f3a91f..e5e8126904 100644 --- a/abstra_statics/dist/assets/Logs.67028068.js +++ b/abstra_statics/dist/assets/Logs.38b173b7.js @@ -1,2 +1,2 @@ -var U=Object.defineProperty;var q=(u,e,r)=>e in u?U(u,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[e]=r;var v=(u,e,r)=>(q(u,typeof e!="symbol"?e+"":e,r),r);import{E as N,g as k,ej as Q,d as C,o as d,Y as f,b as a,w as i,aG as p,u as t,dc as S,a as B,aS as P,eb as z,Z as V,e9 as g,c as m,d2 as G,a0 as Y,ea as Z,e$ as j,dd as H,cz as I,bL as J,aB as A,cy as K,by as L,d5 as w,bQ as M,cx as W}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{a as X,b as tt,g as et}from"./datetime.c7490e96.js";import{e as at,E as st,_ as it}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.5b24f710.js";import{c as $}from"./string.0a3509c3.js";import"./tables.2ec18755.js";import{t as nt}from"./ant-design.ae7d2f9f.js";import{A as O}from"./index.37c7ea66.js";import{R as ot}from"./dayjs.53bce80c.js";import{a as T,A as D}from"./router.f4663fd5.js";import{A as rt,C as lt}from"./CollapsePanel.14b56554.js";import"./popupNotifcation.40886a7f.js";import"./LoadingOutlined.7a2941f5.js";import"./record.a6861841.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[e]="8e14bb82-2a98-422f-a2c1-153ac11ccda3",u._sentryDebugIdIdentifier="sentry-dbid-8e14bb82-2a98-422f-a2c1-153ac11ccda3")}catch{}})();class dt{constructor(e,r,o,c,y,h){v(this,"state");v(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch()});v(this,"debouncedPageRefetch",Q.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));v(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async e=>{this.state.currentPage.executionData[e]||await this.fetchExecutionDetails(e)})});this.executionRepository=e,this.buildRepository=r,this.projectId=o,this.state=N({currentPage:{openedExecutionIds:h?[h]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],executionData:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...y},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...c},filterOptions:{builds:[],stages:[],statuses:at.map(R=>({label:$(R),value:R}))}}),k(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),k(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),k(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.setupRefetchInterval()}async fetchPage(){var o,c,y,h;this.state.currentPage.loadingExecutions=!0;const{executions:e,totalCount:r}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(c=(o=this.state.filters.dateRange)==null?void 0:o[0])==null?void 0:c.toISOString(),endDate:(h=(y=this.state.filters.dateRange)==null?void 0:y[1])==null?void 0:h.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=e,this.state.pagination.totalCount=r}async fetchBuildOptions(){const r=(await this.buildRepository.list(this.projectId)).map(o=>({label:`[${o.id.slice(0,8)}] ${o.createdAt.toLocaleString()} ${o.latest?"(Latest)":""}`,value:o.id}));this.state.filterOptions.builds=r}async fetchStageOptions(){var o;const e=await X.get((o=this.state.filters.buildId)!=null?o:this.state.filterOptions.builds[0].value),r=e==null?void 0:e.runtimes.map(c=>({label:c.title,value:c.id}));this.state.filterOptions.stages=r!=null?r:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(e){const[r,o]=await Promise.all([this.executionRepository.fetchLogs(this.projectId,e),this.executionRepository.fetchThreadData(this.projectId,e)]);this.state.currentPage.executionData[e]={logs:r,threadData:o}}async setupRefetchInterval(){setTimeout(async()=>{await Promise.all(this.state.currentPage.openedExecutionIds.map(e=>this.fetchExecutionDetails(e))),this.setupRefetchInterval()},1e5)}}const ut={style:{"background-color":"#555","border-radius":"5px",padding:"10px",color:"#fff","font-family":"monospace","max-height":"600px",overflow:"auto"}},ct=C({__name:"LogContainer",props:{logs:{}},setup(u){return(e,r)=>(d(),f(P,null,[a(t(S),{strong:""},{default:i(()=>[p("Terminal Output")]),_:1}),B("div",ut,[(d(!0),f(P,null,z(e.logs.entries,o=>(d(),f("p",{key:o.createdAt,style:V({margin:0,"white-space":"pre",color:o.event==="stderr"||o.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},g(o.payload.text.trim()),5))),128))])],64))}}),pt=C({__name:"ThreadData",props:{data:{}},setup(u){return(e,r)=>(d(),f(P,null,[a(t(S),{strong:""},{default:i(()=>[p("Thread Data")]),_:1}),a(t(O),{direction:"vertical",style:{"border-radius":"5px",padding:"10px",color:"#fff",width:"100%","font-family":"monospace","max-height":"600px",overflow:"auto",border:"1px solid #aaa"}},{default:i(()=>[Object.keys(e.data).length?(d(!0),f(P,{key:1},z(Object.entries(e.data),([o,c])=>(d(),f("div",{key:o,class:"tree"},[a(t(S),{strong:""},{default:i(()=>[p(g(o),1)]),_:2},1024),a(t(G),{"tree-data":t(nt)(c),selectable:!1},null,8,["tree-data"])]))),128)):(d(),m(t(S),{key:0,type:"secondary"},{default:i(()=>[p("Empty")]),_:1}))]),_:1})],64))}});const ft=Y(pt,[["__scopeId","data-v-b70415e5"]]),gt={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},ht={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},yt={key:1,style:{display:"flex","flex-direction":"column",gap:"5px"}},Ct=C({__name:"Logs",setup(u){const e=new st,r=new tt,o=Z(),c=o.params.projectId,y=o.query.executionId;function h(){const{stageId:b,buildId:l,status:s,startDate:x,endDate:_}=o.query;return x&&_?{stageId:b,buildId:l,status:s,dateRange:[j(x),j(_)]}:{stageId:b,buildId:l,status:s}}function R(){const{page:b,pageSize:l}=o.query;return{page:b?parseInt(b,10):1,pageSize:l?parseInt(l,10):10}}const E=new dt(e,r,c,h(),R(),y),{state:n}=E;return E.init(),(b,l)=>(d(),m(t(O),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:i(()=>[a(t(H),null,{default:i(()=>[p("Logs")]),_:1}),a(t(K),{layout:"vertical"},{default:i(()=>[a(t(T),{gutter:10},{default:i(()=>[a(t(D),{span:12},{default:i(()=>[a(t(I),{label:"Run ID"},{default:i(()=>[a(t(J),{value:t(n).filters.search,"onUpdate:value":l[0]||(l[0]=s=>t(n).filters.search=s),placeholder:"Search by Run ID",style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(t(D),{span:12},{default:i(()=>[a(t(I),{label:"Script"},{default:i(()=>[a(t(A),{value:t(n).filters.stageId,"onUpdate:value":l[1]||(l[1]=s=>t(n).filters.stageId=s),options:t(n).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1}),a(t(T),{gutter:10},{default:i(()=>[a(t(D),{span:8},{default:i(()=>[a(t(I),{label:"Date"},{default:i(()=>[a(t(ot),{value:t(n).filters.dateRange,"onUpdate:value":l[2]||(l[2]=s=>t(n).filters.dateRange=s),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(t(D),{span:10},{default:i(()=>[a(t(I),{label:"Build"},{default:i(()=>[a(t(A),{value:t(n).filters.buildId,"onUpdate:value":l[3]||(l[3]=s=>t(n).filters.buildId=s),options:t(n).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(t(D),{span:6},{default:i(()=>[a(t(I),{label:"Status"},{default:i(()=>[a(t(A),{value:t(n).filters.status,"onUpdate:value":l[4]||(l[4]=s=>t(n).filters.status=s),options:t(n).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1}),t(n).currentPage.loadingExecutions||t(n).currentPage.waitingDebounce?(d(),m(t(L),{key:0,style:{width:"100%"}})):t(n).currentPage.executions&&t(n).currentPage.executions.length>0?(d(),m(t(O),{key:1,direction:"vertical",style:{width:"100%"}},{default:i(()=>[a(t(lt),{"active-key":t(n).currentPage.openedExecutionIds,"onUpdate:activeKey":l[5]||(l[5]=s=>t(n).currentPage.openedExecutionIds=s),bordered:!1,style:{"background-color":"transparent"},onChange:t(E).fetchEmptyLogs},{default:i(()=>[(d(!0),f(P,null,z(t(n).currentPage.executions,s=>(d(),m(t(rt),{key:s.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:i(()=>[a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(g(t(et)(s.createdAt)),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(" Run ID: "+g(s.id.slice(0,8)),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(" Build: "+g(s.buildId.slice(0,8)),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(" Duration: "+g(s.duration_seconds),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>{var x,_;return[p(g((_=(x=t(n).filterOptions.stages.find(F=>F.value===s.stageId))==null?void 0:x.label)!=null?_:s.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:i(()=>[B("div",gt,[p(g(t($)(s.status))+" ",1),a(it,{status:s.status},null,8,["status"])])]),default:i(()=>[t(n).currentPage.executionData[s.id]?(d(),f("div",yt,[a(ft,{data:t(n).currentPage.executionData[s.id].threadData},null,8,["data"]),a(ct,{logs:t(n).currentPage.executionData[s.id].logs},null,8,["logs"])])):(d(),f("div",ht,[a(t(L))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(t(M),{current:t(n).pagination.currentIndex,"onUpdate:current":l[6]||(l[6]=s=>t(n).pagination.currentIndex=s),"page-size":t(n).pagination.pageSize,"onUpdate:pageSize":l[7]||(l[7]=s=>t(n).pagination.pageSize=s),total:t(n).pagination.totalCount,"show-total":s=>`Found ${s} runs`,"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(d(),m(t(W),{key:2}))]),_:1}))}});export{Ct as default}; -//# sourceMappingURL=Logs.67028068.js.map +var U=Object.defineProperty;var q=(u,e,r)=>e in u?U(u,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[e]=r;var v=(u,e,r)=>(q(u,typeof e!="symbol"?e+"":e,r),r);import{E as N,g as k,ej as Q,d as C,o as d,Y as f,b as a,w as i,aG as p,u as t,dc as S,a as B,aS as P,eb as z,Z as V,e9 as g,c as m,d2 as G,a0 as Y,ea as Z,e$ as j,dd as H,cz as I,bL as J,aB as A,cy as K,by as L,d5 as w,bQ as M,cx as W}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{a as X,b as tt,g as et}from"./datetime.19a96164.js";import{e as at,E as st,_ as it}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js";import{c as $}from"./string.d9c83adf.js";import"./tables.318f703e.js";import{t as nt}from"./ant-design.d89b18ab.js";import{A as O}from"./index.a82e0ed1.js";import{R as ot}from"./dayjs.9c046fb9.js";import{a as T,A as D}from"./router.375df57e.js";import{A as rt,C as lt}from"./CollapsePanel.40b6e69e.js";import"./popupNotifcation.a0a6244b.js";import"./LoadingOutlined.bcfc8c20.js";import"./record.8c284c67.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[e]="3ecf44e8-1163-4c9b-9c35-2694ee757dbd",u._sentryDebugIdIdentifier="sentry-dbid-3ecf44e8-1163-4c9b-9c35-2694ee757dbd")}catch{}})();class dt{constructor(e,r,o,c,y,h){v(this,"state");v(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch()});v(this,"debouncedPageRefetch",Q.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));v(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async e=>{this.state.currentPage.executionData[e]||await this.fetchExecutionDetails(e)})});this.executionRepository=e,this.buildRepository=r,this.projectId=o,this.state=N({currentPage:{openedExecutionIds:h?[h]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],executionData:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...y},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...c},filterOptions:{builds:[],stages:[],statuses:at.map(R=>({label:$(R),value:R}))}}),k(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),k(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),k(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.setupRefetchInterval()}async fetchPage(){var o,c,y,h;this.state.currentPage.loadingExecutions=!0;const{executions:e,totalCount:r}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(c=(o=this.state.filters.dateRange)==null?void 0:o[0])==null?void 0:c.toISOString(),endDate:(h=(y=this.state.filters.dateRange)==null?void 0:y[1])==null?void 0:h.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=e,this.state.pagination.totalCount=r}async fetchBuildOptions(){const r=(await this.buildRepository.list(this.projectId)).map(o=>({label:`[${o.id.slice(0,8)}] ${o.createdAt.toLocaleString()} ${o.latest?"(Latest)":""}`,value:o.id}));this.state.filterOptions.builds=r}async fetchStageOptions(){var o;const e=await X.get((o=this.state.filters.buildId)!=null?o:this.state.filterOptions.builds[0].value),r=e==null?void 0:e.runtimes.map(c=>({label:c.title,value:c.id}));this.state.filterOptions.stages=r!=null?r:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(e){const[r,o]=await Promise.all([this.executionRepository.fetchLogs(this.projectId,e),this.executionRepository.fetchThreadData(this.projectId,e)]);this.state.currentPage.executionData[e]={logs:r,threadData:o}}async setupRefetchInterval(){setTimeout(async()=>{await Promise.all(this.state.currentPage.openedExecutionIds.map(e=>this.fetchExecutionDetails(e))),this.setupRefetchInterval()},1e5)}}const ut={style:{"background-color":"#555","border-radius":"5px",padding:"10px",color:"#fff","font-family":"monospace","max-height":"600px",overflow:"auto"}},ct=C({__name:"LogContainer",props:{logs:{}},setup(u){return(e,r)=>(d(),f(P,null,[a(t(S),{strong:""},{default:i(()=>[p("Terminal Output")]),_:1}),B("div",ut,[(d(!0),f(P,null,z(e.logs.entries,o=>(d(),f("p",{key:o.createdAt,style:V({margin:0,"white-space":"pre",color:o.event==="stderr"||o.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},g(o.payload.text.trim()),5))),128))])],64))}}),pt=C({__name:"ThreadData",props:{data:{}},setup(u){return(e,r)=>(d(),f(P,null,[a(t(S),{strong:""},{default:i(()=>[p("Thread Data")]),_:1}),a(t(O),{direction:"vertical",style:{"border-radius":"5px",padding:"10px",color:"#fff",width:"100%","font-family":"monospace","max-height":"600px",overflow:"auto",border:"1px solid #aaa"}},{default:i(()=>[Object.keys(e.data).length?(d(!0),f(P,{key:1},z(Object.entries(e.data),([o,c])=>(d(),f("div",{key:o,class:"tree"},[a(t(S),{strong:""},{default:i(()=>[p(g(o),1)]),_:2},1024),a(t(G),{"tree-data":t(nt)(c),selectable:!1},null,8,["tree-data"])]))),128)):(d(),m(t(S),{key:0,type:"secondary"},{default:i(()=>[p("Empty")]),_:1}))]),_:1})],64))}});const ft=Y(pt,[["__scopeId","data-v-b70415e5"]]),gt={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},ht={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},yt={key:1,style:{display:"flex","flex-direction":"column",gap:"5px"}},Ct=C({__name:"Logs",setup(u){const e=new st,r=new tt,o=Z(),c=o.params.projectId,y=o.query.executionId;function h(){const{stageId:b,buildId:l,status:s,startDate:x,endDate:_}=o.query;return x&&_?{stageId:b,buildId:l,status:s,dateRange:[j(x),j(_)]}:{stageId:b,buildId:l,status:s}}function R(){const{page:b,pageSize:l}=o.query;return{page:b?parseInt(b,10):1,pageSize:l?parseInt(l,10):10}}const E=new dt(e,r,c,h(),R(),y),{state:n}=E;return E.init(),(b,l)=>(d(),m(t(O),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:i(()=>[a(t(H),null,{default:i(()=>[p("Logs")]),_:1}),a(t(K),{layout:"vertical"},{default:i(()=>[a(t(T),{gutter:10},{default:i(()=>[a(t(D),{span:12},{default:i(()=>[a(t(I),{label:"Run ID"},{default:i(()=>[a(t(J),{value:t(n).filters.search,"onUpdate:value":l[0]||(l[0]=s=>t(n).filters.search=s),placeholder:"Search by Run ID",style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(t(D),{span:12},{default:i(()=>[a(t(I),{label:"Script"},{default:i(()=>[a(t(A),{value:t(n).filters.stageId,"onUpdate:value":l[1]||(l[1]=s=>t(n).filters.stageId=s),options:t(n).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1}),a(t(T),{gutter:10},{default:i(()=>[a(t(D),{span:8},{default:i(()=>[a(t(I),{label:"Date"},{default:i(()=>[a(t(ot),{value:t(n).filters.dateRange,"onUpdate:value":l[2]||(l[2]=s=>t(n).filters.dateRange=s),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(t(D),{span:10},{default:i(()=>[a(t(I),{label:"Build"},{default:i(()=>[a(t(A),{value:t(n).filters.buildId,"onUpdate:value":l[3]||(l[3]=s=>t(n).filters.buildId=s),options:t(n).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(t(D),{span:6},{default:i(()=>[a(t(I),{label:"Status"},{default:i(()=>[a(t(A),{value:t(n).filters.status,"onUpdate:value":l[4]||(l[4]=s=>t(n).filters.status=s),options:t(n).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1}),t(n).currentPage.loadingExecutions||t(n).currentPage.waitingDebounce?(d(),m(t(L),{key:0,style:{width:"100%"}})):t(n).currentPage.executions&&t(n).currentPage.executions.length>0?(d(),m(t(O),{key:1,direction:"vertical",style:{width:"100%"}},{default:i(()=>[a(t(lt),{"active-key":t(n).currentPage.openedExecutionIds,"onUpdate:activeKey":l[5]||(l[5]=s=>t(n).currentPage.openedExecutionIds=s),bordered:!1,style:{"background-color":"transparent"},onChange:t(E).fetchEmptyLogs},{default:i(()=>[(d(!0),f(P,null,z(t(n).currentPage.executions,s=>(d(),m(t(rt),{key:s.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:i(()=>[a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(g(t(et)(s.createdAt)),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(" Run ID: "+g(s.id.slice(0,8)),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(" Build: "+g(s.buildId.slice(0,8)),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>[p(" Duration: "+g(s.duration_seconds),1)]),_:2},1024),a(t(w),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:i(()=>{var x,_;return[p(g((_=(x=t(n).filterOptions.stages.find(F=>F.value===s.stageId))==null?void 0:x.label)!=null?_:s.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:i(()=>[B("div",gt,[p(g(t($)(s.status))+" ",1),a(it,{status:s.status},null,8,["status"])])]),default:i(()=>[t(n).currentPage.executionData[s.id]?(d(),f("div",yt,[a(ft,{data:t(n).currentPage.executionData[s.id].threadData},null,8,["data"]),a(ct,{logs:t(n).currentPage.executionData[s.id].logs},null,8,["logs"])])):(d(),f("div",ht,[a(t(L))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(t(M),{current:t(n).pagination.currentIndex,"onUpdate:current":l[6]||(l[6]=s=>t(n).pagination.currentIndex=s),"page-size":t(n).pagination.pageSize,"onUpdate:pageSize":l[7]||(l[7]=s=>t(n).pagination.pageSize=s),total:t(n).pagination.totalCount,"show-total":s=>`Found ${s} runs`,"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(d(),m(t(W),{key:2}))]),_:1}))}});export{Ct as default}; +//# sourceMappingURL=Logs.38b173b7.js.map diff --git a/abstra_statics/dist/assets/Main.0da9506c.js b/abstra_statics/dist/assets/Main.0da9506c.js deleted file mode 100644 index d1e7e870a4..0000000000 --- a/abstra_statics/dist/assets/Main.0da9506c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{P as f}from"./PlayerNavbar.dddcfb4f.js";import{d as g,eo as h,ea as i,e as b,f as y,r as k,o as c,Y as v,u as a,c as w,S as L,a as C,b as I,a0 as N}from"./index.8c3f27aa.js";import{u as V}from"./workspaceStore.a6063d10.js";import"./metadata.2beed20a.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./LoadingOutlined.7a2941f5.js";import"./PhSignOut.vue.266bb925.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="b81e0d1b-857e-434f-b468-46866c4721de",o._sentryDebugIdIdentifier="sentry-dbid-b81e0d1b-857e-434f-b468-46866c4721de")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(o){const e=h(),t=V(),d=i().path,n=b(null),u=async({path:r,id:s})=>{n.value=s,await e.push({path:`/${r}`}),n.value=null},p=()=>{e.push({name:"playerLogin"})},l=()=>{e.push({name:"playerLogin"})},_=y(()=>!!i().meta.hideLogin);return(r,s)=>{const m=k("RouterView");return c(),v("div",x,[a(t).state.workspace?(c(),w(f,{key:0,"current-path":a(d),"hide-login":_.value,"runner-data":a(t).state.workspace,loading:n.value,onNavigate:u,onLoginClick:l,onLogoutClick:p},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const H=N(D,[["__scopeId","data-v-f095bece"]]);export{H as default}; -//# sourceMappingURL=Main.0da9506c.js.map diff --git a/abstra_statics/dist/assets/Main.7dbcdec0.js b/abstra_statics/dist/assets/Main.7dbcdec0.js new file mode 100644 index 0000000000..9a47eb39e5 --- /dev/null +++ b/abstra_statics/dist/assets/Main.7dbcdec0.js @@ -0,0 +1,2 @@ +import{P as f}from"./PlayerNavbar.8e419fbd.js";import{d as g,eo as h,ea as i,e as y,f as b,r as k,o as c,Y as v,u as n,c as w,S as L,a as C,b as I,a0 as N}from"./index.d0f12294.js";import{u as V}from"./workspaceStore.e47060bf.js";import"./metadata.bc77f4b9.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./LoadingOutlined.bcfc8c20.js";import"./PhSignOut.vue.6dacf893.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="72412e87-809a-4d31-8aed-3bb1352f7239",o._sentryDebugIdIdentifier="sentry-dbid-72412e87-809a-4d31-8aed-3bb1352f7239")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(o){const e=h(),t=V(),d=i().path,a=y(null),u=async({path:r,id:s})=>{a.value=s,await e.push({path:`/${r}`}),a.value=null},p=()=>{e.push({name:"playerLogin"})},l=()=>{e.push({name:"playerLogin"})},_=b(()=>!!i().meta.hideLogin);return(r,s)=>{const m=k("RouterView");return c(),v("div",x,[n(t).state.workspace?(c(),w(f,{key:0,"current-path":n(d),"hide-login":_.value,"runner-data":n(t).state.workspace,loading:a.value,onNavigate:u,onLoginClick:l,onLogoutClick:p},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const H=N(D,[["__scopeId","data-v-f095bece"]]);export{H as default}; +//# sourceMappingURL=Main.7dbcdec0.js.map diff --git a/abstra_statics/dist/assets/Navbar.059184c9.js b/abstra_statics/dist/assets/Navbar.8a0a89b3.js similarity index 56% rename from abstra_statics/dist/assets/Navbar.059184c9.js rename to abstra_statics/dist/assets/Navbar.8a0a89b3.js index c43aff46cc..277c10a284 100644 --- a/abstra_statics/dist/assets/Navbar.059184c9.js +++ b/abstra_statics/dist/assets/Navbar.8a0a89b3.js @@ -1,2 +1,2 @@ -import{d as h,eo as A,r as B,u as e,o as s,c as d,by as C,Y as f,b as a,w as t,aG as r,bT as i,a as m,dc as w,e9 as _,cO as N,ej as I,eb as L,f0 as S,aS as g,S as D,$ as z,a0 as R}from"./index.8c3f27aa.js";import{a as $}from"./asyncComputed.cfc0cdaf.js";import{G as T}from"./PhChats.vue.296ae643.js";import{F as V}from"./PhSignOut.vue.266bb925.js";import{C as j}from"./router.f4663fd5.js";import{a as k}from"./gateway.8032b20a.js";import{A as E}from"./index.37c7ea66.js";import{A as F}from"./Avatar.8da44d42.js";import{B as G,A as O,b as P}from"./index.d667cd0d.js";import{B as q}from"./BookOutlined.b4191bff.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="fdb52f53-3301-4de1-a27d-630c385d533d",n._sentryDebugIdIdentifier="sentry-dbid-fdb52f53-3301-4de1-a27d-630c385d533d")}catch{}})();const H={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},M={style:{display:"flex","flex-direction":"column",gap:"10px"}},U={style:{display:"flex",gap:"5px"}},Y=h({__name:"LoginBlock",setup(n){function o(y){const b=y.split("@")[0];return I.exports.kebabCase(b).toUpperCase().split("-").slice(0,2).map(p=>p[0]).join("")}const c=A(),{result:l,loading:u,refetch:x}=$(async()=>k.getAuthor());function v(){k.removeAuthor(),j.shutdown(),x(),c.push({name:"login"})}return(y,b)=>{const p=B("RouterLink");return e(u)?(s(),d(e(C),{key:0})):e(l)?(s(),f("div",H,[a(e(i),{class:"intercom-launcher",target:"_blank",type:"link",size:"small",style:{color:"#d14056",display:"flex","align-items":"center",gap:"6px"}},{icon:t(()=>[a(e(T),{size:18})]),default:t(()=>[r(" Support ")]),_:1}),a(e(N),{placement:"bottomRight"},{content:t(()=>[m("div",M,[a(e(w),{size:"small",type:"secondary"},{default:t(()=>[r(_(e(l).claims.email),1)]),_:1}),a(e(i),{type:"text",onClick:v},{default:t(()=>[m("div",U,[a(e(V),{size:"20"}),r(" Logout ")])]),_:1})])]),default:t(()=>[a(e(E),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(F),{shape:"square"},{default:t(()=>[r(_(o(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(s(),d(e(i),{key:2},{default:t(()=>[a(p,{to:"/login"},{default:t(()=>[r("Login")]),_:1})]),_:1}))}}}),J={class:"extra"},K=h({__name:"Navbar",props:{breadcrumb:{}},setup(n){return(o,c)=>(s(),d(e(P),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[o.breadcrumb?(s(),d(e(G),{key:0},{default:t(()=>[(s(!0),f(g,null,L(o.breadcrumb,(l,u)=>(s(),d(e(O),{key:u},{default:t(()=>[a(e(S),{to:l.path},{default:t(()=>[r(_(l.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):D("",!0)]),extra:t(()=>[m("div",J,[a(e(i),{class:"docs-button",href:"https://docs.abstra.io/",target:"_blank",type:"link",style:{color:"#d14056"},size:"small"},{icon:t(()=>[a(e(q))]),default:t(()=>[o.$slots.default?z(o.$slots,"default",{key:0},void 0,!0):(s(),f(g,{key:1},[r("Docs")],64))]),_:3}),a(Y)])]),_:3}))}});const ne=R(K,[["__scopeId","data-v-5ef7b378"]]);export{ne as N}; -//# sourceMappingURL=Navbar.059184c9.js.map +import{d as h,eo as A,r as B,u as e,o as s,c as i,by as C,Y as f,b as a,w as t,aG as r,bT as d,a as m,dc as w,e9 as _,cO as N,ej as I,eb as L,f0 as S,aS as g,S as D,$ as z,a0 as R}from"./index.d0f12294.js";import{a as $}from"./asyncComputed.703c33fd.js";import{G as T}from"./PhChats.vue.1b5982bf.js";import{F as V}from"./PhSignOut.vue.6dacf893.js";import{C as j}from"./router.375df57e.js";import{a as k}from"./gateway.ae1d6857.js";import{A as E}from"./index.a82e0ed1.js";import{A as F}from"./Avatar.f6415f7c.js";import{B as G,A as O,b as P}from"./index.3b2f4dca.js";import{B as q}from"./BookOutlined.7c922f07.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="40875177-de0b-485c-af64-3af8510116d9",n._sentryDebugIdIdentifier="sentry-dbid-40875177-de0b-485c-af64-3af8510116d9")}catch{}})();const H={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},M={style:{display:"flex","flex-direction":"column",gap:"10px"}},U={style:{display:"flex",gap:"5px"}},Y=h({__name:"LoginBlock",setup(n){function o(y){const b=y.split("@")[0];return I.exports.kebabCase(b).toUpperCase().split("-").slice(0,2).map(p=>p[0]).join("")}const c=A(),{result:l,loading:u,refetch:x}=$(async()=>k.getAuthor());function v(){k.removeAuthor(),j.shutdown(),x(),c.push({name:"login"})}return(y,b)=>{const p=B("RouterLink");return e(u)?(s(),i(e(C),{key:0})):e(l)?(s(),f("div",H,[a(e(d),{class:"intercom-launcher",target:"_blank",type:"link",size:"small",style:{color:"#d14056",display:"flex","align-items":"center",gap:"6px"}},{icon:t(()=>[a(e(T),{size:18})]),default:t(()=>[r(" Support ")]),_:1}),a(e(N),{placement:"bottomRight"},{content:t(()=>[m("div",M,[a(e(w),{size:"small",type:"secondary"},{default:t(()=>[r(_(e(l).claims.email),1)]),_:1}),a(e(d),{type:"text",onClick:v},{default:t(()=>[m("div",U,[a(e(V),{size:"20"}),r(" Logout ")])]),_:1})])]),default:t(()=>[a(e(E),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(F),{shape:"square"},{default:t(()=>[r(_(o(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(s(),i(e(d),{key:2},{default:t(()=>[a(p,{to:"/login"},{default:t(()=>[r("Login")]),_:1})]),_:1}))}}}),J={class:"extra"},K=h({__name:"Navbar",props:{breadcrumb:{}},setup(n){return(o,c)=>(s(),i(e(P),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[o.breadcrumb?(s(),i(e(G),{key:0},{default:t(()=>[(s(!0),f(g,null,L(o.breadcrumb,(l,u)=>(s(),i(e(O),{key:u},{default:t(()=>[a(e(S),{to:l.path},{default:t(()=>[r(_(l.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):D("",!0)]),extra:t(()=>[m("div",J,[a(e(d),{class:"docs-button",href:"https://docs.abstra.io/",target:"_blank",type:"link",style:{color:"#d14056"},size:"small"},{icon:t(()=>[a(e(q))]),default:t(()=>[o.$slots.default?z(o.$slots,"default",{key:0},void 0,!0):(s(),f(g,{key:1},[r("Docs")],64))]),_:3}),a(Y)])]),_:3}))}});const ne=R(K,[["__scopeId","data-v-5ef7b378"]]);export{ne as N}; +//# sourceMappingURL=Navbar.8a0a89b3.js.map diff --git a/abstra_statics/dist/assets/NavbarControls.0c752e0f.js b/abstra_statics/dist/assets/NavbarControls.be646660.js similarity index 92% rename from abstra_statics/dist/assets/NavbarControls.0c752e0f.js rename to abstra_statics/dist/assets/NavbarControls.be646660.js index fa448c6d42..8a648429e1 100644 --- a/abstra_statics/dist/assets/NavbarControls.0c752e0f.js +++ b/abstra_statics/dist/assets/NavbarControls.be646660.js @@ -1,2 +1,2 @@ -import{b as i,ee as S,ef as q,d as w,f as j,e as C,o as s,c,w as o,Y as T,eb as G,u as l,a as Y,e9 as z,aS as M,bT as m,aG as f,ed as X,cO as H,S as x,a0 as $,dh as L,da as J,dc as Q,X as Z,ah as K,aW as ee,eg as te,ct as ne}from"./index.8c3f27aa.js";import{L as O,E as re,u as ae}from"./editor.e7656461.js";import{S as le}from"./workspaceStore.a6063d10.js";import{C as oe}from"./CloseCircleOutlined.7faf1c70.js";import{A as ie}from"./index.126762e2.js";import{A as D}from"./index.37c7ea66.js";import{W as se}from"./workspaces.7bc437a6.js";import{p as ue}from"./popupNotifcation.40886a7f.js";import{F as ce}from"./PhArrowSquareOut.vue.da8bb581.js";import{_ as de}from"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import{G as fe}from"./PhChats.vue.296ae643.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="5b914fec-ff89-4d01-a7dc-1d6ff971d607",n._sentryDebugIdIdentifier="sentry-dbid-5b914fec-ff89-4d01-a7dc-1d6ff971d607")}catch{}})();var pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};const me=pe;var ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"filled"};const ye=ge;var be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"};const _e=be;var ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};const he=ve;function U(n){for(var e=1;e{var u,p;return(p=(u=O.asyncComputed.result.value)==null?void 0:u.flatMap(d=>d.issues))!=null?p:[]}),r=j(()=>{const u=t.value.map(p=>y(O.fromName(p.ruleName)));return u.includes("error")?"error":u.includes("warning")?"warning":"info"}),a=C(!1);async function _(u){a.value=!0;try{await u.fix(),e("issueFixed",u)}finally{a.value=!1}}function y(u){return u.type==="bug"?"warning":u.type==="security"?"error":"info"}return(u,p)=>t.value.length>0?(s(),c(l(H),{key:0,placement:"bottomRight"},{content:o(()=>[i(l(D),{direction:"vertical",style:{"max-height":"300px",overflow:"auto"}},{default:o(()=>[(s(!0),T(M,null,G(t.value,(d,b)=>(s(),c(l(ie),{key:b+d.ruleName,type:y(l(O).fromName(d.ruleName)),style:{width:"400px"},message:l(O).fromName(d.ruleName).label},{description:o(()=>[i(l(D),{direction:"vertical",style:{width:"100%"}},{default:o(()=>[Y("div",null,z(d.label),1),(s(!0),T(M,null,G(d.fixes,g=>(s(),c(l(m),{key:g.name,loading:a.value,disabled:a.value,onClick:P=>_(g)},{icon:o(()=>[i(l(xe))]),default:o(()=>[f(" "+z(g.label),1)]),_:2},1032,["loading","disabled","onClick"]))),128))]),_:2},1024)]),_:2},1032,["type","message"]))),128))]),_:1})]),default:o(()=>[i(l(m),{class:X(["linter-btn",r.value])},{default:o(()=>[r.value==="info"?(s(),c(l(Pe),{key:0})):r.value==="error"?(s(),c(l(oe),{key:1})):(s(),c(l(De),{key:2}))]),_:1},8,["class"])]),_:1})):x("",!0)}});const Ae=$($e,[["__scopeId","data-v-47a27891"]]),Ie=w({__name:"DeployButton",props:{isReadyToDeploy:{type:Boolean,required:!0},projectId:{type:String,required:!1}},setup(n){const e=n,t=C(!1),r=C(!1),a=C(!1);function _(){r.value=!1}async function y(){if(!!e.projectId){t.value=!0;try{await se.deploy(),window.open(u(),"_blank"),a.value=!0,setTimeout(()=>{a.value=!1},6e4)}catch(p){ue("Deploy failed",String(p))}t.value=!1}}function u(){if(!!e.projectId)return`${re.consoleUrl}/projects/${e.projectId}/builds`}return(p,d)=>n.isReadyToDeploy?(s(),c(l(H),{key:0,open:r.value,"onUpdate:open":d[0]||(d[0]=b=>r.value=b),trigger:"click",title:"Deploy to Abstra Cloud"},{content:o(()=>[a.value?(s(),c(l(L),{key:0,class:"deploy-state-message",align:"middle"},{default:o(()=>[i(l(Q),null,{default:o(()=>[f(" Deploy started at "),i(l(J),{href:u(),target:"_blank"},{default:o(()=>[f("Abstra Cloud")]),_:1},8,["href"]),f(". ")]),_:1})]),_:1})):x("",!0),i(l(L),{class:"action-buttons",gap:"small"},{default:o(()=>[i(l(m),{onClick:_},{default:o(()=>[f("Close")]),_:1}),a.value?(s(),c(l(m),{key:0,class:"deploy-button",type:"primary",href:u(),target:"_blank"},{icon:o(()=>[i(l(ce),{color:"white",size:"20"})]),default:o(()=>[f(" Open Console ")]),_:1},8,["href"])):(s(),c(l(m),{key:1,type:"primary",loading:t.value,onClick:y},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1},8,["loading"]))]),_:1})]),default:o(()=>[t.value?(s(),c(l(m),{key:0,disabled:""},{default:o(()=>[f("Deploying")]),_:1})):(s(),c(l(m),{key:1},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))]),_:1},8,["open"])):(s(),c(l(m),{key:1,disabled:""},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))}});const Ne=$(Ie,[["__scopeId","data-v-a2fa9262"]]),Be=w({__name:"GithubStars",setup(n){return(e,t)=>(s(),c(l(m),{href:"https://github.com/abstra-app/abstra-lib",target:"_blank",type:"text",size:"small"},{default:o(()=>[i(l(Se)),f(" GitHub ")]),_:1}))}}),Fe=w({__name:"IntercomButton",setup(n){return(e,t)=>(s(),c(l(m),{class:"intercom-launcher",target:"_blank",type:"text",size:"small",style:{display:"flex","align-items":"center",gap:"6px"}},{icon:o(()=>[i(l(fe),{size:18})]),default:o(()=>[f(" Support ")]),_:1}))}}),Te=w({__name:"NavbarControls",props:{showGithubStars:{type:Boolean},docsPath:{},editingModel:{}},setup(n){var b;const e=n,t=ae(),r=(b=le.instance)==null?void 0:b.isStagingRelease,{result:a,refetch:_}=O.asyncComputed,y=C(!1);function u(){setTimeout(async()=>{await _(),y.value&&u()},1e3)}Z(()=>{y.value=!0,u()}),K(()=>{y.value=!1});const p=j(()=>{var P,v;return((v=(P=a.value)==null?void 0:P.flatMap(h=>["error","security","bug"].includes(h.type)?h.issues:[]))!=null?v:[]).length>0}),d=j(()=>{var g;return p.value?"issues-found":(g=e.editingModel)!=null&&g.hasChanges()?"unsaved":r?"is-staging":"ready"});return(g,P)=>(s(),c(l(D),null,{default:o(()=>{var v;return[e.showGithubStars?(s(),c(Be,{key:0})):x("",!0),i(de,{path:e.docsPath},null,8,["path"]),i(Fe),(v=g.editingModel)!=null&&v.hasChanges()?x("",!0):(s(),c(Ae,{key:1})),i(l(ne),null,{default:o(()=>[i(l(ee),null,te({default:o(()=>{var h;return[i(Ne,{"is-ready-to-deploy":d.value==="ready","project-id":(h=l(t).cloudProject)==null?void 0:h.id},null,8,["is-ready-to-deploy","project-id"])]}),_:2},[d.value==="unsaved"?{name:"title",fn:o(()=>[f(" Save your project before deploying ")]),key:"0"}:d.value==="issues-found"?{name:"title",fn:o(()=>[f(" There are errors on your project. Please fix them before deploying. ")]),key:"1"}:d.value==="is-staging"?{name:"title",fn:o(()=>[f(" This is a staging release. You can't deploy it to Abstra Cloud. ")]),key:"2"}:void 0]),1024)]),_:1})]}),_:1}))}});const Ye=$(Te,[["__scopeId","data-v-b4cc0fe7"]]);export{Ye as N}; -//# sourceMappingURL=NavbarControls.0c752e0f.js.map +import{b as i,ee as S,ef as q,d as w,f as j,e as C,o as s,c,w as o,Y as T,eb as G,u as l,a as Y,e9 as z,aS as M,bT as m,aG as f,ed as X,cO as H,S as x,a0 as $,dh as L,da as J,dc as Q,X as Z,ah as K,aW as ee,eg as te,ct as ne}from"./index.d0f12294.js";import{L as O,E as re,u as ae}from"./editor.95f16260.js";import{S as le}from"./workspaceStore.e47060bf.js";import{C as oe}from"./CloseCircleOutlined.c0e3f3e1.js";import{A as ie}from"./index.289665f1.js";import{A as D}from"./index.a82e0ed1.js";import{W as se}from"./workspaces.e43325e2.js";import{p as ue}from"./popupNotifcation.a0a6244b.js";import{F as ce}from"./PhArrowSquareOut.vue.418ffcff.js";import{_ as de}from"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import{G as fe}from"./PhChats.vue.1b5982bf.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="08e0aed7-ba82-4bf2-b460-8aecb0d0a490",n._sentryDebugIdIdentifier="sentry-dbid-08e0aed7-ba82-4bf2-b460-8aecb0d0a490")}catch{}})();var pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};const me=pe;var ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"filled"};const ye=ge;var be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"};const _e=be;var ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};const he=ve;function U(n){for(var e=1;e{var u,p;return(p=(u=O.asyncComputed.result.value)==null?void 0:u.flatMap(d=>d.issues))!=null?p:[]}),r=j(()=>{const u=t.value.map(p=>y(O.fromName(p.ruleName)));return u.includes("error")?"error":u.includes("warning")?"warning":"info"}),a=C(!1);async function _(u){a.value=!0;try{await u.fix(),e("issueFixed",u)}finally{a.value=!1}}function y(u){return u.type==="bug"?"warning":u.type==="security"?"error":"info"}return(u,p)=>t.value.length>0?(s(),c(l(H),{key:0,placement:"bottomRight"},{content:o(()=>[i(l(D),{direction:"vertical",style:{"max-height":"300px",overflow:"auto"}},{default:o(()=>[(s(!0),T(M,null,G(t.value,(d,b)=>(s(),c(l(ie),{key:b+d.ruleName,type:y(l(O).fromName(d.ruleName)),style:{width:"400px"},message:l(O).fromName(d.ruleName).label},{description:o(()=>[i(l(D),{direction:"vertical",style:{width:"100%"}},{default:o(()=>[Y("div",null,z(d.label),1),(s(!0),T(M,null,G(d.fixes,g=>(s(),c(l(m),{key:g.name,loading:a.value,disabled:a.value,onClick:P=>_(g)},{icon:o(()=>[i(l(xe))]),default:o(()=>[f(" "+z(g.label),1)]),_:2},1032,["loading","disabled","onClick"]))),128))]),_:2},1024)]),_:2},1032,["type","message"]))),128))]),_:1})]),default:o(()=>[i(l(m),{class:X(["linter-btn",r.value])},{default:o(()=>[r.value==="info"?(s(),c(l(Pe),{key:0})):r.value==="error"?(s(),c(l(oe),{key:1})):(s(),c(l(De),{key:2}))]),_:1},8,["class"])]),_:1})):x("",!0)}});const Ae=$($e,[["__scopeId","data-v-47a27891"]]),Ie=w({__name:"DeployButton",props:{isReadyToDeploy:{type:Boolean,required:!0},projectId:{type:String,required:!1}},setup(n){const e=n,t=C(!1),r=C(!1),a=C(!1);function _(){r.value=!1}async function y(){if(!!e.projectId){t.value=!0;try{await se.deploy(),window.open(u(),"_blank"),a.value=!0,setTimeout(()=>{a.value=!1},6e4)}catch(p){ue("Deploy failed",String(p))}t.value=!1}}function u(){if(!!e.projectId)return`${re.consoleUrl}/projects/${e.projectId}/builds`}return(p,d)=>n.isReadyToDeploy?(s(),c(l(H),{key:0,open:r.value,"onUpdate:open":d[0]||(d[0]=b=>r.value=b),trigger:"click",title:"Deploy to Abstra Cloud"},{content:o(()=>[a.value?(s(),c(l(L),{key:0,class:"deploy-state-message",align:"middle"},{default:o(()=>[i(l(Q),null,{default:o(()=>[f(" Deploy started at "),i(l(J),{href:u(),target:"_blank"},{default:o(()=>[f("Abstra Cloud")]),_:1},8,["href"]),f(". ")]),_:1})]),_:1})):x("",!0),i(l(L),{class:"action-buttons",gap:"small"},{default:o(()=>[i(l(m),{onClick:_},{default:o(()=>[f("Close")]),_:1}),a.value?(s(),c(l(m),{key:0,class:"deploy-button",type:"primary",href:u(),target:"_blank"},{icon:o(()=>[i(l(ce),{color:"white",size:"20"})]),default:o(()=>[f(" Open Console ")]),_:1},8,["href"])):(s(),c(l(m),{key:1,type:"primary",loading:t.value,onClick:y},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1},8,["loading"]))]),_:1})]),default:o(()=>[t.value?(s(),c(l(m),{key:0,disabled:""},{default:o(()=>[f("Deploying")]),_:1})):(s(),c(l(m),{key:1},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))]),_:1},8,["open"])):(s(),c(l(m),{key:1,disabled:""},{icon:o(()=>[i(l(k))]),default:o(()=>[f(" Deploy ")]),_:1}))}});const Ne=$(Ie,[["__scopeId","data-v-a2fa9262"]]),Be=w({__name:"GithubStars",setup(n){return(e,t)=>(s(),c(l(m),{href:"https://github.com/abstra-app/abstra-lib",target:"_blank",type:"text",size:"small"},{default:o(()=>[i(l(Se)),f(" GitHub ")]),_:1}))}}),Fe=w({__name:"IntercomButton",setup(n){return(e,t)=>(s(),c(l(m),{class:"intercom-launcher",target:"_blank",type:"text",size:"small",style:{display:"flex","align-items":"center",gap:"6px"}},{icon:o(()=>[i(l(fe),{size:18})]),default:o(()=>[f(" Support ")]),_:1}))}}),Te=w({__name:"NavbarControls",props:{showGithubStars:{type:Boolean},docsPath:{},editingModel:{}},setup(n){var b;const e=n,t=ae(),r=(b=le.instance)==null?void 0:b.isStagingRelease,{result:a,refetch:_}=O.asyncComputed,y=C(!1);function u(){setTimeout(async()=>{await _(),y.value&&u()},1e3)}Z(()=>{y.value=!0,u()}),K(()=>{y.value=!1});const p=j(()=>{var P,v;return((v=(P=a.value)==null?void 0:P.flatMap(h=>["error","security","bug"].includes(h.type)?h.issues:[]))!=null?v:[]).length>0}),d=j(()=>{var g;return p.value?"issues-found":(g=e.editingModel)!=null&&g.hasChanges()?"unsaved":r?"is-staging":"ready"});return(g,P)=>(s(),c(l(D),null,{default:o(()=>{var v;return[e.showGithubStars?(s(),c(Be,{key:0})):x("",!0),i(de,{path:e.docsPath},null,8,["path"]),i(Fe),(v=g.editingModel)!=null&&v.hasChanges()?x("",!0):(s(),c(Ae,{key:1})),i(l(ne),null,{default:o(()=>[i(l(ee),null,te({default:o(()=>{var h;return[i(Ne,{"is-ready-to-deploy":d.value==="ready","project-id":(h=l(t).cloudProject)==null?void 0:h.id},null,8,["is-ready-to-deploy","project-id"])]}),_:2},[d.value==="unsaved"?{name:"title",fn:o(()=>[f(" Save your project before deploying ")]),key:"0"}:d.value==="issues-found"?{name:"title",fn:o(()=>[f(" There are errors on your project. Please fix them before deploying. ")]),key:"1"}:d.value==="is-staging"?{name:"title",fn:o(()=>[f(" This is a staging release. You can't deploy it to Abstra Cloud. ")]),key:"2"}:void 0]),1024)]),_:1})]}),_:1}))}});const Ye=$(Te,[["__scopeId","data-v-b4cc0fe7"]]);export{Ye as N}; +//# sourceMappingURL=NavbarControls.be646660.js.map diff --git a/abstra_statics/dist/assets/OidcLoginCallback.477e3c64.js b/abstra_statics/dist/assets/OidcLoginCallback.477e3c64.js deleted file mode 100644 index 101f1f60b3..0000000000 --- a/abstra_statics/dist/assets/OidcLoginCallback.477e3c64.js +++ /dev/null @@ -1,2 +0,0 @@ -import{O as r}from"./workspaceStore.a6063d10.js";import{d as i,X as l,o as u,Y as c,b as a,w as n,u as o,aG as s,dd as f,dc as b}from"./index.8c3f27aa.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="38e9b187-6590-4618-a595-be1a5a99fd26",e._sentryDebugIdIdentifier="sentry-dbid-38e9b187-6590-4618-a595-be1a5a99fd26")}catch{}})();const w=i({__name:"OidcLoginCallback",setup(e){return l(async()=>{await new r().loginCallback()}),(t,d)=>(u(),c("div",null,[a(o(f),null,{default:n(()=>[s("You're authenticated")]),_:1}),a(o(b),null,{default:n(()=>[s(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; -//# sourceMappingURL=OidcLoginCallback.477e3c64.js.map diff --git a/abstra_statics/dist/assets/OidcLoginCallback.a316324b.js b/abstra_statics/dist/assets/OidcLoginCallback.a316324b.js new file mode 100644 index 0000000000..2a922a5bbc --- /dev/null +++ b/abstra_statics/dist/assets/OidcLoginCallback.a316324b.js @@ -0,0 +1,2 @@ +import{O as r}from"./workspaceStore.e47060bf.js";import{d as i,X as l,o as c,Y as f,b as a,w as n,u as o,aG as s,dd as u,dc as b}from"./index.d0f12294.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8fde3a8e-b1c5-48a1-bf31-11f9c2b9f507",e._sentryDebugIdIdentifier="sentry-dbid-8fde3a8e-b1c5-48a1-bf31-11f9c2b9f507")}catch{}})();const w=i({__name:"OidcLoginCallback",setup(e){return l(async()=>{await new r().loginCallback()}),(t,d)=>(c(),f("div",null,[a(o(u),null,{default:n(()=>[s("You're authenticated")]),_:1}),a(o(b),null,{default:n(()=>[s(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; +//# sourceMappingURL=OidcLoginCallback.a316324b.js.map diff --git a/abstra_statics/dist/assets/OidcLogoutCallback.d58f4b22.js b/abstra_statics/dist/assets/OidcLogoutCallback.d58f4b22.js new file mode 100644 index 0000000000..cf57d17095 --- /dev/null +++ b/abstra_statics/dist/assets/OidcLogoutCallback.d58f4b22.js @@ -0,0 +1,2 @@ +import{O as r}from"./workspaceStore.e47060bf.js";import{d as l,X as i,o as u,Y as c,b as a,w as o,u as d,aG as n,dd as f,dc as b}from"./index.d0f12294.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d8ed110e-a5a7-4fc9-b3e7-bd87b7fe4a47",e._sentryDebugIdIdentifier="sentry-dbid-d8ed110e-a5a7-4fc9-b3e7-bd87b7fe4a47")}catch{}})();const w=l({__name:"OidcLogoutCallback",setup(e){return i(async()=>{await new r().logoutCallback()}),(t,s)=>(u(),c("div",null,[a(d(f),null,{default:o(()=>[n("You're authenticated")]),_:1}),a(d(b),null,{default:o(()=>[n(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; +//# sourceMappingURL=OidcLogoutCallback.d58f4b22.js.map diff --git a/abstra_statics/dist/assets/OidcLogoutCallback.da5c656b.js b/abstra_statics/dist/assets/OidcLogoutCallback.da5c656b.js deleted file mode 100644 index 276393a0a5..0000000000 --- a/abstra_statics/dist/assets/OidcLogoutCallback.da5c656b.js +++ /dev/null @@ -1,2 +0,0 @@ -import{O as d}from"./workspaceStore.a6063d10.js";import{d as l,X as i,o as u,Y as c,b as a,w as o,u as n,aG as s,dd as f,dc as b}from"./index.8c3f27aa.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2ce98b7-7529-49c3-aaa2-f98e049fb121",e._sentryDebugIdIdentifier="sentry-dbid-f2ce98b7-7529-49c3-aaa2-f98e049fb121")}catch{}})();const w=l({__name:"OidcLogoutCallback",setup(e){return i(async()=>{await new d().logoutCallback()}),(t,r)=>(u(),c("div",null,[a(n(f),null,{default:o(()=>[s("You're authenticated")]),_:1}),a(n(b),null,{default:o(()=>[s(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{w as default}; -//# sourceMappingURL=OidcLogoutCallback.da5c656b.js.map diff --git a/abstra_statics/dist/assets/Organization.868a89e8.js b/abstra_statics/dist/assets/Organization.edfbfaf3.js similarity index 87% rename from abstra_statics/dist/assets/Organization.868a89e8.js rename to abstra_statics/dist/assets/Organization.edfbfaf3.js index 1801774389..e0aa946313 100644 --- a/abstra_statics/dist/assets/Organization.868a89e8.js +++ b/abstra_statics/dist/assets/Organization.edfbfaf3.js @@ -1,2 +1,2 @@ -import{N as f}from"./Navbar.059184c9.js";import{B as w}from"./BaseLayout.995c8c6b.js";import{C as b}from"./ContentLayout.60e2d770.js";import{a as k}from"./asyncComputed.cfc0cdaf.js";import{d as g,D as m,f as i,o as e,Y as o,$ as c,S as V,e8 as M,a as l,ea as z,r as _,c as $,w as H,b as p,u as S}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{O as B}from"./organization.2853982f.js";import"./tables.2ec18755.js";import{S as C,_ as x}from"./Sidebar.f4cbdc17.js";import"./PhChats.vue.296ae643.js";import"./PhSignOut.vue.266bb925.js";import"./router.f4663fd5.js";import"./index.37c7ea66.js";import"./Avatar.8da44d42.js";import"./index.d667cd0d.js";import"./index.d33f3e49.js";import"./BookOutlined.b4191bff.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";import"./index.126762e2.js";import"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import"./Logo.cf3e0e74.js";import"./index.d18d35d7.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[r]="f7b4162c-ade5-4ef1-9023-582138d2c3c1",h._sentryDebugIdIdentifier="sentry-dbid-f7b4162c-ade5-4ef1-9023-582138d2c3c1")}catch{}})();const N=["width","height","fill","transform"],I={key:0},P=l("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,24V88H36V68ZM36,188V112H220v76Zm172-24a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,164Zm-68,0a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24h12A12,12,0,0,1,140,164Z"},null,-1),D=[P],j={key:1},E=l("path",{d:"M232,96v96a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V96Z",opacity:"0.2"},null,-1),q=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),F=[E,q],O={key:2},R=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM136,176H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm64,0H168a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM32,88V64H224V88Z"},null,-1),W=[R],L={key:3},T=l("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM32,62H224a2,2,0,0,1,2,2V90H30V64A2,2,0,0,1,32,62ZM224,194H32a2,2,0,0,1-2-2V102H226v90A2,2,0,0,1,224,194Zm-18-26a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h32A6,6,0,0,1,206,168Zm-64,0a6,6,0,0,1-6,6H120a6,6,0,0,1,0-12h16A6,6,0,0,1,142,168Z"},null,-1),U=[T],Y={key:4},G=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),J=[G],K={key:5},Q=l("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM32,60H224a4,4,0,0,1,4,4V92H28V64A4,4,0,0,1,32,60ZM224,196H32a4,4,0,0,1-4-4V100H228v92A4,4,0,0,1,224,196Zm-20-28a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h32A4,4,0,0,1,204,168Zm-64,0a4,4,0,0,1-4,4H120a4,4,0,0,1,0-8h16A4,4,0,0,1,140,168Z"},null,-1),X=[Q],a0={name:"PhCreditCard"},e0=g({...a0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,y)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",I,D)):t.value==="duotone"?(e(),o("g",j,F)):t.value==="fill"?(e(),o("g",O,W)):t.value==="light"?(e(),o("g",L,U)):t.value==="regular"?(e(),o("g",Y,J)):t.value==="thin"?(e(),o("g",K,X)):V("",!0)],16,N))}}),t0=["width","height","fill","transform"],r0={key:0},o0=l("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"},null,-1),l0=[o0],i0={key:1},n0=l("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",opacity:"0.2"},null,-1),m0=l("path",{d:"M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z"},null,-1),h0=[n0,m0],s0={key:2},u0=l("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"},null,-1),d0=[u0],A0={key:3},v0=l("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"},null,-1),Z0=[v0],H0={key:4},p0=l("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"},null,-1),g0=[p0],V0={key:5},c0=l("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"},null,-1),M0=[c0],y0={name:"PhSquaresFour"},$0=g({...y0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,y)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",r0,l0)):t.value==="duotone"?(e(),o("g",i0,h0)):t.value==="fill"?(e(),o("g",s0,d0)):t.value==="light"?(e(),o("g",A0,Z0)):t.value==="regular"?(e(),o("g",H0,g0)):t.value==="thin"?(e(),o("g",V0,M0)):V("",!0)],16,t0))}}),f0=["width","height","fill","transform"],w0={key:0},b0=l("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"},null,-1),k0=[b0],z0={key:1},_0=l("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"},null,-1),S0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),B0=[_0,S0],C0={key:2},x0=l("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"},null,-1),N0=[x0],I0={key:3},P0=l("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"},null,-1),D0=[P0],j0={key:4},E0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),q0=[E0],F0={key:5},O0=l("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"},null,-1),R0=[O0],W0={name:"PhUsersThree"},L0=g({...W0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,y)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",w0,k0)):t.value==="duotone"?(e(),o("g",z0,B0)):t.value==="fill"?(e(),o("g",C0,N0)):t.value==="light"?(e(),o("g",I0,D0)):t.value==="regular"?(e(),o("g",j0,q0)):t.value==="thin"?(e(),o("g",F0,R0)):V("",!0)],16,f0))}}),H1=g({__name:"Organization",setup(h){const u=z().params.organizationId,{result:s}=k(()=>B.get(u)),A=i(()=>s.value?[{label:"My organizations",path:"/organizations"},{label:s.value.name,path:`/organizations/${s.value.id}`}]:void 0),d=i(()=>{var n;return(n=s.value)==null?void 0:n.billingMetadata}),t=[{name:"Organization",items:[{name:"Projects",icon:$0,path:"projects"},{name:"Editors",icon:L0,path:"editors"},{name:"Billing",icon:e0,path:"billing"}]}];return(n,Z)=>{const v=_("RouterView");return e(),$(w,null,{navbar:H(()=>[p(f,{breadcrumb:A.value},null,8,["breadcrumb"])]),sidebar:H(()=>[p(C,{class:"sidebar",sections:t})]),content:H(()=>[p(b,null,{default:H(()=>[d.value?(e(),$(x,{key:0,"billing-metadata":d.value,"organization-id":S(u)},null,8,["billing-metadata","organization-id"])):V("",!0),p(v)]),_:1})]),_:1})}}});export{H1 as default}; -//# sourceMappingURL=Organization.868a89e8.js.map +import{N as $}from"./Navbar.8a0a89b3.js";import{B as w}from"./BaseLayout.52f1acec.js";import{C as b}from"./ContentLayout.f92ff80c.js";import{a as k}from"./asyncComputed.703c33fd.js";import{d as g,D as m,f as i,o as e,Y as o,$ as c,S as V,e8 as M,a as l,ea as z,r as _,c as y,w as H,b as p,u as S}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{O as B}from"./organization.03372a7f.js";import"./tables.318f703e.js";import{S as C,_ as x}from"./Sidebar.0a307c47.js";import"./PhChats.vue.1b5982bf.js";import"./PhSignOut.vue.6dacf893.js";import"./router.375df57e.js";import"./index.a82e0ed1.js";import"./Avatar.f6415f7c.js";import"./index.3b2f4dca.js";import"./index.3e715bc1.js";import"./BookOutlined.7c922f07.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";import"./index.289665f1.js";import"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import"./Logo.8f27935a.js";import"./index.a552d580.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[r]="9d1f2f1b-e0cd-4551-be51-a2c49feb9d24",h._sentryDebugIdIdentifier="sentry-dbid-9d1f2f1b-e0cd-4551-be51-a2c49feb9d24")}catch{}})();const N=["width","height","fill","transform"],I={key:0},P=l("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,24V88H36V68ZM36,188V112H220v76Zm172-24a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,164Zm-68,0a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24h12A12,12,0,0,1,140,164Z"},null,-1),D=[P],j={key:1},E=l("path",{d:"M232,96v96a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V96Z",opacity:"0.2"},null,-1),q=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),F=[E,q],O={key:2},R=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM136,176H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm64,0H168a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM32,88V64H224V88Z"},null,-1),W=[R],L={key:3},T=l("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM32,62H224a2,2,0,0,1,2,2V90H30V64A2,2,0,0,1,32,62ZM224,194H32a2,2,0,0,1-2-2V102H226v90A2,2,0,0,1,224,194Zm-18-26a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h32A6,6,0,0,1,206,168Zm-64,0a6,6,0,0,1-6,6H120a6,6,0,0,1,0-12h16A6,6,0,0,1,142,168Z"},null,-1),U=[T],Y={key:4},G=l("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"},null,-1),J=[G],K={key:5},Q=l("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM32,60H224a4,4,0,0,1,4,4V92H28V64A4,4,0,0,1,32,60ZM224,196H32a4,4,0,0,1-4-4V100H228v92A4,4,0,0,1,224,196Zm-20-28a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h32A4,4,0,0,1,204,168Zm-64,0a4,4,0,0,1-4,4H120a4,4,0,0,1,0-8h16A4,4,0,0,1,140,168Z"},null,-1),X=[Q],a0={name:"PhCreditCard"},e0=g({...a0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,f)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",I,D)):t.value==="duotone"?(e(),o("g",j,F)):t.value==="fill"?(e(),o("g",O,W)):t.value==="light"?(e(),o("g",L,U)):t.value==="regular"?(e(),o("g",Y,J)):t.value==="thin"?(e(),o("g",K,X)):V("",!0)],16,N))}}),t0=["width","height","fill","transform"],r0={key:0},o0=l("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"},null,-1),l0=[o0],i0={key:1},n0=l("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",opacity:"0.2"},null,-1),m0=l("path",{d:"M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z"},null,-1),h0=[n0,m0],s0={key:2},u0=l("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"},null,-1),d0=[u0],A0={key:3},v0=l("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"},null,-1),Z0=[v0],H0={key:4},p0=l("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"},null,-1),g0=[p0],V0={key:5},c0=l("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"},null,-1),M0=[c0],f0={name:"PhSquaresFour"},y0=g({...f0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,f)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",r0,l0)):t.value==="duotone"?(e(),o("g",i0,h0)):t.value==="fill"?(e(),o("g",s0,d0)):t.value==="light"?(e(),o("g",A0,Z0)):t.value==="regular"?(e(),o("g",H0,g0)):t.value==="thin"?(e(),o("g",V0,M0)):V("",!0)],16,t0))}}),$0=["width","height","fill","transform"],w0={key:0},b0=l("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"},null,-1),k0=[b0],z0={key:1},_0=l("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"},null,-1),S0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),B0=[_0,S0],C0={key:2},x0=l("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"},null,-1),N0=[x0],I0={key:3},P0=l("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"},null,-1),D0=[P0],j0={key:4},E0=l("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"},null,-1),q0=[E0],F0={key:5},O0=l("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"},null,-1),R0=[O0],W0={name:"PhUsersThree"},L0=g({...W0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(h){const r=h,u=m("weight","regular"),s=m("size","1em"),A=m("color","currentColor"),d=m("mirrored",!1),t=i(()=>{var a;return(a=r.weight)!=null?a:u}),n=i(()=>{var a;return(a=r.size)!=null?a:s}),Z=i(()=>{var a;return(a=r.color)!=null?a:A}),v=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,f)=>(e(),o("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:Z.value,transform:v.value},a.$attrs),[c(a.$slots,"default"),t.value==="bold"?(e(),o("g",w0,k0)):t.value==="duotone"?(e(),o("g",z0,B0)):t.value==="fill"?(e(),o("g",C0,N0)):t.value==="light"?(e(),o("g",I0,D0)):t.value==="regular"?(e(),o("g",j0,q0)):t.value==="thin"?(e(),o("g",F0,R0)):V("",!0)],16,$0))}}),H1=g({__name:"Organization",setup(h){const u=z().params.organizationId,{result:s}=k(()=>B.get(u)),A=i(()=>s.value?[{label:"My organizations",path:"/organizations"},{label:s.value.name,path:`/organizations/${s.value.id}`}]:void 0),d=i(()=>{var n;return(n=s.value)==null?void 0:n.billingMetadata}),t=[{name:"Organization",items:[{name:"Projects",icon:y0,path:"projects"},{name:"Editors",icon:L0,path:"editors"},{name:"Billing",icon:e0,path:"billing"}]}];return(n,Z)=>{const v=_("RouterView");return e(),y(w,null,{navbar:H(()=>[p($,{breadcrumb:A.value},null,8,["breadcrumb"])]),sidebar:H(()=>[p(C,{class:"sidebar",sections:t})]),content:H(()=>[p(b,null,{default:H(()=>[d.value?(e(),y(x,{key:0,"billing-metadata":d.value,"organization-id":S(u)},null,8,["billing-metadata","organization-id"])):V("",!0),p(v)]),_:1})]),_:1})}}});export{H1 as default}; +//# sourceMappingURL=Organization.edfbfaf3.js.map diff --git a/abstra_statics/dist/assets/Organizations.cb82148c.js b/abstra_statics/dist/assets/Organizations.7583c645.js similarity index 56% rename from abstra_statics/dist/assets/Organizations.cb82148c.js rename to abstra_statics/dist/assets/Organizations.7583c645.js index 40222ea242..aae5927207 100644 --- a/abstra_statics/dist/assets/Organizations.cb82148c.js +++ b/abstra_statics/dist/assets/Organizations.7583c645.js @@ -1,2 +1,2 @@ -import{N as O}from"./Navbar.059184c9.js";import{B as I}from"./BaseLayout.995c8c6b.js";import{C as _}from"./ContentLayout.60e2d770.js";import{C as x}from"./CrudView.ac8aad2f.js";import{a as R}from"./ant-design.ae7d2f9f.js";import{a as h}from"./asyncComputed.cfc0cdaf.js";import{F as B}from"./PhArrowSquareOut.vue.da8bb581.js";import{G as D}from"./PhPencil.vue.47d672ed.js";import{d as F,eo as M,e as L,f as $,o as y,Y as A,b as o,w as i,u as l,aS as G,c as S,cz as V,bL as j,cy as E,S as U,cL as P,ep as T}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{O as u}from"./organization.2853982f.js";import"./tables.2ec18755.js";import"./PhChats.vue.296ae643.js";import"./PhSignOut.vue.266bb925.js";import"./router.f4663fd5.js";import"./index.37c7ea66.js";import"./Avatar.8da44d42.js";import"./index.d667cd0d.js";import"./index.d33f3e49.js";import"./BookOutlined.b4191bff.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[m]="e147945d-afe3-47b1-b17f-cb31183f0e3a",r._sentryDebugIdIdentifier="sentry-dbid-e147945d-afe3-47b1-b17f-cb31183f0e3a")}catch{}})();const ze=F({__name:"Organizations",setup(r){const m=[{label:"My organizations",path:"/organizations"}],d=[{key:"name",label:"Organization Name"}],b=M(),{loading:z,result:c,refetch:p}=h(()=>u.list()),f=({key:e})=>{b.push({name:"organization",params:{organizationId:e}})},n=L({state:"idle"});function v(e){n.value={state:"renaming",organizationId:e.id,newName:e.name}}async function g(e){if(n.value.state==="renaming"&&e){const{organizationId:t,newName:a}=n.value;await u.rename(t,a),p()}n.value={state:"idle"}}const w=async e=>{const t=await u.create(e.name);f({key:t.id})},C=async({key:e})=>{var a,s;await R("Are you sure you want to delete this organization?")&&(await((s=(a=c.value)==null?void 0:a.find(N=>N.id===e))==null?void 0:s.delete()),p())},k=$(()=>{var e,t;return{columns:[{title:"Organization Name",align:"left"},{title:"Path"},{title:"",align:"right"}],rows:(t=(e=c.value)==null?void 0:e.map(a=>{var s;return{key:a.id,cells:[{type:"link",text:a.name,to:`/organizations/${encodeURIComponent(a.id)}`},{type:"text",text:(s=a.id)!=null?s:null},{type:"actions",actions:[{icon:B,label:"Go to projects",onClick:f},{icon:D,label:"Rename",onClick:()=>v(a)},{icon:T,label:"Delete",onClick:C,dangerous:!0}]}]}}))!=null?t:[]}});return(e,t)=>(y(),A(G,null,[o(I,null,{navbar:i(()=>[o(O,{breadcrumb:m})]),content:i(()=>[o(_,null,{default:i(()=>[o(x,{"entity-name":"organization",loading:l(z),title:"My organizations",description:"An organization is your company\u2019s account. Manage editors, projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:k.value,fields:d,create:w},null,8,["loading","table"])]),_:1})]),_:1}),o(l(P),{open:n.value.state==="renaming",title:"Rename organization",onCancel:t[1]||(t[1]=a=>g(!1)),onOk:t[2]||(t[2]=a=>g(!0))},{default:i(()=>[n.value.state==="renaming"?(y(),S(l(E),{key:0,layout:"vertical"},{default:i(()=>[o(l(V),{label:"New name"},{default:i(()=>[o(l(j),{value:n.value.newName,"onUpdate:value":t[0]||(t[0]=a=>n.value.newName=a)},null,8,["value"])]),_:1})]),_:1})):U("",!0)]),_:1},8,["open"])],64))}});export{ze as default}; -//# sourceMappingURL=Organizations.cb82148c.js.map +import{N as O}from"./Navbar.8a0a89b3.js";import{B as I}from"./BaseLayout.52f1acec.js";import{C as _}from"./ContentLayout.f92ff80c.js";import{C as x}from"./CrudView.423d8744.js";import{a as R}from"./ant-design.d89b18ab.js";import{a as h}from"./asyncComputed.703c33fd.js";import{F as B}from"./PhArrowSquareOut.vue.418ffcff.js";import{G as D}from"./PhPencil.vue.7418c4e5.js";import{d as F,eo as M,e as L,f as $,o as y,Y as A,b as o,w as i,u as l,aS as G,c as S,cz as V,bL as j,cy as E,S as U,cL as P,ep as T}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{O as u}from"./organization.03372a7f.js";import"./tables.318f703e.js";import"./PhChats.vue.1b5982bf.js";import"./PhSignOut.vue.6dacf893.js";import"./router.375df57e.js";import"./index.a82e0ed1.js";import"./Avatar.f6415f7c.js";import"./index.3b2f4dca.js";import"./index.3e715bc1.js";import"./BookOutlined.7c922f07.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[m]="3f40cb51-425e-4e5c-a21d-ddecc5f3ee56",r._sentryDebugIdIdentifier="sentry-dbid-3f40cb51-425e-4e5c-a21d-ddecc5f3ee56")}catch{}})();const ze=F({__name:"Organizations",setup(r){const m=[{label:"My organizations",path:"/organizations"}],c=[{key:"name",label:"Organization Name"}],b=M(),{loading:z,result:d,refetch:p}=h(()=>u.list()),f=({key:e})=>{b.push({name:"organization",params:{organizationId:e}})},n=L({state:"idle"});function v(e){n.value={state:"renaming",organizationId:e.id,newName:e.name}}async function g(e){if(n.value.state==="renaming"&&e){const{organizationId:t,newName:a}=n.value;await u.rename(t,a),p()}n.value={state:"idle"}}const w=async e=>{const t=await u.create(e.name);f({key:t.id})},C=async({key:e})=>{var a,s;await R("Are you sure you want to delete this organization?")&&(await((s=(a=d.value)==null?void 0:a.find(N=>N.id===e))==null?void 0:s.delete()),p())},k=$(()=>{var e,t;return{columns:[{title:"Organization Name",align:"left"},{title:"Path"},{title:"",align:"right"}],rows:(t=(e=d.value)==null?void 0:e.map(a=>{var s;return{key:a.id,cells:[{type:"link",text:a.name,to:`/organizations/${encodeURIComponent(a.id)}`},{type:"text",text:(s=a.id)!=null?s:null},{type:"actions",actions:[{icon:B,label:"Go to projects",onClick:f},{icon:D,label:"Rename",onClick:()=>v(a)},{icon:T,label:"Delete",onClick:C,dangerous:!0}]}]}}))!=null?t:[]}});return(e,t)=>(y(),A(G,null,[o(I,null,{navbar:i(()=>[o(O,{breadcrumb:m})]),content:i(()=>[o(_,null,{default:i(()=>[o(x,{"entity-name":"organization",loading:l(z),title:"My organizations",description:"An organization is your company\u2019s account. Manage editors, projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:k.value,fields:c,create:w},null,8,["loading","table"])]),_:1})]),_:1}),o(l(P),{open:n.value.state==="renaming",title:"Rename organization",onCancel:t[1]||(t[1]=a=>g(!1)),onOk:t[2]||(t[2]=a=>g(!0))},{default:i(()=>[n.value.state==="renaming"?(y(),S(l(E),{key:0,layout:"vertical"},{default:i(()=>[o(l(V),{label:"New name"},{default:i(()=>[o(l(j),{value:n.value.newName,"onUpdate:value":t[0]||(t[0]=a=>n.value.newName=a)},null,8,["value"])]),_:1})]),_:1})):U("",!0)]),_:1},8,["open"])],64))}});export{ze as default}; +//# sourceMappingURL=Organizations.7583c645.js.map diff --git a/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.e0916215.js b/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.70f7f135.js similarity index 65% rename from abstra_statics/dist/assets/PhArrowCounterClockwise.vue.e0916215.js rename to abstra_statics/dist/assets/PhArrowCounterClockwise.vue.70f7f135.js index 664c507221..b43eb84707 100644 --- a/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.e0916215.js +++ b/abstra_statics/dist/assets/PhArrowCounterClockwise.vue.70f7f135.js @@ -1,2 +1,2 @@ -import{d as y,D as n,f as i,o as t,Y as l,$ as m,S as w,e8 as A,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="441d6c30-c2d7-4de6-a6d3-e6af8dcc723e",o._sentryDebugIdIdentifier="sentry-dbid-441d6c30-c2d7-4de6-a6d3-e6af8dcc723e")}catch{}})();const v=["width","height","fill","transform"],H={key:0},V=r("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"},null,-1),L=[V],k={key:1},b=r("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),M=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),Z=[b,M],B={key:2},C=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"},null,-1),D=[C],S={key:3},I=r("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"},null,-1),_=[I],x={key:4},z=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),N=[z],$={key:5},E=r("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"},null,-1),P=[E],j={name:"PhArrowCounterClockwise"},W=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),c=n("size","1em"),g=n("color","currentColor"),p=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:c}),f=i(()=>{var e;return(e=a.color)!=null?e:g}),h=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(t(),l("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:f.value,transform:h.value},e.$attrs),[m(e.$slots,"default"),d.value==="bold"?(t(),l("g",H,L)):d.value==="duotone"?(t(),l("g",k,Z)):d.value==="fill"?(t(),l("g",B,D)):d.value==="light"?(t(),l("g",S,_)):d.value==="regular"?(t(),l("g",x,N)):d.value==="thin"?(t(),l("g",$,P)):w("",!0)],16,v))}});export{W as G}; -//# sourceMappingURL=PhArrowCounterClockwise.vue.e0916215.js.map +import{d as y,D as d,f as i,o as t,Y as l,$ as m,S as w,e8 as A,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="1787ef47-e6ae-4390-aab7-e2348df9c763",o._sentryDebugIdIdentifier="sentry-dbid-1787ef47-e6ae-4390-aab7-e2348df9c763")}catch{}})();const v=["width","height","fill","transform"],H={key:0},V=r("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"},null,-1),b=[V],L={key:1},k=r("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),M=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),Z=[k,M],B={key:2},C=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"},null,-1),D=[C],S={key:3},I=r("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"},null,-1),_=[I],x={key:4},z=r("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},null,-1),N=[z],$={key:5},E=r("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"},null,-1),P=[E],j={name:"PhArrowCounterClockwise"},W=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),g=d("size","1em"),p=d("color","currentColor"),c=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),f=i(()=>{var e;return(e=a.color)!=null?e:p}),h=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(e,q)=>(t(),l("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:f.value,transform:h.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),l("g",H,b)):n.value==="duotone"?(t(),l("g",L,Z)):n.value==="fill"?(t(),l("g",B,D)):n.value==="light"?(t(),l("g",S,_)):n.value==="regular"?(t(),l("g",x,N)):n.value==="thin"?(t(),l("g",$,P)):w("",!0)],16,v))}});export{W as G}; +//# sourceMappingURL=PhArrowCounterClockwise.vue.70f7f135.js.map diff --git a/abstra_statics/dist/assets/PhArrowDown.vue.bbcdf79c.js b/abstra_statics/dist/assets/PhArrowDown.vue.1c758684.js similarity index 55% rename from abstra_statics/dist/assets/PhArrowDown.vue.bbcdf79c.js rename to abstra_statics/dist/assets/PhArrowDown.vue.1c758684.js index cada055a60..d9ab3c1434 100644 --- a/abstra_statics/dist/assets/PhArrowDown.vue.bbcdf79c.js +++ b/abstra_statics/dist/assets/PhArrowDown.vue.1c758684.js @@ -1,2 +1,2 @@ -import{d as y,D as d,f as i,o as l,Y as t,$ as v,S as b,e8 as m,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="9338cb26-f6f8-492c-b5eb-d16fb3aa0fee",o._sentryDebugIdIdentifier="sentry-dbid-9338cb26-f6f8-492c-b5eb-d16fb3aa0fee")}catch{}})();const w=["width","height","fill","transform"],V={key:0},k=r("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"},null,-1),M=[k],Z={key:1},D=r("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"},null,-1),B=r("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"},null,-1),L=[D,B],S={key:2},A=r("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"},null,-1),I=[A],_={key:3},x=r("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"},null,-1),z=[x],C={key:4},H=r("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"},null,-1),N=[H],$={key:5},E=r("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"},null,-1),P=[E],j={name:"PhArrowDown"},W=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),g=d("size","1em"),f=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),c=i(()=>{var e;return(e=a.color)!=null?e:f}),h=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(l(),t("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:h.value},e.$attrs),[v(e.$slots,"default"),n.value==="bold"?(l(),t("g",V,M)):n.value==="duotone"?(l(),t("g",Z,L)):n.value==="fill"?(l(),t("g",S,I)):n.value==="light"?(l(),t("g",_,z)):n.value==="regular"?(l(),t("g",C,N)):n.value==="thin"?(l(),t("g",$,P)):b("",!0)],16,w))}});export{W as G}; -//# sourceMappingURL=PhArrowDown.vue.bbcdf79c.js.map +import{d as y,D as n,f as i,o as a,Y as t,$ as v,S as m,e8 as w,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="2d6d1fe5-700f-44b2-8b36-e6821ea2de92",o._sentryDebugIdIdentifier="sentry-dbid-2d6d1fe5-700f-44b2-8b36-e6821ea2de92")}catch{}})();const b=["width","height","fill","transform"],V={key:0},k=r("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"},null,-1),M=[k],Z={key:1},D=r("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"},null,-1),B=r("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"},null,-1),L=[D,B],S={key:2},A=r("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"},null,-1),I=[A],_={key:3},x=r("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"},null,-1),z=[x],C={key:4},H=r("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"},null,-1),N=[H],$={key:5},E=r("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"},null,-1),P=[E],j={name:"PhArrowDown"},W=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=n("weight","regular"),g=n("size","1em"),p=n("color","currentColor"),h=n("mirrored",!1),d=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:g}),f=i(()=>{var e;return(e=l.color)!=null?e:p}),c=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(e,q)=>(a(),t("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:f.value,transform:c.value},e.$attrs),[v(e.$slots,"default"),d.value==="bold"?(a(),t("g",V,M)):d.value==="duotone"?(a(),t("g",Z,L)):d.value==="fill"?(a(),t("g",S,I)):d.value==="light"?(a(),t("g",_,z)):d.value==="regular"?(a(),t("g",C,N)):d.value==="thin"?(a(),t("g",$,P)):m("",!0)],16,b))}});export{W as G}; +//# sourceMappingURL=PhArrowDown.vue.1c758684.js.map diff --git a/abstra_statics/dist/assets/PhArrowSquareOut.vue.da8bb581.js b/abstra_statics/dist/assets/PhArrowSquareOut.vue.418ffcff.js similarity index 68% rename from abstra_statics/dist/assets/PhArrowSquareOut.vue.da8bb581.js rename to abstra_statics/dist/assets/PhArrowSquareOut.vue.418ffcff.js index ff394e690a..e5df0f44be 100644 --- a/abstra_statics/dist/assets/PhArrowSquareOut.vue.da8bb581.js +++ b/abstra_statics/dist/assets/PhArrowSquareOut.vue.418ffcff.js @@ -1,2 +1,2 @@ -import{d as H,D as d,f as i,o as t,Y as l,$ as m,S as v,e8 as y,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="5821ec0d-e762-44a6-9c52-a918059528c7",o._sentryDebugIdIdentifier="sentry-dbid-5821ec0d-e762-44a6-9c52-a918059528c7")}catch{}})();const f=["width","height","fill","transform"],w={key:0},A=r("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"},null,-1),Z=[A],b={key:1},k=r("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"},null,-1),L=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),M=[k,L],S={key:2},B=r("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"},null,-1),D=[B],I={key:3},_=r("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),N=[C],$={key:5},E=r("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"},null,-1),P=[E],j={name:"PhArrowSquareOut"},F=H({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,s=d("weight","regular"),h=d("size","1em"),V=d("color","currentColor"),c=d("mirrored",!1),n=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:h}),g=i(()=>{var a;return(a=e.color)!=null?a:V}),p=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(a,q)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:g.value,transform:p.value},a.$attrs),[m(a.$slots,"default"),n.value==="bold"?(t(),l("g",w,Z)):n.value==="duotone"?(t(),l("g",b,M)):n.value==="fill"?(t(),l("g",S,D)):n.value==="light"?(t(),l("g",I,x)):n.value==="regular"?(t(),l("g",z,N)):n.value==="thin"?(t(),l("g",$,P)):v("",!0)],16,f))}});export{F}; -//# sourceMappingURL=PhArrowSquareOut.vue.da8bb581.js.map +import{d as c,D as d,f as i,o as t,Y as l,$ as m,S as v,e8 as y,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="3224b332-bb67-496b-be36-3c15a511428c",o._sentryDebugIdIdentifier="sentry-dbid-3224b332-bb67-496b-be36-3c15a511428c")}catch{}})();const b=["width","height","fill","transform"],f={key:0},w=r("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"},null,-1),A=[w],Z={key:1},k=r("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"},null,-1),L=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),M=[k,L],S={key:2},B=r("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"},null,-1),D=[B],I={key:3},_=r("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},null,-1),N=[C],$={key:5},E=r("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"},null,-1),P=[E],j={name:"PhArrowSquareOut"},F=c({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,s=d("weight","regular"),h=d("size","1em"),V=d("color","currentColor"),g=d("mirrored",!1),n=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:h}),p=i(()=>{var a;return(a=e.color)!=null?a:V}),H=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,q)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:H.value},a.$attrs),[m(a.$slots,"default"),n.value==="bold"?(t(),l("g",f,A)):n.value==="duotone"?(t(),l("g",Z,M)):n.value==="fill"?(t(),l("g",S,D)):n.value==="light"?(t(),l("g",I,x)):n.value==="regular"?(t(),l("g",z,N)):n.value==="thin"?(t(),l("g",$,P)):v("",!0)],16,b))}});export{F}; +//# sourceMappingURL=PhArrowSquareOut.vue.418ffcff.js.map diff --git a/abstra_statics/dist/assets/PhBug.vue.96a42e8e.js b/abstra_statics/dist/assets/PhBug.vue.33662d9e.js similarity index 87% rename from abstra_statics/dist/assets/PhBug.vue.96a42e8e.js rename to abstra_statics/dist/assets/PhBug.vue.33662d9e.js index ce4ae04279..f9a412f7dc 100644 --- a/abstra_statics/dist/assets/PhBug.vue.96a42e8e.js +++ b/abstra_statics/dist/assets/PhBug.vue.33662d9e.js @@ -1,2 +1,2 @@ -import{d as g,D as n,f as A,o as l,Y as t,$ as L,S as h,e8 as p,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="04bc7b75-0fd1-4b36-87ea-7c9e754b8585",o._sentryDebugIdIdentifier="sentry-dbid-04bc7b75-0fd1-4b36-87ea-7c9e754b8585")}catch{}})();const c=["width","height","fill","transform"],M={key:0},f=r("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"},null,-1),y=[f],b={key:1},w=r("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"},null,-1),V=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),k=[w,V],B={key:2},D=r("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"},null,-1),S=[D],I={key:3},_=r("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),N=[C],$={key:5},E=r("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"},null,-1),P=[E],j={name:"PhBug"},W=g({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,d=n("weight","regular"),s=n("size","1em"),Z=n("color","currentColor"),u=n("mirrored",!1),v=A(()=>{var a;return(a=e.weight)!=null?a:d}),i=A(()=>{var a;return(a=e.size)!=null?a:s}),H=A(()=>{var a;return(a=e.color)!=null?a:Z}),m=A(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:i.value,height:i.value,fill:H.value,transform:m.value},a.$attrs),[L(a.$slots,"default"),v.value==="bold"?(l(),t("g",M,y)):v.value==="duotone"?(l(),t("g",b,k)):v.value==="fill"?(l(),t("g",B,S)):v.value==="light"?(l(),t("g",I,x)):v.value==="regular"?(l(),t("g",z,N)):v.value==="thin"?(l(),t("g",$,P)):h("",!0)],16,c))}});export{W as G}; -//# sourceMappingURL=PhBug.vue.96a42e8e.js.map +import{d as g,D as n,f as A,o as l,Y as t,$ as L,S as h,e8 as f,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="a8970e5d-fc5b-4bc4-94f5-212b1942f931",o._sentryDebugIdIdentifier="sentry-dbid-a8970e5d-fc5b-4bc4-94f5-212b1942f931")}catch{}})();const p=["width","height","fill","transform"],c={key:0},M=r("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"},null,-1),y=[M],b={key:1},w=r("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"},null,-1),V=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),k=[w,V],B={key:2},D=r("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"},null,-1),S=[D],I={key:3},_=r("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),N=[C],$={key:5},E=r("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"},null,-1),P=[E],j={name:"PhBug"},W=g({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,d=n("weight","regular"),s=n("size","1em"),Z=n("color","currentColor"),u=n("mirrored",!1),v=A(()=>{var a;return(a=e.weight)!=null?a:d}),i=A(()=>{var a;return(a=e.size)!=null?a:s}),H=A(()=>{var a;return(a=e.color)!=null?a:Z}),m=A(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:i.value,height:i.value,fill:H.value,transform:m.value},a.$attrs),[L(a.$slots,"default"),v.value==="bold"?(l(),t("g",c,y)):v.value==="duotone"?(l(),t("g",b,k)):v.value==="fill"?(l(),t("g",B,S)):v.value==="light"?(l(),t("g",I,x)):v.value==="regular"?(l(),t("g",z,N)):v.value==="thin"?(l(),t("g",$,P)):h("",!0)],16,p))}});export{W as G}; +//# sourceMappingURL=PhBug.vue.33662d9e.js.map diff --git a/abstra_statics/dist/assets/PhCaretRight.vue.a26e962f.js b/abstra_statics/dist/assets/PhCaretRight.vue.5db53029.js similarity index 70% rename from abstra_statics/dist/assets/PhCaretRight.vue.a26e962f.js rename to abstra_statics/dist/assets/PhCaretRight.vue.5db53029.js index b2bb7202f6..0543ab045c 100644 --- a/abstra_statics/dist/assets/PhCaretRight.vue.a26e962f.js +++ b/abstra_statics/dist/assets/PhCaretRight.vue.5db53029.js @@ -1,2 +1,2 @@ -import{d as y,D as d,f as i,o as t,Y as a,$ as m,S as v,e8 as w,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="e913eba7-e030-43fa-8087-136fb9531878",o._sentryDebugIdIdentifier="sentry-dbid-e913eba7-e030-43fa-8087-136fb9531878")}catch{}})();const b=["width","height","fill","transform"],k={key:0},A=r("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"},null,-1),M=[A],Z={key:1},V=r("path",{d:"M176,128,96,208V48Z",opacity:"0.2"},null,-1),B=r("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"},null,-1),D=[V,B],L={key:2},S=r("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),C=[S],I={key:3},_=r("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"},null,-1),j=[P],R={name:"PhCaretRight"},W=y({...R,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=d("weight","regular"),g=d("size","1em"),p=d("color","currentColor"),f=d("mirrored",!1),n=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:g}),h=i(()=>{var e;return(e=l.color)!=null?e:p}),c=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:f?"scale(-1, 1)":void 0);return(e,q)=>(t(),a("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:h.value,transform:c.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),a("g",k,M)):n.value==="duotone"?(t(),a("g",Z,D)):n.value==="fill"?(t(),a("g",L,C)):n.value==="light"?(t(),a("g",I,x)):n.value==="regular"?(t(),a("g",z,$)):n.value==="thin"?(t(),a("g",E,j)):v("",!0)],16,b))}});export{W as G}; -//# sourceMappingURL=PhCaretRight.vue.a26e962f.js.map +import{d as f,D as d,f as i,o as t,Y as a,$ as m,S as v,e8 as w,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="9a663716-1894-4e10-9e40-c4a8216737d4",o._sentryDebugIdIdentifier="sentry-dbid-9a663716-1894-4e10-9e40-c4a8216737d4")}catch{}})();const b=["width","height","fill","transform"],k={key:0},A=r("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"},null,-1),M=[A],Z={key:1},V=r("path",{d:"M176,128,96,208V48Z",opacity:"0.2"},null,-1),B=r("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"},null,-1),D=[V,B],L={key:2},S=r("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),C=[S],I={key:3},_=r("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"},null,-1),j=[P],R={name:"PhCaretRight"},W=f({...R,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=d("weight","regular"),g=d("size","1em"),p=d("color","currentColor"),c=d("mirrored",!1),n=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:g}),h=i(()=>{var e;return(e=l.color)!=null?e:p}),y=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(e,q)=>(t(),a("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:h.value,transform:y.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),a("g",k,M)):n.value==="duotone"?(t(),a("g",Z,D)):n.value==="fill"?(t(),a("g",L,C)):n.value==="light"?(t(),a("g",I,x)):n.value==="regular"?(t(),a("g",z,$)):n.value==="thin"?(t(),a("g",E,j)):v("",!0)],16,b))}});export{W as G}; +//# sourceMappingURL=PhCaretRight.vue.5db53029.js.map diff --git a/abstra_statics/dist/assets/PhChats.vue.296ae643.js b/abstra_statics/dist/assets/PhChats.vue.1b5982bf.js similarity index 76% rename from abstra_statics/dist/assets/PhChats.vue.296ae643.js rename to abstra_statics/dist/assets/PhChats.vue.1b5982bf.js index a93cf4c540..540e68d492 100644 --- a/abstra_statics/dist/assets/PhChats.vue.296ae643.js +++ b/abstra_statics/dist/assets/PhChats.vue.1b5982bf.js @@ -1,2 +1,2 @@ -import{d as v,D as d,f as V,o as l,Y as t,$ as c,S as f,e8 as y,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="2761bab5-f495-479c-b7ad-501763d5308e",o._sentryDebugIdIdentifier="sentry-dbid-2761bab5-f495-479c-b7ad-501763d5308e")}catch{}})();const A=["width","height","fill","transform"],m={key:0},Z=r("path",{d:"M216,76H188V48a20,20,0,0,0-20-20H40A20,20,0,0,0,20,48V176a12,12,0,0,0,19.54,9.33l28.46-23V184a20,20,0,0,0,20,20h92.17l36.29,29.33A12,12,0,0,0,236,224V96A20,20,0,0,0,216,76ZM44,150.87V52H164v80H71.58A12,12,0,0,0,64,134.67Zm168,48-20-16.2a12,12,0,0,0-7.54-2.67H92V156h76a20,20,0,0,0,20-20V100h24Z"},null,-1),M=[Z],b={key:1},w=r("path",{d:"M224,96V224l-39.58-32H88a8,8,0,0,1-8-8V144h88a8,8,0,0,0,8-8V88h40A8,8,0,0,1,224,96Z",opacity:"0.2"},null,-1),L=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),k=[w,L],B={key:2},D=r("path",{d:"M232,96a16,16,0,0,0-16-16H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8Zm-42.55,89.78a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32V207.25Z"},null,-1),S=[D],C={key:3},I=r("path",{d:"M216,82H182V48a14,14,0,0,0-14-14H40A14,14,0,0,0,26,48V176a6,6,0,0,0,3.42,5.41A5.86,5.86,0,0,0,32,182a6,6,0,0,0,3.77-1.33L73.71,150H74v34a14,14,0,0,0,14,14h94.29l37.94,30.67A6,6,0,0,0,224,230a5.86,5.86,0,0,0,2.58-.59A6,6,0,0,0,230,224V96A14,14,0,0,0,216,82ZM71.58,138a6,6,0,0,0-3.77,1.33L38,163.43V48a2,2,0,0,1,2-2H168a2,2,0,0,1,2,2v88a2,2,0,0,1-2,2ZM218,211.43l-29.81-24.1a6,6,0,0,0-3.77-1.33H88a2,2,0,0,1-2-2V150h82a14,14,0,0,0,14-14V94h34a2,2,0,0,1,2,2Z"},null,-1),_=[I],x={key:4},z=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),N=[z],$={key:5},E=r("path",{d:"M216,84H180V48a12,12,0,0,0-12-12H40A12,12,0,0,0,28,48V176a4,4,0,0,0,4,4,4,4,0,0,0,2.51-.89L73,148h3v36a12,12,0,0,0,12,12h95l38.49,31.11A4,4,0,0,0,224,228a4,4,0,0,0,4-4V96A12,12,0,0,0,216,84ZM71.58,140a4,4,0,0,0-2.51.89L36,167.62V48a4,4,0,0,1,4-4H168a4,4,0,0,1,4,4v88a4,4,0,0,1-4,4ZM220,215.62l-33.07-26.73a4,4,0,0,0-2.51-.89H88a4,4,0,0,1-4-4V148h84a12,12,0,0,0,12-12V92h36a4,4,0,0,1,4,4Z"},null,-1),P=[E],j={name:"PhChats"},W=v({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,h=d("weight","regular"),i=d("size","1em"),u=d("color","currentColor"),H=d("mirrored",!1),n=V(()=>{var a;return(a=e.weight)!=null?a:h}),s=V(()=>{var a;return(a=e.size)!=null?a:i}),g=V(()=>{var a;return(a=e.color)!=null?a:u}),p=V(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:g.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),n.value==="bold"?(l(),t("g",m,M)):n.value==="duotone"?(l(),t("g",b,k)):n.value==="fill"?(l(),t("g",B,S)):n.value==="light"?(l(),t("g",C,_)):n.value==="regular"?(l(),t("g",x,N)):n.value==="thin"?(l(),t("g",$,P)):f("",!0)],16,A))}});export{W as G}; -//# sourceMappingURL=PhChats.vue.296ae643.js.map +import{d as p,D as d,f as V,o as l,Y as t,$ as v,S as c,e8 as y,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="a8dceef8-798f-45bb-a466-378d771f7815",o._sentryDebugIdIdentifier="sentry-dbid-a8dceef8-798f-45bb-a466-378d771f7815")}catch{}})();const A=["width","height","fill","transform"],m={key:0},Z=r("path",{d:"M216,76H188V48a20,20,0,0,0-20-20H40A20,20,0,0,0,20,48V176a12,12,0,0,0,19.54,9.33l28.46-23V184a20,20,0,0,0,20,20h92.17l36.29,29.33A12,12,0,0,0,236,224V96A20,20,0,0,0,216,76ZM44,150.87V52H164v80H71.58A12,12,0,0,0,64,134.67Zm168,48-20-16.2a12,12,0,0,0-7.54-2.67H92V156h76a20,20,0,0,0,20-20V100h24Z"},null,-1),M=[Z],w={key:1},b=r("path",{d:"M224,96V224l-39.58-32H88a8,8,0,0,1-8-8V144h88a8,8,0,0,0,8-8V88h40A8,8,0,0,1,224,96Z",opacity:"0.2"},null,-1),L=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),k=[b,L],B={key:2},D=r("path",{d:"M232,96a16,16,0,0,0-16-16H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8Zm-42.55,89.78a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32V207.25Z"},null,-1),S=[D],C={key:3},I=r("path",{d:"M216,82H182V48a14,14,0,0,0-14-14H40A14,14,0,0,0,26,48V176a6,6,0,0,0,3.42,5.41A5.86,5.86,0,0,0,32,182a6,6,0,0,0,3.77-1.33L73.71,150H74v34a14,14,0,0,0,14,14h94.29l37.94,30.67A6,6,0,0,0,224,230a5.86,5.86,0,0,0,2.58-.59A6,6,0,0,0,230,224V96A14,14,0,0,0,216,82ZM71.58,138a6,6,0,0,0-3.77,1.33L38,163.43V48a2,2,0,0,1,2-2H168a2,2,0,0,1,2,2v88a2,2,0,0,1-2,2ZM218,211.43l-29.81-24.1a6,6,0,0,0-3.77-1.33H88a2,2,0,0,1-2-2V150h82a14,14,0,0,0,14-14V94h34a2,2,0,0,1,2,2Z"},null,-1),_=[I],x={key:4},z=r("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"},null,-1),N=[z],$={key:5},E=r("path",{d:"M216,84H180V48a12,12,0,0,0-12-12H40A12,12,0,0,0,28,48V176a4,4,0,0,0,4,4,4,4,0,0,0,2.51-.89L73,148h3v36a12,12,0,0,0,12,12h95l38.49,31.11A4,4,0,0,0,224,228a4,4,0,0,0,4-4V96A12,12,0,0,0,216,84ZM71.58,140a4,4,0,0,0-2.51.89L36,167.62V48a4,4,0,0,1,4-4H168a4,4,0,0,1,4,4v88a4,4,0,0,1-4,4ZM220,215.62l-33.07-26.73a4,4,0,0,0-2.51-.89H88a4,4,0,0,1-4-4V148h84a12,12,0,0,0,12-12V92h36a4,4,0,0,1,4,4Z"},null,-1),P=[E],j={name:"PhChats"},W=p({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,h=d("weight","regular"),i=d("size","1em"),u=d("color","currentColor"),H=d("mirrored",!1),n=V(()=>{var a;return(a=e.weight)!=null?a:h}),s=V(()=>{var a;return(a=e.size)!=null?a:i}),g=V(()=>{var a;return(a=e.color)!=null?a:u}),f=V(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:g.value,transform:f.value},a.$attrs),[v(a.$slots,"default"),n.value==="bold"?(l(),t("g",m,M)):n.value==="duotone"?(l(),t("g",w,k)):n.value==="fill"?(l(),t("g",B,S)):n.value==="light"?(l(),t("g",C,_)):n.value==="regular"?(l(),t("g",x,N)):n.value==="thin"?(l(),t("g",$,P)):c("",!0)],16,A))}});export{W as G}; +//# sourceMappingURL=PhChats.vue.1b5982bf.js.map diff --git a/abstra_statics/dist/assets/PhCheckCircle.vue.9df5f131.js b/abstra_statics/dist/assets/PhCheckCircle.vue.e567d5b0.js similarity index 74% rename from abstra_statics/dist/assets/PhCheckCircle.vue.9df5f131.js rename to abstra_statics/dist/assets/PhCheckCircle.vue.e567d5b0.js index 3feb8c51b7..22dd34f2b4 100644 --- a/abstra_statics/dist/assets/PhCheckCircle.vue.9df5f131.js +++ b/abstra_statics/dist/assets/PhCheckCircle.vue.e567d5b0.js @@ -1,2 +1,2 @@ -import{d as h,D as n,f as i,o as l,Y as t,$ as y,S as b,e8 as Z,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="2bd0e3e6-d4b0-4e8b-8a17-0f9d3bc37ef8",o._sentryDebugIdIdentifier="sentry-dbid-2bd0e3e6-d4b0-4e8b-8a17-0f9d3bc37ef8")}catch{}})();const v=["width","height","fill","transform"],A={key:0},w=r("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),M=[w],k={key:1},L=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),C=[L,B],D={key:2},S=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),I=[S],_={key:3},x=r("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),z=[x],N={key:4},$=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),E=[$],P={key:5},V=r("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),j=[V],q={name:"PhCheckCircle"},W=h({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),g=n("size","1em"),p=n("color","currentColor"),m=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),c=i(()=>{var e;return(e=a.color)!=null?e:p}),f=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,F)=>(l(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:f.value},e.$attrs),[y(e.$slots,"default"),d.value==="bold"?(l(),t("g",A,M)):d.value==="duotone"?(l(),t("g",k,C)):d.value==="fill"?(l(),t("g",D,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",N,E)):d.value==="thin"?(l(),t("g",P,j)):b("",!0)],16,v))}});export{W as H}; -//# sourceMappingURL=PhCheckCircle.vue.9df5f131.js.map +import{d as f,D as n,f as i,o as l,Y as t,$ as y,S as Z,e8 as v,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="9f998514-b39d-4023-b40e-3c51d760a8b3",o._sentryDebugIdIdentifier="sentry-dbid-9f998514-b39d-4023-b40e-3c51d760a8b3")}catch{}})();const A=["width","height","fill","transform"],b={key:0},w=r("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),M=[w],k={key:1},L=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),C=[L,B],D={key:2},S=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),I=[S],_={key:3},x=r("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),z=[x],N={key:4},$=r("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),E=[$],P={key:5},V=r("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),j=[V],q={name:"PhCheckCircle"},W=f({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),g=n("size","1em"),p=n("color","currentColor"),m=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:g}),c=i(()=>{var e;return(e=a.color)!=null?e:p}),h=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,F)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:h.value},e.$attrs),[y(e.$slots,"default"),d.value==="bold"?(l(),t("g",b,M)):d.value==="duotone"?(l(),t("g",k,C)):d.value==="fill"?(l(),t("g",D,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",N,E)):d.value==="thin"?(l(),t("g",P,j)):Z("",!0)],16,A))}});export{W as H}; +//# sourceMappingURL=PhCheckCircle.vue.e567d5b0.js.map diff --git a/abstra_statics/dist/assets/PhCopy.vue.a05dc1a1.js b/abstra_statics/dist/assets/PhCopy.vue.dfade011.js similarity index 59% rename from abstra_statics/dist/assets/PhCopy.vue.a05dc1a1.js rename to abstra_statics/dist/assets/PhCopy.vue.dfade011.js index 2c617a3eed..f9c80afcca 100644 --- a/abstra_statics/dist/assets/PhCopy.vue.a05dc1a1.js +++ b/abstra_statics/dist/assets/PhCopy.vue.dfade011.js @@ -1,2 +1,2 @@ -import{d as p,D as H,f as V,o as t,Y as l,$ as m,S as f,e8 as y,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="4ccdda1c-61d9-4d8d-9085-cf06310191b6",o._sentryDebugIdIdentifier="sentry-dbid-4ccdda1c-61d9-4d8d-9085-cf06310191b6")}catch{}})();const v=["width","height","fill","transform"],Z={key:0},w=r("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"},null,-1),M=[w],b={key:1},k=r("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"},null,-1),A=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),B=[k,A],D={key:2},I=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),S=[I],C={key:3},_=r("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"},null,-1),j=[P],q={name:"PhCopy"},Y=p({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,n=H("weight","regular"),i=H("size","1em"),u=H("color","currentColor"),c=H("mirrored",!1),d=V(()=>{var e;return(e=a.weight)!=null?e:n}),s=V(()=>{var e;return(e=a.size)!=null?e:i}),h=V(()=>{var e;return(e=a.color)!=null?e:u}),g=V(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:h.value,transform:g.value},e.$attrs),[m(e.$slots,"default"),d.value==="bold"?(t(),l("g",Z,M)):d.value==="duotone"?(t(),l("g",b,B)):d.value==="fill"?(t(),l("g",D,S)):d.value==="light"?(t(),l("g",C,x)):d.value==="regular"?(t(),l("g",z,$)):d.value==="thin"?(t(),l("g",E,j)):f("",!0)],16,v))}});export{Y as I}; -//# sourceMappingURL=PhCopy.vue.a05dc1a1.js.map +import{d as m,D as H,f as V,o as t,Y as l,$ as c,S as y,e8 as f,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="edd34d93-9c77-4ad9-be74-a9ba69ee5db7",o._sentryDebugIdIdentifier="sentry-dbid-edd34d93-9c77-4ad9-be74-a9ba69ee5db7")}catch{}})();const v=["width","height","fill","transform"],Z={key:0},b=r("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"},null,-1),w=[b],M={key:1},k=r("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"},null,-1),A=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),B=[k,A],D={key:2},I=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),S=[I],C={key:3},_=r("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"},null,-1),j=[P],q={name:"PhCopy"},Y=m({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,n=H("weight","regular"),i=H("size","1em"),u=H("color","currentColor"),h=H("mirrored",!1),d=V(()=>{var e;return(e=a.weight)!=null?e:n}),s=V(()=>{var e;return(e=a.size)!=null?e:i}),g=V(()=>{var e;return(e=a.color)!=null?e:u}),p=V(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:g.value,transform:p.value},e.$attrs),[c(e.$slots,"default"),d.value==="bold"?(t(),l("g",Z,w)):d.value==="duotone"?(t(),l("g",M,B)):d.value==="fill"?(t(),l("g",D,S)):d.value==="light"?(t(),l("g",C,x)):d.value==="regular"?(t(),l("g",z,$)):d.value==="thin"?(t(),l("g",E,j)):y("",!0)],16,v))}});export{Y as I}; +//# sourceMappingURL=PhCopy.vue.dfade011.js.map diff --git a/abstra_statics/dist/assets/PhCopySimple.vue.cf5729b7.js b/abstra_statics/dist/assets/PhCopySimple.vue.6b8fcb49.js similarity index 60% rename from abstra_statics/dist/assets/PhCopySimple.vue.cf5729b7.js rename to abstra_statics/dist/assets/PhCopySimple.vue.6b8fcb49.js index b1319db00c..e892263604 100644 --- a/abstra_statics/dist/assets/PhCopySimple.vue.cf5729b7.js +++ b/abstra_statics/dist/assets/PhCopySimple.vue.6b8fcb49.js @@ -1,2 +1,2 @@ -import{d as c,D as n,f as i,o as t,Y as l,$ as m,S as h,e8 as y,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="c2f6ed11-bf25-46fd-8b0b-d0303e46c614",o._sentryDebugIdIdentifier="sentry-dbid-c2f6ed11-bf25-46fd-8b0b-d0303e46c614")}catch{}})();const v=["width","height","fill","transform"],Z={key:0},b=r("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"},null,-1),w=[b],A={key:1},M=r("path",{d:"M184,72V216H40V72Z",opacity:"0.2"},null,-1),k=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),S=[M,k],B={key:2},D=r("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"},null,-1),I=[D],C={key:3},_=r("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"},null,-1),j=[P],q={name:"PhCopySimple"},Y=c({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),u=n("size","1em"),V=n("color","currentColor"),p=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),H=i(()=>{var e;return(e=a.size)!=null?e:u}),g=i(()=>{var e;return(e=a.color)!=null?e:V}),f=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:g.value,transform:f.value},e.$attrs),[m(e.$slots,"default"),d.value==="bold"?(t(),l("g",Z,w)):d.value==="duotone"?(t(),l("g",A,S)):d.value==="fill"?(t(),l("g",B,I)):d.value==="light"?(t(),l("g",C,x)):d.value==="regular"?(t(),l("g",z,$)):d.value==="thin"?(t(),l("g",E,j)):h("",!0)],16,v))}});export{Y as I}; -//# sourceMappingURL=PhCopySimple.vue.cf5729b7.js.map +import{d as f,D as d,f as i,o as t,Y as l,$ as m,S as h,e8 as y,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="2f421cef-c080-4dc5-be89-3026d055bfa3",o._sentryDebugIdIdentifier="sentry-dbid-2f421cef-c080-4dc5-be89-3026d055bfa3")}catch{}})();const v=["width","height","fill","transform"],Z={key:0},w=r("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"},null,-1),b=[w],A={key:1},M=r("path",{d:"M184,72V216H40V72Z",opacity:"0.2"},null,-1),k=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),S=[M,k],B={key:2},D=r("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"},null,-1),I=[D],C={key:3},_=r("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"},null,-1),j=[P],q={name:"PhCopySimple"},Y=f({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),u=d("size","1em"),V=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),H=i(()=>{var e;return(e=a.size)!=null?e:u}),c=i(()=>{var e;return(e=a.color)!=null?e:V}),g=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:c.value,transform:g.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(t(),l("g",Z,b)):n.value==="duotone"?(t(),l("g",A,S)):n.value==="fill"?(t(),l("g",B,I)):n.value==="light"?(t(),l("g",C,x)):n.value==="regular"?(t(),l("g",z,$)):n.value==="thin"?(t(),l("g",E,j)):h("",!0)],16,v))}});export{Y as I}; +//# sourceMappingURL=PhCopySimple.vue.6b8fcb49.js.map diff --git a/abstra_statics/dist/assets/PhCube.vue.b3d93bff.js b/abstra_statics/dist/assets/PhCube.vue.63fffddc.js similarity index 67% rename from abstra_statics/dist/assets/PhCube.vue.b3d93bff.js rename to abstra_statics/dist/assets/PhCube.vue.63fffddc.js index c247ca3eb8..e25e303afd 100644 --- a/abstra_statics/dist/assets/PhCube.vue.b3d93bff.js +++ b/abstra_statics/dist/assets/PhCube.vue.63fffddc.js @@ -1,2 +1,2 @@ -import{d as m,D as d,f as i,o as l,Y as t,$ as Z,S as y,e8 as f,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="5e1a639b-aa1c-4eb5-a467-35a099ca6439",o._sentryDebugIdIdentifier="sentry-dbid-5e1a639b-aa1c-4eb5-a467-35a099ca6439")}catch{}})();const V=["width","height","fill","transform"],M={key:0},w=r("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"},null,-1),A=[w],b={key:1},L=r("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z",opacity:"0.2"},null,-1),k=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),B=[L,k],D={key:2},S=r("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"},null,-1),C=[S],I={key:3},_=r("path",{d:"M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),j=[P],q={name:"PhCube"},W=m({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),v=d("size","1em"),g=d("color","currentColor"),h=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:v}),p=i(()=>{var e;return(e=a.color)!=null?e:g}),c=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(e,F)=>(l(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:c.value},e.$attrs),[Z(e.$slots,"default"),n.value==="bold"?(l(),t("g",M,A)):n.value==="duotone"?(l(),t("g",b,B)):n.value==="fill"?(l(),t("g",D,C)):n.value==="light"?(l(),t("g",I,x)):n.value==="regular"?(l(),t("g",z,$)):n.value==="thin"?(l(),t("g",E,j)):y("",!0)],16,V))}});export{W as H}; -//# sourceMappingURL=PhCube.vue.b3d93bff.js.map +import{d as f,D as n,f as i,o as a,Y as t,$ as Z,S as c,e8 as y,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="dad4f37e-7066-4bd5-9e88-9d1db4cd218f",o._sentryDebugIdIdentifier="sentry-dbid-dad4f37e-7066-4bd5-9e88-9d1db4cd218f")}catch{}})();const V=["width","height","fill","transform"],M={key:0},w=r("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"},null,-1),A=[w],b={key:1},L=r("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z",opacity:"0.2"},null,-1),k=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),B=[L,k],D={key:2},S=r("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"},null,-1),C=[S],I={key:3},_=r("path",{d:"M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),j=[P],q={name:"PhCube"},W=f({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const l=o,s=n("weight","regular"),v=n("size","1em"),g=n("color","currentColor"),h=n("mirrored",!1),d=i(()=>{var e;return(e=l.weight)!=null?e:s}),u=i(()=>{var e;return(e=l.size)!=null?e:v}),p=i(()=>{var e;return(e=l.color)!=null?e:g}),m=i(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(e,F)=>(a(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:m.value},e.$attrs),[Z(e.$slots,"default"),d.value==="bold"?(a(),t("g",M,A)):d.value==="duotone"?(a(),t("g",b,B)):d.value==="fill"?(a(),t("g",D,C)):d.value==="light"?(a(),t("g",I,x)):d.value==="regular"?(a(),t("g",z,$)):d.value==="thin"?(a(),t("g",E,j)):c("",!0)],16,V))}});export{W as H}; +//# sourceMappingURL=PhCube.vue.63fffddc.js.map diff --git a/abstra_statics/dist/assets/PhDotsThreeVertical.vue.55fe4f43.js b/abstra_statics/dist/assets/PhDotsThreeVertical.vue.d0b16f96.js similarity index 59% rename from abstra_statics/dist/assets/PhDotsThreeVertical.vue.55fe4f43.js rename to abstra_statics/dist/assets/PhDotsThreeVertical.vue.d0b16f96.js index d861eefc24..a3c19db507 100644 --- a/abstra_statics/dist/assets/PhDotsThreeVertical.vue.55fe4f43.js +++ b/abstra_statics/dist/assets/PhDotsThreeVertical.vue.d0b16f96.js @@ -1,2 +1,2 @@ -import{d as f,D as d,f as s,o as t,Y as r,$ as A,S as y,e8 as Z,a as l}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="09e048a2-28ed-4f53-ba43-db25ebac5ce0",o._sentryDebugIdIdentifier="sentry-dbid-09e048a2-28ed-4f53-ba43-db25ebac5ce0")}catch{}})();const v=["width","height","fill","transform"],b={key:0},w=l("path",{d:"M112,60a16,16,0,1,1,16,16A16,16,0,0,1,112,60Zm16,52a16,16,0,1,0,16,16A16,16,0,0,0,128,112Zm0,68a16,16,0,1,0,16,16A16,16,0,0,0,128,180Z"},null,-1),M=[w],k={key:1},V=l("path",{d:"M176,32V224a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16V32A16,16,0,0,1,96,16h64A16,16,0,0,1,176,32Z",opacity:"0.2"},null,-1),D=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),B=[V,D],S={key:2},I=l("path",{d:"M160,16H96A16,16,0,0,0,80,32V224a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16V32A16,16,0,0,0,160,16ZM128,208a12,12,0,1,1,12-12A12,12,0,0,1,128,208Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,72Z"},null,-1),_=[I],x={key:3},z=l("path",{d:"M118,60a10,10,0,1,1,10,10A10,10,0,0,1,118,60Zm10,58a10,10,0,1,0,10,10A10,10,0,0,0,128,118Zm0,68a10,10,0,1,0,10,10A10,10,0,0,0,128,186Z"},null,-1),C=[z],N={key:4},$=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),E=[$],H={key:5},P=l("path",{d:"M120,60a8,8,0,1,1,8,8A8,8,0,0,1,120,60Zm8,60a8,8,0,1,0,8,8A8,8,0,0,0,128,120Zm0,68a8,8,0,1,0,8,8A8,8,0,0,0,128,188Z"},null,-1),j=[P],T={name:"PhDotsThreeVertical"},W=f({...T,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,i=d("weight","regular"),m=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=s(()=>{var e;return(e=a.weight)!=null?e:i}),u=s(()=>{var e;return(e=a.size)!=null?e:m}),c=s(()=>{var e;return(e=a.color)!=null?e:g}),h=s(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(t(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:c.value,transform:h.value},e.$attrs),[A(e.$slots,"default"),n.value==="bold"?(t(),r("g",b,M)):n.value==="duotone"?(t(),r("g",k,B)):n.value==="fill"?(t(),r("g",S,_)):n.value==="light"?(t(),r("g",x,C)):n.value==="regular"?(t(),r("g",N,E)):n.value==="thin"?(t(),r("g",H,j)):y("",!0)],16,v))}});export{W as G}; -//# sourceMappingURL=PhDotsThreeVertical.vue.55fe4f43.js.map +import{d as A,D as n,f as s,o as t,Y as r,$ as c,S as y,e8 as Z,a as l}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="38e2dd51-6753-498b-a5ba-1d3e46ab18f3",o._sentryDebugIdIdentifier="sentry-dbid-38e2dd51-6753-498b-a5ba-1d3e46ab18f3")}catch{}})();const v=["width","height","fill","transform"],b={key:0},w=l("path",{d:"M112,60a16,16,0,1,1,16,16A16,16,0,0,1,112,60Zm16,52a16,16,0,1,0,16,16A16,16,0,0,0,128,112Zm0,68a16,16,0,1,0,16,16A16,16,0,0,0,128,180Z"},null,-1),M=[w],k={key:1},V=l("path",{d:"M176,32V224a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16V32A16,16,0,0,1,96,16h64A16,16,0,0,1,176,32Z",opacity:"0.2"},null,-1),D=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),B=[V,D],S={key:2},I=l("path",{d:"M160,16H96A16,16,0,0,0,80,32V224a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16V32A16,16,0,0,0,160,16ZM128,208a12,12,0,1,1,12-12A12,12,0,0,1,128,208Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm0-68a12,12,0,1,1,12-12A12,12,0,0,1,128,72Z"},null,-1),_=[I],x={key:3},z=l("path",{d:"M118,60a10,10,0,1,1,10,10A10,10,0,0,1,118,60Zm10,58a10,10,0,1,0,10,10A10,10,0,0,0,128,118Zm0,68a10,10,0,1,0,10,10A10,10,0,0,0,128,186Z"},null,-1),C=[z],N={key:4},$=l("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"},null,-1),E=[$],H={key:5},P=l("path",{d:"M120,60a8,8,0,1,1,8,8A8,8,0,0,1,120,60Zm8,60a8,8,0,1,0,8,8A8,8,0,0,0,128,120Zm0,68a8,8,0,1,0,8,8A8,8,0,0,0,128,188Z"},null,-1),j=[P],T={name:"PhDotsThreeVertical"},W=A({...T,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,i=n("weight","regular"),m=n("size","1em"),g=n("color","currentColor"),p=n("mirrored",!1),d=s(()=>{var e;return(e=a.weight)!=null?e:i}),u=s(()=>{var e;return(e=a.size)!=null?e:m}),h=s(()=>{var e;return(e=a.color)!=null?e:g}),f=s(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,q)=>(t(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:h.value,transform:f.value},e.$attrs),[c(e.$slots,"default"),d.value==="bold"?(t(),r("g",b,M)):d.value==="duotone"?(t(),r("g",k,B)):d.value==="fill"?(t(),r("g",S,_)):d.value==="light"?(t(),r("g",x,C)):d.value==="regular"?(t(),r("g",N,E)):d.value==="thin"?(t(),r("g",H,j)):y("",!0)],16,v))}});export{W as G}; +//# sourceMappingURL=PhDotsThreeVertical.vue.d0b16f96.js.map diff --git a/abstra_statics/dist/assets/PhDownloadSimple.vue.53949cd1.js b/abstra_statics/dist/assets/PhDownloadSimple.vue.07a1756e.js similarity index 62% rename from abstra_statics/dist/assets/PhDownloadSimple.vue.53949cd1.js rename to abstra_statics/dist/assets/PhDownloadSimple.vue.07a1756e.js index e71e522af5..e453350534 100644 --- a/abstra_statics/dist/assets/PhDownloadSimple.vue.53949cd1.js +++ b/abstra_statics/dist/assets/PhDownloadSimple.vue.07a1756e.js @@ -1,2 +1,2 @@ -import{d as m,D as n,f as i,o as l,Y as t,$ as V,S as h,e8 as y,a as o}from"./index.8c3f27aa.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="37f30cd4-8140-4c80-ab65-2fc6f15d6ade",r._sentryDebugIdIdentifier="sentry-dbid-37f30cd4-8140-4c80-ab65-2fc6f15d6ade")}catch{}})();const w=["width","height","fill","transform"],H={key:0},Z=o("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"},null,-1),b=[Z],L={key:1},k=o("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),M=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),D=[k,M],S={key:2},B=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"},null,-1),I=[B],_={key:3},x=o("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"},null,-1),z=[x],A={key:4},C=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),N=[C],$={key:5},E=o("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"},null,-1),P=[E],j={name:"PhDownloadSimple"},W=m({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,s=n("weight","regular"),v=n("size","1em"),c=n("color","currentColor"),g=n("mirrored",!1),d=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:v}),p=i(()=>{var a;return(a=e.color)!=null?a:c}),f=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:f.value},a.$attrs),[V(a.$slots,"default"),d.value==="bold"?(l(),t("g",H,b)):d.value==="duotone"?(l(),t("g",L,D)):d.value==="fill"?(l(),t("g",S,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",A,N)):d.value==="thin"?(l(),t("g",$,P)):h("",!0)],16,w))}});export{W as G}; -//# sourceMappingURL=PhDownloadSimple.vue.53949cd1.js.map +import{d as V,D as d,f as i,o as l,Y as t,$ as h,S as c,e8 as y,a as o}from"./index.d0f12294.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="8353a808-e278-4f15-91d5-3b734d53efa2",r._sentryDebugIdIdentifier="sentry-dbid-8353a808-e278-4f15-91d5-3b734d53efa2")}catch{}})();const w=["width","height","fill","transform"],H={key:0},Z=o("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"},null,-1),b=[Z],L={key:1},k=o("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),M=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),D=[k,M],S={key:2},B=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"},null,-1),I=[B],_={key:3},x=o("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"},null,-1),z=[x],A={key:4},C=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),N=[C],$={key:5},E=o("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"},null,-1),P=[E],j={name:"PhDownloadSimple"},W=V({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,s=d("weight","regular"),v=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:v}),m=i(()=>{var a;return(a=e.color)!=null?a:g}),f=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:m.value,transform:f.value},a.$attrs),[h(a.$slots,"default"),n.value==="bold"?(l(),t("g",H,b)):n.value==="duotone"?(l(),t("g",L,D)):n.value==="fill"?(l(),t("g",S,I)):n.value==="light"?(l(),t("g",_,z)):n.value==="regular"?(l(),t("g",A,N)):n.value==="thin"?(l(),t("g",$,P)):c("",!0)],16,w))}});export{W as G}; +//# sourceMappingURL=PhDownloadSimple.vue.07a1756e.js.map diff --git a/abstra_statics/dist/assets/PhFlowArrow.vue.f79c4ef2.js b/abstra_statics/dist/assets/PhFlowArrow.vue.be952fce.js similarity index 71% rename from abstra_statics/dist/assets/PhFlowArrow.vue.f79c4ef2.js rename to abstra_statics/dist/assets/PhFlowArrow.vue.be952fce.js index f704914731..5086febc70 100644 --- a/abstra_statics/dist/assets/PhFlowArrow.vue.f79c4ef2.js +++ b/abstra_statics/dist/assets/PhFlowArrow.vue.be952fce.js @@ -1,2 +1,2 @@ -import{d as y,D as n,f as c,o as l,Y as t,$ as m,S as w,e8 as v,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="4ddebc5a-4f07-46a0-8dea-18c49c33c936",o._sentryDebugIdIdentifier="sentry-dbid-4ddebc5a-4f07-46a0-8dea-18c49c33c936")}catch{}})();const A=["width","height","fill","transform"],Z={key:0},b=r("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"},null,-1),M=[b],C={key:1},k=r("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"},null,-1),L=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),H=[k,L],B={key:2},S=r("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"},null,-1),D=[S],I={key:3},_=r("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"},null,-1),V=[P],j={name:"PhFlowArrow"},G=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),u=n("size","1em"),h=n("color","currentColor"),g=n("mirrored",!1),d=c(()=>{var e;return(e=a.weight)!=null?e:s}),i=c(()=>{var e;return(e=a.size)!=null?e:u}),p=c(()=>{var e;return(e=a.color)!=null?e:h}),f=c(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,F)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:i.value,height:i.value,fill:p.value,transform:f.value},e.$attrs),[m(e.$slots,"default"),d.value==="bold"?(l(),t("g",Z,M)):d.value==="duotone"?(l(),t("g",C,H)):d.value==="fill"?(l(),t("g",B,D)):d.value==="light"?(l(),t("g",I,x)):d.value==="regular"?(l(),t("g",z,$)):d.value==="thin"?(l(),t("g",E,V)):w("",!0)],16,A))}});export{G}; -//# sourceMappingURL=PhFlowArrow.vue.f79c4ef2.js.map +import{d as y,D as n,f as s,o as l,Y as t,$ as m,S as w,e8 as v,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="9ace95b4-c719-41eb-848e-d032a0bd27a1",o._sentryDebugIdIdentifier="sentry-dbid-9ace95b4-c719-41eb-848e-d032a0bd27a1")}catch{}})();const b=["width","height","fill","transform"],A={key:0},Z=r("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"},null,-1),M=[Z],C={key:1},k=r("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"},null,-1),L=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),H=[k,L],B={key:2},S=r("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"},null,-1),D=[S],I={key:3},_=r("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"},null,-1),$=[N],E={key:5},P=r("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"},null,-1),V=[P],j={name:"PhFlowArrow"},G=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,i=n("weight","regular"),u=n("size","1em"),h=n("color","currentColor"),g=n("mirrored",!1),d=s(()=>{var e;return(e=a.weight)!=null?e:i}),c=s(()=>{var e;return(e=a.size)!=null?e:u}),p=s(()=>{var e;return(e=a.color)!=null?e:h}),f=s(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,F)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:p.value,transform:f.value},e.$attrs),[m(e.$slots,"default"),d.value==="bold"?(l(),t("g",A,M)):d.value==="duotone"?(l(),t("g",C,H)):d.value==="fill"?(l(),t("g",B,D)):d.value==="light"?(l(),t("g",I,x)):d.value==="regular"?(l(),t("g",z,$)):d.value==="thin"?(l(),t("g",E,V)):w("",!0)],16,b))}});export{G}; +//# sourceMappingURL=PhFlowArrow.vue.be952fce.js.map diff --git a/abstra_statics/dist/assets/PhGlobe.vue.3da2da74.js b/abstra_statics/dist/assets/PhGlobe.vue.71eddd06.js similarity index 82% rename from abstra_statics/dist/assets/PhGlobe.vue.3da2da74.js rename to abstra_statics/dist/assets/PhGlobe.vue.71eddd06.js index e87e54fc88..e497879b74 100644 --- a/abstra_statics/dist/assets/PhGlobe.vue.3da2da74.js +++ b/abstra_statics/dist/assets/PhGlobe.vue.71eddd06.js @@ -1,2 +1,2 @@ -import{d as M,D as l,f as h,o as t,Y as A,$ as c,S as g,e8 as f,a as Z}from"./index.8c3f27aa.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="c7306696-1fad-4f67-bdc3-b32bc7e5f6d0",r._sentryDebugIdIdentifier="sentry-dbid-c7306696-1fad-4f67-bdc3-b32bc7e5f6d0")}catch{}})();const p=["width","height","fill","transform"],y={key:0},v=Z("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"},null,-1),b=[v],w={key:1},k=Z("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=Z("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),C=[k,B],D={key:2},I=Z("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),S=[I],_={key:3},x=Z("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"},null,-1),z=[x],N={key:4},$=Z("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),E=[$],P={key:5},V=Z("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"},null,-1),j=[V],G={name:"PhGlobe"},Y=M({...G,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,d=l("weight","regular"),n=l("size","1em"),i=l("color","currentColor"),s=l("mirrored",!1),o=h(()=>{var a;return(a=e.weight)!=null?a:d}),m=h(()=>{var a;return(a=e.size)!=null?a:n}),H=h(()=>{var a;return(a=e.color)!=null?a:i}),u=h(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),A("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:H.value,transform:u.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),A("g",y,b)):o.value==="duotone"?(t(),A("g",w,C)):o.value==="fill"?(t(),A("g",D,S)):o.value==="light"?(t(),A("g",_,z)):o.value==="regular"?(t(),A("g",N,E)):o.value==="thin"?(t(),A("g",P,j)):g("",!0)],16,p))}});export{Y as I}; -//# sourceMappingURL=PhGlobe.vue.3da2da74.js.map +import{d as M,D as l,f as h,o as t,Y as A,$ as g,S as c,e8 as p,a as Z}from"./index.d0f12294.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="a974a1a4-5e45-434b-9a15-bec44a3318e3",r._sentryDebugIdIdentifier="sentry-dbid-a974a1a4-5e45-434b-9a15-bec44a3318e3")}catch{}})();const y=["width","height","fill","transform"],f={key:0},v=Z("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"},null,-1),w=[v],b={key:1},k=Z("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=Z("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),C=[k,B],D={key:2},I=Z("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),S=[I],_={key:3},x=Z("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"},null,-1),z=[x],N={key:4},$=Z("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1),E=[$],P={key:5},V=Z("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"},null,-1),j=[V],G={name:"PhGlobe"},Y=M({...G,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,m=l("weight","regular"),d=l("size","1em"),i=l("color","currentColor"),s=l("mirrored",!1),o=h(()=>{var a;return(a=e.weight)!=null?a:m}),n=h(()=>{var a;return(a=e.size)!=null?a:d}),H=h(()=>{var a;return(a=e.color)!=null?a:i}),u=h(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),A("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:n.value,height:n.value,fill:H.value,transform:u.value},a.$attrs),[g(a.$slots,"default"),o.value==="bold"?(t(),A("g",f,w)):o.value==="duotone"?(t(),A("g",b,C)):o.value==="fill"?(t(),A("g",D,S)):o.value==="light"?(t(),A("g",_,z)):o.value==="regular"?(t(),A("g",N,E)):o.value==="thin"?(t(),A("g",P,j)):c("",!0)],16,y))}});export{Y as I}; +//# sourceMappingURL=PhGlobe.vue.71eddd06.js.map diff --git a/abstra_statics/dist/assets/PhIdentificationBadge.vue.b9f0b1dc.js b/abstra_statics/dist/assets/PhIdentificationBadge.vue.088497fd.js similarity index 83% rename from abstra_statics/dist/assets/PhIdentificationBadge.vue.b9f0b1dc.js rename to abstra_statics/dist/assets/PhIdentificationBadge.vue.088497fd.js index 7d31d889e7..dce69f659a 100644 --- a/abstra_statics/dist/assets/PhIdentificationBadge.vue.b9f0b1dc.js +++ b/abstra_statics/dist/assets/PhIdentificationBadge.vue.088497fd.js @@ -1,2 +1,2 @@ -import{d as A,D as d,f as n,o as t,Y as l,$ as p,S as m,e8 as c,a as r}from"./index.8c3f27aa.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="cd361990-5dba-40e2-975a-404b39674c5d",i._sentryDebugIdIdentifier="sentry-dbid-cd361990-5dba-40e2-975a-404b39674c5d")}catch{}})();const M=["width","height","fill","transform"],y={key:0},f=r("path",{d:"M52,52V204H80a12,12,0,0,1,0,24H40a12,12,0,0,1-12-12V40A12,12,0,0,1,40,28H80a12,12,0,0,1,0,24ZM216,28H176a12,12,0,0,0,0,24h28V204H176a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28Z"},null,-1),w=[f],$={key:1},k=r("path",{d:"M216,40V216H40V40Z",opacity:"0.2"},null,-1),b=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),B=[k,b],S={key:2},I=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM104,176a8,8,0,0,1,0,16H72a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8h32a8,8,0,0,1,0,16H80v96Zm88,8a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h24V80H152a8,8,0,0,1,0-16h32a8,8,0,0,1,8,8Z"},null,-1),z=[I],x={key:3},D=r("path",{d:"M46,46V210H80a6,6,0,0,1,0,12H40a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12ZM216,34H176a6,6,0,0,0,0,12h34V210H176a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34Z"},null,-1),C=[D],N={key:4},_=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),P=[_],E={key:5},j=r("path",{d:"M44,44V212H80a4,4,0,0,1,0,8H40a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8Zm172-8H176a4,4,0,0,0,0,8h36V212H176a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36Z"},null,-1),q=[j],W={name:"PhBracketsSquare"},h0=A({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=d("weight","regular"),u=d("size","1em"),s=d("color","currentColor"),g=d("mirrored",!1),o=n(()=>{var a;return(a=e.weight)!=null?a:h}),H=n(()=>{var a;return(a=e.size)!=null?a:u}),V=n(()=>{var a;return(a=e.color)!=null?a:s}),Z=n(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",y,w)):o.value==="duotone"?(t(),l("g",$,B)):o.value==="fill"?(t(),l("g",S,z)):o.value==="light"?(t(),l("g",x,C)):o.value==="regular"?(t(),l("g",N,P)):o.value==="thin"?(t(),l("g",E,q)):m("",!0)],16,M))}}),F=["width","height","fill","transform"],G={key:0},Y=r("path",{d:"M200,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V40A20,20,0,0,0,200,20Zm-4,192H60V44H196ZM84,68A12,12,0,0,1,96,56h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,68Zm8.8,127.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM128,116a20,20,0,1,1-20,20A20,20,0,0,1,128,116Z"},null,-1),J=[Y],K={key:1},L=r("path",{d:"M200,32H56a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32ZM128,168a32,32,0,1,1,32-32A32,32,0,0,1,128,168Z",opacity:"0.2"},null,-1),O=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),Q=[L,O],R={key:2},T=r("path",{d:"M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z"},null,-1),U=[T],X={key:3},a0=r("path",{d:"M151.11,166.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,75.2,188.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,151.11,166.13ZM128,110a26,26,0,1,1-26,26A26,26,0,0,1,128,110Zm72-84H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V40A14,14,0,0,0,200,26Zm2,190a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2ZM90,64a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,64Z"},null,-1),e0=[a0],t0={key:4},l0=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),r0=[l0],o0={key:5},i0=r("path",{d:"M146.7,166.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,76.8,189.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,146.7,166.75ZM100,136a28,28,0,1,1,28,28A28,28,0,0,1,100,136ZM200,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Zm4,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4ZM92,64a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,64Z"},null,-1),d0=[i0],n0={name:"PhIdentificationBadge"},u0=A({...n0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=d("weight","regular"),u=d("size","1em"),s=d("color","currentColor"),g=d("mirrored",!1),o=n(()=>{var a;return(a=e.weight)!=null?a:h}),H=n(()=>{var a;return(a=e.size)!=null?a:u}),V=n(()=>{var a;return(a=e.color)!=null?a:s}),Z=n(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",G,J)):o.value==="duotone"?(t(),l("g",K,Q)):o.value==="fill"?(t(),l("g",R,U)):o.value==="light"?(t(),l("g",X,e0)):o.value==="regular"?(t(),l("g",t0,r0)):o.value==="thin"?(t(),l("g",o0,d0)):m("",!0)],16,F))}});export{u0 as G,h0 as I}; -//# sourceMappingURL=PhIdentificationBadge.vue.b9f0b1dc.js.map +import{d as A,D as n,f as d,o as t,Y as l,$ as p,S as m,e8 as c,a as r}from"./index.d0f12294.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="b490d945-e8d0-4ea4-a105-5ce7712c1e97",i._sentryDebugIdIdentifier="sentry-dbid-b490d945-e8d0-4ea4-a105-5ce7712c1e97")}catch{}})();const M=["width","height","fill","transform"],y={key:0},f=r("path",{d:"M52,52V204H80a12,12,0,0,1,0,24H40a12,12,0,0,1-12-12V40A12,12,0,0,1,40,28H80a12,12,0,0,1,0,24ZM216,28H176a12,12,0,0,0,0,24h28V204H176a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28Z"},null,-1),w=[f],$={key:1},k=r("path",{d:"M216,40V216H40V40Z",opacity:"0.2"},null,-1),b=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),B=[k,b],S={key:2},I=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM104,176a8,8,0,0,1,0,16H72a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8h32a8,8,0,0,1,0,16H80v96Zm88,8a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h24V80H152a8,8,0,0,1,0-16h32a8,8,0,0,1,8,8Z"},null,-1),z=[I],x={key:3},D=r("path",{d:"M46,46V210H80a6,6,0,0,1,0,12H40a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12ZM216,34H176a6,6,0,0,0,0,12h34V210H176a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34Z"},null,-1),C=[D],N={key:4},_=r("path",{d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"},null,-1),P=[_],E={key:5},j=r("path",{d:"M44,44V212H80a4,4,0,0,1,0,8H40a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8Zm172-8H176a4,4,0,0,0,0,8h36V212H176a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36Z"},null,-1),q=[j],W={name:"PhBracketsSquare"},h0=A({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=n("weight","regular"),u=n("size","1em"),s=n("color","currentColor"),g=n("mirrored",!1),o=d(()=>{var a;return(a=e.weight)!=null?a:h}),H=d(()=>{var a;return(a=e.size)!=null?a:u}),V=d(()=>{var a;return(a=e.color)!=null?a:s}),Z=d(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",y,w)):o.value==="duotone"?(t(),l("g",$,B)):o.value==="fill"?(t(),l("g",S,z)):o.value==="light"?(t(),l("g",x,C)):o.value==="regular"?(t(),l("g",N,P)):o.value==="thin"?(t(),l("g",E,q)):m("",!0)],16,M))}}),F=["width","height","fill","transform"],G={key:0},Y=r("path",{d:"M200,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V40A20,20,0,0,0,200,20Zm-4,192H60V44H196ZM84,68A12,12,0,0,1,96,56h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,68Zm8.8,127.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM128,116a20,20,0,1,1-20,20A20,20,0,0,1,128,116Z"},null,-1),J=[Y],K={key:1},L=r("path",{d:"M200,32H56a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32ZM128,168a32,32,0,1,1,32-32A32,32,0,0,1,128,168Z",opacity:"0.2"},null,-1),O=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),Q=[L,O],R={key:2},T=r("path",{d:"M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z"},null,-1),U=[T],X={key:3},a0=r("path",{d:"M151.11,166.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,75.2,188.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,151.11,166.13ZM128,110a26,26,0,1,1-26,26A26,26,0,0,1,128,110Zm72-84H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V40A14,14,0,0,0,200,26Zm2,190a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2ZM90,64a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,64Z"},null,-1),e0=[a0],t0={key:4},l0=r("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"},null,-1),r0=[l0],o0={key:5},i0=r("path",{d:"M146.7,166.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,76.8,189.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,146.7,166.75ZM100,136a28,28,0,1,1,28,28A28,28,0,0,1,100,136ZM200,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Zm4,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4ZM92,64a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,64Z"},null,-1),n0=[i0],d0={name:"PhIdentificationBadge"},u0=A({...d0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,h=n("weight","regular"),u=n("size","1em"),s=n("color","currentColor"),g=n("mirrored",!1),o=d(()=>{var a;return(a=e.weight)!=null?a:h}),H=d(()=>{var a;return(a=e.size)!=null?a:u}),V=d(()=>{var a;return(a=e.color)!=null?a:s}),Z=d(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,v)=>(t(),l("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:V.value,transform:Z.value},a.$attrs),[p(a.$slots,"default"),o.value==="bold"?(t(),l("g",G,J)):o.value==="duotone"?(t(),l("g",K,Q)):o.value==="fill"?(t(),l("g",R,U)):o.value==="light"?(t(),l("g",X,e0)):o.value==="regular"?(t(),l("g",t0,r0)):o.value==="thin"?(t(),l("g",o0,n0)):m("",!0)],16,F))}});export{u0 as G,h0 as I}; +//# sourceMappingURL=PhIdentificationBadge.vue.088497fd.js.map diff --git a/abstra_statics/dist/assets/PhKanban.vue.444564da.js b/abstra_statics/dist/assets/PhKanban.vue.fc0591cb.js similarity index 79% rename from abstra_statics/dist/assets/PhKanban.vue.444564da.js rename to abstra_statics/dist/assets/PhKanban.vue.fc0591cb.js index 4a4c804821..8410020565 100644 --- a/abstra_statics/dist/assets/PhKanban.vue.444564da.js +++ b/abstra_statics/dist/assets/PhKanban.vue.fc0591cb.js @@ -1,2 +1,2 @@ -import{d as u,D as h,f as H,o as t,Y as r,$ as g,S as p,e8 as c,a as l}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="2a6b394e-0228-488b-a52b-73ed4ecb1f0a",o._sentryDebugIdIdentifier="sentry-dbid-2a6b394e-0228-488b-a52b-73ed4ecb1f0a")}catch{}})();const f=["width","height","fill","transform"],y={key:0},b=l("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),w=[b],M={key:1},A=l("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),k=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),B=[A,k],D={key:2},S=l("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),I=[S],_={key:3},x=l("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),z=[x],C={key:4},N=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),$=[N],E={key:5},P=l("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),j=[P],K={name:"PhKanban"},W=u({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,n=h("weight","regular"),m=h("size","1em"),i=h("color","currentColor"),s=h("mirrored",!1),V=H(()=>{var a;return(a=e.weight)!=null?a:n}),d=H(()=>{var a;return(a=e.size)!=null?a:m}),v=H(()=>{var a;return(a=e.color)!=null?a:i}),Z=H(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),r("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:v.value,transform:Z.value},a.$attrs),[g(a.$slots,"default"),V.value==="bold"?(t(),r("g",y,w)):V.value==="duotone"?(t(),r("g",M,B)):V.value==="fill"?(t(),r("g",D,I)):V.value==="light"?(t(),r("g",_,z)):V.value==="regular"?(t(),r("g",C,$)):V.value==="thin"?(t(),r("g",E,j)):p("",!0)],16,f))}});export{W as G}; -//# sourceMappingURL=PhKanban.vue.444564da.js.map +import{d as u,D as h,f as H,o as t,Y as r,$ as g,S as c,e8 as p,a as l}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="bc692b43-bbba-4c08-96a6-efa4d3614f7a",o._sentryDebugIdIdentifier="sentry-dbid-bc692b43-bbba-4c08-96a6-efa4d3614f7a")}catch{}})();const f=["width","height","fill","transform"],b={key:0},y=l("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),w=[y],M={key:1},A=l("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),k=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),B=[A,k],D={key:2},S=l("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),I=[S],_={key:3},x=l("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),z=[x],C={key:4},N=l("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),$=[N],E={key:5},P=l("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),j=[P],K={name:"PhKanban"},W=u({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,n=h("weight","regular"),m=h("size","1em"),i=h("color","currentColor"),s=h("mirrored",!1),V=H(()=>{var a;return(a=e.weight)!=null?a:n}),d=H(()=>{var a;return(a=e.size)!=null?a:m}),v=H(()=>{var a;return(a=e.color)!=null?a:i}),Z=H(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,q)=>(t(),r("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:v.value,transform:Z.value},a.$attrs),[g(a.$slots,"default"),V.value==="bold"?(t(),r("g",b,w)):V.value==="duotone"?(t(),r("g",M,B)):V.value==="fill"?(t(),r("g",D,I)):V.value==="light"?(t(),r("g",_,z)):V.value==="regular"?(t(),r("g",C,$)):V.value==="thin"?(t(),r("g",E,j)):c("",!0)],16,f))}});export{W as G}; +//# sourceMappingURL=PhKanban.vue.fc0591cb.js.map diff --git a/abstra_statics/dist/assets/PhPencil.vue.47d672ed.js b/abstra_statics/dist/assets/PhPencil.vue.7418c4e5.js similarity index 91% rename from abstra_statics/dist/assets/PhPencil.vue.47d672ed.js rename to abstra_statics/dist/assets/PhPencil.vue.7418c4e5.js index 147d7b5412..491d9b0297 100644 --- a/abstra_statics/dist/assets/PhPencil.vue.47d672ed.js +++ b/abstra_statics/dist/assets/PhPencil.vue.7418c4e5.js @@ -1,2 +1,2 @@ -import{d as h,D as d,f as i,o as l,Y as t,$ as m,S as f,e8 as M,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="cebc1407-2403-48f1-a1dd-475a05611c5f",o._sentryDebugIdIdentifier="sentry-dbid-cebc1407-2403-48f1-a1dd-475a05611c5f")}catch{}})();const y=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),H=[w],b={key:1},A=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),V=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),k=[A,V],B={key:2},D=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"},null,-1),S=[D],I={key:3},_=r("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),N=[C],P={key:5},$=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"},null,-1),E=[$],j={name:"PhPencil"},W=h({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),Z=d("size","1em"),c=d("color","currentColor"),g=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:Z}),p=i(()=>{var e;return(e=a.color)!=null?e:c}),L=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,q)=>(l(),t("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:L.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(l(),t("g",v,H)):n.value==="duotone"?(l(),t("g",b,k)):n.value==="fill"?(l(),t("g",B,S)):n.value==="light"?(l(),t("g",I,x)):n.value==="regular"?(l(),t("g",z,N)):n.value==="thin"?(l(),t("g",P,E)):f("",!0)],16,y))}});export{W as G}; -//# sourceMappingURL=PhPencil.vue.47d672ed.js.map +import{d as h,D as d,f as i,o as l,Y as t,$ as m,S as f,e8 as M,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="877fe2e5-59c4-43c5-bee7-05997fa233ac",o._sentryDebugIdIdentifier="sentry-dbid-877fe2e5-59c4-43c5-bee7-05997fa233ac")}catch{}})();const y=["width","height","fill","transform"],v={key:0},w=r("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),H=[w],b={key:1},A=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),V=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),k=[A,V],B={key:2},D=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"},null,-1),S=[D],I={key:3},_=r("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"},null,-1),N=[C],P={key:5},$=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"},null,-1),E=[$],j={name:"PhPencil"},W=h({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),Z=d("size","1em"),c=d("color","currentColor"),g=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),u=i(()=>{var e;return(e=a.size)!=null?e:Z}),p=i(()=>{var e;return(e=a.color)!=null?e:c}),L=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,q)=>(l(),t("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:L.value},e.$attrs),[m(e.$slots,"default"),n.value==="bold"?(l(),t("g",v,H)):n.value==="duotone"?(l(),t("g",b,k)):n.value==="fill"?(l(),t("g",B,S)):n.value==="light"?(l(),t("g",I,x)):n.value==="regular"?(l(),t("g",z,N)):n.value==="thin"?(l(),t("g",P,E)):f("",!0)],16,y))}});export{W as G}; +//# sourceMappingURL=PhPencil.vue.7418c4e5.js.map diff --git a/abstra_statics/dist/assets/PhQuestion.vue.5030f781.js b/abstra_statics/dist/assets/PhQuestion.vue.f82af3dd.js similarity index 73% rename from abstra_statics/dist/assets/PhQuestion.vue.5030f781.js rename to abstra_statics/dist/assets/PhQuestion.vue.f82af3dd.js index a0c0e96cae..a49a29fb6d 100644 --- a/abstra_statics/dist/assets/PhQuestion.vue.5030f781.js +++ b/abstra_statics/dist/assets/PhQuestion.vue.f82af3dd.js @@ -1,2 +1,2 @@ -import{d as Z,D as d,f as n,o as t,Y as r,$ as f,S as h,e8 as y,a as o}from"./index.8c3f27aa.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[a]="b4c1a6ab-8d9d-4e1a-9750-790565f16db7",l._sentryDebugIdIdentifier="sentry-dbid-b4c1a6ab-8d9d-4e1a-9750-790565f16db7")}catch{}})();const A=["width","height","fill","transform"],b={key:0},w=o("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"},null,-1),M=[w],k={key:1},C=o("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),D=[C,B],S={key:2},I=o("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"},null,-1),_=[I],x={key:3},z=o("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),N=[z],V={key:4},$=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),E=[$],P={key:5},j=o("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),Q=[j],q={name:"PhQuestion"},W=Z({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const a=l,i=d("weight","regular"),c=d("size","1em"),u=d("color","currentColor"),m=d("mirrored",!1),s=n(()=>{var e;return(e=a.weight)!=null?e:i}),v=n(()=>{var e;return(e=a.size)!=null?e:c}),g=n(()=>{var e;return(e=a.color)!=null?e:u}),p=n(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,F)=>(t(),r("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:g.value,transform:p.value},e.$attrs),[f(e.$slots,"default"),s.value==="bold"?(t(),r("g",b,M)):s.value==="duotone"?(t(),r("g",k,D)):s.value==="fill"?(t(),r("g",S,_)):s.value==="light"?(t(),r("g",x,N)):s.value==="regular"?(t(),r("g",V,E)):s.value==="thin"?(t(),r("g",P,Q)):h("",!0)],16,A))}});export{W as H}; -//# sourceMappingURL=PhQuestion.vue.5030f781.js.map +import{d as p,D as n,f as d,o as t,Y as r,$ as Z,S as h,e8 as y,a as o}from"./index.d0f12294.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[a]="e4678a5f-cd55-4930-a0b1-a92f173c8f1c",l._sentryDebugIdIdentifier="sentry-dbid-e4678a5f-cd55-4930-a0b1-a92f173c8f1c")}catch{}})();const A=["width","height","fill","transform"],w={key:0},M=o("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"},null,-1),b=[M],k={key:1},C=o("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),B=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),D=[C,B],S={key:2},I=o("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"},null,-1),_=[I],x={key:3},z=o("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),N=[z],V={key:4},$=o("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),E=[$],P={key:5},j=o("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),Q=[j],q={name:"PhQuestion"},W=p({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const a=l,c=n("weight","regular"),v=n("size","1em"),u=n("color","currentColor"),m=n("mirrored",!1),s=d(()=>{var e;return(e=a.weight)!=null?e:c}),i=d(()=>{var e;return(e=a.size)!=null?e:v}),g=d(()=>{var e;return(e=a.color)!=null?e:u}),f=d(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,F)=>(t(),r("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:i.value,height:i.value,fill:g.value,transform:f.value},e.$attrs),[Z(e.$slots,"default"),s.value==="bold"?(t(),r("g",w,b)):s.value==="duotone"?(t(),r("g",k,D)):s.value==="fill"?(t(),r("g",S,_)):s.value==="light"?(t(),r("g",x,N)):s.value==="regular"?(t(),r("g",V,E)):s.value==="thin"?(t(),r("g",P,Q)):h("",!0)],16,A))}});export{W as H}; +//# sourceMappingURL=PhQuestion.vue.f82af3dd.js.map diff --git a/abstra_statics/dist/assets/PhSignOut.vue.266bb925.js b/abstra_statics/dist/assets/PhSignOut.vue.6dacf893.js similarity index 64% rename from abstra_statics/dist/assets/PhSignOut.vue.266bb925.js rename to abstra_statics/dist/assets/PhSignOut.vue.6dacf893.js index 3366f45a03..1f40e31b3f 100644 --- a/abstra_statics/dist/assets/PhSignOut.vue.266bb925.js +++ b/abstra_statics/dist/assets/PhSignOut.vue.6dacf893.js @@ -1,2 +1,2 @@ -import{d as y,D as d,f as i,o as l,Y as t,$ as H,S as f,e8 as v,a as r}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="876b820a-27d8-41b9-a479-2a84a7e14a4d",o._sentryDebugIdIdentifier="sentry-dbid-876b820a-27d8-41b9-a479-2a84a7e14a4d")}catch{}})();const w=["width","height","fill","transform"],A={key:0},V=r("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"},null,-1),b=[V],Z={key:1},k=r("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"},null,-1),M=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),S=[k,M],B={key:2},L=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),D=[L],I={key:3},_=r("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),N=[C],$={key:5},E=r("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"},null,-1),P=[E],j={name:"PhSignOut"},F=y({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const e=o,s=d("weight","regular"),u=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var a;return(a=e.weight)!=null?a:s}),h=i(()=>{var a;return(a=e.size)!=null?a:u}),m=i(()=>{var a;return(a=e.color)!=null?a:g}),c=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,O)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:c.value},a.$attrs),[H(a.$slots,"default"),n.value==="bold"?(l(),t("g",A,b)):n.value==="duotone"?(l(),t("g",Z,S)):n.value==="fill"?(l(),t("g",B,D)):n.value==="light"?(l(),t("g",I,x)):n.value==="regular"?(l(),t("g",z,N)):n.value==="thin"?(l(),t("g",$,P)):f("",!0)],16,w))}});export{F}; -//# sourceMappingURL=PhSignOut.vue.266bb925.js.map +import{d as f,D as d,f as i,o as l,Y as t,$ as y,S as H,e8 as v,a as r}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="1699cf13-95e0-4391-9b38-bbc2d50a6341",o._sentryDebugIdIdentifier="sentry-dbid-1699cf13-95e0-4391-9b38-bbc2d50a6341")}catch{}})();const b=["width","height","fill","transform"],w={key:0},A=r("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"},null,-1),V=[A],Z={key:1},k=r("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"},null,-1),M=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),S=[k,M],B={key:2},L=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),D=[L],I={key:3},_=r("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"},null,-1),x=[_],z={key:4},C=r("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"},null,-1),N=[C],$={key:5},E=r("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"},null,-1),P=[E],j={name:"PhSignOut"},F=f({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=d("weight","regular"),u=d("size","1em"),g=d("color","currentColor"),p=d("mirrored",!1),n=i(()=>{var e;return(e=a.weight)!=null?e:s}),h=i(()=>{var e;return(e=a.size)!=null?e:u}),c=i(()=>{var e;return(e=a.color)!=null?e:g}),m=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,O)=>(l(),t("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:c.value,transform:m.value},e.$attrs),[y(e.$slots,"default"),n.value==="bold"?(l(),t("g",w,V)):n.value==="duotone"?(l(),t("g",Z,S)):n.value==="fill"?(l(),t("g",B,D)):n.value==="light"?(l(),t("g",I,x)):n.value==="regular"?(l(),t("g",z,N)):n.value==="thin"?(l(),t("g",$,P)):H("",!0)],16,b))}});export{F}; +//# sourceMappingURL=PhSignOut.vue.6dacf893.js.map diff --git a/abstra_statics/dist/assets/PhWebhooksLogo.vue.e865dba6.js b/abstra_statics/dist/assets/PhWebhooksLogo.vue.15a28437.js similarity index 87% rename from abstra_statics/dist/assets/PhWebhooksLogo.vue.e865dba6.js rename to abstra_statics/dist/assets/PhWebhooksLogo.vue.15a28437.js index 3ce8337caa..382c1a4e80 100644 --- a/abstra_statics/dist/assets/PhWebhooksLogo.vue.e865dba6.js +++ b/abstra_statics/dist/assets/PhWebhooksLogo.vue.15a28437.js @@ -1,2 +1,2 @@ -import{d as c,D as o,f as i,o as e,Y as l,$ as p,S as H,e8 as $,a as t}from"./index.8c3f27aa.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[h]="0bf10648-7236-450b-a6c1-6510f20491d7",u._sentryDebugIdIdentifier="sentry-dbid-0bf10648-7236-450b-a6c1-6510f20491d7")}catch{}})();const M=["width","height","fill","transform"],y={key:0},w=t("path",{d:"M92,92a12,12,0,0,1,12-12h60a12,12,0,0,1,0,24H104A12,12,0,0,1,92,92Zm12,52h60a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24Zm132,48a36,36,0,0,1-36,36H88a36,36,0,0,1-36-36V64a12,12,0,0,0-24,0c0,3.73,3.35,6.51,3.38,6.54l-.18-.14h0A12,12,0,1,1,16.81,89.59h0C15.49,88.62,4,79.55,4,64A36,36,0,0,1,40,28H176a36,36,0,0,1,36,36V164h4a12,12,0,0,1,7.2,2.4C224.51,167.38,236,176.45,236,192ZM92.62,172.2A12,12,0,0,1,104,164h84V64a12,12,0,0,0-12-12H73.94A35.88,35.88,0,0,1,76,64V192a12,12,0,0,0,24,0c0-3.58-3.17-6.38-3.2-6.4A12,12,0,0,1,92.62,172.2ZM212,192a7.69,7.69,0,0,0-1.24-4h-87a30.32,30.32,0,0,1,.26,4,35.84,35.84,0,0,1-2.06,12H200A12,12,0,0,0,212,192Z"},null,-1),f=[w],k={key:1},C=t("path",{d:"M200,176H104s8,6,8,16a24,24,0,0,1-48,0V64A24,24,0,0,0,40,40H176a24,24,0,0,1,24,24Z",opacity:"0.2"},null,-1),V=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),b=[C,V],S={key:2},z=t("path",{d:"M220.8,169.6A8,8,0,0,0,216,168h-8V64a32,32,0,0,0-32-32H40A32,32,0,0,0,8,64C8,77.61,18.05,85.54,19.2,86.4h0A7.89,7.89,0,0,0,24,88a8,8,0,0,0,4.87-14.33h0C28.83,73.62,24,69.74,24,64a16,16,0,0,1,32,0V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32C232,178.39,222,170.46,220.8,169.6ZM104,96h64a8,8,0,0,1,0,16H104a8,8,0,0,1,0-16Zm-8,40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Zm104,72H107.71A31.82,31.82,0,0,0,112,192a26.92,26.92,0,0,0-1.21-8h102a12.58,12.58,0,0,1,3.23,8A16,16,0,0,1,200,208Z"},null,-1),L=[z],B={key:3},x=t("path",{d:"M98,136a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Zm6-26h64a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12Zm126,82a30,30,0,0,1-30,30H88a30,30,0,0,1-30-30V64a18,18,0,0,0-36,0c0,6.76,5.58,11.19,5.64,11.23A6,6,0,1,1,20.4,84.8C20,84.48,10,76.85,10,64A30,30,0,0,1,40,34H176a30,30,0,0,1,30,30V170h10a6,6,0,0,1,3.6,1.2C220,171.52,230,179.15,230,192Zm-124,0c0-6.76-5.59-11.19-5.64-11.23A6,6,0,0,1,104,170h90V64a18,18,0,0,0-18-18H64a29.82,29.82,0,0,1,6,18V192a18,18,0,0,0,36,0Zm112,0a14.94,14.94,0,0,0-4.34-10H115.88A24.83,24.83,0,0,1,118,192a29.87,29.87,0,0,1-6,18h88A18,18,0,0,0,218,192Z"},null,-1),N=[x],P={key:4},D=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),_=[D],E={key:5},I=t("path",{d:"M100,104a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H104A4,4,0,0,1,100,104Zm4,36h64a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8Zm124,52a28,28,0,0,1-28,28H88a28,28,0,0,1-28-28V64a20,20,0,0,0-40,0c0,7.78,6.34,12.75,6.4,12.8a4,4,0,1,1-4.8,6.4C21.21,82.91,12,75.86,12,64A28,28,0,0,1,40,36H176a28,28,0,0,1,28,28V172h12a4,4,0,0,1,2.4.8C218.79,173.09,228,180.14,228,192Zm-120,0c0-7.78-6.34-12.75-6.4-12.8A4,4,0,0,1,104,172h92V64a20,20,0,0,0-20-20H59.57A27.9,27.9,0,0,1,68,64V192a20,20,0,0,0,40,0Zm112,0c0-6-3.74-10.3-5.5-12H112.61A23.31,23.31,0,0,1,116,192a27.94,27.94,0,0,1-8.42,20H200A20,20,0,0,0,220,192Z"},null,-1),j=[I],W={name:"PhScroll"},R0=c({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",y,f)):r.value==="duotone"?(e(),l("g",k,b)):r.value==="fill"?(e(),l("g",S,L)):r.value==="light"?(e(),l("g",B,N)):r.value==="regular"?(e(),l("g",P,_)):r.value==="thin"?(e(),l("g",E,j)):H("",!0)],16,M))}}),q=["width","height","fill","transform"],F={key:0},G=t("path",{d:"M128,44a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,44Zm0,168a72,72,0,1,1,72-72A72.08,72.08,0,0,1,128,212ZM164.49,99.51a12,12,0,0,1,0,17l-28,28a12,12,0,0,1-17-17l28-28A12,12,0,0,1,164.49,99.51ZM92,16A12,12,0,0,1,104,4h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,16Z"},null,-1),T=[G],U={key:1},Y=t("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"},null,-1),J=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),K=[Y,J],O={key:2},Q=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm45.66,61.66-40,40a8,8,0,0,1-11.32-11.32l40-40a8,8,0,0,1,11.32,11.32ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),R=[Q],X={key:3},a0=t("path",{d:"M128,42a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,42Zm0,176a82,82,0,1,1,82-82A82.1,82.1,0,0,1,128,218ZM172.24,91.76a6,6,0,0,1,0,8.48l-40,40a6,6,0,1,1-8.48-8.48l40-40A6,6,0,0,1,172.24,91.76ZM98,16a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,16Z"},null,-1),e0=[a0],l0={key:4},t0=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),r0=[t0],h0={key:5},o0=t("path",{d:"M128,44a92,92,0,1,0,92,92A92.1,92.1,0,0,0,128,44Zm0,176a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,220ZM170.83,93.17a4,4,0,0,1,0,5.66l-40,40a4,4,0,1,1-5.66-5.66l40-40A4,4,0,0,1,170.83,93.17ZM100,16a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,16Z"},null,-1),i0=[o0],u0={name:"PhTimer"},X0=c({...u0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",F,T)):r.value==="duotone"?(e(),l("g",U,K)):r.value==="fill"?(e(),l("g",O,R)):r.value==="light"?(e(),l("g",X,e0)):r.value==="regular"?(e(),l("g",l0,r0)):r.value==="thin"?(e(),l("g",h0,i0)):H("",!0)],16,q))}}),A0=["width","height","fill","transform"],n0={key:0},Z0=t("path",{d:"M152,80a12,12,0,0,1,12-12h80a12,12,0,0,1,0,24H164A12,12,0,0,1,152,80Zm92,36H164a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm0,48H188a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm-88.38,25a12,12,0,1,1-23.24,6c-5.72-22.23-28.24-39-52.38-39s-46.66,16.76-52.38,39a12,12,0,1,1-23.24-6c5.38-20.9,20.09-38.16,39.11-48a52,52,0,1,1,73,0C135.53,150.85,150.24,168.11,155.62,189ZM80,132a28,28,0,1,0-28-28A28,28,0,0,0,80,132Z"},null,-1),s0=[Z0],d0={key:1},m0=t("path",{d:"M120,104A40,40,0,1,1,80,64,40,40,0,0,1,120,104Z",opacity:"0.2"},null,-1),g0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),c0=[m0,g0],p0={key:2},H0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16ZM109.29,142a48,48,0,1,0-58.58,0c-20.62,8.73-36.87,26.3-42.46,48A8,8,0,0,0,16,200H144a8,8,0,0,0,7.75-10C146.16,168.29,129.91,150.72,109.29,142Z"},null,-1),$0=[H0],v0={key:3},M0=t("path",{d:"M154,80a6,6,0,0,1,6-6h88a6,6,0,0,1,0,12H160A6,6,0,0,1,154,80Zm94,42H160a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm0,48H184a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm-98.19,20.5a6,6,0,1,1-11.62,3C131.7,168.29,107.23,150,80,150s-51.7,18.29-58.19,43.49a6,6,0,1,1-11.62-3c5.74-22.28,23-40.07,44.67-48a46,46,0,1,1,50.28,0C126.79,150.43,144.08,168.22,149.81,190.5ZM80,138a34,34,0,1,0-34-34A34,34,0,0,0,80,138Z"},null,-1),y0=[M0],w0={key:4},f0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),k0=[f0],C0={key:5},V0=t("path",{d:"M156,80a4,4,0,0,1,4-4h88a4,4,0,0,1,0,8H160A4,4,0,0,1,156,80Zm92,44H160a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm0,48H184a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8ZM147.87,191a4,4,0,0,1-2.87,4.87,3.87,3.87,0,0,1-1,.13,4,4,0,0,1-3.87-3c-6.71-26.08-32-45-60.13-45s-53.41,18.92-60.13,45a4,4,0,1,1-7.74-2c5.92-23,24.57-41.14,47.52-48a44,44,0,1,1,40.7,0C123.3,149.86,142,168,147.87,191ZM80,140a36,36,0,1,0-36-36A36,36,0,0,0,80,140Z"},null,-1),b0=[V0],S0={name:"PhUserList"},a1=c({...S0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",n0,s0)):r.value==="duotone"?(e(),l("g",d0,c0)):r.value==="fill"?(e(),l("g",p0,$0)):r.value==="light"?(e(),l("g",v0,y0)):r.value==="regular"?(e(),l("g",w0,k0)):r.value==="thin"?(e(),l("g",C0,b0)):H("",!0)],16,A0))}}),z0=["width","height","fill","transform"],L0={key:0},B0=t("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"},null,-1),x0=[B0],N0={key:1},P0=t("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"},null,-1),D0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),_0=[P0,D0],E0={key:2},I0=t("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"},null,-1),j0=[I0],W0={key:3},q0=t("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"},null,-1),F0=[q0],G0={key:4},T0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),U0=[T0],Y0={key:5},J0=t("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"},null,-1),K0=[J0],O0={name:"PhWebhooksLogo"},e1=c({...O0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),Z=o("size","1em"),s=o("color","currentColor"),d=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:Z}),m=i(()=>{var a;return(a=h.color)!=null?a:s}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",L0,x0)):r.value==="duotone"?(e(),l("g",N0,_0)):r.value==="fill"?(e(),l("g",E0,j0)):r.value==="light"?(e(),l("g",W0,F0)):r.value==="regular"?(e(),l("g",G0,U0)):r.value==="thin"?(e(),l("g",Y0,K0)):H("",!0)],16,z0))}});export{a1 as F,e1 as G,R0 as I,X0 as a}; -//# sourceMappingURL=PhWebhooksLogo.vue.e865dba6.js.map +import{d as c,D as o,f as i,o as e,Y as l,$ as p,S as H,e8 as $,a as t}from"./index.d0f12294.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},h=new Error().stack;h&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[h]="1fd47920-8d87-4caf-8b7f-6beef87ec3ad",u._sentryDebugIdIdentifier="sentry-dbid-1fd47920-8d87-4caf-8b7f-6beef87ec3ad")}catch{}})();const M=["width","height","fill","transform"],y={key:0},f=t("path",{d:"M92,92a12,12,0,0,1,12-12h60a12,12,0,0,1,0,24H104A12,12,0,0,1,92,92Zm12,52h60a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24Zm132,48a36,36,0,0,1-36,36H88a36,36,0,0,1-36-36V64a12,12,0,0,0-24,0c0,3.73,3.35,6.51,3.38,6.54l-.18-.14h0A12,12,0,1,1,16.81,89.59h0C15.49,88.62,4,79.55,4,64A36,36,0,0,1,40,28H176a36,36,0,0,1,36,36V164h4a12,12,0,0,1,7.2,2.4C224.51,167.38,236,176.45,236,192ZM92.62,172.2A12,12,0,0,1,104,164h84V64a12,12,0,0,0-12-12H73.94A35.88,35.88,0,0,1,76,64V192a12,12,0,0,0,24,0c0-3.58-3.17-6.38-3.2-6.4A12,12,0,0,1,92.62,172.2ZM212,192a7.69,7.69,0,0,0-1.24-4h-87a30.32,30.32,0,0,1,.26,4,35.84,35.84,0,0,1-2.06,12H200A12,12,0,0,0,212,192Z"},null,-1),w=[f],k={key:1},C=t("path",{d:"M200,176H104s8,6,8,16a24,24,0,0,1-48,0V64A24,24,0,0,0,40,40H176a24,24,0,0,1,24,24Z",opacity:"0.2"},null,-1),V=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),b=[C,V],S={key:2},z=t("path",{d:"M220.8,169.6A8,8,0,0,0,216,168h-8V64a32,32,0,0,0-32-32H40A32,32,0,0,0,8,64C8,77.61,18.05,85.54,19.2,86.4h0A7.89,7.89,0,0,0,24,88a8,8,0,0,0,4.87-14.33h0C28.83,73.62,24,69.74,24,64a16,16,0,0,1,32,0V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32C232,178.39,222,170.46,220.8,169.6ZM104,96h64a8,8,0,0,1,0,16H104a8,8,0,0,1,0-16Zm-8,40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Zm104,72H107.71A31.82,31.82,0,0,0,112,192a26.92,26.92,0,0,0-1.21-8h102a12.58,12.58,0,0,1,3.23,8A16,16,0,0,1,200,208Z"},null,-1),L=[z],B={key:3},x=t("path",{d:"M98,136a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Zm6-26h64a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12Zm126,82a30,30,0,0,1-30,30H88a30,30,0,0,1-30-30V64a18,18,0,0,0-36,0c0,6.76,5.58,11.19,5.64,11.23A6,6,0,1,1,20.4,84.8C20,84.48,10,76.85,10,64A30,30,0,0,1,40,34H176a30,30,0,0,1,30,30V170h10a6,6,0,0,1,3.6,1.2C220,171.52,230,179.15,230,192Zm-124,0c0-6.76-5.59-11.19-5.64-11.23A6,6,0,0,1,104,170h90V64a18,18,0,0,0-18-18H64a29.82,29.82,0,0,1,6,18V192a18,18,0,0,0,36,0Zm112,0a14.94,14.94,0,0,0-4.34-10H115.88A24.83,24.83,0,0,1,118,192a29.87,29.87,0,0,1-6,18h88A18,18,0,0,0,218,192Z"},null,-1),N=[x],P={key:4},D=t("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"},null,-1),_=[D],E={key:5},I=t("path",{d:"M100,104a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H104A4,4,0,0,1,100,104Zm4,36h64a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8Zm124,52a28,28,0,0,1-28,28H88a28,28,0,0,1-28-28V64a20,20,0,0,0-40,0c0,7.78,6.34,12.75,6.4,12.8a4,4,0,1,1-4.8,6.4C21.21,82.91,12,75.86,12,64A28,28,0,0,1,40,36H176a28,28,0,0,1,28,28V172h12a4,4,0,0,1,2.4.8C218.79,173.09,228,180.14,228,192Zm-120,0c0-7.78-6.34-12.75-6.4-12.8A4,4,0,0,1,104,172h92V64a20,20,0,0,0-20-20H59.57A27.9,27.9,0,0,1,68,64V192a20,20,0,0,0,40,0Zm112,0c0-6-3.74-10.3-5.5-12H112.61A23.31,23.31,0,0,1,116,192a27.94,27.94,0,0,1-8.42,20H200A20,20,0,0,0,220,192Z"},null,-1),j=[I],W={name:"PhScroll"},R0=c({...W,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),d=o("size","1em"),Z=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:d}),m=i(()=>{var a;return(a=h.color)!=null?a:Z}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",y,w)):r.value==="duotone"?(e(),l("g",k,b)):r.value==="fill"?(e(),l("g",S,L)):r.value==="light"?(e(),l("g",B,N)):r.value==="regular"?(e(),l("g",P,_)):r.value==="thin"?(e(),l("g",E,j)):H("",!0)],16,M))}}),q=["width","height","fill","transform"],F={key:0},G=t("path",{d:"M128,44a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,44Zm0,168a72,72,0,1,1,72-72A72.08,72.08,0,0,1,128,212ZM164.49,99.51a12,12,0,0,1,0,17l-28,28a12,12,0,0,1-17-17l28-28A12,12,0,0,1,164.49,99.51ZM92,16A12,12,0,0,1,104,4h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,16Z"},null,-1),T=[G],U={key:1},Y=t("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"},null,-1),J=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),K=[Y,J],O={key:2},Q=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm45.66,61.66-40,40a8,8,0,0,1-11.32-11.32l40-40a8,8,0,0,1,11.32,11.32ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),R=[Q],X={key:3},a0=t("path",{d:"M128,42a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,42Zm0,176a82,82,0,1,1,82-82A82.1,82.1,0,0,1,128,218ZM172.24,91.76a6,6,0,0,1,0,8.48l-40,40a6,6,0,1,1-8.48-8.48l40-40A6,6,0,0,1,172.24,91.76ZM98,16a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,16Z"},null,-1),e0=[a0],l0={key:4},t0=t("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"},null,-1),r0=[t0],h0={key:5},o0=t("path",{d:"M128,44a92,92,0,1,0,92,92A92.1,92.1,0,0,0,128,44Zm0,176a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,220ZM170.83,93.17a4,4,0,0,1,0,5.66l-40,40a4,4,0,1,1-5.66-5.66l40-40A4,4,0,0,1,170.83,93.17ZM100,16a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,16Z"},null,-1),i0=[o0],u0={name:"PhTimer"},X0=c({...u0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),d=o("size","1em"),Z=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:d}),m=i(()=>{var a;return(a=h.color)!=null?a:Z}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",F,T)):r.value==="duotone"?(e(),l("g",U,K)):r.value==="fill"?(e(),l("g",O,R)):r.value==="light"?(e(),l("g",X,e0)):r.value==="regular"?(e(),l("g",l0,r0)):r.value==="thin"?(e(),l("g",h0,i0)):H("",!0)],16,q))}}),A0=["width","height","fill","transform"],n0={key:0},d0=t("path",{d:"M152,80a12,12,0,0,1,12-12h80a12,12,0,0,1,0,24H164A12,12,0,0,1,152,80Zm92,36H164a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm0,48H188a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm-88.38,25a12,12,0,1,1-23.24,6c-5.72-22.23-28.24-39-52.38-39s-46.66,16.76-52.38,39a12,12,0,1,1-23.24-6c5.38-20.9,20.09-38.16,39.11-48a52,52,0,1,1,73,0C135.53,150.85,150.24,168.11,155.62,189ZM80,132a28,28,0,1,0-28-28A28,28,0,0,0,80,132Z"},null,-1),Z0=[d0],s0={key:1},m0=t("path",{d:"M120,104A40,40,0,1,1,80,64,40,40,0,0,1,120,104Z",opacity:"0.2"},null,-1),g0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),c0=[m0,g0],p0={key:2},H0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16ZM109.29,142a48,48,0,1,0-58.58,0c-20.62,8.73-36.87,26.3-42.46,48A8,8,0,0,0,16,200H144a8,8,0,0,0,7.75-10C146.16,168.29,129.91,150.72,109.29,142Z"},null,-1),$0=[H0],v0={key:3},M0=t("path",{d:"M154,80a6,6,0,0,1,6-6h88a6,6,0,0,1,0,12H160A6,6,0,0,1,154,80Zm94,42H160a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm0,48H184a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm-98.19,20.5a6,6,0,1,1-11.62,3C131.7,168.29,107.23,150,80,150s-51.7,18.29-58.19,43.49a6,6,0,1,1-11.62-3c5.74-22.28,23-40.07,44.67-48a46,46,0,1,1,50.28,0C126.79,150.43,144.08,168.22,149.81,190.5ZM80,138a34,34,0,1,0-34-34A34,34,0,0,0,80,138Z"},null,-1),y0=[M0],f0={key:4},w0=t("path",{d:"M152,80a8,8,0,0,1,8-8h88a8,8,0,0,1,0,16H160A8,8,0,0,1,152,80Zm96,40H160a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm0,48H184a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm-96.25,22a8,8,0,0,1-5.76,9.74,7.55,7.55,0,0,1-2,.26,8,8,0,0,1-7.75-6c-6.16-23.94-30.34-42-56.25-42s-50.09,18.05-56.25,42a8,8,0,0,1-15.5-4c5.59-21.71,21.84-39.29,42.46-48a48,48,0,1,1,58.58,0C129.91,150.71,146.16,168.29,151.75,190ZM80,136a32,32,0,1,0-32-32A32,32,0,0,0,80,136Z"},null,-1),k0=[w0],C0={key:5},V0=t("path",{d:"M156,80a4,4,0,0,1,4-4h88a4,4,0,0,1,0,8H160A4,4,0,0,1,156,80Zm92,44H160a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm0,48H184a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8ZM147.87,191a4,4,0,0,1-2.87,4.87,3.87,3.87,0,0,1-1,.13,4,4,0,0,1-3.87-3c-6.71-26.08-32-45-60.13-45s-53.41,18.92-60.13,45a4,4,0,1,1-7.74-2c5.92-23,24.57-41.14,47.52-48a44,44,0,1,1,40.7,0C123.3,149.86,142,168,147.87,191ZM80,140a36,36,0,1,0-36-36A36,36,0,0,0,80,140Z"},null,-1),b0=[V0],S0={name:"PhUserList"},a1=c({...S0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),d=o("size","1em"),Z=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:d}),m=i(()=>{var a;return(a=h.color)!=null?a:Z}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",n0,Z0)):r.value==="duotone"?(e(),l("g",s0,c0)):r.value==="fill"?(e(),l("g",p0,$0)):r.value==="light"?(e(),l("g",v0,y0)):r.value==="regular"?(e(),l("g",f0,k0)):r.value==="thin"?(e(),l("g",C0,b0)):H("",!0)],16,A0))}}),z0=["width","height","fill","transform"],L0={key:0},B0=t("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"},null,-1),x0=[B0],N0={key:1},P0=t("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"},null,-1),D0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),_0=[P0,D0],E0={key:2},I0=t("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"},null,-1),j0=[I0],W0={key:3},q0=t("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"},null,-1),F0=[q0],G0={key:4},T0=t("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1),U0=[T0],Y0={key:5},J0=t("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"},null,-1),K0=[J0],O0={name:"PhWebhooksLogo"},e1=c({...O0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const h=u,n=o("weight","regular"),d=o("size","1em"),Z=o("color","currentColor"),s=o("mirrored",!1),r=i(()=>{var a;return(a=h.weight)!=null?a:n}),A=i(()=>{var a;return(a=h.size)!=null?a:d}),m=i(()=>{var a;return(a=h.color)!=null?a:Z}),g=i(()=>h.mirrored!==void 0?h.mirrored?"scale(-1, 1)":void 0:s?"scale(-1, 1)":void 0);return(a,v)=>(e(),l("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:A.value,height:A.value,fill:m.value,transform:g.value},a.$attrs),[p(a.$slots,"default"),r.value==="bold"?(e(),l("g",L0,x0)):r.value==="duotone"?(e(),l("g",N0,_0)):r.value==="fill"?(e(),l("g",E0,j0)):r.value==="light"?(e(),l("g",W0,F0)):r.value==="regular"?(e(),l("g",G0,U0)):r.value==="thin"?(e(),l("g",Y0,K0)):H("",!0)],16,z0))}});export{a1 as F,e1 as G,R0 as I,X0 as a}; +//# sourceMappingURL=PhWebhooksLogo.vue.15a28437.js.map diff --git a/abstra_statics/dist/assets/PlayerConfigProvider.4d4af7bc.js b/abstra_statics/dist/assets/PlayerConfigProvider.e5e86f58.js similarity index 96% rename from abstra_statics/dist/assets/PlayerConfigProvider.4d4af7bc.js rename to abstra_statics/dist/assets/PlayerConfigProvider.e5e86f58.js index 2a4262289b..99ea0a7c51 100644 --- a/abstra_statics/dist/assets/PlayerConfigProvider.4d4af7bc.js +++ b/abstra_statics/dist/assets/PlayerConfigProvider.e5e86f58.js @@ -1,2 +1,2 @@ -var I=Object.defineProperty;var L=(t,e,a)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var c=(t,e,a)=>(L(t,typeof e!="symbol"?e+"":e,a),a);import{U as s,e as z,V as b,d as O,W as U,g as V,X as j,o as v,Y as f,u as p,S as H,b as R,w as B,Z as N,$ as K,A as q,a0 as J}from"./index.8c3f27aa.js";import{i as x,a as y,b as Z,l as W,c as k}from"./colorHelpers.0ac76147.js";import{t as G}from"./index.73b06b4b.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2087aae8-43d5-4482-9c9b-e2526f539f90",t._sentryDebugIdIdentifier="sentry-dbid-2087aae8-43d5-4482-9c9b-e2526f539f90")}catch{}})();const Q={items_per_page:"/ Seite",jump_to:"Gehe zu",jump_to_confirm:"best\xE4tigen",page:"",prev_page:"Vorherige Seite",next_page:"N\xE4chste Seite",prev_5:"5 Seiten zur\xFCck",next_5:"5 Seiten vor",prev_3:"3 Seiten zur\xFCck",next_3:"3 Seiten vor"},X={locale:"de_DE",today:"Heute",now:"Jetzt",backToToday:"Zur\xFCck zu Heute",ok:"OK",clear:"Zur\xFCcksetzen",month:"Monat",year:"Jahr",timeSelect:"Zeit w\xE4hlen",dateSelect:"Datum w\xE4hlen",monthSelect:"W\xE4hle einen Monat",yearSelect:"W\xE4hle ein Jahr",decadeSelect:"W\xE4hle ein Jahrzehnt",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"N\xE4chster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"N\xE4chstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"N\xE4chstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"N\xE4chstes Jahrhundert"},ee=X,ae={placeholder:"Zeit ausw\xE4hlen"},A=ae,te={lang:s({placeholder:"Datum ausw\xE4hlen",rangePlaceholder:["Startdatum","Enddatum"]},ee),timePickerLocale:s({},A)},S=te,l="${label} ist nicht g\xFCltig. ${type} erwartet",le={locale:"de",Pagination:Q,DatePicker:S,TimePicker:A,Calendar:S,global:{placeholder:"Bitte ausw\xE4hlen"},Table:{filterTitle:"Filter-Men\xFC",filterConfirm:"OK",filterReset:"Zur\xFCcksetzen",selectAll:"Selektiere Alle",selectInvert:"Selektion Invertieren",selectionAll:"W\xE4hlen Sie alle Daten aus",sortTitle:"Sortieren",expand:"Zeile erweitern",collapse:"Zeile reduzieren",triggerDesc:"Klicken zur absteigenden Sortierung",triggerAsc:"Klicken zur aufsteigenden Sortierung",cancelSort:"Klicken zum Abbrechen der Sortierung"},Modal:{okText:"OK",cancelText:"Abbrechen",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Abbrechen"},Transfer:{titles:["",""],searchPlaceholder:"Suchen",itemUnit:"Eintrag",itemsUnit:"Eintr\xE4ge",remove:"Entfernen",selectCurrent:"Alle auf aktueller Seite ausw\xE4hlen",removeCurrent:"Auswahl auf aktueller Seite aufheben",selectAll:"Alle ausw\xE4hlen",removeAll:"Auswahl aufheben",selectInvert:"Auswahl umkehren"},Upload:{uploading:"Hochladen...",removeFile:"Datei entfernen",uploadError:"Fehler beim Hochladen",previewFile:"Dateivorschau",downloadFile:"Download-Datei"},Empty:{description:"Keine Daten"},Text:{edit:"Bearbeiten",copy:"Kopieren",copied:"Kopiert",expand:"Erweitern"},PageHeader:{back:"Zur\xFCck"},Form:{defaultValidateMessages:{default:"Feld-Validierungsfehler: ${label}",required:"Bitte geben Sie ${label} an",enum:"${label} muss eines der folgenden sein [${enum}]",whitespace:"${label} darf kein Leerzeichen sein",date:{format:"${label} ist ein ung\xFCltiges Datumsformat",parse:"${label} kann nicht in ein Datum umgewandelt werden",invalid:"${label} ist ein ung\xFCltiges Datum"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} muss genau ${len} Zeichen lang sein",min:"${label} muss mindestens ${min} Zeichen lang sein",max:"${label} darf h\xF6chstens ${max} Zeichen lang sein",range:"${label} muss zwischen ${min} und ${max} Zeichen lang sein"},number:{len:"${label} muss gleich ${len} sein",min:"${label} muss mindestens ${min} sein",max:"${label} darf maximal ${max} sein",range:"${label} muss zwischen ${min} und ${max} liegen"},array:{len:"Es m\xFCssen ${len} ${label} sein",min:"Es m\xFCssen mindestens ${min} ${label} sein",max:"Es d\xFCrfen maximal ${max} ${label} sein",range:"Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"},pattern:{mismatch:"${label} enspricht nicht dem ${pattern} Muster"}}},Image:{preview:"Vorschau"}},re=le,ne={items_per_page:"/ p\xE1gina",jump_to:"Ir a",jump_to_confirm:"confirmar",page:"",prev_page:"P\xE1gina anterior",next_page:"P\xE1gina siguiente",prev_5:"5 p\xE1ginas previas",next_5:"5 p\xE1ginas siguientes",prev_3:"3 p\xE1ginas previas",next_3:"3 p\xE1ginas siguientes"},oe={locale:"es_ES",today:"Hoy",now:"Ahora",backToToday:"Volver a hoy",ok:"Aceptar",clear:"Limpiar",month:"Mes",year:"A\xF1o",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar fecha",monthSelect:"Elegir un mes",yearSelect:"Elegir un a\xF1o",decadeSelect:"Elegir una d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes siguiente (PageDown)",previousYear:"A\xF1o anterior (Control + left)",nextYear:"A\xF1o siguiente (Control + right)",previousDecade:"D\xE9cada anterior",nextDecade:"D\xE9cada siguiente",previousCentury:"Siglo anterior",nextCentury:"Siglo siguiente"},ie=oe,ce={placeholder:"Seleccionar hora"},F=ce,se={lang:s({placeholder:"Seleccionar fecha",rangePlaceholder:["Fecha inicial","Fecha final"]},ie),timePickerLocale:s({},F)},P=se,r="${label} no es un ${type} v\xE1lido",me={locale:"es",Pagination:ne,DatePicker:P,TimePicker:F,Calendar:P,global:{placeholder:"Seleccione"},Table:{filterTitle:"Filtrar men\xFA",filterConfirm:"Aceptar",filterReset:"Reiniciar",filterEmptyText:"Sin filtros",emptyText:"Sin datos",selectAll:"Seleccionar todo",selectInvert:"Invertir selecci\xF3n",selectNone:"Vac\xEDe todo",selectionAll:"Seleccionar todos los datos",sortTitle:"Ordenar",expand:"Expandir fila",collapse:"Colapsar fila",triggerDesc:"Click para ordenar en orden descendente",triggerAsc:"Click para ordenar en orden ascendente",cancelSort:"Click para cancelar ordenamiento"},Modal:{okText:"Aceptar",cancelText:"Cancelar",justOkText:"Aceptar"},Popconfirm:{okText:"Aceptar",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Buscar aqu\xED",itemUnit:"elemento",itemsUnit:"elementos",remove:"Eliminar",selectCurrent:"Seleccionar p\xE1gina actual",removeCurrent:"Remover p\xE1gina actual",selectAll:"Seleccionar todos los datos",removeAll:"Eliminar todos los datos",selectInvert:"Invertir p\xE1gina actual"},Upload:{uploading:"Subiendo...",removeFile:"Eliminar archivo",uploadError:"Error al subir el archivo",previewFile:"Vista previa",downloadFile:"Descargar archivo"},Empty:{description:"No hay datos"},Icon:{icon:"\xEDcono"},Text:{edit:"Editar",copy:"Copiar",copied:"Copiado",expand:"Expandir"},PageHeader:{back:"Volver"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Error de validaci\xF3n del campo ${label}",required:"Por favor ingresar ${label}",enum:"${label} debe ser uno de [${enum}]",whitespace:"${label} no puede ser un car\xE1cter en blanco",date:{format:"El formato de fecha de ${label} es inv\xE1lido",parse:"${label} no se puede convertir a una fecha",invalid:"${label} es una fecha inv\xE1lida"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} debe tener ${len} caracteres",min:"${label} debe tener al menos ${min} caracteres",max:"${label} debe tener hasta ${max} caracteres",range:"${label} debe tener entre ${min}-${max} caracteres"},number:{len:"${label} debe ser igual a ${len}",min:"${label} valor m\xEDnimo es ${min}",max:"${label} valor m\xE1ximo es ${max}",range:"${label} debe estar entre ${min}-${max}"},array:{len:"Debe ser ${len} ${label}",min:"Al menos ${min} ${label}",max:"A lo mucho ${max} ${label}",range:"El monto de ${label} debe estar entre ${min}-${max}"},pattern:{mismatch:"${label} no coincide con el patr\xF3n ${pattern}"}}},Image:{preview:"Previsualizaci\xF3n"}},de=me,ue={items_per_page:"/ page",jump_to:"Aller \xE0",jump_to_confirm:"confirmer",page:"",prev_page:"Page pr\xE9c\xE9dente",next_page:"Page suivante",prev_5:"5 Pages pr\xE9c\xE9dentes",next_5:"5 Pages suivantes",prev_3:"3 Pages pr\xE9c\xE9dentes",next_3:"3 Pages suivantes"},pe={locale:"fr_FR",today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"Ok",clear:"R\xE9tablir",month:"Mois",year:"Ann\xE9e",timeSelect:"S\xE9lectionner l'heure",dateSelect:"S\xE9lectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une ann\xE9e",decadeSelect:"Choisissez une d\xE9cennie",yearFormat:"YYYY",dateFormat:"DD/MM/YYYY",dayFormat:"DD",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois pr\xE9c\xE9dent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Ann\xE9e pr\xE9c\xE9dente (Ctrl + gauche)",nextYear:"Ann\xE9e prochaine (Ctrl + droite)",previousDecade:"D\xE9cennie pr\xE9c\xE9dente",nextDecade:"D\xE9cennie suivante",previousCentury:"Si\xE8cle pr\xE9c\xE9dent",nextCentury:"Si\xE8cle suivant"},ge=pe,he={placeholder:"S\xE9lectionner l'heure",rangePlaceholder:["Heure de d\xE9but","Heure de fin"]},w=he,$e={lang:s({placeholder:"S\xE9lectionner une date",yearPlaceholder:"S\xE9lectionner une ann\xE9e",quarterPlaceholder:"S\xE9lectionner un trimestre",monthPlaceholder:"S\xE9lectionner un mois",weekPlaceholder:"S\xE9lectionner une semaine",rangePlaceholder:["Date de d\xE9but","Date de fin"],rangeYearPlaceholder:["Ann\xE9e de d\xE9but","Ann\xE9e de fin"],rangeMonthPlaceholder:["Mois de d\xE9but","Mois de fin"],rangeWeekPlaceholder:["Semaine de d\xE9but","Semaine de fin"]},ge),timePickerLocale:s({},w)},T=$e,n="La valeur du champ ${label} n'est pas valide pour le type ${type}",be={locale:"fr",Pagination:ue,DatePicker:T,TimePicker:w,Calendar:T,Table:{filterTitle:"Filtrer",filterConfirm:"OK",filterReset:"R\xE9initialiser",filterEmptyText:"Aucun filtre",emptyText:"Aucune donn\xE9e",selectAll:"S\xE9lectionner la page actuelle",selectInvert:"Inverser la s\xE9lection de la page actuelle",selectNone:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectionAll:"S\xE9lectionner toutes les donn\xE9es",sortTitle:"Trier",expand:"D\xE9velopper la ligne",collapse:"R\xE9duire la ligne",triggerDesc:"Trier par ordre d\xE9croissant",triggerAsc:"Trier par ordre croissant",cancelSort:"Annuler le tri"},Modal:{okText:"OK",cancelText:"Annuler",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuler"},Transfer:{titles:["",""],searchPlaceholder:"Rechercher",itemUnit:"\xE9l\xE9ment",itemsUnit:"\xE9l\xE9ments",remove:"D\xE9s\xE9lectionner",selectCurrent:"S\xE9lectionner la page actuelle",removeCurrent:"D\xE9s\xE9lectionner la page actuelle",selectAll:"S\xE9lectionner toutes les donn\xE9es",removeAll:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectInvert:"Inverser la s\xE9lection de la page actuelle"},Upload:{uploading:"T\xE9l\xE9chargement...",removeFile:"Effacer le fichier",uploadError:"Erreur de t\xE9l\xE9chargement",previewFile:"Fichier de pr\xE9visualisation",downloadFile:"T\xE9l\xE9charger un fichier"},Empty:{description:"Aucune donn\xE9e"},Icon:{icon:"ic\xF4ne"},Text:{edit:"\xC9diter",copy:"Copier",copied:"Copie effectu\xE9e",expand:"D\xE9velopper"},PageHeader:{back:"Retour"},Form:{optional:"(optionnel)",defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit \xEAtre parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas \xEAtre vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas \xEAtre convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:n,method:n,array:n,object:n,number:n,date:n,boolean:n,integer:n,float:n,regexp:n,email:n,url:n,hex:n},string:{len:"La taille du champ ${label} doit \xEAtre de ${len} caract\xE8res",min:"La taille du champ ${label} doit \xEAtre au minimum de ${min} caract\xE8res",max:"La taille du champ ${label} doit \xEAtre au maximum de ${max} caract\xE8res",range:"La taille du champ ${label} doit \xEAtre entre ${min} et ${max} caract\xE8res"},number:{len:"La valeur du champ ${label} doit \xEAtre \xE9gale \xE0 ${len}",min:"La valeur du champ ${label} doit \xEAtre plus grande que ${min}",max:"La valeur du champ ${label} doit \xEAtre plus petit que ${max}",range:"La valeur du champ ${label} doit \xEAtre entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit \xEAtre de ${len}",min:"La taille du tableau ${label} doit \xEAtre au minimum de ${min}",max:"La taille du tableau ${label} doit \xEAtre au maximum de ${max}",range:"La taille du tableau ${label} doit \xEAtre entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au mod\xE8le ${pattern}"}}},Image:{preview:"Aper\xE7u"}},ve=be,fe={items_per_page:"/ \u092A\u0943\u0937\u094D\u0920",jump_to:"\u0907\u0938 \u092A\u0930 \u091A\u0932\u0947\u0902",jump_to_confirm:"\u092A\u0941\u0937\u094D\u091F\u093F \u0915\u0930\u0947\u0902",page:"",prev_page:"\u092A\u093F\u091B\u0932\u093E \u092A\u0943\u0937\u094D\u0920",next_page:"\u0905\u0917\u0932\u093E \u092A\u0943\u0937\u094D\u0920",prev_5:"\u092A\u093F\u091B\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",next_5:"\u0905\u0917\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",prev_3:"\u092A\u093F\u091B\u0932\u0947 3 \u092A\u0943\u0937\u094D\u0920",next_3:"\u0905\u0917\u0932\u0947 3 \u092A\u0947\u091C"},xe={locale:"hi_IN",today:"\u0906\u091C",now:"\u0905\u092D\u0940",backToToday:"\u0906\u091C \u0924\u0915",ok:"\u0920\u0940\u0915",clear:"\u0938\u094D\u092A\u0937\u094D\u091F",month:"\u092E\u0939\u0940\u0928\u093E",year:"\u0938\u093E\u0932",timeSelect:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",dateSelect:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",weekSelect:"\u090F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",monthSelect:"\u090F\u0915 \u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u0947\u0902",yearSelect:"\u090F\u0915 \u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",decadeSelect:"\u090F\u0915 \u0926\u0936\u0915 \u091A\u0941\u0928\u0947\u0902",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u092A\u093F\u091B\u0932\u093E \u092E\u0939\u0940\u0928\u093E (\u092A\u0947\u091C\u0905\u092A)",nextMonth:"\u0905\u0917\u0932\u0947 \u092E\u0939\u0940\u0928\u0947 (\u092A\u0947\u091C\u0921\u093E\u0909\u0928)",previousYear:"\u092A\u093F\u091B\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u092C\u093E\u090F\u0902)",nextYear:"\u0905\u0917\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u0926\u093E\u0939\u093F\u0928\u093E)",previousDecade:"\u092A\u093F\u091B\u0932\u093E \u0926\u0936\u0915",nextDecade:"\u0905\u0917\u0932\u0947 \u0926\u0936\u0915",previousCentury:"\u092A\u0940\u091B\u094D\u0932\u0940 \u0936\u0924\u093E\u092C\u094D\u0926\u0940",nextCentury:"\u0905\u0917\u0932\u0940 \u0938\u0926\u0940"},ye=xe,ke={placeholder:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",rangePlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092E\u092F","\u0905\u0902\u0924 \u0938\u092E\u092F"]},M=ke,Se={lang:s({placeholder:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",yearPlaceholder:"\u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",quarterPlaceholder:"\u0924\u093F\u092E\u093E\u0939\u0940 \u091A\u0941\u0928\u0947\u0902",monthPlaceholder:"\u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u093F\u090F",weekPlaceholder:"\u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",rangePlaceholder:["\u092A\u094D\u0930\u093E\u0930\u0902\u092D \u0924\u093F\u0925\u093F","\u0938\u092E\u093E\u092A\u094D\u0924\u093F \u0924\u093F\u0925\u093F"],rangeYearPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0935\u0930\u094D\u0937","\u0905\u0902\u0924 \u0935\u0930\u094D\u0937"],rangeMonthPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u092E\u0939\u0940\u0928\u093E","\u0905\u0902\u0924 \u092E\u0939\u0940\u0928\u093E"],rangeWeekPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939","\u0905\u0902\u0924 \u0938\u092A\u094D\u0924\u093E\u0939"]},ye),timePickerLocale:s({},M)},D=Se,o="${label} \u092E\u093E\u0928\u094D\u092F ${type} \u0928\u0939\u0940\u0902 \u0939\u0948",Pe={locale:"hi",Pagination:fe,DatePicker:D,TimePicker:M,Calendar:D,global:{placeholder:"\u0915\u0943\u092A\u092F\u093E \u091A\u0941\u0928\u0947\u0902"},Table:{filterTitle:"\u0938\u0942\u091A\u0940 \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",filterConfirm:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",filterReset:"\u0930\u0940\u0938\u0947\u091F",filterEmptyText:"\u0915\u094B\u0908 \u092B\u093C\u093F\u0932\u094D\u091F\u0930 \u0928\u0939\u0940\u0902",emptyText:"\u0915\u094B\u0908 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0928\u0939\u0940\u0902",selectAll:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0918\u0941\u092E\u093E\u090F\u0902",selectNone:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",selectionAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",sortTitle:"\u0926\u094D\u0935\u093E\u0930\u093E \u0915\u094D\u0930\u092E\u092C\u0926\u094D\u0927 \u0915\u0930\u0947\u0902",expand:"\u092A\u0902\u0915\u094D\u0924\u093F \u0915\u093E \u0935\u093F\u0938\u094D\u0924\u093E\u0930 \u0915\u0930\u0947\u0902",collapse:"\u092A\u0902\u0915\u094D\u0924\u093F \u0938\u0902\u0915\u094D\u0937\u093F\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",triggerDesc:"\u0905\u0935\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",triggerAsc:"\u0906\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",cancelSort:"\u091B\u0901\u091F\u093E\u0908 \u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902"},Modal:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E",justOkText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947"},Popconfirm:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E"},Transfer:{titles:["",""],searchPlaceholder:"\u092F\u0939\u093E\u0902 \u0916\u094B\u091C\u0947\u0902",itemUnit:"\u0924\u0924\u094D\u0924\u094D\u0935",itemsUnit:"\u0935\u093F\u0937\u092F-\u0935\u0938\u094D\u0924\u0941",remove:"\u0939\u091F\u093E\u090F",selectCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0939\u091F\u093E\u090F\u0902",selectAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0939\u091F\u093E\u090F\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u094B \u0909\u0932\u094D\u091F\u093E \u0915\u0930\u0947\u0902"},Upload:{uploading:"\u0905\u092A\u0932\u094B\u0921 \u0939\u094B \u0930\u0939\u093E...",removeFile:"\u092B\u093C\u093E\u0907\u0932 \u0928\u093F\u0915\u093E\u0932\u0947\u0902",uploadError:"\u0905\u092A\u0932\u094B\u0921 \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F",previewFile:"\u092B\u093C\u093E\u0907\u0932 \u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928",downloadFile:"\u092B\u093C\u093E\u0907\u0932 \u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0930\u0947\u0902"},Empty:{description:"\u0915\u094B\u0908 \u0906\u0915\u0921\u093C\u093E \u0909\u092A\u0932\u092C\u094D\u0927 \u0928\u0939\u0940\u0902 \u0939\u0948"},Icon:{icon:"\u0906\u0907\u0915\u0928"},Text:{edit:"\u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",copy:"\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F",copied:"\u0915\u0949\u092A\u0940 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",expand:"\u0935\u093F\u0938\u094D\u0924\u093E\u0930"},PageHeader:{back:"\u0935\u093E\u092A\u0938"},Form:{optional:"(\u0910\u091A\u094D\u091B\u093F\u0915)",defaultValidateMessages:{default:"${label} \u0915\u0947 \u0932\u093F\u090F \u092B\u0940\u0932\u094D\u0921 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0924\u094D\u0930\u0941\u091F\u093F",required:"\u0915\u0943\u092A\u092F\u093E ${label} \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902",enum:"${label} [${enum}] \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",whitespace:"${label} \u090F\u0915 \u0916\u093E\u0932\u0940 \u0905\u0915\u094D\u0937\u0930 \u0928\u0939\u0940\u0902 \u0939\u094B \u0938\u0915\u0924\u093E",date:{format:"${label} \u0924\u093F\u0925\u093F \u092A\u094D\u0930\u093E\u0930\u0942\u092A \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948",parse:"${label} \u0915\u094B \u0924\u093E\u0930\u0940\u0916 \u092E\u0947\u0902 \u0928\u0939\u0940\u0902 \u092C\u0926\u0932\u093E \u091C\u093E \u0938\u0915\u0924\u093E",invalid:"${label} \u090F\u0915 \u0905\u092E\u093E\u0928\u094D\u092F \u0924\u093F\u0925\u093F \u0939\u0948"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} ${len} \u0905\u0915\u094D\u0937\u0930 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},number:{len:"${label} ${len} \u0915\u0947 \u092C\u0930\u093E\u092C\u0930 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},array:{len:"${len} ${label} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"\u0915\u092E \u0938\u0947 \u0915\u092E ${min} ${label}",max:"\u091C\u094D\u092F\u093E\u0926\u093E \u0938\u0947 \u091C\u094D\u092F\u093E\u0926\u093E ${max} ${label}",range:"${label} \u0915\u0940 \u0930\u093E\u0936\u093F ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u0940 \u091A\u093E\u0939\u093F\u090F"},pattern:{mismatch:"${label} ${pattern} \u092A\u0948\u091F\u0930\u094D\u0928 \u0938\u0947 \u092E\u0947\u0932 \u0928\u0939\u0940\u0902 \u0916\u093E\u0924\u093E"}}},Image:{preview:"\u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928"}},Te=Pe,De={items_per_page:"/ p\xE1gina",jump_to:"V\xE1 at\xE9",jump_to_confirm:"confirme",page:"",prev_page:"P\xE1gina anterior",next_page:"Pr\xF3xima p\xE1gina",prev_5:"5 p\xE1ginas anteriores",next_5:"5 pr\xF3ximas p\xE1ginas",prev_3:"3 p\xE1ginas anteriores",next_3:"3 pr\xF3ximas p\xE1ginas"},Ce={locale:"pt_BR",today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"Ok",clear:"Limpar",month:"M\xEAs",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Escolher m\xEAs",yearSelect:"Escolher ano",decadeSelect:"Escolher d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!1,previousMonth:"M\xEAs anterior (PageUp)",nextMonth:"Pr\xF3ximo m\xEAs (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Pr\xF3ximo ano (Control + direita)",previousDecade:"D\xE9cada anterior",nextDecade:"Pr\xF3xima d\xE9cada",previousCentury:"S\xE9culo anterior",nextCentury:"Pr\xF3ximo s\xE9culo",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]},_e=Ce,Ye={placeholder:"Hora"},E=Ye,Ae={lang:s({placeholder:"Selecionar data",rangePlaceholder:["Data inicial","Data final"]},_e),timePickerLocale:s({},E)},C=Ae,i="${label} n\xE3o \xE9 um ${type} v\xE1lido",Fe={locale:"pt-br",Pagination:De,DatePicker:C,TimePicker:E,Calendar:C,global:{placeholder:"Por favor escolha"},Table:{filterTitle:"Menu de Filtro",filterConfirm:"OK",filterReset:"Resetar",filterEmptyText:"Sem filtros",emptyText:"Sem conte\xFAdo",selectAll:"Selecionar p\xE1gina atual",selectInvert:"Inverter sele\xE7\xE3o",selectNone:"Apagar todo o conte\xFAdo",selectionAll:"Selecionar todo o conte\xFAdo",sortTitle:"Ordenar t\xEDtulo",expand:"Expandir linha",collapse:"Colapsar linha",triggerDesc:"Clique organiza por descendente",triggerAsc:"Clique organiza por ascendente",cancelSort:"Clique para cancelar organiza\xE7\xE3o"},Tour:{Next:"Pr\xF3ximo",Previous:"Anterior",Finish:"Finalizar"},Modal:{okText:"OK",cancelText:"Cancelar",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Procurar",itemUnit:"item",itemsUnit:"items",remove:"Remover",selectCurrent:"Selecionar p\xE1gina atual",removeCurrent:"Remover p\xE1gina atual",selectAll:"Selecionar todos",removeAll:"Remover todos",selectInvert:"Inverter sele\xE7\xE3o atual"},Upload:{uploading:"Enviando...",removeFile:"Remover arquivo",uploadError:"Erro no envio",previewFile:"Visualizar arquivo",downloadFile:"Baixar arquivo"},Empty:{description:"N\xE3o h\xE1 dados"},Icon:{icon:"\xEDcone"},Text:{edit:"editar",copy:"copiar",copied:"copiado",expand:"expandir"},PageHeader:{back:"Retornar"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Erro ${label} na valida\xE7\xE3o de campo",required:"Por favor, insira ${label}",enum:"${label} deve ser um dos seguinte: [${enum}]",whitespace:"${label} n\xE3o pode ser um car\xE1cter vazio",date:{format:" O formato de data ${label} \xE9 inv\xE1lido",parse:"${label} n\xE3o pode ser convertido para uma data",invalid:"${label} \xE9 uma data inv\xE1lida"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} deve possuir ${len} caracteres",min:"${label} deve possuir ao menos ${min} caracteres",max:"${label} deve possuir no m\xE1ximo ${max} caracteres",range:"${label} deve possuir entre ${min} e ${max} caracteres"},number:{len:"${label} deve ser igual \xE0 ${len}",min:"O valor m\xEDnimo de ${label} \xE9 ${min}",max:"O valor m\xE1ximo de ${label} \xE9 ${max}",range:"${label} deve estar entre ${min} e ${max}"},array:{len:"Deve ser ${len} ${label}",min:"No m\xEDnimo ${min} ${label}",max:"No m\xE1ximo ${max} ${label}",range:"A quantidade de ${label} deve estar entre ${min} e ${max}"},pattern:{mismatch:"${label} n\xE3o se encaixa no padr\xE3o ${pattern}"}}},Image:{preview:"Pr\xE9-visualiza\xE7\xE3o"}},we=Fe,_="#ffffff",Y="#1b1b23";class Me{constructor(){c(this,"state",z({antLocale:void 0,style:void 0,fontFamilyUrl:void 0,antTheme:void 0}));c(this,"imageIsDarkCache",{});c(this,"update",async e=>{this.state.value.antLocale=this.getAntLocale(e),this.state.value.style=await this.getStyle(e),this.state.value.fontFamilyUrl=this.getFontUrl(e.fontFamily),this.state.value.antTheme=await this.getAntTheme(e),this.updateGlobalFontFamily(e.fontFamily)});c(this,"updateGlobalFontFamily",e=>{document.documentElement.style.setProperty("--ac-global-font-family",e)});c(this,"getAntLocale",e=>({en:b,pt:we,es:de,de:re,fr:ve,hi:Te})[e.locale]||b);c(this,"isBackgroundDark",async e=>this.imageIsDarkCache[e]?this.imageIsDarkCache[e]:x(e)?(this.imageIsDarkCache[e]=y(e),this.imageIsDarkCache[e]):(this.imageIsDarkCache[e]=await Z(e),this.imageIsDarkCache[e]));c(this,"getStyle",async e=>{const a=d=>y(d)?_:Y,m=await this.isBackgroundDark(e.background);return{"--color-main":e.mainColor,"--color-main-light":W(e.mainColor,.15),"--color-main-hover":k(e.mainColor),"--color-main-active":k(e.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":a(e.mainColor),"--font-family":e.fontFamily,"--font-color":m?_:Y,...this.getBackgroundStyle(e.background)}});c(this,"getAntTheme",async e=>{const a=await this.isBackgroundDark(e.background),m={fontFamily:e.fontFamily,colorPrimary:e.mainColor},d=[];if(a){const{darkAlgorithm:u}=G;d.push(u)}return{token:m,algorithm:d}});c(this,"getFontUrl",e=>`https://fonts.googleapis.com/css2?family=${e.split(" ").join("+")}:wght@300;400;500;700;900&display=swap`)}getBackgroundStyle(e){return x(e)?{backgroundColor:e}:{backgroundImage:`url(${e})`,backgroundSize:"cover"}}}const Ee=["href"],Ie=O({__name:"PlayerConfigProvider",props:{background:{},mainColor:{},fontFamily:{},locale:{}},setup(t){const e=t,a=new Me;return U("playerConfig",a.state),V(()=>[e.background,e.fontFamily,e.locale,e.mainColor],([m,d,u,g])=>{a.update({background:m,fontFamily:d,locale:u,mainColor:g})}),j(()=>{a.update({background:e.background,fontFamily:e.fontFamily,locale:e.locale,mainColor:e.mainColor})}),(m,d)=>{var u,g,h,$;return v(),f("div",{class:"config-provider",style:N((u=p(a).state.value)==null?void 0:u.style)},[(g=p(a).state.value)!=null&&g.fontFamilyUrl?(v(),f("link",{key:0,href:p(a).state.value.fontFamilyUrl,rel:"stylesheet"},null,8,Ee)):H("",!0),R(p(q),{theme:(h=p(a).state.value)==null?void 0:h.antTheme,locale:($=p(a).state.value)==null?void 0:$.antLocale},{default:B(()=>[K(m.$slots,"default",{},void 0,!0)]),_:3},8,["theme","locale"])],4)}}});const Ve=J(Ie,[["__scopeId","data-v-2c16e2a4"]]);export{Ve as W}; -//# sourceMappingURL=PlayerConfigProvider.4d4af7bc.js.map +var I=Object.defineProperty;var L=(t,e,a)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var c=(t,e,a)=>(L(t,typeof e!="symbol"?e+"":e,a),a);import{U as s,e as z,V as b,d as O,W as U,g as V,X as j,o as v,Y as f,u as p,S as H,b as R,w as B,Z as N,$ as K,A as q,a0 as J}from"./index.d0f12294.js";import{i as x,a as y,b as Z,l as W,c as k}from"./colorHelpers.b079bb04.js";import{t as G}from"./index.c7e8afe7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="72c2b32d-7b8c-4f6b-bfc7-89c3d9601bd6",t._sentryDebugIdIdentifier="sentry-dbid-72c2b32d-7b8c-4f6b-bfc7-89c3d9601bd6")}catch{}})();const Q={items_per_page:"/ Seite",jump_to:"Gehe zu",jump_to_confirm:"best\xE4tigen",page:"",prev_page:"Vorherige Seite",next_page:"N\xE4chste Seite",prev_5:"5 Seiten zur\xFCck",next_5:"5 Seiten vor",prev_3:"3 Seiten zur\xFCck",next_3:"3 Seiten vor"},X={locale:"de_DE",today:"Heute",now:"Jetzt",backToToday:"Zur\xFCck zu Heute",ok:"OK",clear:"Zur\xFCcksetzen",month:"Monat",year:"Jahr",timeSelect:"Zeit w\xE4hlen",dateSelect:"Datum w\xE4hlen",monthSelect:"W\xE4hle einen Monat",yearSelect:"W\xE4hle ein Jahr",decadeSelect:"W\xE4hle ein Jahrzehnt",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"N\xE4chster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"N\xE4chstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"N\xE4chstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"N\xE4chstes Jahrhundert"},ee=X,ae={placeholder:"Zeit ausw\xE4hlen"},A=ae,te={lang:s({placeholder:"Datum ausw\xE4hlen",rangePlaceholder:["Startdatum","Enddatum"]},ee),timePickerLocale:s({},A)},S=te,l="${label} ist nicht g\xFCltig. ${type} erwartet",le={locale:"de",Pagination:Q,DatePicker:S,TimePicker:A,Calendar:S,global:{placeholder:"Bitte ausw\xE4hlen"},Table:{filterTitle:"Filter-Men\xFC",filterConfirm:"OK",filterReset:"Zur\xFCcksetzen",selectAll:"Selektiere Alle",selectInvert:"Selektion Invertieren",selectionAll:"W\xE4hlen Sie alle Daten aus",sortTitle:"Sortieren",expand:"Zeile erweitern",collapse:"Zeile reduzieren",triggerDesc:"Klicken zur absteigenden Sortierung",triggerAsc:"Klicken zur aufsteigenden Sortierung",cancelSort:"Klicken zum Abbrechen der Sortierung"},Modal:{okText:"OK",cancelText:"Abbrechen",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Abbrechen"},Transfer:{titles:["",""],searchPlaceholder:"Suchen",itemUnit:"Eintrag",itemsUnit:"Eintr\xE4ge",remove:"Entfernen",selectCurrent:"Alle auf aktueller Seite ausw\xE4hlen",removeCurrent:"Auswahl auf aktueller Seite aufheben",selectAll:"Alle ausw\xE4hlen",removeAll:"Auswahl aufheben",selectInvert:"Auswahl umkehren"},Upload:{uploading:"Hochladen...",removeFile:"Datei entfernen",uploadError:"Fehler beim Hochladen",previewFile:"Dateivorschau",downloadFile:"Download-Datei"},Empty:{description:"Keine Daten"},Text:{edit:"Bearbeiten",copy:"Kopieren",copied:"Kopiert",expand:"Erweitern"},PageHeader:{back:"Zur\xFCck"},Form:{defaultValidateMessages:{default:"Feld-Validierungsfehler: ${label}",required:"Bitte geben Sie ${label} an",enum:"${label} muss eines der folgenden sein [${enum}]",whitespace:"${label} darf kein Leerzeichen sein",date:{format:"${label} ist ein ung\xFCltiges Datumsformat",parse:"${label} kann nicht in ein Datum umgewandelt werden",invalid:"${label} ist ein ung\xFCltiges Datum"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} muss genau ${len} Zeichen lang sein",min:"${label} muss mindestens ${min} Zeichen lang sein",max:"${label} darf h\xF6chstens ${max} Zeichen lang sein",range:"${label} muss zwischen ${min} und ${max} Zeichen lang sein"},number:{len:"${label} muss gleich ${len} sein",min:"${label} muss mindestens ${min} sein",max:"${label} darf maximal ${max} sein",range:"${label} muss zwischen ${min} und ${max} liegen"},array:{len:"Es m\xFCssen ${len} ${label} sein",min:"Es m\xFCssen mindestens ${min} ${label} sein",max:"Es d\xFCrfen maximal ${max} ${label} sein",range:"Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"},pattern:{mismatch:"${label} enspricht nicht dem ${pattern} Muster"}}},Image:{preview:"Vorschau"}},re=le,ne={items_per_page:"/ p\xE1gina",jump_to:"Ir a",jump_to_confirm:"confirmar",page:"",prev_page:"P\xE1gina anterior",next_page:"P\xE1gina siguiente",prev_5:"5 p\xE1ginas previas",next_5:"5 p\xE1ginas siguientes",prev_3:"3 p\xE1ginas previas",next_3:"3 p\xE1ginas siguientes"},oe={locale:"es_ES",today:"Hoy",now:"Ahora",backToToday:"Volver a hoy",ok:"Aceptar",clear:"Limpiar",month:"Mes",year:"A\xF1o",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar fecha",monthSelect:"Elegir un mes",yearSelect:"Elegir un a\xF1o",decadeSelect:"Elegir una d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes siguiente (PageDown)",previousYear:"A\xF1o anterior (Control + left)",nextYear:"A\xF1o siguiente (Control + right)",previousDecade:"D\xE9cada anterior",nextDecade:"D\xE9cada siguiente",previousCentury:"Siglo anterior",nextCentury:"Siglo siguiente"},ie=oe,ce={placeholder:"Seleccionar hora"},F=ce,se={lang:s({placeholder:"Seleccionar fecha",rangePlaceholder:["Fecha inicial","Fecha final"]},ie),timePickerLocale:s({},F)},P=se,r="${label} no es un ${type} v\xE1lido",de={locale:"es",Pagination:ne,DatePicker:P,TimePicker:F,Calendar:P,global:{placeholder:"Seleccione"},Table:{filterTitle:"Filtrar men\xFA",filterConfirm:"Aceptar",filterReset:"Reiniciar",filterEmptyText:"Sin filtros",emptyText:"Sin datos",selectAll:"Seleccionar todo",selectInvert:"Invertir selecci\xF3n",selectNone:"Vac\xEDe todo",selectionAll:"Seleccionar todos los datos",sortTitle:"Ordenar",expand:"Expandir fila",collapse:"Colapsar fila",triggerDesc:"Click para ordenar en orden descendente",triggerAsc:"Click para ordenar en orden ascendente",cancelSort:"Click para cancelar ordenamiento"},Modal:{okText:"Aceptar",cancelText:"Cancelar",justOkText:"Aceptar"},Popconfirm:{okText:"Aceptar",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Buscar aqu\xED",itemUnit:"elemento",itemsUnit:"elementos",remove:"Eliminar",selectCurrent:"Seleccionar p\xE1gina actual",removeCurrent:"Remover p\xE1gina actual",selectAll:"Seleccionar todos los datos",removeAll:"Eliminar todos los datos",selectInvert:"Invertir p\xE1gina actual"},Upload:{uploading:"Subiendo...",removeFile:"Eliminar archivo",uploadError:"Error al subir el archivo",previewFile:"Vista previa",downloadFile:"Descargar archivo"},Empty:{description:"No hay datos"},Icon:{icon:"\xEDcono"},Text:{edit:"Editar",copy:"Copiar",copied:"Copiado",expand:"Expandir"},PageHeader:{back:"Volver"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Error de validaci\xF3n del campo ${label}",required:"Por favor ingresar ${label}",enum:"${label} debe ser uno de [${enum}]",whitespace:"${label} no puede ser un car\xE1cter en blanco",date:{format:"El formato de fecha de ${label} es inv\xE1lido",parse:"${label} no se puede convertir a una fecha",invalid:"${label} es una fecha inv\xE1lida"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} debe tener ${len} caracteres",min:"${label} debe tener al menos ${min} caracteres",max:"${label} debe tener hasta ${max} caracteres",range:"${label} debe tener entre ${min}-${max} caracteres"},number:{len:"${label} debe ser igual a ${len}",min:"${label} valor m\xEDnimo es ${min}",max:"${label} valor m\xE1ximo es ${max}",range:"${label} debe estar entre ${min}-${max}"},array:{len:"Debe ser ${len} ${label}",min:"Al menos ${min} ${label}",max:"A lo mucho ${max} ${label}",range:"El monto de ${label} debe estar entre ${min}-${max}"},pattern:{mismatch:"${label} no coincide con el patr\xF3n ${pattern}"}}},Image:{preview:"Previsualizaci\xF3n"}},me=de,ue={items_per_page:"/ page",jump_to:"Aller \xE0",jump_to_confirm:"confirmer",page:"",prev_page:"Page pr\xE9c\xE9dente",next_page:"Page suivante",prev_5:"5 Pages pr\xE9c\xE9dentes",next_5:"5 Pages suivantes",prev_3:"3 Pages pr\xE9c\xE9dentes",next_3:"3 Pages suivantes"},pe={locale:"fr_FR",today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"Ok",clear:"R\xE9tablir",month:"Mois",year:"Ann\xE9e",timeSelect:"S\xE9lectionner l'heure",dateSelect:"S\xE9lectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une ann\xE9e",decadeSelect:"Choisissez une d\xE9cennie",yearFormat:"YYYY",dateFormat:"DD/MM/YYYY",dayFormat:"DD",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois pr\xE9c\xE9dent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Ann\xE9e pr\xE9c\xE9dente (Ctrl + gauche)",nextYear:"Ann\xE9e prochaine (Ctrl + droite)",previousDecade:"D\xE9cennie pr\xE9c\xE9dente",nextDecade:"D\xE9cennie suivante",previousCentury:"Si\xE8cle pr\xE9c\xE9dent",nextCentury:"Si\xE8cle suivant"},ge=pe,he={placeholder:"S\xE9lectionner l'heure",rangePlaceholder:["Heure de d\xE9but","Heure de fin"]},w=he,$e={lang:s({placeholder:"S\xE9lectionner une date",yearPlaceholder:"S\xE9lectionner une ann\xE9e",quarterPlaceholder:"S\xE9lectionner un trimestre",monthPlaceholder:"S\xE9lectionner un mois",weekPlaceholder:"S\xE9lectionner une semaine",rangePlaceholder:["Date de d\xE9but","Date de fin"],rangeYearPlaceholder:["Ann\xE9e de d\xE9but","Ann\xE9e de fin"],rangeMonthPlaceholder:["Mois de d\xE9but","Mois de fin"],rangeWeekPlaceholder:["Semaine de d\xE9but","Semaine de fin"]},ge),timePickerLocale:s({},w)},T=$e,n="La valeur du champ ${label} n'est pas valide pour le type ${type}",be={locale:"fr",Pagination:ue,DatePicker:T,TimePicker:w,Calendar:T,Table:{filterTitle:"Filtrer",filterConfirm:"OK",filterReset:"R\xE9initialiser",filterEmptyText:"Aucun filtre",emptyText:"Aucune donn\xE9e",selectAll:"S\xE9lectionner la page actuelle",selectInvert:"Inverser la s\xE9lection de la page actuelle",selectNone:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectionAll:"S\xE9lectionner toutes les donn\xE9es",sortTitle:"Trier",expand:"D\xE9velopper la ligne",collapse:"R\xE9duire la ligne",triggerDesc:"Trier par ordre d\xE9croissant",triggerAsc:"Trier par ordre croissant",cancelSort:"Annuler le tri"},Modal:{okText:"OK",cancelText:"Annuler",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuler"},Transfer:{titles:["",""],searchPlaceholder:"Rechercher",itemUnit:"\xE9l\xE9ment",itemsUnit:"\xE9l\xE9ments",remove:"D\xE9s\xE9lectionner",selectCurrent:"S\xE9lectionner la page actuelle",removeCurrent:"D\xE9s\xE9lectionner la page actuelle",selectAll:"S\xE9lectionner toutes les donn\xE9es",removeAll:"D\xE9s\xE9lectionner toutes les donn\xE9es",selectInvert:"Inverser la s\xE9lection de la page actuelle"},Upload:{uploading:"T\xE9l\xE9chargement...",removeFile:"Effacer le fichier",uploadError:"Erreur de t\xE9l\xE9chargement",previewFile:"Fichier de pr\xE9visualisation",downloadFile:"T\xE9l\xE9charger un fichier"},Empty:{description:"Aucune donn\xE9e"},Icon:{icon:"ic\xF4ne"},Text:{edit:"\xC9diter",copy:"Copier",copied:"Copie effectu\xE9e",expand:"D\xE9velopper"},PageHeader:{back:"Retour"},Form:{optional:"(optionnel)",defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit \xEAtre parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas \xEAtre vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas \xEAtre convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:n,method:n,array:n,object:n,number:n,date:n,boolean:n,integer:n,float:n,regexp:n,email:n,url:n,hex:n},string:{len:"La taille du champ ${label} doit \xEAtre de ${len} caract\xE8res",min:"La taille du champ ${label} doit \xEAtre au minimum de ${min} caract\xE8res",max:"La taille du champ ${label} doit \xEAtre au maximum de ${max} caract\xE8res",range:"La taille du champ ${label} doit \xEAtre entre ${min} et ${max} caract\xE8res"},number:{len:"La valeur du champ ${label} doit \xEAtre \xE9gale \xE0 ${len}",min:"La valeur du champ ${label} doit \xEAtre plus grande que ${min}",max:"La valeur du champ ${label} doit \xEAtre plus petit que ${max}",range:"La valeur du champ ${label} doit \xEAtre entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit \xEAtre de ${len}",min:"La taille du tableau ${label} doit \xEAtre au minimum de ${min}",max:"La taille du tableau ${label} doit \xEAtre au maximum de ${max}",range:"La taille du tableau ${label} doit \xEAtre entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au mod\xE8le ${pattern}"}}},Image:{preview:"Aper\xE7u"}},ve=be,fe={items_per_page:"/ \u092A\u0943\u0937\u094D\u0920",jump_to:"\u0907\u0938 \u092A\u0930 \u091A\u0932\u0947\u0902",jump_to_confirm:"\u092A\u0941\u0937\u094D\u091F\u093F \u0915\u0930\u0947\u0902",page:"",prev_page:"\u092A\u093F\u091B\u0932\u093E \u092A\u0943\u0937\u094D\u0920",next_page:"\u0905\u0917\u0932\u093E \u092A\u0943\u0937\u094D\u0920",prev_5:"\u092A\u093F\u091B\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",next_5:"\u0905\u0917\u0932\u0947 5 \u092A\u0943\u0937\u094D\u0920",prev_3:"\u092A\u093F\u091B\u0932\u0947 3 \u092A\u0943\u0937\u094D\u0920",next_3:"\u0905\u0917\u0932\u0947 3 \u092A\u0947\u091C"},xe={locale:"hi_IN",today:"\u0906\u091C",now:"\u0905\u092D\u0940",backToToday:"\u0906\u091C \u0924\u0915",ok:"\u0920\u0940\u0915",clear:"\u0938\u094D\u092A\u0937\u094D\u091F",month:"\u092E\u0939\u0940\u0928\u093E",year:"\u0938\u093E\u0932",timeSelect:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",dateSelect:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",weekSelect:"\u090F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",monthSelect:"\u090F\u0915 \u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u0947\u0902",yearSelect:"\u090F\u0915 \u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",decadeSelect:"\u090F\u0915 \u0926\u0936\u0915 \u091A\u0941\u0928\u0947\u0902",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u092A\u093F\u091B\u0932\u093E \u092E\u0939\u0940\u0928\u093E (\u092A\u0947\u091C\u0905\u092A)",nextMonth:"\u0905\u0917\u0932\u0947 \u092E\u0939\u0940\u0928\u0947 (\u092A\u0947\u091C\u0921\u093E\u0909\u0928)",previousYear:"\u092A\u093F\u091B\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u092C\u093E\u090F\u0902)",nextYear:"\u0905\u0917\u0932\u0947 \u0938\u093E\u0932 (Ctrl + \u0926\u093E\u0939\u093F\u0928\u093E)",previousDecade:"\u092A\u093F\u091B\u0932\u093E \u0926\u0936\u0915",nextDecade:"\u0905\u0917\u0932\u0947 \u0926\u0936\u0915",previousCentury:"\u092A\u0940\u091B\u094D\u0932\u0940 \u0936\u0924\u093E\u092C\u094D\u0926\u0940",nextCentury:"\u0905\u0917\u0932\u0940 \u0938\u0926\u0940"},ye=xe,ke={placeholder:"\u0938\u092E\u092F \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",rangePlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092E\u092F","\u0905\u0902\u0924 \u0938\u092E\u092F"]},M=ke,Se={lang:s({placeholder:"\u0924\u093E\u0930\u0940\u0916\u093C \u091A\u0941\u0928\u0947\u0902",yearPlaceholder:"\u0935\u0930\u094D\u0937 \u091A\u0941\u0928\u0947\u0902",quarterPlaceholder:"\u0924\u093F\u092E\u093E\u0939\u0940 \u091A\u0941\u0928\u0947\u0902",monthPlaceholder:"\u092E\u0939\u0940\u0928\u093E \u091A\u0941\u0928\u093F\u090F",weekPlaceholder:"\u0938\u092A\u094D\u0924\u093E\u0939 \u091A\u0941\u0928\u0947\u0902",rangePlaceholder:["\u092A\u094D\u0930\u093E\u0930\u0902\u092D \u0924\u093F\u0925\u093F","\u0938\u092E\u093E\u092A\u094D\u0924\u093F \u0924\u093F\u0925\u093F"],rangeYearPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0935\u0930\u094D\u0937","\u0905\u0902\u0924 \u0935\u0930\u094D\u0937"],rangeMonthPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u092E\u0939\u0940\u0928\u093E","\u0905\u0902\u0924 \u092E\u0939\u0940\u0928\u093E"],rangeWeekPlaceholder:["\u0906\u0930\u0902\u092D\u093F\u0915 \u0938\u092A\u094D\u0924\u093E\u0939","\u0905\u0902\u0924 \u0938\u092A\u094D\u0924\u093E\u0939"]},ye),timePickerLocale:s({},M)},D=Se,o="${label} \u092E\u093E\u0928\u094D\u092F ${type} \u0928\u0939\u0940\u0902 \u0939\u0948",Pe={locale:"hi",Pagination:fe,DatePicker:D,TimePicker:M,Calendar:D,global:{placeholder:"\u0915\u0943\u092A\u092F\u093E \u091A\u0941\u0928\u0947\u0902"},Table:{filterTitle:"\u0938\u0942\u091A\u0940 \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",filterConfirm:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",filterReset:"\u0930\u0940\u0938\u0947\u091F",filterEmptyText:"\u0915\u094B\u0908 \u092B\u093C\u093F\u0932\u094D\u091F\u0930 \u0928\u0939\u0940\u0902",emptyText:"\u0915\u094B\u0908 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0928\u0939\u0940\u0902",selectAll:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0918\u0941\u092E\u093E\u090F\u0902",selectNone:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",selectionAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",sortTitle:"\u0926\u094D\u0935\u093E\u0930\u093E \u0915\u094D\u0930\u092E\u092C\u0926\u094D\u0927 \u0915\u0930\u0947\u0902",expand:"\u092A\u0902\u0915\u094D\u0924\u093F \u0915\u093E \u0935\u093F\u0938\u094D\u0924\u093E\u0930 \u0915\u0930\u0947\u0902",collapse:"\u092A\u0902\u0915\u094D\u0924\u093F \u0938\u0902\u0915\u094D\u0937\u093F\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",triggerDesc:"\u0905\u0935\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",triggerAsc:"\u0906\u0930\u094B\u0939\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902",cancelSort:"\u091B\u0901\u091F\u093E\u0908 \u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902"},Modal:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E",justOkText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947"},Popconfirm:{okText:"\u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947",cancelText:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0928\u093E"},Transfer:{titles:["",""],searchPlaceholder:"\u092F\u0939\u093E\u0902 \u0916\u094B\u091C\u0947\u0902",itemUnit:"\u0924\u0924\u094D\u0924\u094D\u0935",itemsUnit:"\u0935\u093F\u0937\u092F-\u0935\u0938\u094D\u0924\u0941",remove:"\u0939\u091F\u093E\u090F",selectCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeCurrent:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0939\u091F\u093E\u090F\u0902",selectAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",removeAll:"\u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u0939\u091F\u093E\u090F\u0902",selectInvert:"\u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092A\u0943\u0937\u094D\u0920 \u0915\u094B \u0909\u0932\u094D\u091F\u093E \u0915\u0930\u0947\u0902"},Upload:{uploading:"\u0905\u092A\u0932\u094B\u0921 \u0939\u094B \u0930\u0939\u093E...",removeFile:"\u092B\u093C\u093E\u0907\u0932 \u0928\u093F\u0915\u093E\u0932\u0947\u0902",uploadError:"\u0905\u092A\u0932\u094B\u0921 \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F",previewFile:"\u092B\u093C\u093E\u0907\u0932 \u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928",downloadFile:"\u092B\u093C\u093E\u0907\u0932 \u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0930\u0947\u0902"},Empty:{description:"\u0915\u094B\u0908 \u0906\u0915\u0921\u093C\u093E \u0909\u092A\u0932\u092C\u094D\u0927 \u0928\u0939\u0940\u0902 \u0939\u0948"},Icon:{icon:"\u0906\u0907\u0915\u0928"},Text:{edit:"\u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",copy:"\u092A\u094D\u0930\u0924\u093F\u0932\u093F\u092A\u093F",copied:"\u0915\u0949\u092A\u0940 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",expand:"\u0935\u093F\u0938\u094D\u0924\u093E\u0930"},PageHeader:{back:"\u0935\u093E\u092A\u0938"},Form:{optional:"(\u0910\u091A\u094D\u091B\u093F\u0915)",defaultValidateMessages:{default:"${label} \u0915\u0947 \u0932\u093F\u090F \u092B\u0940\u0932\u094D\u0921 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0924\u094D\u0930\u0941\u091F\u093F",required:"\u0915\u0943\u092A\u092F\u093E ${label} \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902",enum:"${label} [${enum}] \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",whitespace:"${label} \u090F\u0915 \u0916\u093E\u0932\u0940 \u0905\u0915\u094D\u0937\u0930 \u0928\u0939\u0940\u0902 \u0939\u094B \u0938\u0915\u0924\u093E",date:{format:"${label} \u0924\u093F\u0925\u093F \u092A\u094D\u0930\u093E\u0930\u0942\u092A \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948",parse:"${label} \u0915\u094B \u0924\u093E\u0930\u0940\u0916 \u092E\u0947\u0902 \u0928\u0939\u0940\u0902 \u092C\u0926\u0932\u093E \u091C\u093E \u0938\u0915\u0924\u093E",invalid:"${label} \u090F\u0915 \u0905\u092E\u093E\u0928\u094D\u092F \u0924\u093F\u0925\u093F \u0939\u0948"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} ${len} \u0905\u0915\u094D\u0937\u0930 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u093E \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0935\u0930\u094D\u0923\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},number:{len:"${label} ${len} \u0915\u0947 \u092C\u0930\u093E\u092C\u0930 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"${label} \u0915\u092E \u0938\u0947 \u0915\u092E ${min} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",max:"${label} \u0905\u0927\u093F\u0915\u0924\u092E ${max} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",range:"${label} ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F"},array:{len:"${len} ${label} \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F",min:"\u0915\u092E \u0938\u0947 \u0915\u092E ${min} ${label}",max:"\u091C\u094D\u092F\u093E\u0926\u093E \u0938\u0947 \u091C\u094D\u092F\u093E\u0926\u093E ${max} ${label}",range:"${label} \u0915\u0940 \u0930\u093E\u0936\u093F ${min}-${max} \u0915\u0947 \u092C\u0940\u091A \u0939\u094B\u0928\u0940 \u091A\u093E\u0939\u093F\u090F"},pattern:{mismatch:"${label} ${pattern} \u092A\u0948\u091F\u0930\u094D\u0928 \u0938\u0947 \u092E\u0947\u0932 \u0928\u0939\u0940\u0902 \u0916\u093E\u0924\u093E"}}},Image:{preview:"\u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928"}},Te=Pe,De={items_per_page:"/ p\xE1gina",jump_to:"V\xE1 at\xE9",jump_to_confirm:"confirme",page:"",prev_page:"P\xE1gina anterior",next_page:"Pr\xF3xima p\xE1gina",prev_5:"5 p\xE1ginas anteriores",next_5:"5 pr\xF3ximas p\xE1ginas",prev_3:"3 p\xE1ginas anteriores",next_3:"3 pr\xF3ximas p\xE1ginas"},Ce={locale:"pt_BR",today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"Ok",clear:"Limpar",month:"M\xEAs",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Escolher m\xEAs",yearSelect:"Escolher ano",decadeSelect:"Escolher d\xE9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!1,previousMonth:"M\xEAs anterior (PageUp)",nextMonth:"Pr\xF3ximo m\xEAs (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Pr\xF3ximo ano (Control + direita)",previousDecade:"D\xE9cada anterior",nextDecade:"Pr\xF3xima d\xE9cada",previousCentury:"S\xE9culo anterior",nextCentury:"Pr\xF3ximo s\xE9culo",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]},_e=Ce,Ye={placeholder:"Hora"},E=Ye,Ae={lang:s({placeholder:"Selecionar data",rangePlaceholder:["Data inicial","Data final"]},_e),timePickerLocale:s({},E)},C=Ae,i="${label} n\xE3o \xE9 um ${type} v\xE1lido",Fe={locale:"pt-br",Pagination:De,DatePicker:C,TimePicker:E,Calendar:C,global:{placeholder:"Por favor escolha"},Table:{filterTitle:"Menu de Filtro",filterConfirm:"OK",filterReset:"Resetar",filterEmptyText:"Sem filtros",emptyText:"Sem conte\xFAdo",selectAll:"Selecionar p\xE1gina atual",selectInvert:"Inverter sele\xE7\xE3o",selectNone:"Apagar todo o conte\xFAdo",selectionAll:"Selecionar todo o conte\xFAdo",sortTitle:"Ordenar t\xEDtulo",expand:"Expandir linha",collapse:"Colapsar linha",triggerDesc:"Clique organiza por descendente",triggerAsc:"Clique organiza por ascendente",cancelSort:"Clique para cancelar organiza\xE7\xE3o"},Tour:{Next:"Pr\xF3ximo",Previous:"Anterior",Finish:"Finalizar"},Modal:{okText:"OK",cancelText:"Cancelar",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Procurar",itemUnit:"item",itemsUnit:"items",remove:"Remover",selectCurrent:"Selecionar p\xE1gina atual",removeCurrent:"Remover p\xE1gina atual",selectAll:"Selecionar todos",removeAll:"Remover todos",selectInvert:"Inverter sele\xE7\xE3o atual"},Upload:{uploading:"Enviando...",removeFile:"Remover arquivo",uploadError:"Erro no envio",previewFile:"Visualizar arquivo",downloadFile:"Baixar arquivo"},Empty:{description:"N\xE3o h\xE1 dados"},Icon:{icon:"\xEDcone"},Text:{edit:"editar",copy:"copiar",copied:"copiado",expand:"expandir"},PageHeader:{back:"Retornar"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Erro ${label} na valida\xE7\xE3o de campo",required:"Por favor, insira ${label}",enum:"${label} deve ser um dos seguinte: [${enum}]",whitespace:"${label} n\xE3o pode ser um car\xE1cter vazio",date:{format:" O formato de data ${label} \xE9 inv\xE1lido",parse:"${label} n\xE3o pode ser convertido para uma data",invalid:"${label} \xE9 uma data inv\xE1lida"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} deve possuir ${len} caracteres",min:"${label} deve possuir ao menos ${min} caracteres",max:"${label} deve possuir no m\xE1ximo ${max} caracteres",range:"${label} deve possuir entre ${min} e ${max} caracteres"},number:{len:"${label} deve ser igual \xE0 ${len}",min:"O valor m\xEDnimo de ${label} \xE9 ${min}",max:"O valor m\xE1ximo de ${label} \xE9 ${max}",range:"${label} deve estar entre ${min} e ${max}"},array:{len:"Deve ser ${len} ${label}",min:"No m\xEDnimo ${min} ${label}",max:"No m\xE1ximo ${max} ${label}",range:"A quantidade de ${label} deve estar entre ${min} e ${max}"},pattern:{mismatch:"${label} n\xE3o se encaixa no padr\xE3o ${pattern}"}}},Image:{preview:"Pr\xE9-visualiza\xE7\xE3o"}},we=Fe,_="#ffffff",Y="#1b1b23";class Me{constructor(){c(this,"state",z({antLocale:void 0,style:void 0,fontFamilyUrl:void 0,antTheme:void 0}));c(this,"imageIsDarkCache",{});c(this,"update",async e=>{this.state.value.antLocale=this.getAntLocale(e),this.state.value.style=await this.getStyle(e),this.state.value.fontFamilyUrl=this.getFontUrl(e.fontFamily),this.state.value.antTheme=await this.getAntTheme(e),this.updateGlobalFontFamily(e.fontFamily)});c(this,"updateGlobalFontFamily",e=>{document.documentElement.style.setProperty("--ac-global-font-family",e)});c(this,"getAntLocale",e=>({en:b,pt:we,es:me,de:re,fr:ve,hi:Te})[e.locale]||b);c(this,"isBackgroundDark",async e=>this.imageIsDarkCache[e]?this.imageIsDarkCache[e]:x(e)?(this.imageIsDarkCache[e]=y(e),this.imageIsDarkCache[e]):(this.imageIsDarkCache[e]=await Z(e),this.imageIsDarkCache[e]));c(this,"getStyle",async e=>{const a=m=>y(m)?_:Y,d=await this.isBackgroundDark(e.background);return{"--color-main":e.mainColor,"--color-main-light":W(e.mainColor,.15),"--color-main-hover":k(e.mainColor),"--color-main-active":k(e.mainColor),"--color-secondary":"transparent","--color-secondary-lighter":"transparent","--color-secondary-darker":"transparent","--button-font-color-main":a(e.mainColor),"--font-family":e.fontFamily,"--font-color":d?_:Y,...this.getBackgroundStyle(e.background)}});c(this,"getAntTheme",async e=>{const a=await this.isBackgroundDark(e.background),d={fontFamily:e.fontFamily,colorPrimary:e.mainColor},m=[];if(a){const{darkAlgorithm:u}=G;m.push(u)}return{token:d,algorithm:m}});c(this,"getFontUrl",e=>`https://fonts.googleapis.com/css2?family=${e.split(" ").join("+")}:wght@300;400;500;700;900&display=swap`)}getBackgroundStyle(e){return x(e)?{backgroundColor:e}:{backgroundImage:`url(${e})`,backgroundSize:"cover"}}}const Ee=["href"],Ie=O({__name:"PlayerConfigProvider",props:{background:{},mainColor:{},fontFamily:{},locale:{}},setup(t){const e=t,a=new Me;return U("playerConfig",a.state),V(()=>[e.background,e.fontFamily,e.locale,e.mainColor],([d,m,u,g])=>{a.update({background:d,fontFamily:m,locale:u,mainColor:g})}),j(()=>{a.update({background:e.background,fontFamily:e.fontFamily,locale:e.locale,mainColor:e.mainColor})}),(d,m)=>{var u,g,h,$;return v(),f("div",{class:"config-provider",style:N((u=p(a).state.value)==null?void 0:u.style)},[(g=p(a).state.value)!=null&&g.fontFamilyUrl?(v(),f("link",{key:0,href:p(a).state.value.fontFamilyUrl,rel:"stylesheet"},null,8,Ee)):H("",!0),R(p(q),{theme:(h=p(a).state.value)==null?void 0:h.antTheme,locale:($=p(a).state.value)==null?void 0:$.antLocale},{default:B(()=>[K(d.$slots,"default",{},void 0,!0)]),_:3},8,["theme","locale"])],4)}}});const Ve=J(Ie,[["__scopeId","data-v-2c16e2a4"]]);export{Ve as W}; +//# sourceMappingURL=PlayerConfigProvider.e5e86f58.js.map diff --git a/abstra_statics/dist/assets/PlayerNavbar.dddcfb4f.js b/abstra_statics/dist/assets/PlayerNavbar.8e419fbd.js similarity index 79% rename from abstra_statics/dist/assets/PlayerNavbar.dddcfb4f.js rename to abstra_statics/dist/assets/PlayerNavbar.8e419fbd.js index 4977e64b93..a907b89e3a 100644 --- a/abstra_statics/dist/assets/PlayerNavbar.dddcfb4f.js +++ b/abstra_statics/dist/assets/PlayerNavbar.8e419fbd.js @@ -1,2 +1,2 @@ -import{b as L,l as D}from"./workspaceStore.a6063d10.js";import{i as P}from"./metadata.2beed20a.js";import{L as x}from"./LoadingOutlined.7a2941f5.js";import{d as Z,D as y,f as g,o as t,Y as s,$ as S,S as h,e8 as A,a as r,aS as z,eb as N,ed as $,c as f,ec as B,u,e9 as k,a0 as V,E as I,w as H,aG as b,dc as M,b as _,bT as w,Z as E,cO as R}from"./index.8c3f27aa.js";import{F as U}from"./PhSignOut.vue.266bb925.js";import"./index.d33f3e49.js";import{A as F}from"./Avatar.8da44d42.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="ed16c2e6-31af-48f4-8420-30ab5ea3a73b",i._sentryDebugIdIdentifier="sentry-dbid-ed16c2e6-31af-48f4-8420-30ab5ea3a73b")}catch{}})();const T=["width","height","fill","transform"],W={key:0},j=r("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),q=[j],G={key:1},O=r("path",{d:"M216,64V192H40V64Z",opacity:"0.2"},null,-1),J=r("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),Y=[O,J],K={key:2},Q=r("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"},null,-1),X=[Q],e0={key:3},a0=r("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),t0=[a0],l0={key:4},r0=r("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),o0=[r0],n0={key:5},s0=r("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),i0=[s0],d0={name:"PhList"},u0=Z({...d0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const o=i,d=y("weight","regular"),c=y("size","1em"),v=y("color","currentColor"),p=y("mirrored",!1),a=g(()=>{var e;return(e=o.weight)!=null?e:d}),m=g(()=>{var e;return(e=o.size)!=null?e:c}),l=g(()=>{var e;return(e=o.color)!=null?e:v}),n=g(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,C)=>(t(),s("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:l.value,transform:n.value},e.$attrs),[S(e.$slots,"default"),a.value==="bold"?(t(),s("g",W,q)):a.value==="duotone"?(t(),s("g",G,Y)):a.value==="fill"?(t(),s("g",K,X)):a.value==="light"?(t(),s("g",e0,t0)):a.value==="regular"?(t(),s("g",l0,o0)):a.value==="thin"?(t(),s("g",n0,i0)):h("",!0)],16,T))}}),c0=["width","height","fill","transform"],p0={key:0},g0=r("path",{d:"M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z"},null,-1),h0=[g0],v0={key:1},m0=r("path",{d:"M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z",opacity:"0.2"},null,-1),y0=r("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),H0=[m0,y0],f0={key:2},b0=r("path",{d:"M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),_0=[b0],k0={key:3},Z0=r("path",{d:"M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z"},null,-1),$0=[Z0],M0={key:4},w0=r("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),S0=[w0],A0={key:5},V0=r("path",{d:"M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z"},null,-1),C0=[V0],L0={name:"PhSignIn"},D0=Z({...L0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const o=i,d=y("weight","regular"),c=y("size","1em"),v=y("color","currentColor"),p=y("mirrored",!1),a=g(()=>{var e;return(e=o.weight)!=null?e:d}),m=g(()=>{var e;return(e=o.size)!=null?e:c}),l=g(()=>{var e;return(e=o.color)!=null?e:v}),n=g(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,C)=>(t(),s("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:l.value,transform:n.value},e.$attrs),[S(e.$slots,"default"),a.value==="bold"?(t(),s("g",p0,h0)):a.value==="duotone"?(t(),s("g",v0,H0)):a.value==="fill"?(t(),s("g",f0,_0)):a.value==="light"?(t(),s("g",k0,$0)):a.value==="regular"?(t(),s("g",M0,S0)):a.value==="thin"?(t(),s("g",A0,C0)):h("",!0)],16,c0))}}),P0={class:"sidebar-content"},x0={class:"section"},z0=["onClick"],N0={class:"item-title"},B0=Z({__name:"Sidebar",props:{runnerData:{},open:{type:Boolean},currentPath:{},loading:{}},emits:["selectRuntime","closeSidebar"],setup(i,{emit:o}){const d=i,c=window.innerWidth<760,v=a=>{p(a.id)||(o("selectRuntime",a),c&&o("closeSidebar"))},p=a=>a===d.currentPath;return(a,m)=>{var l;return t(),s("div",{class:$(["sidebar",{open:a.open}])},[r("div",P0,[r("div",x0,[(t(!0),s(z,null,N(((l=a.runnerData)==null?void 0:l.sidebar)||[],n=>(t(),s("div",{key:n.id,class:$(["item",{active:p(n.path),disabled:a.loading===n.id}]),onClick:e=>v(n)},[(t(),f(B(u(P)(n.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),r("div",N0,k(n.name),1),a.loading===n.id?(t(),f(u(x),{key:0})):h("",!0)],10,z0))),128))])])],2)}}});const I0=V(B0,[["__scopeId","data-v-46d7eca7"]]),E0={class:"left-side"},R0={key:1,class:"brand"},U0=["src"],F0={class:"right-side"},T0={style:{display:"flex","flex-direction":"column",gap:"10px"}},W0={style:{display:"flex",gap:"5px"}},j0={style:{display:"flex",gap:"5px"}},q0=Z({__name:"PlayerNavbar",props:{mainColor:{},currentPath:{},hideLogin:{type:Boolean},emailPlaceholder:{},loading:{},runnerData:{}},emits:["navigate","login-click","logout-click"],setup(i,{emit:o}){const d=i,c=I({openSidebar:!1}),v=L(),p=g(()=>{var l;return(l=v.email)!=null?l:d.emailPlaceholder}),a=g(()=>{const l=d.runnerData.sidebar;return l&&l.length>0}),m=()=>{v.removeJWT(),D(),o("logout-click")};return(l,n)=>(t(),s("header",{class:$(["navbar",a.value&&"background"])},[r("div",E0,[a.value?(t(),f(u(u0),{key:0,class:"sidebar-menu-icon",onClick:n[0]||(n[0]=e=>c.openSidebar=!c.openSidebar)})):h("",!0),l.runnerData.logoUrl||l.runnerData.brandName?(t(),s("div",R0,[l.runnerData.logoUrl?(t(),s("img",{key:0,src:l.runnerData.logoUrl,class:"logo-image"},null,8,U0)):h("",!0),l.runnerData.brandName?(t(),f(u(M),{key:1,class:"brand-name",ellipsis:""},{default:H(()=>[b(k(l.runnerData.brandName),1)]),_:1})):h("",!0)])):h("",!0)]),r("div",F0,[p.value?(t(),f(u(R),{key:0,placement:"bottomRight"},{content:H(()=>[r("div",T0,[_(u(M),{size:"small",type:"secondary"},{default:H(()=>[b(k(p.value),1)]),_:1}),_(u(w),{type:"text",onClick:m},{default:H(()=>[r("div",W0,[_(u(U),{size:"20"}),b(" Logout ")])]),_:1})])]),default:H(()=>[_(u(F),{shape:"square",size:"small",style:E({backgroundColor:l.mainColor})},{default:H(()=>[b(k(p.value[0].toUpperCase()),1)]),_:1},8,["style"])]),_:1})):l.hideLogin?h("",!0):(t(),f(u(w),{key:1,type:"text",onClick:n[1]||(n[1]=e=>o("login-click"))},{default:H(()=>[r("div",j0,[b(" Login "),_(u(D0),{size:"20"})])]),_:1}))]),a.value?(t(),f(I0,{key:0,"current-path":l.currentPath,"runner-data":d.runnerData,open:c.openSidebar,loading:d.loading,onSelectRuntime:n[2]||(n[2]=e=>o("navigate",e)),onCloseSidebar:n[3]||(n[3]=e=>c.openSidebar=!1)},null,8,["current-path","runner-data","open","loading"])):h("",!0)],2))}});const ee=V(q0,[["__scopeId","data-v-d968144d"]]);export{ee as P}; -//# sourceMappingURL=PlayerNavbar.dddcfb4f.js.map +import{b as L,l as D}from"./workspaceStore.e47060bf.js";import{i as P}from"./metadata.bc77f4b9.js";import{L as x}from"./LoadingOutlined.bcfc8c20.js";import{d as Z,D as y,f as g,o as t,Y as s,$ as S,S as h,e8 as A,a as r,aS as z,eb as N,ed as $,c as H,ec as B,u,e9 as k,a0 as V,E as I,w as f,aG as b,dc as M,b as _,bT as w,Z as E,cO as R}from"./index.d0f12294.js";import{F as U}from"./PhSignOut.vue.6dacf893.js";import"./index.3e715bc1.js";import{A as F}from"./Avatar.f6415f7c.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="e4258b87-5faf-48d3-b9bf-2c9df39e5183",i._sentryDebugIdIdentifier="sentry-dbid-e4258b87-5faf-48d3-b9bf-2c9df39e5183")}catch{}})();const T=["width","height","fill","transform"],W={key:0},j=r("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),q=[j],G={key:1},O=r("path",{d:"M216,64V192H40V64Z",opacity:"0.2"},null,-1),J=r("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),Y=[O,J],K={key:2},Q=r("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"},null,-1),X=[Q],e0={key:3},a0=r("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),t0=[a0],l0={key:4},r0=r("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),o0=[r0],n0={key:5},s0=r("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),i0=[s0],d0={name:"PhList"},u0=Z({...d0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const o=i,d=y("weight","regular"),c=y("size","1em"),v=y("color","currentColor"),p=y("mirrored",!1),a=g(()=>{var e;return(e=o.weight)!=null?e:d}),m=g(()=>{var e;return(e=o.size)!=null?e:c}),l=g(()=>{var e;return(e=o.color)!=null?e:v}),n=g(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,C)=>(t(),s("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:l.value,transform:n.value},e.$attrs),[S(e.$slots,"default"),a.value==="bold"?(t(),s("g",W,q)):a.value==="duotone"?(t(),s("g",G,Y)):a.value==="fill"?(t(),s("g",K,X)):a.value==="light"?(t(),s("g",e0,t0)):a.value==="regular"?(t(),s("g",l0,o0)):a.value==="thin"?(t(),s("g",n0,i0)):h("",!0)],16,T))}}),c0=["width","height","fill","transform"],p0={key:0},g0=r("path",{d:"M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z"},null,-1),h0=[g0],v0={key:1},m0=r("path",{d:"M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z",opacity:"0.2"},null,-1),y0=r("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),f0=[m0,y0],H0={key:2},b0=r("path",{d:"M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),_0=[b0],k0={key:3},Z0=r("path",{d:"M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z"},null,-1),$0=[Z0],M0={key:4},w0=r("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"},null,-1),S0=[w0],A0={key:5},V0=r("path",{d:"M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z"},null,-1),C0=[V0],L0={name:"PhSignIn"},D0=Z({...L0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const o=i,d=y("weight","regular"),c=y("size","1em"),v=y("color","currentColor"),p=y("mirrored",!1),a=g(()=>{var e;return(e=o.weight)!=null?e:d}),m=g(()=>{var e;return(e=o.size)!=null?e:c}),l=g(()=>{var e;return(e=o.color)!=null?e:v}),n=g(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,C)=>(t(),s("svg",A({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:l.value,transform:n.value},e.$attrs),[S(e.$slots,"default"),a.value==="bold"?(t(),s("g",p0,h0)):a.value==="duotone"?(t(),s("g",v0,f0)):a.value==="fill"?(t(),s("g",H0,_0)):a.value==="light"?(t(),s("g",k0,$0)):a.value==="regular"?(t(),s("g",M0,S0)):a.value==="thin"?(t(),s("g",A0,C0)):h("",!0)],16,c0))}}),P0={class:"sidebar-content"},x0={class:"section"},z0=["onClick"],N0={class:"item-title"},B0=Z({__name:"Sidebar",props:{runnerData:{},open:{type:Boolean},currentPath:{},loading:{}},emits:["selectRuntime","closeSidebar"],setup(i,{emit:o}){const d=i,c=window.innerWidth<760,v=a=>{p(a.id)||(o("selectRuntime",a),c&&o("closeSidebar"))},p=a=>a===d.currentPath;return(a,m)=>{var l;return t(),s("div",{class:$(["sidebar",{open:a.open}])},[r("div",P0,[r("div",x0,[(t(!0),s(z,null,N(((l=a.runnerData)==null?void 0:l.sidebar)||[],n=>(t(),s("div",{key:n.id,class:$(["item",{active:p(n.path),disabled:a.loading===n.id}]),onClick:e=>v(n)},[(t(),H(B(u(P)(n.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),r("div",N0,k(n.name),1),a.loading===n.id?(t(),H(u(x),{key:0})):h("",!0)],10,z0))),128))])])],2)}}});const I0=V(B0,[["__scopeId","data-v-46d7eca7"]]),E0={class:"left-side"},R0={key:1,class:"brand"},U0=["src"],F0={class:"right-side"},T0={style:{display:"flex","flex-direction":"column",gap:"10px"}},W0={style:{display:"flex",gap:"5px"}},j0={style:{display:"flex",gap:"5px"}},q0=Z({__name:"PlayerNavbar",props:{mainColor:{},currentPath:{},hideLogin:{type:Boolean},emailPlaceholder:{},loading:{},runnerData:{}},emits:["navigate","login-click","logout-click"],setup(i,{emit:o}){const d=i,c=I({openSidebar:!1}),v=L(),p=g(()=>{var l;return(l=v.email)!=null?l:d.emailPlaceholder}),a=g(()=>{const l=d.runnerData.sidebar;return l&&l.length>0}),m=()=>{v.removeJWT(),D(),o("logout-click")};return(l,n)=>(t(),s("header",{class:$(["navbar",a.value&&"background"])},[r("div",E0,[a.value?(t(),H(u(u0),{key:0,class:"sidebar-menu-icon",onClick:n[0]||(n[0]=e=>c.openSidebar=!c.openSidebar)})):h("",!0),l.runnerData.logoUrl||l.runnerData.brandName?(t(),s("div",R0,[l.runnerData.logoUrl?(t(),s("img",{key:0,src:l.runnerData.logoUrl,class:"logo-image"},null,8,U0)):h("",!0),l.runnerData.brandName?(t(),H(u(M),{key:1,class:"brand-name",ellipsis:""},{default:f(()=>[b(k(l.runnerData.brandName),1)]),_:1})):h("",!0)])):h("",!0)]),r("div",F0,[p.value?(t(),H(u(R),{key:0,placement:"bottomRight"},{content:f(()=>[r("div",T0,[_(u(M),{size:"small",type:"secondary"},{default:f(()=>[b(k(p.value),1)]),_:1}),_(u(w),{type:"text",onClick:m},{default:f(()=>[r("div",W0,[_(u(U),{size:"20"}),b(" Logout ")])]),_:1})])]),default:f(()=>[_(u(F),{shape:"square",size:"small",style:E({backgroundColor:l.mainColor})},{default:f(()=>[b(k(p.value[0].toUpperCase()),1)]),_:1},8,["style"])]),_:1})):l.hideLogin?h("",!0):(t(),H(u(w),{key:1,type:"text",onClick:n[1]||(n[1]=e=>o("login-click"))},{default:f(()=>[r("div",j0,[b(" Login "),_(u(D0),{size:"20"})])]),_:1}))]),a.value?(t(),H(I0,{key:0,"current-path":l.currentPath,"runner-data":d.runnerData,open:c.openSidebar,loading:d.loading,onSelectRuntime:n[2]||(n[2]=e=>o("navigate",e)),onCloseSidebar:n[3]||(n[3]=e=>c.openSidebar=!1)},null,8,["current-path","runner-data","open","loading"])):h("",!0)],2))}});const ee=V(q0,[["__scopeId","data-v-d968144d"]]);export{ee as P}; +//# sourceMappingURL=PlayerNavbar.8e419fbd.js.map diff --git a/abstra_statics/dist/assets/PreferencesEditor.6e9e36a8.js b/abstra_statics/dist/assets/PreferencesEditor.4d180162.js similarity index 98% rename from abstra_statics/dist/assets/PreferencesEditor.6e9e36a8.js rename to abstra_statics/dist/assets/PreferencesEditor.4d180162.js index fe4f858d71..efd6b8b059 100644 --- a/abstra_statics/dist/assets/PreferencesEditor.6e9e36a8.js +++ b/abstra_statics/dist/assets/PreferencesEditor.4d180162.js @@ -1,6 +1,6 @@ -import{d as v,D as x,f as b,o as c,Y as y,$ as H,S as w,e8 as ie,a as f,b as d,w as g,aG as B,u,dd as G,aS as T,eb as R,c as m,ec as he,a0 as K,e as P,E as le,X as pe,ah as se,Z as ue,el as U,e9 as W,a_ as me,eP as ge,r as O,cU as D,aB as z,eQ as Se,cz as M,bL as E,cy as fe,dh as _,cF as ee}from"./index.8c3f27aa.js";import"./editor.e7656461.js";import{W as ye}from"./workspaces.7bc437a6.js";import{P as ve}from"./PlayerNavbar.dddcfb4f.js";import{W as be}from"./PlayerConfigProvider.4d4af7bc.js";import{_ as ae}from"./AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js";import{C as ke}from"./ContentLayout.60e2d770.js";import{L as Ce}from"./LoadingContainer.e327afe8.js";import{S as we}from"./SaveButton.f2d9e5cc.js";import{m as te}from"./workspaceStore.a6063d10.js";import{a as Ae}from"./asyncComputed.cfc0cdaf.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./record.a6861841.js";import"./metadata.2beed20a.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./LoadingOutlined.7a2941f5.js";import"./PhSignOut.vue.266bb925.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";import"./index.73b06b4b.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="a983e821-efc1-4f55-a50b-1bc63dcca1ba",e._sentryDebugIdIdentifier="sentry-dbid-a983e821-efc1-4f55-a50b-1bc63dcca1ba")}catch{}})();const Ne=["width","height","fill","transform"],Me={key:0},xe=f("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"},null,-1),Be=[xe],Oe={key:1},Fe=f("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),Le=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Pe=[Fe,Le],$e={key:2},Te=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),He=[Te],Re={key:3},_e=f("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"},null,-1),Ee=[_e],De={key:4},Ge=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Ie=[Ge],Ke={key:5},Ue=f("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"},null,-1),We=[Ue],ze={name:"PhEye"},oe=v({...ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),r=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),n=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:r}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[H(p.$slots,"default"),n.value==="bold"?(c(),y("g",Me,Be)):n.value==="duotone"?(c(),y("g",Oe,Pe)):n.value==="fill"?(c(),y("g",$e,He)):n.value==="light"?(c(),y("g",Re,Ee)):n.value==="regular"?(c(),y("g",De,Ie)):n.value==="thin"?(c(),y("g",Ke,We)):w("",!0)],16,Ne))}}),Ze=["width","height","fill","transform"],Ve={key:0},je=f("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),qe=[je],Ye={key:1},Je=f("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Xe=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),Qe=[Je,Xe],ea={key:2},aa=f("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),ta=[aa],oa={key:3},ra=f("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),na=[ra],ia={key:4},la=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),sa=[la],ua={key:5},da=f("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),ca=[da],ha={name:"PhXCircle"},pa=v({...ha,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),r=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),n=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:r}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[H(p.$slots,"default"),n.value==="bold"?(c(),y("g",Ve,qe)):n.value==="duotone"?(c(),y("g",Ye,Qe)):n.value==="fill"?(c(),y("g",ea,ta)):n.value==="light"?(c(),y("g",oa,na)):n.value==="regular"?(c(),y("g",ia,sa)):n.value==="thin"?(c(),y("g",ua,ca)):w("",!0)],16,Ze))}}),ma=[{type:"text-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,mask:null,disabled:!1,errors:[]},{type:"email-input",key:null,label:"Insert your email",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,invalidEmailMessage:"i18n_error_invalid_email",disabled:!1,errors:[]},{type:"phone-input",key:null,label:"Insert a phone number.",value:{countryCode:"",nationalNumber:""},placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[],invalidMessage:"i18n_error_invalid_phone_number"},{type:"number-input",key:null,label:"Number",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"date-input",key:null,hint:null,label:"Pick a date of your preference.",value:"",required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"time-input",key:null,label:"Choose the desired time.",format:"24hs",hint:null,value:{hour:0,minute:0},required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"cnpj-input",key:null,label:"Insert your CNPJ here!",value:"",placeholder:"00.000.000/0001-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cnpj",errors:[]},{type:"cpf-input",key:null,label:"Insert your CPF here!",value:"",placeholder:"000.000.000-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cpf",errors:[]},{type:"tag-input",key:null,label:"Insert the desired tags.",value:[],placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"dropdown-input",key:null,label:"",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,placeholder:"",value:[],required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"currency-input",key:null,label:"Insert the proper amount.",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,currency:"USD",disabled:!1,errors:[]},{type:"textarea-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"rich-text-input",key:null,label:"Insert your rich text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"code-input",key:null,label:"Send your code here!",value:"",language:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"click-input",key:null,label:"Click here!",hint:null,disabled:!1,fullWidth:!1,errors:[]},{type:"progress-output",current:50,total:100,text:"",fullWidth:!1},{type:"file-input",key:null,hint:null,label:"Upload a file.",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"image-input",key:null,hint:null,label:"Upload",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"video-input",key:null,hint:null,label:"Upload your video",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"pandas-row-selection-input",key:null,hint:null,table:{schema:{fields:[{name:"index",type:"integer"},{name:"change the",type:"integer"},{name:"df property",type:"integer"}],primaryKey:["index"],pandas_version:"0.20.0"},data:[{index:0,"change the":1,"df property":4},{index:1,"change the":2,"df property":5},{index:2,"change the":3,"df property":6}]},required:!0,fullWidth:!1,displayIndex:!1,disabled:!1,label:"",multiple:!1,filterable:!1,value:[],errors:[]},{type:"plotly-output",figure:{data:[{coloraxis:"coloraxis",hovertemplate:"total_bill=%{x}
tip=%{y}
count=%{z}",name:"",x:[16.99,10.34,21.01,23.68,24.59,25.29,8.77,26.88,15.04,14.78,10.27,35.26,15.42,18.43,14.83,21.58,10.33,16.29,16.97,20.65,17.92,20.29,15.77,39.42,19.82,17.81,13.37,12.69,21.7,19.65,9.55,18.35,15.06,20.69,17.78,24.06,16.31,16.93,18.69,31.27,16.04,17.46,13.94,9.68,30.4,18.29,22.23,32.4,28.55,18.04,12.54,10.29,34.81,9.94,25.56,19.49,38.01,26.41,11.24,48.27,20.29,13.81,11.02,18.29,17.59,20.08,16.45,3.07,20.23,15.01,12.02,17.07,26.86,25.28,14.73,10.51,17.92,27.2,22.76,17.29,19.44,16.66,10.07,32.68,15.98,34.83,13.03,18.28,24.71,21.16,28.97,22.49,5.75,16.32,22.75,40.17,27.28,12.03,21.01,12.46,11.35,15.38,44.3,22.42,20.92,15.36,20.49,25.21,18.24,14.31,14,7.25,38.07,23.95,25.71,17.31,29.93,10.65,12.43,24.08,11.69,13.42,14.26,15.95,12.48,29.8,8.52,14.52,11.38,22.82,19.08,20.27,11.17,12.26,18.26,8.51,10.33,14.15,16,13.16,17.47,34.3,41.19,27.05,16.43,8.35,18.64,11.87,9.78,7.51,14.07,13.13,17.26,24.55,19.77,29.85,48.17,25,13.39,16.49,21.5,12.66,16.21,13.81,17.51,24.52,20.76,31.71,10.59,10.63,50.81,15.81,7.25,31.85,16.82,32.9,17.89,14.48,9.6,34.63,34.65,23.33,45.35,23.17,40.55,20.69,20.9,30.46,18.15,23.1,15.69,19.81,28.44,15.48,16.58,7.56,10.34,43.11,13,13.51,18.71,12.74,13,16.4,20.53,16.47,26.59,38.73,24.27,12.76,30.06,25.89,48.33,13.27,28.17,12.9,28.15,11.59,7.74,30.14,12.16,13.42,8.58,15.98,13.42,16.27,10.09,20.45,13.28,22.12,24.01,15.69,11.61,10.77,15.53,10.07,12.6,32.83,35.83,29.03,27.18,22.67,17.82,18.78],xaxis:"x",xbingroup:"x",y:[1.01,1.66,3.5,3.31,3.61,4.71,2,3.12,1.96,3.23,1.71,5,1.57,3,3.02,3.92,1.67,3.71,3.5,3.35,4.08,2.75,2.23,7.58,3.18,2.34,2,2,4.3,3,1.45,2.5,3,2.45,3.27,3.6,2,3.07,2.31,5,2.24,2.54,3.06,1.32,5.6,3,5,6,2.05,3,2.5,2.6,5.2,1.56,4.34,3.51,3,1.5,1.76,6.73,3.21,2,1.98,3.76,2.64,3.15,2.47,1,2.01,2.09,1.97,3,3.14,5,2.2,1.25,3.08,4,3,2.71,3,3.4,1.83,5,2.03,5.17,2,4,5.85,3,3,3.5,1,4.3,3.25,4.73,4,1.5,3,1.5,2.5,3,2.5,3.48,4.08,1.64,4.06,4.29,3.76,4,3,1,4,2.55,4,3.5,5.07,1.5,1.8,2.92,2.31,1.68,2.5,2,2.52,4.2,1.48,2,2,2.18,1.5,2.83,1.5,2,3.25,1.25,2,2,2,2.75,3.5,6.7,5,5,2.3,1.5,1.36,1.63,1.73,2,2.5,2,2.74,2,2,5.14,5,3.75,2.61,2,3.5,2.5,2,2,3,3.48,2.24,4.5,1.61,2,10,3.16,5.15,3.18,4,3.11,2,2,4,3.55,3.68,5.65,3.5,6.5,3,5,3.5,2,3.5,4,1.5,4.19,2.56,2.02,4,1.44,2,5,2,2,4,2.01,2,2.5,4,3.23,3.41,3,2.03,2.23,2,5.16,9,2.5,6.5,1.1,3,1.5,1.44,3.09,2.2,3.48,1.92,3,1.58,2.5,2,3,2.72,2.88,2,3,3.39,1.47,3,1.25,1,1.17,4.67,5.92,2,2,1.75,3],yaxis:"y",ybingroup:"y",type:"histogram2d"}],layout:{template:{data:{histogram2dcontour:[{type:"histogram2dcontour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],choropleth:[{type:"choropleth",colorbar:{outlinewidth:0,ticks:""}}],histogram2d:[{type:"histogram2d",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmap:[{type:"heatmap",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmapgl:[{type:"heatmapgl",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],contourcarpet:[{type:"contourcarpet",colorbar:{outlinewidth:0,ticks:""}}],contour:[{type:"contour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],surface:[{type:"surface",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],mesh3d:[{type:"mesh3d",colorbar:{outlinewidth:0,ticks:""}}],scatter:[{fillpattern:{fillmode:"overlay",size:10,solidity:.2},type:"scatter"}],parcoords:[{type:"parcoords",line:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolargl:[{type:"scatterpolargl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],bar:[{error_x:{color:"#2a3f5f"},error_y:{color:"#2a3f5f"},marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],scattergeo:[{type:"scattergeo",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolar:[{type:"scatterpolar",marker:{colorbar:{outlinewidth:0,ticks:""}}}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],scattergl:[{type:"scattergl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatter3d:[{type:"scatter3d",line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattermapbox:[{type:"scattermapbox",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterternary:[{type:"scatterternary",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattercarpet:[{type:"scattercarpet",marker:{colorbar:{outlinewidth:0,ticks:""}}}],carpet:[{aaxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},baxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},type:"carpet"}],table:[{cells:{fill:{color:"#EBF0F8"},line:{color:"white"}},header:{fill:{color:"#C8D4E3"},line:{color:"white"}},type:"table"}],barpolar:[{marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],pie:[{automargin:!0,type:"pie"}]},layout:{autotypenumbers:"strict",colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#2a3f5f"},hovermode:"closest",hoverlabel:{align:"left"},paper_bgcolor:"white",plot_bgcolor:"#E5ECF6",polar:{bgcolor:"#E5ECF6",angularaxis:{gridcolor:"white",linecolor:"white",ticks:""},radialaxis:{gridcolor:"white",linecolor:"white",ticks:""}},ternary:{bgcolor:"#E5ECF6",aaxis:{gridcolor:"white",linecolor:"white",ticks:""},baxis:{gridcolor:"white",linecolor:"white",ticks:""},caxis:{gridcolor:"white",linecolor:"white",ticks:""}},coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]]},xaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},yaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},scene:{xaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},yaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},zaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2}},shapedefaults:{line:{color:"#2a3f5f"}},annotationdefaults:{arrowcolor:"#2a3f5f",arrowhead:0,arrowwidth:1},geo:{bgcolor:"white",landcolor:"#E5ECF6",subunitcolor:"white",showland:!0,showlakes:!0,lakecolor:"white"},title:{x:.05},mapbox:{style:"light"}}},xaxis:{anchor:"y",domain:[0,1],title:{text:"total_bill"}},yaxis:{anchor:"x",domain:[0,1],title:{text:"tip"}},coloraxis:{colorbar:{title:{text:"count"}},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},legend:{tracegroupgap:0},margin:{t:60}}},fullWidth:!1,label:""},{type:"toggle-input",key:null,label:"Click to confirm the following options",onText:"Yes",offText:"No",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"nps-input",key:null,label:"Rate us!",min:0,max:10,minHint:"Not at all likely",maxHint:"Extremely likely",value:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"checkbox-input",key:null,label:"Choose your option",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"cards-input",key:null,label:"Card Title",hint:null,options:[{title:"Option 1",subtitle:"Subtitle 1",image:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",description:"option 1 description",topLeftExtra:"Left 1",topRightExtra:"Right 1"}],multiple:!1,searchable:!1,value:[],required:!0,columns:2,fullWidth:!1,layout:"list",disabled:!1,errors:[]},{type:"checklist-input",key:null,options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],label:"Choose your option",value:[],required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"multiple-choice-input",key:null,label:"Select your choices",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,value:[],required:!0,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"rating-input",key:null,label:"Rate us!",value:0,required:!0,hint:null,fullWidth:!1,max:null,char:"\u2B50\uFE0F",disabled:!1,errors:[]},{type:"number-slider-input",key:null,label:"Select a value!",value:0,required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"text-output",text:"Your text here!",size:"medium",fullWidth:!1},{type:"latex-output",text:"\\(x^2 + y^2 = z^2\\)",fullWidth:!1},{type:"link-output",linkText:"Click here",linkUrl:"https://www.abstracloud.com",sameTab:!1,fullWidth:!1},{type:"html-output",html:"
Hello World
",fullWidth:!1},{type:"custom-input",key:null,label:"",value:null,htmlBody:"

Hello World

",htmlHead:"",css:"",js:"",fullWidth:!1},{type:"markdown-output",text:"### Hello World",fullWidth:!1},{type:"image-output",imageUrl:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",subtitle:"",fullWidth:!1,label:""},{type:"file-output",fileUrl:"https://gist.github.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6/archive/92200bc0a673d5ce2110aaad4544ed6c4010f687.zip",downloadText:"Download",fullWidth:!1},{type:"kanban-board-input",key:null,label:"",value:[],stages:[{key:"To-Do",label:"To-Do"},{key:"Doing",label:"Doing"},{key:"Done",label:"Done"}],disabled:!1,errors:[]},{type:"appointment-input",label:"",slots:[["2024-10-01T:09:00:00Z","2024-10-01T:09:45:00Z"],["2024-10-01T:14:30:00Z","2024-10-01T:15:30:00Z"],["2024-10-02T:09:00:00Z","2024-10-01T:10:00:00Z"]],value:1,key:null,disabled:!1}],ga={class:"sidebar-preview"},Sa={class:"form widgets"},fa={class:"form-wrapper"},ya=v({__name:"WorkspacePreview",props:{workspace:{}},setup(e){const a=e,t=b(()=>a.workspace.makeRunnerData());return(r,o)=>(c(),y("div",ga,[d(u(G),{level:4},{default:g(()=>[B("Preview")]),_:1}),d(be,{background:t.value.theme,"main-color":t.value.mainColor,"font-family":t.value.fontFamily,locale:t.value.language,class:"sidebar-frame"},{default:g(()=>[d(ve,{"runner-data":t.value,"current-path":"mock-path","email-placeholder":"user@example.com"},null,8,["runner-data"]),f("div",Sa,[f("div",fa,[(c(!0),y(T,null,R(u(ma),i=>(c(),y("div",{key:i.type,class:"widget"},[(c(),m(he(i.type),{"user-props":i,value:i.value,errors:[]},null,8,["user-props","value"]))]))),128))])])]),_:1},8,["background","main-color","font-family","locale"])]))}});const va=K(ya,[["__scopeId","data-v-6e53d5ce"]]),ba={class:"header-content"},ka={class:"body"},Ca={class:"body-content"},wa=v({__name:"PopOver",emits:["open","hide"],setup(e,{expose:a,emit:t}){const r=P(null),o=le({visible:!1,originX:0,originY:0,dragging:null}),i=b(()=>({visibility:o.visible?"visible":"hidden",top:`${o.originY}px`,left:`${o.originX}px`}));pe(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",k)}),se(()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mousemove",k)});const n=()=>{o.visible=!1,t("hide")},s=S=>S>window.innerWidth/2,l=S=>{var A;if(o.visible=!0,!r.value)return;const C=(A=r==null?void 0:r.value)==null?void 0:A.getBoundingClientRect();if(S)if(s(S.clientX)?o.originX=S.clientX-C.width-32:o.originX=S.clientX+C.width+32,S.clientY+C.height>window.innerHeight){const ce=S.clientY+C.height-window.innerHeight;o.originY=S.clientY-ce-32}else o.originY=S.clientY;else o.originX=(window.innerWidth-C.width)/2,o.originY=(window.innerHeight-C.height)/2},h=S=>{o.dragging={initialX:o.originX,initialY:o.originY,clientX:S.clientX,clientY:S.clientY}},p=S=>{o.dragging&&(o.originX=o.dragging.initialX+S.clientX-o.dragging.clientX,o.originY=o.dragging.initialY+S.clientY-o.dragging.clientY)},k=()=>{o.dragging=null};return a({open:l}),(S,C)=>(c(),y("div",{ref_key:"popover",ref:r,class:"pop-over",style:ue(i.value)},[f("div",{class:"header",onMousedown:h},[f("span",ba,[H(S.$slots,"header",{},void 0,!0)]),d(u(pa),{class:"icon",onClick:n})],32),f("div",ka,[f("div",Ca,[H(S.$slots,"body",{},void 0,!0)])])],4))}});const Aa=K(wa,[["__scopeId","data-v-d5a71854"]]);/*! +import{d as v,D as x,f as b,o as c,Y as y,$ as H,S as w,e8 as ie,a as f,b as d,w as g,aG as B,u,dd as G,aS as T,eb as R,c as m,ec as he,a0 as K,e as P,E as le,X as pe,ah as se,Z as ue,el as U,e9 as W,a_ as me,eP as ge,r as O,cU as D,aB as z,eQ as Se,cz as M,bL as E,cy as fe,dh as _,cF as ee}from"./index.d0f12294.js";import"./editor.95f16260.js";import{W as ye}from"./workspaces.e43325e2.js";import{P as ve}from"./PlayerNavbar.8e419fbd.js";import{W as be}from"./PlayerConfigProvider.e5e86f58.js";import{_ as ae}from"./AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js";import{C as ke}from"./ContentLayout.f92ff80c.js";import{L as Ce}from"./LoadingContainer.23bc0e74.js";import{S as we}from"./SaveButton.a02cacb0.js";import{m as te}from"./workspaceStore.e47060bf.js";import{a as Ae}from"./asyncComputed.703c33fd.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./record.8c284c67.js";import"./metadata.bc77f4b9.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./LoadingOutlined.bcfc8c20.js";import"./PhSignOut.vue.6dacf893.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";import"./index.c7e8afe7.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ba43fec3-a1ab-4d62-97f4-f98cbc1a144f",e._sentryDebugIdIdentifier="sentry-dbid-ba43fec3-a1ab-4d62-97f4-f98cbc1a144f")}catch{}})();const Ne=["width","height","fill","transform"],Me={key:0},xe=f("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"},null,-1),Be=[xe],Oe={key:1},Fe=f("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),Le=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Pe=[Fe,Le],$e={key:2},Te=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),He=[Te],Re={key:3},_e=f("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"},null,-1),Ee=[_e],De={key:4},Ge=f("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1),Ie=[Ge],Ke={key:5},Ue=f("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"},null,-1),We=[Ue],ze={name:"PhEye"},oe=v({...ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),r=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),n=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:r}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[H(p.$slots,"default"),n.value==="bold"?(c(),y("g",Me,Be)):n.value==="duotone"?(c(),y("g",Oe,Pe)):n.value==="fill"?(c(),y("g",$e,He)):n.value==="light"?(c(),y("g",Re,Ee)):n.value==="regular"?(c(),y("g",De,Ie)):n.value==="thin"?(c(),y("g",Ke,We)):w("",!0)],16,Ne))}}),Ze=["width","height","fill","transform"],Ve={key:0},je=f("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),qe=[je],Ye={key:1},Je=f("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Xe=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),Qe=[Je,Xe],ea={key:2},aa=f("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),ta=[aa],oa={key:3},ra=f("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),na=[ra],ia={key:4},la=f("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),sa=[la],ua={key:5},da=f("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),ca=[da],ha={name:"PhXCircle"},pa=v({...ha,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const a=e,t=x("weight","regular"),r=x("size","1em"),o=x("color","currentColor"),i=x("mirrored",!1),n=b(()=>{var p;return(p=a.weight)!=null?p:t}),s=b(()=>{var p;return(p=a.size)!=null?p:r}),l=b(()=>{var p;return(p=a.color)!=null?p:o}),h=b(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(p,k)=>(c(),y("svg",ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:h.value},p.$attrs),[H(p.$slots,"default"),n.value==="bold"?(c(),y("g",Ve,qe)):n.value==="duotone"?(c(),y("g",Ye,Qe)):n.value==="fill"?(c(),y("g",ea,ta)):n.value==="light"?(c(),y("g",oa,na)):n.value==="regular"?(c(),y("g",ia,sa)):n.value==="thin"?(c(),y("g",ua,ca)):w("",!0)],16,Ze))}}),ma=[{type:"text-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,mask:null,disabled:!1,errors:[]},{type:"email-input",key:null,label:"Insert your email",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,invalidEmailMessage:"i18n_error_invalid_email",disabled:!1,errors:[]},{type:"phone-input",key:null,label:"Insert a phone number.",value:{countryCode:"",nationalNumber:""},placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[],invalidMessage:"i18n_error_invalid_phone_number"},{type:"number-input",key:null,label:"Number",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"date-input",key:null,hint:null,label:"Pick a date of your preference.",value:"",required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"time-input",key:null,label:"Choose the desired time.",format:"24hs",hint:null,value:{hour:0,minute:0},required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"cnpj-input",key:null,label:"Insert your CNPJ here!",value:"",placeholder:"00.000.000/0001-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cnpj",errors:[]},{type:"cpf-input",key:null,label:"Insert your CPF here!",value:"",placeholder:"000.000.000-00",required:!0,hint:null,fullWidth:!1,disabled:!1,invalidMessage:"i18n_error_invalid_cpf",errors:[]},{type:"tag-input",key:null,label:"Insert the desired tags.",value:[],placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"dropdown-input",key:null,label:"",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,placeholder:"",value:[],required:!0,fullWidth:!1,disabled:!1,errors:[]},{type:"currency-input",key:null,label:"Insert the proper amount.",value:null,placeholder:"",required:!0,hint:null,fullWidth:!1,min:null,max:null,currency:"USD",disabled:!1,errors:[]},{type:"textarea-input",key:null,label:"Insert your text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"rich-text-input",key:null,label:"Insert your rich text here!",value:"",placeholder:"",required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"code-input",key:null,label:"Send your code here!",value:"",language:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"click-input",key:null,label:"Click here!",hint:null,disabled:!1,fullWidth:!1,errors:[]},{type:"progress-output",current:50,total:100,text:"",fullWidth:!1},{type:"file-input",key:null,hint:null,label:"Upload a file.",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"image-input",key:null,hint:null,label:"Upload",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"video-input",key:null,hint:null,label:"Upload your video",value:[],required:!0,multiple:!1,fullWidth:!1,disabled:!1,maxFileSize:null,errors:[]},{type:"pandas-row-selection-input",key:null,hint:null,table:{schema:{fields:[{name:"index",type:"integer"},{name:"change the",type:"integer"},{name:"df property",type:"integer"}],primaryKey:["index"],pandas_version:"0.20.0"},data:[{index:0,"change the":1,"df property":4},{index:1,"change the":2,"df property":5},{index:2,"change the":3,"df property":6}]},required:!0,fullWidth:!1,displayIndex:!1,disabled:!1,label:"",multiple:!1,filterable:!1,value:[],errors:[]},{type:"plotly-output",figure:{data:[{coloraxis:"coloraxis",hovertemplate:"total_bill=%{x}
tip=%{y}
count=%{z}",name:"",x:[16.99,10.34,21.01,23.68,24.59,25.29,8.77,26.88,15.04,14.78,10.27,35.26,15.42,18.43,14.83,21.58,10.33,16.29,16.97,20.65,17.92,20.29,15.77,39.42,19.82,17.81,13.37,12.69,21.7,19.65,9.55,18.35,15.06,20.69,17.78,24.06,16.31,16.93,18.69,31.27,16.04,17.46,13.94,9.68,30.4,18.29,22.23,32.4,28.55,18.04,12.54,10.29,34.81,9.94,25.56,19.49,38.01,26.41,11.24,48.27,20.29,13.81,11.02,18.29,17.59,20.08,16.45,3.07,20.23,15.01,12.02,17.07,26.86,25.28,14.73,10.51,17.92,27.2,22.76,17.29,19.44,16.66,10.07,32.68,15.98,34.83,13.03,18.28,24.71,21.16,28.97,22.49,5.75,16.32,22.75,40.17,27.28,12.03,21.01,12.46,11.35,15.38,44.3,22.42,20.92,15.36,20.49,25.21,18.24,14.31,14,7.25,38.07,23.95,25.71,17.31,29.93,10.65,12.43,24.08,11.69,13.42,14.26,15.95,12.48,29.8,8.52,14.52,11.38,22.82,19.08,20.27,11.17,12.26,18.26,8.51,10.33,14.15,16,13.16,17.47,34.3,41.19,27.05,16.43,8.35,18.64,11.87,9.78,7.51,14.07,13.13,17.26,24.55,19.77,29.85,48.17,25,13.39,16.49,21.5,12.66,16.21,13.81,17.51,24.52,20.76,31.71,10.59,10.63,50.81,15.81,7.25,31.85,16.82,32.9,17.89,14.48,9.6,34.63,34.65,23.33,45.35,23.17,40.55,20.69,20.9,30.46,18.15,23.1,15.69,19.81,28.44,15.48,16.58,7.56,10.34,43.11,13,13.51,18.71,12.74,13,16.4,20.53,16.47,26.59,38.73,24.27,12.76,30.06,25.89,48.33,13.27,28.17,12.9,28.15,11.59,7.74,30.14,12.16,13.42,8.58,15.98,13.42,16.27,10.09,20.45,13.28,22.12,24.01,15.69,11.61,10.77,15.53,10.07,12.6,32.83,35.83,29.03,27.18,22.67,17.82,18.78],xaxis:"x",xbingroup:"x",y:[1.01,1.66,3.5,3.31,3.61,4.71,2,3.12,1.96,3.23,1.71,5,1.57,3,3.02,3.92,1.67,3.71,3.5,3.35,4.08,2.75,2.23,7.58,3.18,2.34,2,2,4.3,3,1.45,2.5,3,2.45,3.27,3.6,2,3.07,2.31,5,2.24,2.54,3.06,1.32,5.6,3,5,6,2.05,3,2.5,2.6,5.2,1.56,4.34,3.51,3,1.5,1.76,6.73,3.21,2,1.98,3.76,2.64,3.15,2.47,1,2.01,2.09,1.97,3,3.14,5,2.2,1.25,3.08,4,3,2.71,3,3.4,1.83,5,2.03,5.17,2,4,5.85,3,3,3.5,1,4.3,3.25,4.73,4,1.5,3,1.5,2.5,3,2.5,3.48,4.08,1.64,4.06,4.29,3.76,4,3,1,4,2.55,4,3.5,5.07,1.5,1.8,2.92,2.31,1.68,2.5,2,2.52,4.2,1.48,2,2,2.18,1.5,2.83,1.5,2,3.25,1.25,2,2,2,2.75,3.5,6.7,5,5,2.3,1.5,1.36,1.63,1.73,2,2.5,2,2.74,2,2,5.14,5,3.75,2.61,2,3.5,2.5,2,2,3,3.48,2.24,4.5,1.61,2,10,3.16,5.15,3.18,4,3.11,2,2,4,3.55,3.68,5.65,3.5,6.5,3,5,3.5,2,3.5,4,1.5,4.19,2.56,2.02,4,1.44,2,5,2,2,4,2.01,2,2.5,4,3.23,3.41,3,2.03,2.23,2,5.16,9,2.5,6.5,1.1,3,1.5,1.44,3.09,2.2,3.48,1.92,3,1.58,2.5,2,3,2.72,2.88,2,3,3.39,1.47,3,1.25,1,1.17,4.67,5.92,2,2,1.75,3],yaxis:"y",ybingroup:"y",type:"histogram2d"}],layout:{template:{data:{histogram2dcontour:[{type:"histogram2dcontour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],choropleth:[{type:"choropleth",colorbar:{outlinewidth:0,ticks:""}}],histogram2d:[{type:"histogram2d",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmap:[{type:"heatmap",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],heatmapgl:[{type:"heatmapgl",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],contourcarpet:[{type:"contourcarpet",colorbar:{outlinewidth:0,ticks:""}}],contour:[{type:"contour",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],surface:[{type:"surface",colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]}],mesh3d:[{type:"mesh3d",colorbar:{outlinewidth:0,ticks:""}}],scatter:[{fillpattern:{fillmode:"overlay",size:10,solidity:.2},type:"scatter"}],parcoords:[{type:"parcoords",line:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolargl:[{type:"scatterpolargl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],bar:[{error_x:{color:"#2a3f5f"},error_y:{color:"#2a3f5f"},marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],scattergeo:[{type:"scattergeo",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterpolar:[{type:"scatterpolar",marker:{colorbar:{outlinewidth:0,ticks:""}}}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],scattergl:[{type:"scattergl",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatter3d:[{type:"scatter3d",line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattermapbox:[{type:"scattermapbox",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scatterternary:[{type:"scatterternary",marker:{colorbar:{outlinewidth:0,ticks:""}}}],scattercarpet:[{type:"scattercarpet",marker:{colorbar:{outlinewidth:0,ticks:""}}}],carpet:[{aaxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},baxis:{endlinecolor:"#2a3f5f",gridcolor:"white",linecolor:"white",minorgridcolor:"white",startlinecolor:"#2a3f5f"},type:"carpet"}],table:[{cells:{fill:{color:"#EBF0F8"},line:{color:"white"}},header:{fill:{color:"#C8D4E3"},line:{color:"white"}},type:"table"}],barpolar:[{marker:{line:{color:"#E5ECF6",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],pie:[{automargin:!0,type:"pie"}]},layout:{autotypenumbers:"strict",colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#2a3f5f"},hovermode:"closest",hoverlabel:{align:"left"},paper_bgcolor:"white",plot_bgcolor:"#E5ECF6",polar:{bgcolor:"#E5ECF6",angularaxis:{gridcolor:"white",linecolor:"white",ticks:""},radialaxis:{gridcolor:"white",linecolor:"white",ticks:""}},ternary:{bgcolor:"#E5ECF6",aaxis:{gridcolor:"white",linecolor:"white",ticks:""},baxis:{gridcolor:"white",linecolor:"white",ticks:""},caxis:{gridcolor:"white",linecolor:"white",ticks:""}},coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]]},xaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},yaxis:{gridcolor:"white",linecolor:"white",ticks:"",title:{standoff:15},zerolinecolor:"white",automargin:!0,zerolinewidth:2},scene:{xaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},yaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2},zaxis:{backgroundcolor:"#E5ECF6",gridcolor:"white",linecolor:"white",showbackground:!0,ticks:"",zerolinecolor:"white",gridwidth:2}},shapedefaults:{line:{color:"#2a3f5f"}},annotationdefaults:{arrowcolor:"#2a3f5f",arrowhead:0,arrowwidth:1},geo:{bgcolor:"white",landcolor:"#E5ECF6",subunitcolor:"white",showland:!0,showlakes:!0,lakecolor:"white"},title:{x:.05},mapbox:{style:"light"}}},xaxis:{anchor:"y",domain:[0,1],title:{text:"total_bill"}},yaxis:{anchor:"x",domain:[0,1],title:{text:"tip"}},coloraxis:{colorbar:{title:{text:"count"}},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},legend:{tracegroupgap:0},margin:{t:60}}},fullWidth:!1,label:""},{type:"toggle-input",key:null,label:"Click to confirm the following options",onText:"Yes",offText:"No",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"nps-input",key:null,label:"Rate us!",min:0,max:10,minHint:"Not at all likely",maxHint:"Extremely likely",value:null,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"checkbox-input",key:null,label:"Choose your option",value:!1,required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"cards-input",key:null,label:"Card Title",hint:null,options:[{title:"Option 1",subtitle:"Subtitle 1",image:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",description:"option 1 description",topLeftExtra:"Left 1",topRightExtra:"Right 1"}],multiple:!1,searchable:!1,value:[],required:!0,columns:2,fullWidth:!1,layout:"list",disabled:!1,errors:[]},{type:"checklist-input",key:null,options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],label:"Choose your option",value:[],required:!0,hint:null,fullWidth:!1,disabled:!1,errors:[]},{type:"multiple-choice-input",key:null,label:"Select your choices",options:[{label:"Option 1",value:1},{label:"Option 2",value:2}],hint:null,multiple:!1,value:[],required:!0,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"rating-input",key:null,label:"Rate us!",value:0,required:!0,hint:null,fullWidth:!1,max:null,char:"\u2B50\uFE0F",disabled:!1,errors:[]},{type:"number-slider-input",key:null,label:"Select a value!",value:0,required:!0,hint:null,fullWidth:!1,min:null,max:null,disabled:!1,errors:[]},{type:"text-output",text:"Your text here!",size:"medium",fullWidth:!1},{type:"latex-output",text:"\\(x^2 + y^2 = z^2\\)",fullWidth:!1},{type:"link-output",linkText:"Click here",linkUrl:"https://www.abstracloud.com",sameTab:!1,fullWidth:!1},{type:"html-output",html:"
Hello World
",fullWidth:!1},{type:"custom-input",key:null,label:"",value:null,htmlBody:"

Hello World

",htmlHead:"",css:"",js:"",fullWidth:!1},{type:"markdown-output",text:"### Hello World",fullWidth:!1},{type:"image-output",imageUrl:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Mona_Lisa.jpg/396px-Mona_Lisa.jpg",subtitle:"",fullWidth:!1,label:""},{type:"file-output",fileUrl:"https://gist.github.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6/archive/92200bc0a673d5ce2110aaad4544ed6c4010f687.zip",downloadText:"Download",fullWidth:!1},{type:"kanban-board-input",key:null,label:"",value:[],stages:[{key:"To-Do",label:"To-Do"},{key:"Doing",label:"Doing"},{key:"Done",label:"Done"}],disabled:!1,errors:[]},{type:"appointment-input",label:"",slots:[["2024-10-01T:09:00:00Z","2024-10-01T:09:45:00Z"],["2024-10-01T:14:30:00Z","2024-10-01T:15:30:00Z"],["2024-10-02T:09:00:00Z","2024-10-01T:10:00:00Z"]],value:1,key:null,disabled:!1}],ga={class:"sidebar-preview"},Sa={class:"form widgets"},fa={class:"form-wrapper"},ya=v({__name:"WorkspacePreview",props:{workspace:{}},setup(e){const a=e,t=b(()=>a.workspace.makeRunnerData());return(r,o)=>(c(),y("div",ga,[d(u(G),{level:4},{default:g(()=>[B("Preview")]),_:1}),d(be,{background:t.value.theme,"main-color":t.value.mainColor,"font-family":t.value.fontFamily,locale:t.value.language,class:"sidebar-frame"},{default:g(()=>[d(ve,{"runner-data":t.value,"current-path":"mock-path","email-placeholder":"user@example.com"},null,8,["runner-data"]),f("div",Sa,[f("div",fa,[(c(!0),y(T,null,R(u(ma),i=>(c(),y("div",{key:i.type,class:"widget"},[(c(),m(he(i.type),{"user-props":i,value:i.value,errors:[]},null,8,["user-props","value"]))]))),128))])])]),_:1},8,["background","main-color","font-family","locale"])]))}});const va=K(ya,[["__scopeId","data-v-6e53d5ce"]]),ba={class:"header-content"},ka={class:"body"},Ca={class:"body-content"},wa=v({__name:"PopOver",emits:["open","hide"],setup(e,{expose:a,emit:t}){const r=P(null),o=le({visible:!1,originX:0,originY:0,dragging:null}),i=b(()=>({visibility:o.visible?"visible":"hidden",top:`${o.originY}px`,left:`${o.originX}px`}));pe(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",k)}),se(()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mousemove",k)});const n=()=>{o.visible=!1,t("hide")},s=S=>S>window.innerWidth/2,l=S=>{var A;if(o.visible=!0,!r.value)return;const C=(A=r==null?void 0:r.value)==null?void 0:A.getBoundingClientRect();if(S)if(s(S.clientX)?o.originX=S.clientX-C.width-32:o.originX=S.clientX+C.width+32,S.clientY+C.height>window.innerHeight){const ce=S.clientY+C.height-window.innerHeight;o.originY=S.clientY-ce-32}else o.originY=S.clientY;else o.originX=(window.innerWidth-C.width)/2,o.originY=(window.innerHeight-C.height)/2},h=S=>{o.dragging={initialX:o.originX,initialY:o.originY,clientX:S.clientX,clientY:S.clientY}},p=S=>{o.dragging&&(o.originX=o.dragging.initialX+S.clientX-o.dragging.clientX,o.originY=o.dragging.initialY+S.clientY-o.dragging.clientY)},k=()=>{o.dragging=null};return a({open:l}),(S,C)=>(c(),y("div",{ref_key:"popover",ref:r,class:"pop-over",style:ue(i.value)},[f("div",{class:"header",onMousedown:h},[f("span",ba,[H(S.$slots,"header",{},void 0,!0)]),d(u(pa),{class:"icon",onClick:n})],32),f("div",ka,[f("div",Ca,[H(S.$slots,"body",{},void 0,!0)])])],4))}});const Aa=K(wa,[["__scopeId","data-v-d5a71854"]]);/*! * vue-color-kit v1.0.4 * (c) 2021 * @license MIT */function F(e){let a={r:0,g:0,b:0,a:1};/#/.test(e)?a=Ma(e):/rgb/.test(e)?a=re(e):typeof e=="string"?a=re(`rgba(${e})`):Object.prototype.toString.call(e)==="[object Object]"&&(a=e);const{r:t,g:r,b:o,a:i}=a,{h:n,s,v:l}=xa(a);return{r:t,g:r,b:o,a:i===void 0?1:i,h:n,s,v:l}}function Z(e){const a=document.createElement("canvas"),t=a.getContext("2d"),r=e*2;return a.width=r,a.height=r,t.fillStyle="#ffffff",t.fillRect(0,0,r,r),t.fillStyle="#ccd5db",t.fillRect(0,0,e,e),t.fillRect(e,e,e,e),a}function I(e,a,t,r,o,i){const n=e==="l",s=a.createLinearGradient(0,0,n?t:0,n?0:r);s.addColorStop(.01,o),s.addColorStop(.99,i),a.fillStyle=s,a.fillRect(0,0,t,r)}function Na({r:e,g:a,b:t},r){const o=n=>("0"+Number(n).toString(16)).slice(-2),i=`#${o(e)}${o(a)}${o(t)}`;return r?i.toUpperCase():i}function Ma(e){e=e.slice(1);const a=t=>parseInt(t,16)||0;return{r:a(e.slice(0,2)),g:a(e.slice(2,4)),b:a(e.slice(4,6))}}function re(e){return typeof e=="string"?(e=(/rgba?\((.*?)\)/.exec(e)||["","0,0,0,1"])[1].split(","),{r:Number(e[0])||0,g:Number(e[1])||0,b:Number(e[2])||0,a:Number(e[3]?e[3]:1)}):e}function xa({r:e,g:a,b:t}){e=e/255,a=a/255,t=t/255;const r=Math.max(e,a,t),o=Math.min(e,a,t),i=r-o;let n=0;r===o?n=0:r===e?a>=t?n=60*(a-t)/i:n=60*(a-t)/i+360:r===a?n=60*(t-e)/i+120:r===t&&(n=60*(e-a)/i+240),n=Math.floor(n);let s=parseFloat((r===0?0:1-o/r).toFixed(2)),l=parseFloat(r.toFixed(2));return{h:n,s,v:l}}var V=v({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasSaturation,a=this.size,t=e.getContext("2d");e.width=a,e.height=a,t.fillStyle=this.color,t.fillRect(0,0,a,a),I("l",t,a,a,"#FFFFFF","rgba(255,255,255,0)"),I("p",t,a,a,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(e){const{top:a,left:t}=this.$el.getBoundingClientRect(),r=e.target.getContext("2d"),o=n=>{let s=n.clientX-t,l=n.clientY-a;s<0&&(s=0),l<0&&(l=0),s>this.size&&(s=this.size),l>this.size&&(l=this.size),this.slideSaturationStyle={left:s-5+"px",top:l-5+"px"};const h=r.getImageData(Math.min(s,this.size-1),Math.min(l,this.size-1),1,1),[p,k,S]=h.data;this.$emit("selectSaturation",{r:p,g:k,b:S})};o(e);const i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}}});const Ba={ref:"canvasSaturation"};function Oa(e,a,t,r,o,i){return c(),m("div",{class:"saturation",onMousedown:a[1]||(a[1]=U((...n)=>e.selectSaturation&&e.selectSaturation(...n),["prevent","stop"]))},[d("canvas",Ba,null,512),d("div",{style:e.slideSaturationStyle,class:"slide"},null,4)],32)}V.render=Oa;V.__file="src/color/Saturation.vue";var j=v({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasHue,a=this.width,t=this.height,r=e.getContext("2d");e.width=a,e.height=t;const o=r.createLinearGradient(0,0,0,t);o.addColorStop(0,"#FF0000"),o.addColorStop(.17*1,"#FF00FF"),o.addColorStop(.17*2,"#0000FF"),o.addColorStop(.17*3,"#00FFFF"),o.addColorStop(.17*4,"#00FF00"),o.addColorStop(.17*5,"#FFFF00"),o.addColorStop(1,"#FF0000"),r.fillStyle=o,r.fillRect(0,0,a,t)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(e){const{top:a}=this.$el.getBoundingClientRect(),t=e.target.getContext("2d"),r=i=>{let n=i.clientY-a;n<0&&(n=0),n>this.height&&(n=this.height),this.slideHueStyle={top:n-2+"px"};const s=t.getImageData(0,Math.min(n,this.height-1),1,1),[l,h,p]=s.data;this.$emit("selectHue",{r:l,g:h,b:p})};r(e);const o=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)}}});const Fa={ref:"canvasHue"};function La(e,a,t,r,o,i){return c(),m("div",{class:"hue",onMousedown:a[1]||(a[1]=U((...n)=>e.selectHue&&e.selectHue(...n),["prevent","stop"]))},[d("canvas",Fa,null,512),d("div",{style:e.slideHueStyle,class:"slide"},null,4)],32)}j.render=La;j.__file="src/color/Hue.vue";var q=v({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasAlpha,a=this.width,t=this.height,r=this.alphaSize,o=Z(r),i=e.getContext("2d");e.width=a,e.height=t,i.fillStyle=i.createPattern(o,"repeat"),i.fillRect(0,0,a,t),I("p",i,a,t,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(e){const{top:a}=this.$el.getBoundingClientRect(),t=o=>{let i=o.clientY-a;i<0&&(i=0),i>this.height&&(i=this.height);let n=parseFloat((i/this.height).toFixed(2));this.$emit("selectAlpha",n)};t(e);const r=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}}});const Pa={ref:"canvasAlpha"};function $a(e,a,t,r,o,i){return c(),m("div",{class:"color-alpha",onMousedown:a[1]||(a[1]=U((...n)=>e.selectAlpha&&e.selectAlpha(...n),["prevent","stop"]))},[d("canvas",Pa,null,512),d("div",{style:e.slideAlphaStyle,class:"slide"},null,4)],32)}q.render=$a;q.__file="src/color/Alpha.vue";var Y=v({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const e=this.$el,a=this.width,t=this.height,r=this.alphaSize,o=Z(r),i=e.getContext("2d");e.width=a,e.height=t,i.fillStyle=i.createPattern(o,"repeat"),i.fillRect(0,0,a,t),i.fillStyle=this.color,i.fillRect(0,0,a,t)}}});function Ta(e,a,t,r,o,i){return c(),m("canvas")}Y.render=Ta;Y.__file="src/color/Preview.vue";var J=v({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(e){this.isSucking=!1,this.suckColor(e)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(e){e.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(e){const{clientX:a,clientY:t}=e,{top:r,left:o,width:i,height:n}=this.suckerCanvas.getBoundingClientRect(),s=a-o,l=t-r,p=this.suckerCanvas.getContext("2d").getImageData(Math.min(s,i-1),Math.min(l,n-1),1,1);let[k,S,C,A]=p.data;A=parseFloat((A/255).toFixed(2));const N=this.suckerPreview.style;Object.assign(N,{position:"absolute",left:a+20+"px",top:t-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${k}, ${S}, ${C}, ${A})`,zIndex:95}),this.suckerArea.length&&a>=this.suckerArea[0]&&t>=this.suckerArea[1]&&a<=this.suckerArea[2]&&t<=this.suckerArea[3]?N.display="":N.display="none"},suckColor(e){e&&e.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),e.addEventListener("click",a=>{const{clientX:t,clientY:r}=a,{top:o,left:i,width:n,height:s}=e.getBoundingClientRect(),l=t-i,h=r-o,k=e.getContext("2d").getImageData(Math.min(l,n-1),Math.min(h,s-1),1,1);let[S,C,A,N]=k.data;N=parseFloat((N/255).toFixed(2)),this.$emit("selectSucker",{r:S,g:C,b:A,a:N})}))}}});const Ha=d("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),Ra={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},_a=d("g",{fill:"none","fill-rule":"evenodd"},[d("g",{transform:"translate(1 1)","stroke-width":"4"},[d("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),d("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[d("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function Ea(e,a,t,r,o,i){return c(),m("div",null,[e.isSucking?w("v-if",!0):(c(),m("svg",{key:0,class:[{active:e.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:a[1]||(a[1]=(...n)=>e.openSucker&&e.openSucker(...n))},[Ha],2)),e.isSucking?(c(),m("svg",Ra,[_a])):w("v-if",!0)])}J.render=Ea;J.__file="src/color/Sucker.vue";var X=v({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor"],setup(e,{emit:a}){return{modelColor:b({get(){return e.color||""},set(r){a("inputColor",r)}})}}});const Da={class:"color-type"},Ga={class:"name"};function Ia(e,a,t,r,o,i){return c(),m("div",Da,[d("span",Ga,W(e.name),1),me(d("input",{"onUpdate:modelValue":a[1]||(a[1]=n=>e.modelColor=n),class:"value"},null,512),[[ge,e.modelColor]])])}X.render=Ia;X.__file="src/color/Box.vue";var Q=v({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(e,{emit:a}){const t=P(),r=P([]),o=P();e.colorsHistoryKey&&localStorage&&(r.value=JSON.parse(localStorage.getItem(e.colorsHistoryKey))||[]),o.value=Z(4).toDataURL(),se(()=>{i(t.value)});function i(s){if(!s)return;const l=r.value||[],h=l.indexOf(s);h>=0&&l.splice(h,1),l.length>=8&&(l.length=7),l.unshift(s),r.value=l||[],localStorage&&e.colorsHistoryKey&&localStorage.setItem(e.colorsHistoryKey,JSON.stringify(l))}function n(s){a("selectColor",s)}return{setColorsHistory:i,colorsHistory:r,color:t,imgAlphaBase64:o,selectColor:n}}});const Ka={class:"colors"},Ua={key:0,class:"colors history"};function Wa(e,a,t,r,o,i){return c(),m("div",null,[d("ul",Ka,[(c(!0),m(T,null,R(e.colorsDefault,n=>(c(),m("li",{key:n,class:"item",onClick:s=>e.selectColor(n)},[d("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),d("div",{style:{background:n},class:"color"},null,4)],8,["onClick"]))),128))]),e.colorsHistory.length?(c(),m("ul",Ua,[(c(!0),m(T,null,R(e.colorsHistory,n=>(c(),m("li",{key:n,class:"item",onClick:s=>e.selectColor(n)},[d("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),d("div",{style:{background:n},class:"color"},null,4)],8,["onClick"]))),128))])):w("v-if",!0)])}Q.render=Wa;Q.__file="src/color/Colors.vue";var $=v({components:{Saturation:V,Hue:j,Alpha:q,Preview:Y,Sucker:J,Box:X,Colors:Q},emits:["changeColor","openSucker"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return Na(this.rgba,!0)}},created(){Object.assign(this,F(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(e){const{r:a,g:t,b:r,h:o,s:i,v:n}=F(e);Object.assign(this,{r:a,g:t,b:r,h:o,s:i,v:n}),this.setText()},selectHue(e){const{r:a,g:t,b:r,h:o,s:i,v:n}=F(e);Object.assign(this,{r:a,g:t,b:r,h:o,s:i,v:n}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(e){this.a=e,this.setText()},inputHex(e){const{r:a,g:t,b:r,a:o,h:i,s:n,v:s}=F(e);Object.assign(this,{r:a,g:t,b:r,a:o,h:i,s:n,v:s}),this.modelHex=e,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(e){const{r:a,g:t,b:r,a:o,h:i,s:n,v:s}=F(e);Object.assign(this,{r:a,g:t,b:r,a:o,h:i,s:n,v:s}),this.modelHex=this.hexString,this.modelRgba=e,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(e){this.$emit("openSucker",e)},selectSucker(e){const{r:a,g:t,b:r,a:o,h:i,s:n,v:s}=F(e);Object.assign(this,{r:a,g:t,b:r,a:o,h:i,s:n,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(e){const{r:a,g:t,b:r,a:o,h:i,s:n,v:s}=F(e);Object.assign(this,{r:a,g:t,b:r,a:o,h:i,s:n,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const za={class:"color-set"};function Za(e,a,t,r,o,i){const n=O("Saturation"),s=O("Hue"),l=O("Alpha"),h=O("Preview"),p=O("Sucker"),k=O("Box"),S=O("Colors");return c(),m("div",{class:["hu-color-picker",{light:e.isLightTheme}],style:{width:e.totalWidth+"px"}},[d("div",za,[d(n,{ref:"saturation",color:e.rgbString,hsv:e.hsv,size:e.hueHeight,onSelectSaturation:e.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),d(s,{ref:"hue",hsv:e.hsv,width:e.hueWidth,height:e.hueHeight,onSelectHue:e.selectHue},null,8,["hsv","width","height","onSelectHue"]),d(l,{ref:"alpha",color:e.rgbString,rgba:e.rgba,width:e.hueWidth,height:e.hueHeight,onSelectAlpha:e.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),d("div",{style:{height:e.previewHeight+"px"},class:"color-show"},[d(h,{color:e.rgbaString,width:e.previewWidth,height:e.previewHeight},null,8,["color","width","height"]),e.suckerHide?w("v-if",!0):(c(),m(p,{key:0,"sucker-canvas":e.suckerCanvas,"sucker-area":e.suckerArea,onOpenSucker:e.openSucker,onSelectSucker:e.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),d(k,{name:"HEX",color:e.modelHex,onInputColor:e.inputHex},null,8,["color","onInputColor"]),d(k,{name:"RGBA",color:e.modelRgba,onInputColor:e.inputRgba},null,8,["color","onInputColor"]),d(S,{color:e.rgbaString,"colors-default":e.colorsDefault,"colors-history-key":e.colorsHistoryKey,onSelectColor:e.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),w(" custom options "),H(e.$slots,"default")],6)}$.render=Za;$.__file="src/color/ColorPicker.vue";$.install=e=>{e.component($.name,$)};const Va={class:"color-input"},ja={class:"color-picker-wrapper"},qa=v({__name:"ColorInput",props:{value:{}},emits:["input","change"],setup(e,{emit:a}){const t=P(null),r=i=>{var n;return(n=t.value)==null?void 0:n.open(i)},o=({hex:i})=>{a("input",i),a("change",i)};return(i,n)=>(c(),y("div",Va,[f("div",{class:"color-input-container",style:ue({backgroundColor:i.value}),onClick:r},null,4),d(Aa,{ref_key:"popover",ref:t},{header:g(()=>[B(" Pick a Color ")]),body:g(()=>[f("div",ja,[d(u($),{color:i.value,theme:"light",onChangeColor:o},null,8,["color"])])]),_:1},512)]))}});const de=K(qa,[["__scopeId","data-v-c91cc2ee"]]),Ya=["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akaya Kanadaka","Akaya Telivigala","Akronim","Aladin","Alata","Alatsi","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Aleo","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allison","Allura","Almarai","Almendra","Almendra Display","Almendra SC","Alumni Sans","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada Pro","Andika","Andika New Basic","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Antonio","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Are You Serious","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atkinson Hyperlegible","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Azeret Mono","B612","B612 Mono","Bad Script","Bahiana","Bahianita","Bai Jamjuree","Ballet","Baloo 2","Baloo Bhai 2","Baloo Bhaina 2","Baloo Chettan 2","Baloo Da 2","Baloo Paaji 2","Baloo Tamma 2","Baloo Tammudu 2","Baloo Thambi 2","Balsamiq Sans","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Basic","Baskervville","Battambang","Baumans","Bayon","Be Vietnam","Be Vietnam Pro","Bebas Neue","Belgrano","Bellefair","Belleza","Bellota","Bellota Text","BenchNine","Benne","Bentham","Berkshire Swash","Besley","Beth Ellen","Bevan","Big Shoulders Display","Big Shoulders Inline Display","Big Shoulders Inline Text","Big Shoulders Stencil Display","Big Shoulders Stencil Text","Big Shoulders Text","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Birthstone","Birthstone Bounce","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blinker","Bodoni Moda","Bokor","Bona Nova","Bonbon","Bonheur Royale","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Brygada 1918","Bubblegum Sans","Bubbler One","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Caladea","Calistoga","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Caramel","Carattere","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Castoro","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherish","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chilanka","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Comic Neue","Coming Soon","Commissioner","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Courier Prime","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Crimson Text","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Damion","Dancing Script","Dangrek","Darker Grotesque","David Libre","Dawning of a New Day","Days One","Dekko","Dela Gothic One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Doppio One","Dorsa","Dosis","DotGothic16","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans SC","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Ephesis","Epilogue","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Explora","Fahkwang","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Festive","Finger Paint","Fira Code","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fleur De Leah","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Fraunces","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","Fuggles","GFS Didot","GFS Neohellenic","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gayathri","Gelasio","Gemunu Libre","Gentium Basic","Gentium Book Basic","Geo","Georama","Geostar","Geostar Fill","Germania One","Gideon Roman","Gidugu","Gilda Display","Girassol","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Glory","Gluten","Goblin One","Gochi Hand","Goldman","Gorditas","Gothic A1","Gotu","Goudy Bookletter 1911","Gowun Batang","Gowun Dodum","Graduate","Grand Hotel","Grandstander","Gravitas One","Great Vibes","Grechen Fuemen","Grenze","Grenze Gotisch","Grey Qo","Griffy","Gruppo","Gudea","Gugi","Gupter","Gurajada","Habibi","Hachi Maru Pop","Hahmlet","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Hepta Slab","Herr Von Muellerhoff","Hi Melody","Hina Mincho","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Arabic","IBM Plex Sans Condensed","IBM Plex Sans Devanagari","IBM Plex Sans Hebrew","IBM Plex Sans KR","IBM Plex Sans Thai","IBM Plex Sans Thai Looped","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Ibarra Real Nova","Iceberg","Iceland","Imbue","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Inria Sans","Inria Serif","Inter","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","JetBrains Mono","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Jomolhari","Josefin Sans","Josefin Slab","Jost","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","Kadwa","Kaisei Decol","Kaisei HarunoUmi","Kaisei Opti","Kaisei Tokumin","Kalam","Kameron","Kanit","Kantumruy","Karantina","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kirang Haerang","Kite One","Kiwi Maru","Klee One","Knewave","KoHo","Kodchasan","Koh Santepheap","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kufam","Kulim Park","Kumar One","Kumar One Outline","Kumbh Sans","Kurale","La Belle Aurore","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Langar","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Lexend","Lexend Deca","Lexend Exa","Lexend Giga","Lexend Mega","Lexend Peta","Lexend Tera","Lexend Zetta","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Barcode EAN13 Text","Libre Baskerville","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Literata","Liu Jian Mao Cao","Livvic","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","M PLUS 1p","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Mandali","Manjari","Manrope","Mansalva","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Material Icons","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Mina","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Modak","Modern Antiqua","Mogra","Molengo","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","MonteCarlo","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Mulish","MuseoModerno","Mystery Quest","NTR","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Nerko One","Neucha","Neuton","New Rocker","New Tegomin","News Cycle","Newsreader","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Kufi Arabic","Noto Music","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Rashi Hebrew","Noto Sans","Noto Sans Adlam","Noto Sans Adlam Unjoined","Noto Sans Anatolian Hieroglyphs","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Avestan","Noto Sans Balinese","Noto Sans Bamum","Noto Sans Bassa Vah","Noto Sans Batak","Noto Sans Bengali","Noto Sans Bhaiksuki","Noto Sans Brahmi","Noto Sans Buginese","Noto Sans Buhid","Noto Sans Canadian Aboriginal","Noto Sans Carian","Noto Sans Caucasian Albanian","Noto Sans Chakma","Noto Sans Cham","Noto Sans Cherokee","Noto Sans Coptic","Noto Sans Cuneiform","Noto Sans Cypriot","Noto Sans Deseret","Noto Sans Devanagari","Noto Sans Display","Noto Sans Duployan","Noto Sans Egyptian Hieroglyphs","Noto Sans Elbasan","Noto Sans Elymaic","Noto Sans Georgian","Noto Sans Glagolitic","Noto Sans Gothic","Noto Sans Grantha","Noto Sans Gujarati","Noto Sans Gunjala Gondi","Noto Sans Gurmukhi","Noto Sans HK","Noto Sans Hanifi Rohingya","Noto Sans Hanunoo","Noto Sans Hatran","Noto Sans Hebrew","Noto Sans Imperial Aramaic","Noto Sans Indic Siyaq Numbers","Noto Sans Inscriptional Pahlavi","Noto Sans Inscriptional Parthian","Noto Sans JP","Noto Sans Javanese","Noto Sans KR","Noto Sans Kaithi","Noto Sans Kannada","Noto Sans Kayah Li","Noto Sans Kharoshthi","Noto Sans Khmer","Noto Sans Khojki","Noto Sans Khudawadi","Noto Sans Lao","Noto Sans Lepcha","Noto Sans Limbu","Noto Sans Linear A","Noto Sans Linear B","Noto Sans Lisu","Noto Sans Lycian","Noto Sans Lydian","Noto Sans Mahajani","Noto Sans Malayalam","Noto Sans Mandaic","Noto Sans Manichaean","Noto Sans Marchen","Noto Sans Masaram Gondi","Noto Sans Math","Noto Sans Mayan Numerals","Noto Sans Medefaidrin","Noto Sans Meroitic","Noto Sans Miao","Noto Sans Modi","Noto Sans Mongolian","Noto Sans Mono","Noto Sans Mro","Noto Sans Multani","Noto Sans Myanmar","Noto Sans N Ko","Noto Sans Nabataean","Noto Sans New Tai Lue","Noto Sans Newa","Noto Sans Nushu","Noto Sans Ogham","Noto Sans Ol Chiki","Noto Sans Old Hungarian","Noto Sans Old Italic","Noto Sans Old North Arabian","Noto Sans Old Permic","Noto Sans Old Persian","Noto Sans Old Sogdian","Noto Sans Old South Arabian","Noto Sans Old Turkic","Noto Sans Oriya","Noto Sans Osage","Noto Sans Osmanya","Noto Sans Pahawh Hmong","Noto Sans Palmyrene","Noto Sans Pau Cin Hau","Noto Sans Phags Pa","Noto Sans Phoenician","Noto Sans Psalter Pahlavi","Noto Sans Rejang","Noto Sans Runic","Noto Sans SC","Noto Sans Samaritan","Noto Sans Saurashtra","Noto Sans Sharada","Noto Sans Shavian","Noto Sans Siddham","Noto Sans Sinhala","Noto Sans Sogdian","Noto Sans Sora Sompeng","Noto Sans Soyombo","Noto Sans Sundanese","Noto Sans Syloti Nagri","Noto Sans Symbols","Noto Sans Symbols 2","Noto Sans Syriac","Noto Sans TC","Noto Sans Tagalog","Noto Sans Tagbanwa","Noto Sans Tai Le","Noto Sans Tai Tham","Noto Sans Tai Viet","Noto Sans Takri","Noto Sans Tamil","Noto Sans Tamil Supplement","Noto Sans Telugu","Noto Sans Thaana","Noto Sans Thai","Noto Sans Thai Looped","Noto Sans Tifinagh","Noto Sans Tirhuta","Noto Sans Ugaritic","Noto Sans Vai","Noto Sans Wancho","Noto Sans Warang Citi","Noto Sans Yi","Noto Sans Zanabazar Square","Noto Serif","Noto Serif Ahom","Noto Serif Armenian","Noto Serif Balinese","Noto Serif Bengali","Noto Serif Devanagari","Noto Serif Display","Noto Serif Dogra","Noto Serif Ethiopic","Noto Serif Georgian","Noto Serif Grantha","Noto Serif Gujarati","Noto Serif Gurmukhi","Noto Serif Hebrew","Noto Serif JP","Noto Serif KR","Noto Serif Kannada","Noto Serif Khmer","Noto Serif Lao","Noto Serif Malayalam","Noto Serif Myanmar","Noto Serif Nyiakeng Puachue Hmong","Noto Serif SC","Noto Serif Sinhala","Noto Serif TC","Noto Serif Tamil","Noto Serif Tangut","Noto Serif Telugu","Noto Serif Thai","Noto Serif Tibetan","Noto Serif Yezidi","Noto Traditional Nushu","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odibee Sans","Odor Mean Chey","Offside","Oi","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orelega One","Orienta","Original Surfer","Oswald","Otomanopee One","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxanium","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Palette Mosaic","Pangolin","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piazzolla","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poor Story","Poppins","Port Lligat Sans","Port Lligat Slab","Potta One","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Public Sans","Puritan","Purple Purse","Qahiri","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Rampart One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Recursive","Red Hat Display","Red Hat Text","Red Rose","Redressed","Reem Kufi","Reenie Beanie","Reggae One","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","RocknRoll One","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rowdies","Rozha One","Rubik","Rubik Beastly","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","STIX Two Text","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Saira Stencil One","Salsa","Sanchez","Sancreek","Sansita","Sansita Swashed","Sarabun","Sarala","Sarina","Sarpanch","Satisfy","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade","Scheherazade New","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sen","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shippori Mincho","Shippori Mincho B1","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Single Day","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Solway","Song Myung","Sonsie One","Sora","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Space Grotesk","Space Mono","Spartan","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stalemate","Stalinist One","Stardos Stencil","Stick","Stick No Bills","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Style Script","Stylish","Sue Ellen Francisco","Suez One","Sulphur Point","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Syne","Syne Mono","Syne Tactile","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Texturina","Thasadith","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Tomorrow","Tourney","Trade Winds","Train One","Trirong","Trispace","Trocchi","Trochut","Truculenta","Trykker","Tulpen One","Turret Road","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Uchen","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Urbanist","VT323","Vampiro One","Varela","Varela Round","Varta","Vast Shadow","Vesper Libre","Viaoda Libre","Vibes","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","WindSong","Wire One","Work Sans","Xanh Mono","Yaldevi","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yomogi","Yrsa","Yusei Magic","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zen Antique","Zen Antique Soft","Zen Dots","Zen Kaku Gothic Antique","Zen Kaku Gothic New","Zen Kurenaido","Zen Loop","Zen Maru Gothic","Zen Old Mincho","Zen Tokyo Zoo","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"],Ja=v({__name:"FontInput",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:a}){const r=P(e.modelValue),o=Ya,i=()=>a("update:modelValue",r.value);return(n,s)=>(c(),m(u(z),{value:r.value,"onUpdate:value":s[0]||(s[0]=l=>r.value=l),"show-search":"",onChange:i},{default:g(()=>[(c(!0),y(T,null,R(u(o),l=>(c(),m(u(D),{key:l,value:l},{default:g(()=>[B(W(l),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]))}}),Xa=v({__name:"LanguageInput",props:{language:{}},emits:["update:language"],setup(e,{emit:a}){return(t,r)=>(c(),m(u(z),{value:t.language,onChange:r[0]||(r[0]=o=>a("update:language",o))},{default:g(()=>[(c(!0),y(T,null,R(u(Se),o=>(c(),m(u(D),{key:o.key,value:o.key},{default:g(()=>[B(W(o.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]))}});function Qa(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}function et(e){return e.startsWith("http://")||e.startsWith("https://")}function L(e){return et(e)?"external-image":Qa(e)?"color":"hosted-image"}const at=v({__name:"BackgroundSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:a}){const t=e,r=s=>a("update:modelValue",s),o=s=>{r(s==="color"?"#ffffff":"")},i=b(()=>L(t.modelValue)==="color"?t.modelValue:""),n=b(()=>t.modelValue);return(s,l)=>(c(),y(T,null,[d(u(M),{label:"Background Type"},{default:g(()=>[d(u(z),{value:u(L)(s.modelValue),onChange:l[0]||(l[0]=h=>o(h))},{default:g(()=>[d(u(D),{value:"color",selected:u(L)(s.modelValue)==="color"},{default:g(()=>[B(" Color ")]),_:1},8,["selected"]),d(u(D),{value:"image",selected:u(L)(s.modelValue)==="hosted-image"||u(L)(s.modelValue)==="external-image"},{default:g(()=>[B(" Image ")]),_:1},8,["selected"])]),_:1},8,["value"])]),_:1}),d(u(M),{label:u(L)(s.modelValue)==="color"?"Background Color":"Background Image path"},{default:g(()=>[u(L)(s.modelValue)==="color"?(c(),m(de,{key:0,value:i.value,onChange:r},null,8,["value"])):(c(),m(u(E),{key:1,value:n.value,type:"text",onInput:l[1]||(l[1]=h=>r(h.target.value))},null,8,["value"]))]),_:1},8,["label"])],64))}}),tt={style:{width:"50%"}},ot={style:{width:"50%"}},ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAMAAADnYz6mAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAA5UExURfX19aCgoOLi4rS0tKenp+/v75OTk4yMjMLCwtvb25qams/Pz7u7u8jIyOjo6KioqNXV1a6urrW1ta1OqBIAAAExSURBVHja7dnZbsIwFEDBrCYLa///Y0tZQqoiAZWgvnTm0fIDB3CcOEUBAAAAAAAAAAAAAAAAAEBUVfewPq+CdvG4lFdC/4uERS9BggQJr0goU/CE1X5kvYuc0B13uyFwwumjLQMnnMY6v8Lfr4Ui8lpI26/V/BF7Xxg2m7fbndMQPqFvy+AJ4/7JNIVOqA9P19ES5v+b5jhnjJXQFZeGsi2u73VZJ9Szu7y0nmbt4iQcvvfz+q1mRzVlmN25nY2N346bUoyEdP7ex8v90nTol0IkbKfR+ng5nRsjJKxmw8v2x8xV/gn1ral17gnN7bll3glle3vudGnNMiFV90w+X5ayTOifMfu1Cfe+4HGmKkGChCd6g5e2RbVsHlRn9uocAAAAAAAAAAAAAAAAAID/5RP7aTTGpnHwKwAAAABJRU5ErkJggg==",Ft=v({__name:"PreferencesEditor",setup(e){const{result:a,loading:t}=Ae(()=>ye.get()),r=b(()=>{var s,l;return(s=a.value)!=null&&s.logoUrl?te("logo",(l=a.value)==null?void 0:l.logoUrl,"editor"):""}),o=b(()=>{var s,l;return(s=a.value)!=null&&s.faviconUrl?te("favicon",(l=a.value)==null?void 0:l.faviconUrl,"editor"):""}),i=le({logoUrl:!1,faviconUrl:!1}),n=(s,l)=>{i[s]=l};return(s,l)=>(c(),m(ke,null,{default:g(()=>[u(t)||!u(a)?(c(),m(Ce,{key:0})):(c(),m(u(fe),{key:1,layout:"vertical",style:{width:"100%"}},{default:g(()=>[d(u(_),{justify:"space-between",align:"center"},{default:g(()=>[d(u(G),null,{default:g(()=>[B("Preferences")]),_:1}),d(we,{model:u(a)},null,8,["model"])]),_:1}),d(u(M),{label:"Project name"},{default:g(()=>[d(u(E),{value:u(a).brandName,"onUpdate:value":l[0]||(l[0]=h=>u(a).brandName=h)},null,8,["value"])]),_:1}),d(u(M),{label:"Language"},{default:g(()=>[d(Xa,{language:u(a).language,"onUpdate:language":l[1]||(l[1]=h=>u(a).language=h)},null,8,["language"])]),_:1}),d(u(_),{gap:"40"},{default:g(()=>[f("div",tt,[d(u(G),{level:4},{default:g(()=>[B("Style")]),_:1}),d(u(M),{label:"Main color"},{default:g(()=>[d(de,{value:u(a).mainColor,onInput:l[2]||(l[2]=h=>u(a).mainColor=h),onChange:l[3]||(l[3]=h=>u(a).mainColor=u(a).mainColor)},null,8,["value"])]),_:1}),d(u(M),{label:"Font family"},{default:g(()=>[d(Ja,{modelValue:u(a).fontFamily,"onUpdate:modelValue":l[4]||(l[4]=h=>u(a).fontFamily=h)},null,8,["modelValue"])]),_:1}),d(at,{modelValue:u(a).theme,"onUpdate:modelValue":l[5]||(l[5]=h=>u(a).theme=h)},null,8,["modelValue"]),d(u(M),{label:"Logo path",tooltip:"You can reference files from your project folder (e.g., './logo.png') or use public URLs"},{default:g(()=>[d(u(_),{gap:"5"},{default:g(()=>[d(u(E),{value:u(a).logoUrl,"onUpdate:value":l[6]||(l[6]=h=>u(a).logoUrl=h)},null,8,["value"]),u(a).logoUrl?(c(),m(ae,{key:0,onClick:l[7]||(l[7]=()=>n("logoUrl",!0))},{default:g(()=>[d(u(oe))]),_:1})):w("",!0)]),_:1}),r.value?(c(),m(u(ee),{key:0,src:r.value,fallback:ne,style:{display:"none",visibility:"hidden"},preview:{visible:i.logoUrl,onVisibleChange:h=>n("logoUrl",h)}},null,8,["src","preview"])):w("",!0)]),_:1}),d(u(M),{label:"Favicon path",tooltip:"You can reference files from your project folder (e.g., './favicon.ico') or use public URLs "},{default:g(()=>[d(u(_),{gap:"5"},{default:g(()=>[d(u(E),{value:u(a).faviconUrl,"onUpdate:value":l[8]||(l[8]=h=>u(a).faviconUrl=h)},null,8,["value"]),u(a).faviconUrl?(c(),m(ae,{key:0,onClick:l[9]||(l[9]=()=>n("faviconUrl",!0))},{default:g(()=>[d(u(oe))]),_:1})):w("",!0)]),_:1}),o.value?(c(),m(u(ee),{key:0,src:o.value,fallback:ne,style:{display:"none",visibility:"hidden"},preview:{visible:i.faviconUrl,onVisibleChange:h=>n("faviconUrl",h)}},null,8,["src","preview"])):w("",!0)]),_:1})]),f("div",ot,[d(va,{workspace:u(a),"widgets-visible":!0,style:{"margin-bottom":"20px"}},null,8,["workspace"])])]),_:1})]),_:1}))]),_:1}))}});export{Ft as default}; -//# sourceMappingURL=PreferencesEditor.6e9e36a8.js.map +//# sourceMappingURL=PreferencesEditor.4d180162.js.map diff --git a/abstra_statics/dist/assets/Project.6fca0189.js b/abstra_statics/dist/assets/Project.1861926b.js similarity index 86% rename from abstra_statics/dist/assets/Project.6fca0189.js rename to abstra_statics/dist/assets/Project.1861926b.js index 6ad113cd0a..d9eb7eed89 100644 --- a/abstra_statics/dist/assets/Project.6fca0189.js +++ b/abstra_statics/dist/assets/Project.1861926b.js @@ -1,2 +1,2 @@ -import{N as w}from"./Navbar.059184c9.js";import{B as b}from"./BaseLayout.995c8c6b.js";import{a as k}from"./asyncComputed.cfc0cdaf.js";import{d as L,D as n,f as i,o as l,Y as o,$ as H,S as $,e8 as y,a as t,ea as _,eo as S,r as z,c as f,w as v,b as V,eg as B,u as M,bT as x,aG as N,a0 as P}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{O as j}from"./organization.2853982f.js";import{P as I}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import{_ as E,S as G}from"./Sidebar.f4cbdc17.js";import{C as D}from"./ContentLayout.60e2d770.js";import{G as F}from"./PhArrowCounterClockwise.vue.e0916215.js";import{I as W,G as q}from"./PhIdentificationBadge.vue.b9f0b1dc.js";import{H as O}from"./PhCube.vue.b3d93bff.js";import{I as R}from"./PhGlobe.vue.3da2da74.js";import"./PhChats.vue.296ae643.js";import"./PhSignOut.vue.266bb925.js";import"./router.f4663fd5.js";import"./index.37c7ea66.js";import"./Avatar.8da44d42.js";import"./index.d667cd0d.js";import"./index.d33f3e49.js";import"./BookOutlined.b4191bff.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";import"./index.126762e2.js";import"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import"./Logo.cf3e0e74.js";import"./index.d18d35d7.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[r]="cf16391e-ed3b-478c-8496-3523c77b292c",u._sentryDebugIdIdentifier="sentry-dbid-cf16391e-ed3b-478c-8496-3523c77b292c")}catch{}})();const T=["width","height","fill","transform"],K={key:0},Y=t("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"},null,-1),J=[Y],Q={key:1},U=t("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"},null,-1),X=t("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),a1=[U,X],l1={key:2},e1=t("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),t1=[e1],o1={key:3},r1=t("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"},null,-1),i1=[r1],s1={key:4},n1=t("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),c1=[n1],u1={key:5},h1=t("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},null,-1),d1=[h1],m1={name:"PhDatabase"},p1=L({...m1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,h=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:h}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),d=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:d.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",K,J)):e.value==="duotone"?(l(),o("g",Q,a1)):e.value==="fill"?(l(),o("g",l1,t1)):e.value==="light"?(l(),o("g",o1,i1)):e.value==="regular"?(l(),o("g",s1,c1)):e.value==="thin"?(l(),o("g",u1,d1)):$("",!0)],16,T))}}),A1=["width","height","fill","transform"],g1={key:0},v1=t("path",{d:"M228,56H160L133.33,36a20.12,20.12,0,0,0-12-4H76A20,20,0,0,0,56,52V72H36A20,20,0,0,0,16,92V204a20,20,0,0,0,20,20H188.89A19.13,19.13,0,0,0,208,204.89V184h20.89A19.13,19.13,0,0,0,248,164.89V76A20,20,0,0,0,228,56ZM184,200H40V96H80l28.8,21.6A12,12,0,0,0,116,120h68Zm40-40H208V116a20,20,0,0,0-20-20H120L93.33,76a20.12,20.12,0,0,0-12-4H80V56h40l28.8,21.6A12,12,0,0,0,156,80h68Z"},null,-1),L1=[v1],$1={key:1},Z1=t("path",{d:"M232,80v88.89a7.11,7.11,0,0,1-7.11,7.11H200V112a8,8,0,0,0-8-8H120L90.13,81.6a8,8,0,0,0-4.8-1.6H64V56a8,8,0,0,1,8-8h45.33a8,8,0,0,1,4.8,1.6L152,72h72A8,8,0,0,1,232,80Z",opacity:"0.2"},null,-1),V1=t("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),H1=[Z1,V1],y1={key:2},C1=t("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64Zm0,104H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),f1=[C1],M1={key:3},w1=t("path",{d:"M224,66H154L125.73,44.8a14,14,0,0,0-8.4-2.8H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H192.89A13.12,13.12,0,0,0,206,200.89V182h18.89A13.12,13.12,0,0,0,238,168.89V80A14,14,0,0,0,224,66ZM194,200.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H85.33a2,2,0,0,1,1.2.4l29.87,22.4A6,6,0,0,0,120,110h72a2,2,0,0,1,2,2Zm32-32a1.11,1.11,0,0,1-1.11,1.11H206V112a14,14,0,0,0-14-14H122L93.73,76.8a14,14,0,0,0-8.4-2.8H70V56a2,2,0,0,1,2-2h45.33a2,2,0,0,1,1.2.4L148.4,76.8A6,6,0,0,0,152,78h72a2,2,0,0,1,2,2Z"},null,-1),b1=[w1],k1={key:4},_1=t("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),S1=[_1],z1={key:5},B1=t("path",{d:"M224,68H153.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H192.89A11.12,11.12,0,0,0,204,200.89V180h20.89A11.12,11.12,0,0,0,236,168.89V80A12,12,0,0,0,224,68ZM196,200.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H85.33a4,4,0,0,1,2.4.8l29.87,22.4a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Zm32-32a3.12,3.12,0,0,1-3.11,3.11H204V112a12,12,0,0,0-12-12H121.33L92.53,78.4a12.05,12.05,0,0,0-7.2-2.4H68V56a4,4,0,0,1,4-4h45.33a4,4,0,0,1,2.4.8L149.6,75.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Z"},null,-1),x1=[B1],N1={name:"PhFolders"},P1=L({...N1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,h=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:h}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),d=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:d.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",g1,L1)):e.value==="duotone"?(l(),o("g",$1,H1)):e.value==="fill"?(l(),o("g",y1,f1)):e.value==="light"?(l(),o("g",M1,b1)):e.value==="regular"?(l(),o("g",k1,S1)):e.value==="thin"?(l(),o("g",z1,x1)):$("",!0)],16,A1))}}),j1=["width","height","fill","transform"],I1={key:0},E1=t("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"},null,-1),G1=[E1],D1={key:1},F1=t("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),W1=t("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),q1=[F1,W1],O1={key:2},R1=t("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),T1=[R1],K1={key:3},Y1=t("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"},null,-1),J1=[Y1],Q1={key:4},U1=t("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),X1=[U1],a0={key:5},l0=t("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"},null,-1),e0=[l0],t0={name:"PhGearSix"},o0=L({...t0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,h=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:h}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),d=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:d.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",I1,G1)):e.value==="duotone"?(l(),o("g",D1,q1)):e.value==="fill"?(l(),o("g",O1,T1)):e.value==="light"?(l(),o("g",K1,J1)):e.value==="regular"?(l(),o("g",Q1,X1)):e.value==="thin"?(l(),o("g",a0,e0)):$("",!0)],16,j1))}}),r0=["width","height","fill","transform"],i0={key:0},s0=t("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"},null,-1),n0=[s0],c0={key:1},u0=t("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"},null,-1),h0=t("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),d0=[u0,h0],m0={key:2},p0=t("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"},null,-1),A0=[p0],g0={key:3},v0=t("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"},null,-1),L0=[v0],$0={key:4},Z0=t("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),V0=[Z0],H0={key:5},y0=t("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"},null,-1),C0=[y0],f0={name:"PhKey"},M0=L({...f0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,h=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:h}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),d=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:d.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",i0,n0)):e.value==="duotone"?(l(),o("g",c0,d0)):e.value==="fill"?(l(),o("g",m0,A0)):e.value==="light"?(l(),o("g",g0,L0)):e.value==="regular"?(l(),o("g",$0,V0)):e.value==="thin"?(l(),o("g",H0,C0)):$("",!0)],16,r0))}}),w0=["width","height","fill","transform"],b0={key:0},k0=t("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"},null,-1),_0=[k0],S0={key:1},z0=t("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"},null,-1),B0=t("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),x0=[z0,B0],N0={key:2},P0=t("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"},null,-1),j0=[P0],I0={key:3},E0=t("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"},null,-1),G0=[E0],D0={key:4},F0=t("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),W0=[F0],q0={key:5},O0=t("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"},null,-1),R0=[O0],T0={name:"PhPlug"},K0=L({...T0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,h=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:h}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),d=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:d.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",b0,_0)):e.value==="duotone"?(l(),o("g",S0,x0)):e.value==="fill"?(l(),o("g",N0,j0)):e.value==="light"?(l(),o("g",I0,G0)):e.value==="regular"?(l(),o("g",D0,W0)):e.value==="thin"?(l(),o("g",q0,R0)):$("",!0)],16,w0))}}),Y0={class:"button"},J0=L({__name:"Project",setup(u){const h=_().params.projectId,{result:s}=k(()=>I.get(h).then(async a=>{const g=await j.get(a.organizationId);return{project:a,organization:g}})),m=S(),p=()=>{m.push({name:"web-editor",params:{projectId:h}})},e=i(()=>{var a,g,C,Z;return((a=s.value)==null?void 0:a.organization)&&s.value.project?[{label:"My organizations",path:"/organizations"},{label:(C=(g=s.value)==null?void 0:g.organization)==null?void 0:C.name,path:`/organizations/${(Z=s.value)==null?void 0:Z.organization.id}`},{label:s.value.project.name,path:`/projects/${s.value.project.id}`}]:void 0}),c=i(()=>{var a;return(a=s.value)==null?void 0:a.organization.billingMetadata}),d=i(()=>{var a;return(a=s.value)==null?void 0:a.organization.id}),A=i(()=>{var a;return(a=s.value)!=null&&a.project?[{name:"Project",items:[{name:"Live",path:"live",icon:R},{name:"Builds",path:"builds",icon:O},{name:"Connectors",path:"connectors",icon:K0,unavailable:!s.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:p1},{name:"API Keys",path:"api-keys",icon:M0},{name:"Env Vars",path:"env-vars",icon:W},{name:"Files",path:"files",icon:P1},{name:"Logs",icon:F,path:"logs"},{name:"Settings",icon:o0,path:"settings"},{name:"Access Control",icon:q,path:"access-control"}]}]:[]});return(a,g)=>{const C=z("RouterView");return l(),f(b,null,{content:v(()=>[V(D,null,{default:v(()=>[c.value&&d.value?(l(),f(E,{key:0,"billing-metadata":c.value,"organization-id":d.value},null,8,["billing-metadata","organization-id"])):$("",!0),V(C)]),_:1})]),navbar:v(()=>[V(w,{class:"nav",breadcrumb:e.value},null,8,["breadcrumb"])]),sidebar:v(()=>{var Z;return[V(G,{class:"sidebar",sections:A.value},B({_:2},[(Z=M(s))!=null&&Z.organization.featureFlags.WEB_EDITOR?{name:"bottom",fn:v(()=>[t("div",Y0,[V(M(x),{type:"primary",onClick:p},{default:v(()=>[N("Go to Web Editor")]),_:1})])]),key:"0"}:void 0]),1032,["sections"])]}),_:1})}}});const M2=P(J0,[["__scopeId","data-v-630a89db"]]);export{M2 as default}; -//# sourceMappingURL=Project.6fca0189.js.map +import{N as w}from"./Navbar.8a0a89b3.js";import{B as b}from"./BaseLayout.52f1acec.js";import{a as k}from"./asyncComputed.703c33fd.js";import{d as L,D as n,f as i,o as l,Y as o,$ as H,S as $,e8 as y,a as t,ea as _,eo as S,r as z,c as C,w as v,b as V,eg as B,u as M,bT as x,aG as N,a0 as P}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{O as j}from"./organization.03372a7f.js";import{P as I}from"./project.fad91605.js";import"./tables.318f703e.js";import{_ as E,S as G}from"./Sidebar.0a307c47.js";import{C as D}from"./ContentLayout.f92ff80c.js";import{G as F}from"./PhArrowCounterClockwise.vue.70f7f135.js";import{I as W,G as q}from"./PhIdentificationBadge.vue.088497fd.js";import{H as O}from"./PhCube.vue.63fffddc.js";import{I as R}from"./PhGlobe.vue.71eddd06.js";import"./PhChats.vue.1b5982bf.js";import"./PhSignOut.vue.6dacf893.js";import"./router.375df57e.js";import"./index.a82e0ed1.js";import"./Avatar.f6415f7c.js";import"./index.3b2f4dca.js";import"./index.3e715bc1.js";import"./BookOutlined.7c922f07.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";import"./index.289665f1.js";import"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import"./Logo.8f27935a.js";import"./index.a552d580.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[r]="1236349c-93bd-4bfe-9e9f-e5de849b3ddd",u._sentryDebugIdIdentifier="sentry-dbid-1236349c-93bd-4bfe-9e9f-e5de849b3ddd")}catch{}})();const T=["width","height","fill","transform"],K={key:0},Y=t("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"},null,-1),J=[Y],Q={key:1},U=t("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"},null,-1),X=t("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),a1=[U,X],l1={key:2},e1=t("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),t1=[e1],o1={key:3},r1=t("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"},null,-1),i1=[r1],s1={key:4},n1=t("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),c1=[n1],u1={key:5},d1=t("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},null,-1),h1=[d1],m1={name:"PhDatabase"},p1=L({...m1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,d=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:d}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),h=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:h.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",K,J)):e.value==="duotone"?(l(),o("g",Q,a1)):e.value==="fill"?(l(),o("g",l1,t1)):e.value==="light"?(l(),o("g",o1,i1)):e.value==="regular"?(l(),o("g",s1,c1)):e.value==="thin"?(l(),o("g",u1,h1)):$("",!0)],16,T))}}),A1=["width","height","fill","transform"],g1={key:0},v1=t("path",{d:"M228,56H160L133.33,36a20.12,20.12,0,0,0-12-4H76A20,20,0,0,0,56,52V72H36A20,20,0,0,0,16,92V204a20,20,0,0,0,20,20H188.89A19.13,19.13,0,0,0,208,204.89V184h20.89A19.13,19.13,0,0,0,248,164.89V76A20,20,0,0,0,228,56ZM184,200H40V96H80l28.8,21.6A12,12,0,0,0,116,120h68Zm40-40H208V116a20,20,0,0,0-20-20H120L93.33,76a20.12,20.12,0,0,0-12-4H80V56h40l28.8,21.6A12,12,0,0,0,156,80h68Z"},null,-1),L1=[v1],$1={key:1},Z1=t("path",{d:"M232,80v88.89a7.11,7.11,0,0,1-7.11,7.11H200V112a8,8,0,0,0-8-8H120L90.13,81.6a8,8,0,0,0-4.8-1.6H64V56a8,8,0,0,1,8-8h45.33a8,8,0,0,1,4.8,1.6L152,72h72A8,8,0,0,1,232,80Z",opacity:"0.2"},null,-1),V1=t("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),H1=[Z1,V1],y1={key:2},f1=t("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64Zm0,104H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),C1=[f1],M1={key:3},w1=t("path",{d:"M224,66H154L125.73,44.8a14,14,0,0,0-8.4-2.8H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H192.89A13.12,13.12,0,0,0,206,200.89V182h18.89A13.12,13.12,0,0,0,238,168.89V80A14,14,0,0,0,224,66ZM194,200.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H85.33a2,2,0,0,1,1.2.4l29.87,22.4A6,6,0,0,0,120,110h72a2,2,0,0,1,2,2Zm32-32a1.11,1.11,0,0,1-1.11,1.11H206V112a14,14,0,0,0-14-14H122L93.73,76.8a14,14,0,0,0-8.4-2.8H70V56a2,2,0,0,1,2-2h45.33a2,2,0,0,1,1.2.4L148.4,76.8A6,6,0,0,0,152,78h72a2,2,0,0,1,2,2Z"},null,-1),b1=[w1],k1={key:4},_1=t("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),S1=[_1],z1={key:5},B1=t("path",{d:"M224,68H153.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H192.89A11.12,11.12,0,0,0,204,200.89V180h20.89A11.12,11.12,0,0,0,236,168.89V80A12,12,0,0,0,224,68ZM196,200.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H85.33a4,4,0,0,1,2.4.8l29.87,22.4a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Zm32-32a3.12,3.12,0,0,1-3.11,3.11H204V112a12,12,0,0,0-12-12H121.33L92.53,78.4a12.05,12.05,0,0,0-7.2-2.4H68V56a4,4,0,0,1,4-4h45.33a4,4,0,0,1,2.4.8L149.6,75.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Z"},null,-1),x1=[B1],N1={name:"PhFolders"},P1=L({...N1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,d=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:d}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),h=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:h.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",g1,L1)):e.value==="duotone"?(l(),o("g",$1,H1)):e.value==="fill"?(l(),o("g",y1,C1)):e.value==="light"?(l(),o("g",M1,b1)):e.value==="regular"?(l(),o("g",k1,S1)):e.value==="thin"?(l(),o("g",z1,x1)):$("",!0)],16,A1))}}),j1=["width","height","fill","transform"],I1={key:0},E1=t("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"},null,-1),G1=[E1],D1={key:1},F1=t("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),W1=t("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),q1=[F1,W1],O1={key:2},R1=t("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),T1=[R1],K1={key:3},Y1=t("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"},null,-1),J1=[Y1],Q1={key:4},U1=t("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),X1=[U1],a0={key:5},l0=t("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"},null,-1),e0=[l0],t0={name:"PhGearSix"},o0=L({...t0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,d=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:d}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),h=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:h.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",I1,G1)):e.value==="duotone"?(l(),o("g",D1,q1)):e.value==="fill"?(l(),o("g",O1,T1)):e.value==="light"?(l(),o("g",K1,J1)):e.value==="regular"?(l(),o("g",Q1,X1)):e.value==="thin"?(l(),o("g",a0,e0)):$("",!0)],16,j1))}}),r0=["width","height","fill","transform"],i0={key:0},s0=t("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"},null,-1),n0=[s0],c0={key:1},u0=t("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"},null,-1),d0=t("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),h0=[u0,d0],m0={key:2},p0=t("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"},null,-1),A0=[p0],g0={key:3},v0=t("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"},null,-1),L0=[v0],$0={key:4},Z0=t("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},null,-1),V0=[Z0],H0={key:5},y0=t("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"},null,-1),f0=[y0],C0={name:"PhKey"},M0=L({...C0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,d=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:d}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),h=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:h.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",i0,n0)):e.value==="duotone"?(l(),o("g",c0,h0)):e.value==="fill"?(l(),o("g",m0,A0)):e.value==="light"?(l(),o("g",g0,L0)):e.value==="regular"?(l(),o("g",$0,V0)):e.value==="thin"?(l(),o("g",H0,f0)):$("",!0)],16,r0))}}),w0=["width","height","fill","transform"],b0={key:0},k0=t("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"},null,-1),_0=[k0],S0={key:1},z0=t("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"},null,-1),B0=t("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),x0=[z0,B0],N0={key:2},P0=t("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"},null,-1),j0=[P0],I0={key:3},E0=t("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"},null,-1),G0=[E0],D0={key:4},F0=t("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),W0=[F0],q0={key:5},O0=t("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"},null,-1),R0=[O0],T0={name:"PhPlug"},K0=L({...T0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const r=u,d=n("weight","regular"),s=n("size","1em"),m=n("color","currentColor"),p=n("mirrored",!1),e=i(()=>{var a;return(a=r.weight)!=null?a:d}),c=i(()=>{var a;return(a=r.size)!=null?a:s}),h=i(()=>{var a;return(a=r.color)!=null?a:m}),A=i(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(l(),o("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:h.value,transform:A.value},a.$attrs),[H(a.$slots,"default"),e.value==="bold"?(l(),o("g",b0,_0)):e.value==="duotone"?(l(),o("g",S0,x0)):e.value==="fill"?(l(),o("g",N0,j0)):e.value==="light"?(l(),o("g",I0,G0)):e.value==="regular"?(l(),o("g",D0,W0)):e.value==="thin"?(l(),o("g",q0,R0)):$("",!0)],16,w0))}}),Y0={class:"button"},J0=L({__name:"Project",setup(u){const d=_().params.projectId,{result:s}=k(()=>I.get(d).then(async a=>{const g=await j.get(a.organizationId);return{project:a,organization:g}})),m=S(),p=()=>{m.push({name:"web-editor",params:{projectId:d}})},e=i(()=>{var a,g,f,Z;return((a=s.value)==null?void 0:a.organization)&&s.value.project?[{label:"My organizations",path:"/organizations"},{label:(f=(g=s.value)==null?void 0:g.organization)==null?void 0:f.name,path:`/organizations/${(Z=s.value)==null?void 0:Z.organization.id}`},{label:s.value.project.name,path:`/projects/${s.value.project.id}`}]:void 0}),c=i(()=>{var a;return(a=s.value)==null?void 0:a.organization.billingMetadata}),h=i(()=>{var a;return(a=s.value)==null?void 0:a.organization.id}),A=i(()=>{var a;return(a=s.value)!=null&&a.project?[{name:"Project",items:[{name:"Live",path:"live",icon:R},{name:"Builds",path:"builds",icon:O},{name:"Connectors",path:"connectors",icon:K0,unavailable:!s.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:p1},{name:"API Keys",path:"api-keys",icon:M0},{name:"Env Vars",path:"env-vars",icon:W},{name:"Files",path:"files",icon:P1},{name:"Logs",icon:F,path:"logs"},{name:"Settings",icon:o0,path:"settings"},{name:"Access Control",icon:q,path:"access-control"}]}]:[]});return(a,g)=>{const f=z("RouterView");return l(),C(b,null,{content:v(()=>[V(D,null,{default:v(()=>[c.value&&h.value?(l(),C(E,{key:0,"billing-metadata":c.value,"organization-id":h.value},null,8,["billing-metadata","organization-id"])):$("",!0),V(f)]),_:1})]),navbar:v(()=>[V(w,{class:"nav",breadcrumb:e.value},null,8,["breadcrumb"])]),sidebar:v(()=>{var Z;return[V(G,{class:"sidebar",sections:A.value},B({_:2},[(Z=M(s))!=null&&Z.organization.featureFlags.WEB_EDITOR?{name:"bottom",fn:v(()=>[t("div",Y0,[V(M(x),{type:"primary",onClick:p},{default:v(()=>[N("Go to Web Editor")]),_:1})])]),key:"0"}:void 0]),1032,["sections"])]}),_:1})}}});const M2=P(J0,[["__scopeId","data-v-630a89db"]]);export{M2 as default}; +//# sourceMappingURL=Project.1861926b.js.map diff --git a/abstra_statics/dist/assets/ProjectLogin.836b6bad.js b/abstra_statics/dist/assets/ProjectLogin.836b6bad.js deleted file mode 100644 index 385eb99d21..0000000000 --- a/abstra_statics/dist/assets/ProjectLogin.836b6bad.js +++ /dev/null @@ -1,2 +0,0 @@ -import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import{B as y}from"./BaseLayout.995c8c6b.js";import{d as p,E as m,L as b,a0 as u,a_ as v,a$ as g,o as _,Y as h,a as r,Z as s,ea as w,eo as S,X as L,c as k,w as n,b as i,u as $}from"./index.8c3f27aa.js";import{u as x}from"./editor.e7656461.js";import{b as B}from"./index.d667cd0d.js";import"./Logo.cf3e0e74.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./asyncComputed.cfc0cdaf.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";import"./index.37c7ea66.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="63f04125-423d-4597-97f7-42d096ebd74a",e._sentryDebugIdIdentifier="sentry-dbid-63f04125-423d-4597-97f7-42d096ebd74a")}catch{}})();const I=p({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=m({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(o)}}});const P={class:"v-spinner"};function D(e,o,a,d,c,l){return v((_(),h("div",P,[r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const R=u(I,[["render",D],["__scopeId","data-v-06538001"]]),j={class:"content"},z=p({__name:"ProjectLogin",setup(e){const o=w(),a=S(),d=x();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function l(){const t=o.query["api-key"];if(typeof t=="string")return t}return L(async()=>{const t=l();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"workspace"})}),(t,C)=>(_(),k(y,null,{navbar:n(()=>[i($(B),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(f)]),_:1})]),content:n(()=>[r("div",j,[i(R)])]),_:1}))}});const G=u(z,[["__scopeId","data-v-944edebb"]]);export{G as default}; -//# sourceMappingURL=ProjectLogin.836b6bad.js.map diff --git a/abstra_statics/dist/assets/ProjectLogin.869d6354.js b/abstra_statics/dist/assets/ProjectLogin.869d6354.js new file mode 100644 index 0000000000..6456f72132 --- /dev/null +++ b/abstra_statics/dist/assets/ProjectLogin.869d6354.js @@ -0,0 +1,2 @@ +import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import{B as y}from"./BaseLayout.52f1acec.js";import{d as p,E as b,L as m,a0 as u,a_ as v,a$ as g,o as _,Y as h,a as r,Z as s,ea as w,eo as S,X as L,c as k,w as n,b as i,u as $}from"./index.d0f12294.js";import{u as x}from"./editor.95f16260.js";import{b as B}from"./index.3b2f4dca.js";import"./Logo.8f27935a.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./asyncComputed.703c33fd.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";import"./index.a82e0ed1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b9cef5a7-d4f0-4bb7-b76c-3e110b7d8b3c",e._sentryDebugIdIdentifier="sentry-dbid-b9cef5a7-d4f0-4bb7-b76c-3e110b7d8b3c")}catch{}})();const I=p({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=b({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...m(o)}}});const P={class:"v-spinner"};function D(e,o,a,c,d,l){return v((_(),h("div",P,[r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const R=u(I,[["render",D],["__scopeId","data-v-06538001"]]),j={class:"content"},z=p({__name:"ProjectLogin",setup(e){const o=w(),a=S(),c=x();function d(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function l(){const t=o.query["api-key"];if(typeof t=="string")return t}return L(async()=>{const t=l();if(!t){a.push({name:"error"});return}await c.createLogin(t).then(d),a.push({name:"workspace"})}),(t,C)=>(_(),k(y,null,{navbar:n(()=>[i($(B),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(f)]),_:1})]),content:n(()=>[r("div",j,[i(R)])]),_:1}))}});const G=u(z,[["__scopeId","data-v-944edebb"]]);export{G as default}; +//# sourceMappingURL=ProjectLogin.869d6354.js.map diff --git a/abstra_statics/dist/assets/ProjectSettings.b6490445.js b/abstra_statics/dist/assets/ProjectSettings.5ee671dc.js similarity index 75% rename from abstra_statics/dist/assets/ProjectSettings.b6490445.js rename to abstra_statics/dist/assets/ProjectSettings.5ee671dc.js index 1dbdf88686..42e1563892 100644 --- a/abstra_statics/dist/assets/ProjectSettings.b6490445.js +++ b/abstra_statics/dist/assets/ProjectSettings.5ee671dc.js @@ -1,2 +1,2 @@ -import{a as D}from"./asyncComputed.cfc0cdaf.js";import{b as t,ee as T,f4 as B,d as y,e as E,ej as x,f as p,o as j,c as F,w as l,u as n,aG as u,dd as S,db as N,dc as c,a as v,e9 as g,cz as U,dh as V,bL as H,aW as R,cy as $,ea as q,Y as z,S as G}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{P as C}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import{S as L}from"./SaveButton.f2d9e5cc.js";import{a as h}from"./router.f4663fd5.js";import{A as M}from"./index.37c7ea66.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="655105eb-b349-443d-9376-6270ee0e3df3",r._sentryDebugIdIdentifier="sentry-dbid-655105eb-b349-443d-9376-6270ee0e3df3")}catch{}})();function _(r){for(var o=1;o{try{const{available:s}=await e.project.checkSubdomain();a.value=s?"available":"unavailable"}catch{a.value=void 0}},500);function d(){if(!e.project.hasChangesDeep("subdomain")){a.value=void 0;return}e.project.subdomain?(a.value="loading",i()):a.value="invalid"}const b=p(()=>a.value!=="available"||!e.project.hasChangesDeep("subdomain")),w=async()=>{await navigator.clipboard.writeText(e.project.getUrl())},A=p(()=>{switch(a.value){case"invalid":return"error";case"loading":return"validating";case"available":return"success";case"unavailable":return"error";default:return}}),k=p(()=>{switch(a.value){case"loading":return"Checking availability...";case"available":return"Available";case"unavailable":return"Unavailable";case"invalid":return"Invalid subdomain";default:return}}),O=()=>{const s=C.formatSubdomain(e.project.subdomain);o("change-subdomain",s),d()};function P(){e.project.resetChanges(),a.value=void 0}return(s,f)=>(j(),F(n(M),{direction:"vertical"},{default:l(()=>[t(n(S),{level:2},{default:l(()=>[u("Subdomain")]),_:1}),t(n(N),null,{default:l(()=>[u(" Every project in Abstra Cloud comes with a default subdomain, which will appear on all shared project links. ")]),_:1}),t(n(h),null,{default:l(()=>[t(n(c),null,{default:l(()=>[u("Forms available at:")]),_:1}),t(n(c),{code:""},{default:l(()=>[v("span",null,g(s.project.getUrl("[PATH]")),1)]),_:1})]),_:1}),t(n(h),null,{default:l(()=>[t(n(c),null,{default:l(()=>[u("Hooks available at:")]),_:1}),t(n(c),{code:""},{default:l(()=>[v("span",null,g(s.project.getUrl("_hooks/[PATH]")),1)]),_:1})]),_:1}),t(n($),null,{default:l(()=>[t(n(U),{"validate-status":A.value,help:k.value,"has-feedback":""},{default:l(()=>[t(n(V),{gap:"middle"},{default:l(()=>[t(n(H),{value:s.project.subdomain,type:"text",loading:a.value==="loading",onBlur:O,onChange:f[0]||(f[0]=I=>o("change-subdomain",I.target.value))},{addonBefore:l(()=>[u("https://")]),addonAfter:l(()=>[u(".abstra.app/")]),_:1},8,["value","loading"]),t(n(R),{placement:"top",title:"Copy"},{default:l(()=>[t(n(Y),{color:"red",onClick:w})]),_:1})]),_:1})]),_:1},8,["validate-status","help"]),t(L,{model:s.project,disabled:b.value,onError:P},null,8,["model","disabled"])]),_:1})]),_:1}))}}),Q={key:0,class:"project-settings"},de=y({__name:"ProjectSettings",setup(r){const e=q().params.projectId,{result:a}=D(()=>C.get(e)),i=d=>{a.value.subdomain=d};return(d,b)=>n(a)?(j(),z("div",Q,[t(n(S),null,{default:l(()=>[u("Project Settings")]),_:1}),t(J,{project:n(a),onChangeSubdomain:i},null,8,["project"])])):G("",!0)}});export{de as default}; -//# sourceMappingURL=ProjectSettings.b6490445.js.map +import{a as D}from"./asyncComputed.703c33fd.js";import{b as t,ee as T,f4 as B,d as y,e as E,ej as x,f as p,o as j,c as F,w as l,u as n,aG as u,dd as S,db as N,dc as c,a as v,e9 as g,cz as U,dh as V,bL as H,aW as R,cy as $,ea as q,Y as z,S as G}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{P as C}from"./project.fad91605.js";import"./tables.318f703e.js";import{S as L}from"./SaveButton.a02cacb0.js";import{a as h}from"./router.375df57e.js";import{A as M}from"./index.a82e0ed1.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="9c2383bd-3c6f-4c84-8d29-ea91d7a7f30b",r._sentryDebugIdIdentifier="sentry-dbid-9c2383bd-3c6f-4c84-8d29-ea91d7a7f30b")}catch{}})();function _(r){for(var o=1;o{try{const{available:s}=await e.project.checkSubdomain();a.value=s?"available":"unavailable"}catch{a.value=void 0}},500);function d(){if(!e.project.hasChangesDeep("subdomain")){a.value=void 0;return}e.project.subdomain?(a.value="loading",i()):a.value="invalid"}const f=p(()=>a.value!=="available"||!e.project.hasChangesDeep("subdomain")),w=async()=>{await navigator.clipboard.writeText(e.project.getUrl())},A=p(()=>{switch(a.value){case"invalid":return"error";case"loading":return"validating";case"available":return"success";case"unavailable":return"error";default:return}}),k=p(()=>{switch(a.value){case"loading":return"Checking availability...";case"available":return"Available";case"unavailable":return"Unavailable";case"invalid":return"Invalid subdomain";default:return}}),O=()=>{const s=C.formatSubdomain(e.project.subdomain);o("change-subdomain",s),d()};function P(){e.project.resetChanges(),a.value=void 0}return(s,b)=>(j(),F(n(M),{direction:"vertical"},{default:l(()=>[t(n(S),{level:2},{default:l(()=>[u("Subdomain")]),_:1}),t(n(N),null,{default:l(()=>[u(" Every project in Abstra Cloud comes with a default subdomain, which will appear on all shared project links. ")]),_:1}),t(n(h),null,{default:l(()=>[t(n(c),null,{default:l(()=>[u("Forms available at:")]),_:1}),t(n(c),{code:""},{default:l(()=>[v("span",null,g(s.project.getUrl("[PATH]")),1)]),_:1})]),_:1}),t(n(h),null,{default:l(()=>[t(n(c),null,{default:l(()=>[u("Hooks available at:")]),_:1}),t(n(c),{code:""},{default:l(()=>[v("span",null,g(s.project.getUrl("_hooks/[PATH]")),1)]),_:1})]),_:1}),t(n($),null,{default:l(()=>[t(n(U),{"validate-status":A.value,help:k.value,"has-feedback":""},{default:l(()=>[t(n(V),{gap:"middle"},{default:l(()=>[t(n(H),{value:s.project.subdomain,type:"text",loading:a.value==="loading",onBlur:O,onChange:b[0]||(b[0]=I=>o("change-subdomain",I.target.value))},{addonBefore:l(()=>[u("https://")]),addonAfter:l(()=>[u(".abstra.app/")]),_:1},8,["value","loading"]),t(n(R),{placement:"top",title:"Copy"},{default:l(()=>[t(n(Y),{color:"red",onClick:w})]),_:1})]),_:1})]),_:1},8,["validate-status","help"]),t(L,{model:s.project,disabled:f.value,onError:P},null,8,["model","disabled"])]),_:1})]),_:1}))}}),Q={key:0,class:"project-settings"},de=y({__name:"ProjectSettings",setup(r){const e=q().params.projectId,{result:a}=D(()=>C.get(e)),i=d=>{a.value.subdomain=d};return(d,f)=>n(a)?(j(),z("div",Q,[t(n(S),null,{default:l(()=>[u("Project Settings")]),_:1}),t(J,{project:n(a),onChangeSubdomain:i},null,8,["project"])])):G("",!0)}});export{de as default}; +//# sourceMappingURL=ProjectSettings.5ee671dc.js.map diff --git a/abstra_statics/dist/assets/ProjectsView.c7828455.js b/abstra_statics/dist/assets/ProjectsView.413629ec.js similarity index 79% rename from abstra_statics/dist/assets/ProjectsView.c7828455.js rename to abstra_statics/dist/assets/ProjectsView.413629ec.js index d6938b6220..3bff3cc60d 100644 --- a/abstra_statics/dist/assets/ProjectsView.c7828455.js +++ b/abstra_statics/dist/assets/ProjectsView.413629ec.js @@ -1,2 +1,2 @@ -var b=Object.defineProperty;var y=(n,e,t)=>e in n?b(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var o=(n,e,t)=>(y(n,typeof e!="symbol"?e+"":e,t),t);import{C as I}from"./CrudView.ac8aad2f.js";import{e as u,f,cM as C,ep as T,d as k,ea as E,eo as z,o as g,Y as _,u as a,c as w,S as j,b as c,w as m,aS as O,cz as v,bL as S,aB as N,cy as A,cL as D}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{M as R}from"./member.ce73ad98.js";import{P,a as V}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import{a as x}from"./ant-design.ae7d2f9f.js";import{T as F,G as M}from"./tagColorProvider.09f476d6.js";import{I as U}from"./PhCopy.vue.a05dc1a1.js";import{O as B}from"./organization.2853982f.js";import"./router.f4663fd5.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="b5980f96-bc29-4806-99f0-5ad4eb564934",n._sentryDebugIdIdentifier="sentry-dbid-b5980f96-bc29-4806-99f0-5ad4eb564934")}catch{}})();const L=[{key:"name",label:"Project Name"}];class ${constructor(e,t,r){o(this,"projects",u(null));o(this,"organization",u(null));o(this,"editingProject",u(null));o(this,"teamColorProvider",new F);o(this,"teamOptions",u([]));o(this,"table",f(()=>this.makeCrudViewTable()));o(this,"loading",f(()=>!this.projects.value||!this.organization.value));o(this,"createProject",async e=>{const t=await P.create({organizationId:this.organizationId,name:e.name});this.handlers.navigateToProject(t.id)});o(this,"deleteProject",async({key:e})=>{var r,s;if(!!await x("Are you sure you want to delete this project?")){try{await((s=(r=this.projects.value)==null?void 0:r.find(l=>l.id===e))==null?void 0:s.delete())}catch(l){C.error({message:"Error deleting project",description:String(l)})}await this.fetchInitialState()}});o(this,"duplicateProject",async({key:e})=>{var r;const t=(r=this.projects.value)==null?void 0:r.find(s=>s.id===e);if(t){const s=await t.duplicate();this.handlers.navigateToProject(s.id)}});o(this,"saveEdit",async()=>{if(!this.editingProject.value)return;const{projectId:e,newName:t,newTeam:r}=this.editingProject.value;await this.apis.project.update(e,{name:t,team:r}),await this.fetchInitialState(),this.editingProject.value=null});o(this,"cancelEdit",()=>{this.editingProject.value=null});o(this,"getActions",e=>{var t;return[{icon:M,label:"Edit project",onClick:()=>this.startEditingProject(e)},{icon:U,label:"Duplicate",onClick:()=>this.duplicateProject({key:e.id}),hide:!!((t=this.organization.value)!=null&&t.featureFlags.DUPLICATE_PROJECTS)},{icon:T,label:"Delete",onClick:()=>this.deleteProject({key:e.id}),dangerous:!0}]});o(this,"getRows",()=>this.projects.value?this.projects.value.map(e=>({key:e.id,cells:[{type:"link",text:e.name,to:`/projects/${encodeURIComponent(e.id)}`},{type:"tag",text:e.team||"No team",tagColor:e.team?this.teamColorProvider.getColor(e.team):"default"},{type:"actions",actions:this.getActions(e)}]})):[]);this.organizationId=e,this.handlers=t,this.apis=r}async fetchInitialState(){this.projects.value=await P.list(this.organizationId),this.organization.value=await B.get(this.organizationId),this.teamOptions.value=await this.fetchTeamOptions()}async fetchTeamOptions(){return(await this.apis.member.fetchTeamOptions(this.organizationId)).map(t=>({label:t,value:t}))}startEditingProject(e){var t;this.editingProject.value={projectId:e.id,newName:e.name,newTeam:(t=e.team)!=null?t:""}}makeCrudViewTable(){return{columns:[{title:"Project",align:"left"},{title:"Team",align:"center"},{title:"",align:"right"}],rows:this.getRows()}}}const ue=k({__name:"ProjectsView",setup(n){const t=E().params.organizationId,r=z(),s={navigateToProject:h=>r.push({name:"project",params:{organizationId:t,projectId:h}})},l={member:new R,project:new V},i=new $(t,s,l);return i.fetchInitialState(),(h,d)=>(g(),_(O,null,[a(i).table.value?(g(),w(I,{key:0,"entity-name":"project",loading:a(i).loading.value,title:"Projects",description:"Organize your team\u2019s work into different Projects, each with it\u2019s own environment settings, authorized end-users and editor permissions.","create-button-text":"Create Project","empty-title":"No projects here yet",table:a(i).table.value,fields:a(L),create:a(i).createProject},null,8,["loading","table","fields","create"])):j("",!0),c(a(D),{open:!!a(i).editingProject.value,title:"Edit project",onCancel:a(i).cancelEdit,onOk:a(i).saveEdit},{default:m(()=>[a(i).editingProject.value?(g(),w(a(A),{key:0,layout:"vertical"},{default:m(()=>[c(a(v),{label:"Name"},{default:m(()=>[c(a(S),{value:a(i).editingProject.value.newName,"onUpdate:value":d[0]||(d[0]=p=>a(i).editingProject.value.newName=p)},null,8,["value"])]),_:1}),c(a(v),{label:"Team",tooltip:"Create Teams by adding them on the Editors page",help:a(i).editingProject.value.newTeam?`Only editors within '${a(i).editingProject.value.newTeam}' or organization Admins can view the project`:"Project will be visible to all editors"},{default:m(()=>[c(a(N),{value:a(i).editingProject.value.newTeam,"onUpdate:value":d[1]||(d[1]=p=>a(i).editingProject.value.newTeam=p),"allow-clear":"",options:a(i).teamOptions.value,placeholder:"Select or type new team name","not-found-content":"Create a team first on the Editors page"},null,8,["value","options"])]),_:1},8,["help"])]),_:1})):j("",!0)]),_:1},8,["open","onCancel","onOk"])],64))}});export{ue as default}; -//# sourceMappingURL=ProjectsView.c7828455.js.map +var y=Object.defineProperty;var b=(n,e,t)=>e in n?y(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var o=(n,e,t)=>(b(n,typeof e!="symbol"?e+"":e,t),t);import{C as I}from"./CrudView.423d8744.js";import{e as u,f,cM as C,ep as T,d as k,ea as E,eo as z,o as g,Y as _,u as a,c as w,S as j,b as c,w as m,aS as O,cz as v,bL as S,aB as N,cy as A,cL as D}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{M as R}from"./member.8ffb8c1d.js";import{P,a as V}from"./project.fad91605.js";import"./tables.318f703e.js";import{a as x}from"./ant-design.d89b18ab.js";import{T as F,G as M}from"./tagColorProvider.36a797cb.js";import{I as U}from"./PhCopy.vue.dfade011.js";import{O as B}from"./organization.03372a7f.js";import"./router.375df57e.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="a6c1d219-ff94-4879-86be-9d80aa450ce1",n._sentryDebugIdIdentifier="sentry-dbid-a6c1d219-ff94-4879-86be-9d80aa450ce1")}catch{}})();const L=[{key:"name",label:"Project Name"}];class ${constructor(e,t,r){o(this,"projects",u(null));o(this,"organization",u(null));o(this,"editingProject",u(null));o(this,"teamColorProvider",new F);o(this,"teamOptions",u([]));o(this,"table",f(()=>this.makeCrudViewTable()));o(this,"loading",f(()=>!this.projects.value||!this.organization.value));o(this,"createProject",async e=>{const t=await P.create({organizationId:this.organizationId,name:e.name});this.handlers.navigateToProject(t.id)});o(this,"deleteProject",async({key:e})=>{var r,s;if(!!await x("Are you sure you want to delete this project?")){try{await((s=(r=this.projects.value)==null?void 0:r.find(l=>l.id===e))==null?void 0:s.delete())}catch(l){C.error({message:"Error deleting project",description:String(l)})}await this.fetchInitialState()}});o(this,"duplicateProject",async({key:e})=>{var r;const t=(r=this.projects.value)==null?void 0:r.find(s=>s.id===e);if(t){const s=await t.duplicate();this.handlers.navigateToProject(s.id)}});o(this,"saveEdit",async()=>{if(!this.editingProject.value)return;const{projectId:e,newName:t,newTeam:r}=this.editingProject.value;await this.apis.project.update(e,{name:t,team:r}),await this.fetchInitialState(),this.editingProject.value=null});o(this,"cancelEdit",()=>{this.editingProject.value=null});o(this,"getActions",e=>{var t;return[{icon:M,label:"Edit project",onClick:()=>this.startEditingProject(e)},{icon:U,label:"Duplicate",onClick:()=>this.duplicateProject({key:e.id}),hide:!!((t=this.organization.value)!=null&&t.featureFlags.DUPLICATE_PROJECTS)},{icon:T,label:"Delete",onClick:()=>this.deleteProject({key:e.id}),dangerous:!0}]});o(this,"getRows",()=>this.projects.value?this.projects.value.map(e=>({key:e.id,cells:[{type:"link",text:e.name,to:`/projects/${encodeURIComponent(e.id)}`},{type:"tag",text:e.team||"No team",tagColor:e.team?this.teamColorProvider.getColor(e.team):"default"},{type:"actions",actions:this.getActions(e)}]})):[]);this.organizationId=e,this.handlers=t,this.apis=r}async fetchInitialState(){this.projects.value=await P.list(this.organizationId),this.organization.value=await B.get(this.organizationId),this.teamOptions.value=await this.fetchTeamOptions()}async fetchTeamOptions(){return(await this.apis.member.fetchTeamOptions(this.organizationId)).map(t=>({label:t,value:t}))}startEditingProject(e){var t;this.editingProject.value={projectId:e.id,newName:e.name,newTeam:(t=e.team)!=null?t:""}}makeCrudViewTable(){return{columns:[{title:"Project",align:"left"},{title:"Team",align:"center"},{title:"",align:"right"}],rows:this.getRows()}}}const ue=k({__name:"ProjectsView",setup(n){const t=E().params.organizationId,r=z(),s={navigateToProject:h=>r.push({name:"project",params:{organizationId:t,projectId:h}})},l={member:new R,project:new V},i=new $(t,s,l);return i.fetchInitialState(),(h,d)=>(g(),_(O,null,[a(i).table.value?(g(),w(I,{key:0,"entity-name":"project",loading:a(i).loading.value,title:"Projects",description:"Organize your team\u2019s work into different Projects, each with it\u2019s own environment settings, authorized end-users and editor permissions.","create-button-text":"Create Project","empty-title":"No projects here yet",table:a(i).table.value,fields:a(L),create:a(i).createProject},null,8,["loading","table","fields","create"])):j("",!0),c(a(D),{open:!!a(i).editingProject.value,title:"Edit project",onCancel:a(i).cancelEdit,onOk:a(i).saveEdit},{default:m(()=>[a(i).editingProject.value?(g(),w(a(A),{key:0,layout:"vertical"},{default:m(()=>[c(a(v),{label:"Name"},{default:m(()=>[c(a(S),{value:a(i).editingProject.value.newName,"onUpdate:value":d[0]||(d[0]=p=>a(i).editingProject.value.newName=p)},null,8,["value"])]),_:1}),c(a(v),{label:"Team",tooltip:"Create Teams by adding them on the Editors page",help:a(i).editingProject.value.newTeam?`Only editors within '${a(i).editingProject.value.newTeam}' or organization Admins can view the project`:"Project will be visible to all editors"},{default:m(()=>[c(a(N),{value:a(i).editingProject.value.newTeam,"onUpdate:value":d[1]||(d[1]=p=>a(i).editingProject.value.newTeam=p),"allow-clear":"",options:a(i).teamOptions.value,placeholder:"Select or type new team name","not-found-content":"Create a team first on the Editors page"},null,8,["value","options"])]),_:1},8,["help"])]),_:1})):j("",!0)]),_:1},8,["open","onCancel","onOk"])],64))}});export{ue as default}; +//# sourceMappingURL=ProjectsView.413629ec.js.map diff --git a/abstra_statics/dist/assets/RequirementsEditor.afe6899d.js b/abstra_statics/dist/assets/RequirementsEditor.baa7f021.js similarity index 76% rename from abstra_statics/dist/assets/RequirementsEditor.afe6899d.js rename to abstra_statics/dist/assets/RequirementsEditor.baa7f021.js index 39dcc56e63..9aa20da6a1 100644 --- a/abstra_statics/dist/assets/RequirementsEditor.afe6899d.js +++ b/abstra_statics/dist/assets/RequirementsEditor.baa7f021.js @@ -1,2 +1,2 @@ -var le=Object.defineProperty;var ae=(n,e,i)=>e in n?le(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i;var $=(n,e,i)=>(ae(n,typeof e!="symbol"?e+"":e,i),i);import{C as ne}from"./ContentLayout.60e2d770.js";import{C as re}from"./CrudView.ac8aad2f.js";import{a as oe}from"./asyncComputed.cfc0cdaf.js";import{d as Y,D as M,f as q,o as a,Y as g,$ as de,S as R,e8 as ce,a as T,X as ue,ah as me,E as F,e as B,c as f,w as l,b as d,u as s,dh as k,eR as H,dc as x,aG as u,e9 as z,bT as I,dd as pe,db as ge,aS as D,eb as O,by as G,ez as U,eA as W,cL as ye,ep as J}from"./index.8c3f27aa.js";import{u as fe}from"./polling.98a0bd01.js";import"./editor.e7656461.js";import{E as he}from"./record.a6861841.js";import{W as be}from"./workspaces.7bc437a6.js";import"./router.f4663fd5.js";import"./gateway.8032b20a.js";import"./popupNotifcation.40886a7f.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./workspaceStore.a6063d10.js";import"./colorHelpers.0ac76147.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="da87f0e9-105c-430c-bdd6-3161a838b89f",n._sentryDebugIdIdentifier="sentry-dbid-da87f0e9-105c-430c-bdd6-3161a838b89f")}catch{}})();const _e=["width","height","fill","transform"],we={key:0},ve=T("path",{d:"M120,137,48,201A12,12,0,1,1,32,183l61.91-55L32,73A12,12,0,1,1,48,55l72,64A12,12,0,0,1,120,137Zm96,43H120a12,12,0,0,0,0,24h96a12,12,0,0,0,0-24Z"},null,-1),ke=[ve],xe={key:1},Ae=T("path",{d:"M216,80V192H40V64H200A16,16,0,0,1,216,80Z",opacity:"0.2"},null,-1),Re=T("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"},null,-1),Te=[Ae,Re],Ce={key:2},Ee=T("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM77.66,173.66a8,8,0,0,1-11.32-11.32L100.69,128,66.34,93.66A8,8,0,0,1,77.66,82.34l40,40a8,8,0,0,1,0,11.32ZM192,176H128a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"},null,-1),Se=[Ee],Ve={key:3},qe=T("path",{d:"M116,132.48l-72,64a6,6,0,0,1-8-9L103,128,36,68.49a6,6,0,0,1,8-9l72,64a6,6,0,0,1,0,9ZM216,186H120a6,6,0,0,0,0,12h96a6,6,0,0,0,0-12Z"},null,-1),Le=[qe],Me={key:4},ze=T("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"},null,-1),Ze=[ze],je={key:5},Ne=T("path",{d:"M116,128a4,4,0,0,1-1.34,3l-72,64a4,4,0,1,1-5.32-6L106,128,37.34,67a4,4,0,0,1,5.32-6l72,64A4,4,0,0,1,116,128Zm100,60H120a4,4,0,0,0,0,8h96a4,4,0,0,0,0-8Z"},null,-1),Pe=[Ne],$e={name:"PhTerminal"},Fe=Y({...$e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const e=n,i=M("weight","regular"),r=M("size","1em"),_=M("color","currentColor"),w=M("mirrored",!1),h=q(()=>{var c;return(c=e.weight)!=null?c:i}),b=q(()=>{var c;return(c=e.size)!=null?c:r}),v=q(()=>{var c;return(c=e.color)!=null?c:_}),L=q(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:w?"scale(-1, 1)":void 0);return(c,j)=>(a(),g("svg",ce({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:v.value,transform:L.value},c.$attrs),[de(c.$slots,"default"),h.value==="bold"?(a(),g("g",we,ke)):h.value==="duotone"?(a(),g("g",xe,Te)):h.value==="fill"?(a(),g("g",Ce,Se)):h.value==="light"?(a(),g("g",Ve,Le)):h.value==="regular"?(a(),g("g",Me,Ze)):h.value==="thin"?(a(),g("g",je,Pe)):R("",!0)],16,_e))}}),X="__ABSTRA_STREAM_ERROR__";class Be{async list(){return(await fetch("/_editor/api/requirements")).json()}async recommendations(){return(await fetch("/_editor/api/requirements/recommendations")).json()}async update(e,i){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok)throw new Error("Failed to update requirements")}async create(e){const i=await fetch("/_editor/api/requirements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!i.ok)throw new Error("Failed to create requirements");return i.json()}async delete(e){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete requirements")}async*install(){var r;const i=(r=(await fetch("/_editor/api/requirements/install",{method:"POST",headers:{"Content-Type":"application/json"}})).body)==null?void 0:r.getReader();if(!i)throw new Error("No response body");for(;;){const _=await i.read();if(_.done)break;const w=new TextDecoder().decode(_.value);if(w===X)throw new Error("Failed to install requirements");yield w}}async*uninstall(e){var _;const r=(_=(await fetch(`/_editor/api/requirements/${e}/uninstall`,{method:"POST",headers:{"Content-Type":"application/json"}})).body)==null?void 0:_.getReader();if(!r)throw new Error("No response body");for(;;){const w=await r.read();if(w.done)break;const h=new TextDecoder().decode(w.value);if(h===X)throw new Error("Failed to uninstall requirements");yield h}}}const C=new Be;class A{constructor(e){$(this,"record");this.record=he.from(e)}static async list(){return(await C.list()).map(i=>new A(i))}static async create(e,i){const r=await C.create({name:e,version:i||null});return new A(r)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get version(){var e;return(e=this.record.get("version"))!=null?e:null}set version(e){this.record.set("version",e)}get installedVersion(){var e;return(e=this.record.get("installed_version"))!=null?e:null}async delete(){await C.delete(this.name)}async uninstall(e){for await(const i of C.uninstall(this.name))e(i)}static async recommendations(){return C.recommendations()}static async install(e){for await(const i of C.install())e(i)}}const He=n=>["__future__","__main__","_thread","abc","aifc","argparse","array","ast","asynchat","asyncio","asyncore","atexit","audioop","base64","bdb","binascii","binhex","bisect","builtins","bz2","calendar","cgi","cgitb","chunk","cmath","cmd","code","codecs","codeop","collections","collections.abc","colorsys","compileall","concurrent","concurrent.futures","configparser","contextlib","contextvars","copy","copyreg","cProfile","crypt","csv","ctypes","curses","curses.ascii","curses.panel","curses.textpad","dataclasses","datetime","dbm","dbm.dumb","dbm.gnu","dbm.ndbm","decimal","difflib","dis","distutils","distutils.archive_util","distutils.bcppcompiler","distutils.ccompiler","distutils.cmd","distutils.command","distutils.command.bdist","distutils.command.bdist_dumb","distutils.command.bdist_msi","distutils.command.bdist_packager","distutils.command.bdist_rpm","distutils.command.build","distutils.command.build_clib","distutils.command.build_ext","distutils.command.build_py","distutils.command.build_scripts","distutils.command.check","distutils.command.clean","distutils.command.config","distutils.command.install","distutils.command.install_data","distutils.command.install_headers","distutils.command.install_lib","distutils.command.install_scripts","distutils.command.register","distutils.command.sdist","distutils.core","distutils.cygwinccompiler","distutils.debug","distutils.dep_util","distutils.dir_util","distutils.dist","distutils.errors","distutils.extension","distutils.fancy_getopt","distutils.file_util","distutils.filelist","distutils.log","distutils.msvccompiler","distutils.spawn","distutils.sysconfig","distutils.text_file","distutils.unixccompiler","distutils.util","distutils.version","doctest","email","email.charset","email.contentmanager","email.encoders","email.errors","email.generator","email.header","email.headerregistry","email.iterators","email.message","email.mime","email.parser","email.policy","email.utils","encodings","encodings.idna","encodings.mbcs","encodings.utf_8_sig","ensurepip","enum","errno","faulthandler","fcntl","filecmp","fileinput","fnmatch","fractions","ftplib","functools","gc","getopt","getpass","gettext","glob","graphlib","grp","gzip","hashlib","heapq","hmac","html","html.entities","html.parser","http","http.client","http.cookiejar","http.cookies","http.server","idlelib","imaplib","imghdr","imp","importlib","importlib.abc","importlib.machinery","importlib.metadata","importlib.resources","importlib.util","inspect","io","ipaddress","itertools","json","json.tool","keyword","lib2to3","linecache","locale","logging","logging.config","logging.handlers","lzma","mailbox","mailcap","marshal","math","mimetypes","mmap","modulefinder","msilib","msvcrt","multiprocessing","multiprocessing.connection","multiprocessing.dummy","multiprocessing.managers","multiprocessing.pool","multiprocessing.shared_memory","multiprocessing.sharedctypes","netrc","nis","nntplib","numbers","operator","optparse","os","os.path","ossaudiodev","pathlib","pdb","pickle","pickletools","pipes","pkgutil","platform","plistlib","poplib","posix","pprint","profile","pstats","pty","pwd","py_compile","pyclbr","pydoc","queue","quopri","random","re","readline","reprlib","resource","rlcompleter","runpy","sched","secrets","select","selectors","shelve","shlex","shutil","signal","site","smtpd","smtplib","sndhdr","socket","socketserver","spwd","sqlite3","ssl","stat","statistics","string","stringprep","struct","subprocess","sunau","symtable","sys","sysconfig","syslog","tabnanny","tarfile","telnetlib","tempfile","termios","test","test.support","test.support.bytecode_helper","test.support.import_helper","test.support.os_helper","test.support.script_helper","test.support.socket_helper","test.support.threading_helper","test.support.warnings_helper","textwrap","threading","time","timeit","tkinter","tkinter.colorchooser","tkinter.commondialog","tkinter.dnd","tkinter.filedialog","tkinter.font","tkinter.messagebox","tkinter.scrolledtext","tkinter.simpledialog","tkinter.tix","tkinter.ttk","token","tokenize","trace","traceback","tracemalloc","tty","turtle","turtledemo","types","typing","unicodedata","unittest","unittest.mock","urllib","urllib.error","urllib.parse","urllib.request","urllib.response","urllib.robotparser","uu","uuid","venv","warnings","wave","weakref","webbrowser","winreg","winsound","wsgiref","wsgiref.handlers","wsgiref.headers","wsgiref.simple_server","wsgiref.util","wsgiref.validate","xdrlib","xml","xml.dom","xml.dom.minidom","xml.dom.pulldom","xml.etree.ElementTree","xml.parsers.expat","xml.parsers.expat.errors","xml.parsers.expat.model","xml.sax","xml.sax.handler","xml.sax.saxutils","xml.sax.xmlreader","xmlrpc","xmlrpc.client","xmlrpc.server","zipapp","zipfile","zipimport","zlib","zoneinfo"].includes(n),Ie=n=>/^(\d+!)?(\d+)(\.\d+)+([\\.\-\\_])?((a(lpha)?|b(eta)?|c|r(c|ev)?|pre(view)?)\d*)?(\.?(post|dev)\d*)?$/.test(n),De={key:2},Oe={key:0,class:"logs-output"},Ge=["textContent"],pt=Y({__name:"RequirementsEditor",setup(n){const{loading:e,result:i,refetch:r}=oe(()=>Promise.all([A.list(),A.recommendations()]).then(([t,o])=>({requirements:t,recommendations:o}))),{startPolling:_,endPolling:w}=fe({task:r,interval:2e3});ue(()=>_()),me(()=>w());function h(){be.openFile("requirements.txt")}const b=F({}),v=F(new Set);function L(t){return o=>{b[t.name]?b[t.name]=[...b[t.name],o]:b[t.name]=[o]}}function c(t){b[t.name]=[]}async function j(t){c(t),y.value="installing",Z(t),v.add(t.name);try{await A.install(L(t)),y.value="install-success"}catch{y.value="install-error"}finally{v.delete(t.name),await r()}}const y=B("idle"),E=B(null);function Z(t){E.value=t.name}async function K(t){v.add(t.name);try{await t.delete()}finally{v.delete(t.name),await r()}}async function Q(t){c(t),y.value="uninstalling",Z(t),v.add(t.name);try{await t.uninstall(L(t)),y.value="uninstall-success"}catch{y.value="uninstall-error"}finally{v.delete(t.name),await r()}}async function ee(t,o){await A.create(t,o).then(r),r()}const te=[{label:"Name",key:"name",hint:t=>He(t)?"This requirement is built-in should not be installed":void 0},{label:"Required version",key:"version",placeholder:"latest",hint:t=>!t||Ie(t)?void 0:"Invalid version"}];async function se({name:t,version:o}){await A.create(t,o),r()}const ie=q(()=>{var t,o;return{columns:[{title:"Name"},{title:"Version"},{title:"Installed"},{title:"",align:"right"}],rows:(o=(t=i.value)==null?void 0:t.requirements.map(m=>{var S,V;return{key:m.name,cells:[{type:"text",text:m.name},{type:"text",text:(S=m.version)!=null?S:" - "},{type:"slot",key:"status",payload:m},{type:"actions",actions:[{icon:Fe,label:"Logs",onClick:()=>Z(m),hide:!((V=b[m.name])!=null&&V.length)},m.installedVersion?{icon:J,label:"Uninstall",onClick:()=>Q(m),dangerous:!0}:{icon:H,label:"Install",onClick:()=>j(m)},{icon:J,label:"Remove requirement",onClick:()=>K(m),dangerous:!0}]}]}}))!=null?o:[]}});return(t,o)=>(a(),f(ne,null,{default:l(()=>{var m,S,V;return[d(re,{"entity-name":"Requirements",loading:s(e),title:"Requirements",description:"Specify pip requirements for your project. This will create and update your requirements.txt file.","empty-title":"No python requirements set",table:ie.value,"create-button-text":"Add requirement",fields:te,live:"",create:se},{status:l(({payload:p})=>[d(s(k),{gap:"small",align:"center",justify:"center"},{default:l(()=>[p.installedVersion?(a(),f(s(H),{key:0})):R("",!0),p.installedVersion?(a(),f(s(x),{key:1,type:"secondary"},{default:l(()=>[u(z(p.installedVersion),1)]),_:2},1024)):(a(),f(s(x),{key:2,type:"secondary"},{default:l(()=>[u(" Not installed ")]),_:1}))]),_:2},1024)]),secondary:l(()=>[d(s(I),{onClick:o[0]||(o[0]=p=>h())},{default:l(()=>[u("Open requirements.txt")]),_:1})]),_:1},8,["loading","table"]),(m=s(i))!=null&&m.recommendations.length?(a(),f(s(pe),{key:0},{default:l(()=>[u(" Suggested requirements ")]),_:1})):R("",!0),(S=s(i))!=null&&S.recommendations.length?(a(),f(s(ge),{key:1},{default:l(()=>[u(" The following requirements are being utilized by your code but are not listed in your requirements.txt. ")]),_:1})):R("",!0),(V=s(i))!=null&&V.recommendations.length?(a(),g("ul",De,[(a(!0),g(D,null,O(s(i).recommendations,p=>(a(),g("li",{key:p.name},[u(z(p.name)+" ("+z(p.version)+") ",1),d(s(I),{onClick:N=>{var P;return ee(p.name,(P=p.version)!=null?P:void 0)}},{default:l(()=>[u(" Add to requirements ")]),_:2},1032,["onClick"])]))),128))])):R("",!0),d(s(ye),{open:!!E.value,onCancel:o[1]||(o[1]=p=>E.value=null)},{footer:l(()=>[]),title:l(()=>[u("Logs")]),default:l(()=>[d(s(k),{vertical:"",gap:"small"},{default:l(()=>[E.value?(a(),g("div",Oe,[(a(!0),g(D,null,O(b[E.value],(p,N)=>(a(),g("pre",{key:N,textContent:z(p)},null,8,Ge))),128))])):R("",!0),y.value==="installing"?(a(),f(s(k),{key:1,gap:"small",align:"center"},{default:l(()=>[d(s(G)),d(s(x),{type:"secondary"},{default:l(()=>[u("Installing requirement...")]),_:1})]),_:1})):y.value==="uninstalling"?(a(),f(s(k),{key:2,gap:"small",align:"center"},{default:l(()=>[d(s(G)),d(s(x),{type:"secondary"},{default:l(()=>[u("Uninstalling requirement...")]),_:1})]),_:1})):y.value==="install-success"?(a(),f(s(k),{key:3,gap:"small",align:"center"},{default:l(()=>[d(s(U)),d(s(x),{type:"success"},{default:l(()=>[u("Requirement installed successfully")]),_:1})]),_:1})):y.value==="install-error"?(a(),f(s(k),{key:4,gap:"small",align:"center"},{default:l(()=>[d(s(W)),d(s(x),{type:"danger"},{default:l(()=>[u("Requirement installation failed")]),_:1})]),_:1})):y.value==="uninstall-success"?(a(),f(s(k),{key:5,gap:"small",align:"center"},{default:l(()=>[d(s(U)),d(s(x),{type:"success"},{default:l(()=>[u("Requirement uninstalled successfully")]),_:1})]),_:1})):y.value==="uninstall-error"?(a(),f(s(k),{key:6,gap:"small",align:"center"},{default:l(()=>[d(s(W)),d(s(x),{type:"danger"},{default:l(()=>[u("Requirement uninstallation failed")]),_:1})]),_:1})):R("",!0)]),_:1})]),_:1},8,["open"])]}),_:1}))}});export{pt as default}; -//# sourceMappingURL=RequirementsEditor.afe6899d.js.map +var ae=Object.defineProperty;var le=(n,e,i)=>e in n?ae(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i;var $=(n,e,i)=>(le(n,typeof e!="symbol"?e+"":e,i),i);import{C as ne}from"./ContentLayout.f92ff80c.js";import{C as re}from"./CrudView.423d8744.js";import{a as oe}from"./asyncComputed.703c33fd.js";import{d as Y,D as M,f as q,o as l,Y as g,$ as de,S as R,e8 as ce,a as T,X as ue,ah as me,E as F,e as B,c as f,w as a,b as d,u as s,dh as k,eR as H,dc as x,aG as u,e9 as z,bT as I,dd as pe,db as ge,aS as D,eb as O,by as G,ez as U,eA as W,cL as ye,ep as J}from"./index.d0f12294.js";import{u as fe}from"./polling.c979afd7.js";import"./editor.95f16260.js";import{E as he}from"./record.8c284c67.js";import{W as be}from"./workspaces.e43325e2.js";import"./router.375df57e.js";import"./gateway.ae1d6857.js";import"./popupNotifcation.a0a6244b.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./workspaceStore.e47060bf.js";import"./colorHelpers.b079bb04.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="a36af7b6-044e-4e2a-99ab-e1c750708631",n._sentryDebugIdIdentifier="sentry-dbid-a36af7b6-044e-4e2a-99ab-e1c750708631")}catch{}})();const _e=["width","height","fill","transform"],we={key:0},ve=T("path",{d:"M120,137,48,201A12,12,0,1,1,32,183l61.91-55L32,73A12,12,0,1,1,48,55l72,64A12,12,0,0,1,120,137Zm96,43H120a12,12,0,0,0,0,24h96a12,12,0,0,0,0-24Z"},null,-1),ke=[ve],xe={key:1},Ae=T("path",{d:"M216,80V192H40V64H200A16,16,0,0,1,216,80Z",opacity:"0.2"},null,-1),Re=T("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"},null,-1),Te=[Ae,Re],Ce={key:2},Ee=T("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM77.66,173.66a8,8,0,0,1-11.32-11.32L100.69,128,66.34,93.66A8,8,0,0,1,77.66,82.34l40,40a8,8,0,0,1,0,11.32ZM192,176H128a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"},null,-1),Se=[Ee],Ve={key:3},qe=T("path",{d:"M116,132.48l-72,64a6,6,0,0,1-8-9L103,128,36,68.49a6,6,0,0,1,8-9l72,64a6,6,0,0,1,0,9ZM216,186H120a6,6,0,0,0,0,12h96a6,6,0,0,0,0-12Z"},null,-1),Le=[qe],Me={key:4},ze=T("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"},null,-1),Ze=[ze],je={key:5},Ne=T("path",{d:"M116,128a4,4,0,0,1-1.34,3l-72,64a4,4,0,1,1-5.32-6L106,128,37.34,67a4,4,0,0,1,5.32-6l72,64A4,4,0,0,1,116,128Zm100,60H120a4,4,0,0,0,0,8h96a4,4,0,0,0,0-8Z"},null,-1),Pe=[Ne],$e={name:"PhTerminal"},Fe=Y({...$e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(n){const e=n,i=M("weight","regular"),r=M("size","1em"),_=M("color","currentColor"),w=M("mirrored",!1),h=q(()=>{var c;return(c=e.weight)!=null?c:i}),b=q(()=>{var c;return(c=e.size)!=null?c:r}),v=q(()=>{var c;return(c=e.color)!=null?c:_}),L=q(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:w?"scale(-1, 1)":void 0);return(c,j)=>(l(),g("svg",ce({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:v.value,transform:L.value},c.$attrs),[de(c.$slots,"default"),h.value==="bold"?(l(),g("g",we,ke)):h.value==="duotone"?(l(),g("g",xe,Te)):h.value==="fill"?(l(),g("g",Ce,Se)):h.value==="light"?(l(),g("g",Ve,Le)):h.value==="regular"?(l(),g("g",Me,Ze)):h.value==="thin"?(l(),g("g",je,Pe)):R("",!0)],16,_e))}}),X="__ABSTRA_STREAM_ERROR__";class Be{async list(){return(await fetch("/_editor/api/requirements")).json()}async recommendations(){return(await fetch("/_editor/api/requirements/recommendations")).json()}async update(e,i){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok)throw new Error("Failed to update requirements")}async create(e){const i=await fetch("/_editor/api/requirements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!i.ok)throw new Error("Failed to create requirements");return i.json()}async delete(e){if(!(await fetch(`/_editor/api/requirements/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete requirements")}async*install(){var r;const i=(r=(await fetch("/_editor/api/requirements/install",{method:"POST",headers:{"Content-Type":"application/json"}})).body)==null?void 0:r.getReader();if(!i)throw new Error("No response body");for(;;){const _=await i.read();if(_.done)break;const w=new TextDecoder().decode(_.value);if(w===X)throw new Error("Failed to install requirements");yield w}}async*uninstall(e){var _;const r=(_=(await fetch(`/_editor/api/requirements/${e}/uninstall`,{method:"POST",headers:{"Content-Type":"application/json"}})).body)==null?void 0:_.getReader();if(!r)throw new Error("No response body");for(;;){const w=await r.read();if(w.done)break;const h=new TextDecoder().decode(w.value);if(h===X)throw new Error("Failed to uninstall requirements");yield h}}}const C=new Be;class A{constructor(e){$(this,"record");this.record=he.from(e)}static async list(){return(await C.list()).map(i=>new A(i))}static async create(e,i){const r=await C.create({name:e,version:i||null});return new A(r)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get version(){var e;return(e=this.record.get("version"))!=null?e:null}set version(e){this.record.set("version",e)}get installedVersion(){var e;return(e=this.record.get("installed_version"))!=null?e:null}async delete(){await C.delete(this.name)}async uninstall(e){for await(const i of C.uninstall(this.name))e(i)}static async recommendations(){return C.recommendations()}static async install(e){for await(const i of C.install())e(i)}}const He=n=>["__future__","__main__","_thread","abc","aifc","argparse","array","ast","asynchat","asyncio","asyncore","atexit","audioop","base64","bdb","binascii","binhex","bisect","builtins","bz2","calendar","cgi","cgitb","chunk","cmath","cmd","code","codecs","codeop","collections","collections.abc","colorsys","compileall","concurrent","concurrent.futures","configparser","contextlib","contextvars","copy","copyreg","cProfile","crypt","csv","ctypes","curses","curses.ascii","curses.panel","curses.textpad","dataclasses","datetime","dbm","dbm.dumb","dbm.gnu","dbm.ndbm","decimal","difflib","dis","distutils","distutils.archive_util","distutils.bcppcompiler","distutils.ccompiler","distutils.cmd","distutils.command","distutils.command.bdist","distutils.command.bdist_dumb","distutils.command.bdist_msi","distutils.command.bdist_packager","distutils.command.bdist_rpm","distutils.command.build","distutils.command.build_clib","distutils.command.build_ext","distutils.command.build_py","distutils.command.build_scripts","distutils.command.check","distutils.command.clean","distutils.command.config","distutils.command.install","distutils.command.install_data","distutils.command.install_headers","distutils.command.install_lib","distutils.command.install_scripts","distutils.command.register","distutils.command.sdist","distutils.core","distutils.cygwinccompiler","distutils.debug","distutils.dep_util","distutils.dir_util","distutils.dist","distutils.errors","distutils.extension","distutils.fancy_getopt","distutils.file_util","distutils.filelist","distutils.log","distutils.msvccompiler","distutils.spawn","distutils.sysconfig","distutils.text_file","distutils.unixccompiler","distutils.util","distutils.version","doctest","email","email.charset","email.contentmanager","email.encoders","email.errors","email.generator","email.header","email.headerregistry","email.iterators","email.message","email.mime","email.parser","email.policy","email.utils","encodings","encodings.idna","encodings.mbcs","encodings.utf_8_sig","ensurepip","enum","errno","faulthandler","fcntl","filecmp","fileinput","fnmatch","fractions","ftplib","functools","gc","getopt","getpass","gettext","glob","graphlib","grp","gzip","hashlib","heapq","hmac","html","html.entities","html.parser","http","http.client","http.cookiejar","http.cookies","http.server","idlelib","imaplib","imghdr","imp","importlib","importlib.abc","importlib.machinery","importlib.metadata","importlib.resources","importlib.util","inspect","io","ipaddress","itertools","json","json.tool","keyword","lib2to3","linecache","locale","logging","logging.config","logging.handlers","lzma","mailbox","mailcap","marshal","math","mimetypes","mmap","modulefinder","msilib","msvcrt","multiprocessing","multiprocessing.connection","multiprocessing.dummy","multiprocessing.managers","multiprocessing.pool","multiprocessing.shared_memory","multiprocessing.sharedctypes","netrc","nis","nntplib","numbers","operator","optparse","os","os.path","ossaudiodev","pathlib","pdb","pickle","pickletools","pipes","pkgutil","platform","plistlib","poplib","posix","pprint","profile","pstats","pty","pwd","py_compile","pyclbr","pydoc","queue","quopri","random","re","readline","reprlib","resource","rlcompleter","runpy","sched","secrets","select","selectors","shelve","shlex","shutil","signal","site","smtpd","smtplib","sndhdr","socket","socketserver","spwd","sqlite3","ssl","stat","statistics","string","stringprep","struct","subprocess","sunau","symtable","sys","sysconfig","syslog","tabnanny","tarfile","telnetlib","tempfile","termios","test","test.support","test.support.bytecode_helper","test.support.import_helper","test.support.os_helper","test.support.script_helper","test.support.socket_helper","test.support.threading_helper","test.support.warnings_helper","textwrap","threading","time","timeit","tkinter","tkinter.colorchooser","tkinter.commondialog","tkinter.dnd","tkinter.filedialog","tkinter.font","tkinter.messagebox","tkinter.scrolledtext","tkinter.simpledialog","tkinter.tix","tkinter.ttk","token","tokenize","trace","traceback","tracemalloc","tty","turtle","turtledemo","types","typing","unicodedata","unittest","unittest.mock","urllib","urllib.error","urllib.parse","urllib.request","urllib.response","urllib.robotparser","uu","uuid","venv","warnings","wave","weakref","webbrowser","winreg","winsound","wsgiref","wsgiref.handlers","wsgiref.headers","wsgiref.simple_server","wsgiref.util","wsgiref.validate","xdrlib","xml","xml.dom","xml.dom.minidom","xml.dom.pulldom","xml.etree.ElementTree","xml.parsers.expat","xml.parsers.expat.errors","xml.parsers.expat.model","xml.sax","xml.sax.handler","xml.sax.saxutils","xml.sax.xmlreader","xmlrpc","xmlrpc.client","xmlrpc.server","zipapp","zipfile","zipimport","zlib","zoneinfo"].includes(n),Ie=n=>/^(\d+!)?(\d+)(\.\d+)+([\\.\-\\_])?((a(lpha)?|b(eta)?|c|r(c|ev)?|pre(view)?)\d*)?(\.?(post|dev)\d*)?$/.test(n),De={key:2},Oe={key:0,class:"logs-output"},Ge=["textContent"],pt=Y({__name:"RequirementsEditor",setup(n){const{loading:e,result:i,refetch:r}=oe(()=>Promise.all([A.list(),A.recommendations()]).then(([t,o])=>({requirements:t,recommendations:o}))),{startPolling:_,endPolling:w}=fe({task:r,interval:2e3});ue(()=>_()),me(()=>w());function h(){be.openFile("requirements.txt")}const b=F({}),v=F(new Set);function L(t){return o=>{b[t.name]?b[t.name]=[...b[t.name],o]:b[t.name]=[o]}}function c(t){b[t.name]=[]}async function j(t){c(t),y.value="installing",Z(t),v.add(t.name);try{await A.install(L(t)),y.value="install-success"}catch{y.value="install-error"}finally{v.delete(t.name),await r()}}const y=B("idle"),E=B(null);function Z(t){E.value=t.name}async function K(t){v.add(t.name);try{await t.delete()}finally{v.delete(t.name),await r()}}async function Q(t){c(t),y.value="uninstalling",Z(t),v.add(t.name);try{await t.uninstall(L(t)),y.value="uninstall-success"}catch{y.value="uninstall-error"}finally{v.delete(t.name),await r()}}async function ee(t,o){await A.create(t,o).then(r),r()}const te=[{label:"Name",key:"name",hint:t=>He(t)?"This requirement is built-in should not be installed":void 0},{label:"Required version",key:"version",placeholder:"latest",hint:t=>!t||Ie(t)?void 0:"Invalid version"}];async function se({name:t,version:o}){await A.create(t,o),r()}const ie=q(()=>{var t,o;return{columns:[{title:"Name"},{title:"Version"},{title:"Installed"},{title:"",align:"right"}],rows:(o=(t=i.value)==null?void 0:t.requirements.map(m=>{var S,V;return{key:m.name,cells:[{type:"text",text:m.name},{type:"text",text:(S=m.version)!=null?S:" - "},{type:"slot",key:"status",payload:m},{type:"actions",actions:[{icon:Fe,label:"Logs",onClick:()=>Z(m),hide:!((V=b[m.name])!=null&&V.length)},m.installedVersion?{icon:J,label:"Uninstall",onClick:()=>Q(m),dangerous:!0}:{icon:H,label:"Install",onClick:()=>j(m)},{icon:J,label:"Remove requirement",onClick:()=>K(m),dangerous:!0}]}]}}))!=null?o:[]}});return(t,o)=>(l(),f(ne,null,{default:a(()=>{var m,S,V;return[d(re,{"entity-name":"Requirements",loading:s(e),title:"Requirements",description:"Specify pip requirements for your project. This will create and update your requirements.txt file.","empty-title":"No python requirements set",table:ie.value,"create-button-text":"Add requirement",fields:te,live:"",create:se},{status:a(({payload:p})=>[d(s(k),{gap:"small",align:"center",justify:"center"},{default:a(()=>[p.installedVersion?(l(),f(s(H),{key:0})):R("",!0),p.installedVersion?(l(),f(s(x),{key:1,type:"secondary"},{default:a(()=>[u(z(p.installedVersion),1)]),_:2},1024)):(l(),f(s(x),{key:2,type:"secondary"},{default:a(()=>[u(" Not installed ")]),_:1}))]),_:2},1024)]),secondary:a(()=>[d(s(I),{onClick:o[0]||(o[0]=p=>h())},{default:a(()=>[u("Open requirements.txt")]),_:1})]),_:1},8,["loading","table"]),(m=s(i))!=null&&m.recommendations.length?(l(),f(s(pe),{key:0},{default:a(()=>[u(" Suggested requirements ")]),_:1})):R("",!0),(S=s(i))!=null&&S.recommendations.length?(l(),f(s(ge),{key:1},{default:a(()=>[u(" The following requirements are being utilized by your code but are not listed in your requirements.txt. ")]),_:1})):R("",!0),(V=s(i))!=null&&V.recommendations.length?(l(),g("ul",De,[(l(!0),g(D,null,O(s(i).recommendations,p=>(l(),g("li",{key:p.name},[u(z(p.name)+" ("+z(p.version)+") ",1),d(s(I),{onClick:N=>{var P;return ee(p.name,(P=p.version)!=null?P:void 0)}},{default:a(()=>[u(" Add to requirements ")]),_:2},1032,["onClick"])]))),128))])):R("",!0),d(s(ye),{open:!!E.value,onCancel:o[1]||(o[1]=p=>E.value=null)},{footer:a(()=>[]),title:a(()=>[u("Logs")]),default:a(()=>[d(s(k),{vertical:"",gap:"small"},{default:a(()=>[E.value?(l(),g("div",Oe,[(l(!0),g(D,null,O(b[E.value],(p,N)=>(l(),g("pre",{key:N,textContent:z(p)},null,8,Ge))),128))])):R("",!0),y.value==="installing"?(l(),f(s(k),{key:1,gap:"small",align:"center"},{default:a(()=>[d(s(G)),d(s(x),{type:"secondary"},{default:a(()=>[u("Installing requirement...")]),_:1})]),_:1})):y.value==="uninstalling"?(l(),f(s(k),{key:2,gap:"small",align:"center"},{default:a(()=>[d(s(G)),d(s(x),{type:"secondary"},{default:a(()=>[u("Uninstalling requirement...")]),_:1})]),_:1})):y.value==="install-success"?(l(),f(s(k),{key:3,gap:"small",align:"center"},{default:a(()=>[d(s(U)),d(s(x),{type:"success"},{default:a(()=>[u("Requirement installed successfully")]),_:1})]),_:1})):y.value==="install-error"?(l(),f(s(k),{key:4,gap:"small",align:"center"},{default:a(()=>[d(s(W)),d(s(x),{type:"danger"},{default:a(()=>[u("Requirement installation failed")]),_:1})]),_:1})):y.value==="uninstall-success"?(l(),f(s(k),{key:5,gap:"small",align:"center"},{default:a(()=>[d(s(U)),d(s(x),{type:"success"},{default:a(()=>[u("Requirement uninstalled successfully")]),_:1})]),_:1})):y.value==="uninstall-error"?(l(),f(s(k),{key:6,gap:"small",align:"center"},{default:a(()=>[d(s(W)),d(s(x),{type:"danger"},{default:a(()=>[u("Requirement uninstallation failed")]),_:1})]),_:1})):R("",!0)]),_:1})]),_:1},8,["open"])]}),_:1}))}});export{pt as default}; +//# sourceMappingURL=RequirementsEditor.baa7f021.js.map diff --git a/abstra_statics/dist/assets/ResourcesTracker.e418a694.js b/abstra_statics/dist/assets/ResourcesTracker.6827af8a.js similarity index 79% rename from abstra_statics/dist/assets/ResourcesTracker.e418a694.js rename to abstra_statics/dist/assets/ResourcesTracker.6827af8a.js index fc7cb3b10a..ac12c6deaa 100644 --- a/abstra_statics/dist/assets/ResourcesTracker.e418a694.js +++ b/abstra_statics/dist/assets/ResourcesTracker.6827af8a.js @@ -1,6 +1,6 @@ -import{B as u}from"./BaseLayout.995c8c6b.js";import{a as f}from"./asyncComputed.cfc0cdaf.js";import{_ as p,o as l,Y as m,a as g,e8 as y,d as _,X as v,ah as C,c as h,w as b,u as i,S as w}from"./index.8c3f27aa.js";import{u as E}from"./polling.98a0bd01.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="65829b4f-8472-401a-92c3-b63b8ecc887a",t._sentryDebugIdIdentifier="sentry-dbid-65829b4f-8472-401a-92c3-b63b8ecc887a")}catch{}})();var d={name:"Chart",emits:["select","loaded"],props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},chart:null,watch:{data:{handler(){this.reinit()},deep:!0},type(){this.reinit()},options(){this.reinit()}},mounted(){this.initChart()},beforeUnmount(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart(){p(()=>import("./auto.29a122c8.js"),[]).then(t=>{this.chart&&(this.chart.destroy(),this.chart=null),t&&t.default&&(this.chart=new t.default(this.$refs.canvas,{type:this.type,data:this.data,options:this.options,plugins:this.plugins})),this.$emit("loaded",this.chart)})},getCanvas(){return this.$canvas},getChart(){return this.chart},getBase64Image(){return this.chart.toBase64Image()},refresh(){this.chart&&this.chart.update()},reinit(){this.initChart()},onCanvasClick(t){if(this.chart){const e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),a=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&a&&this.$emit("select",{originalEvent:t,element:e[0],dataset:a})}},generateLegend(){if(this.chart)return this.chart.generateLegend()}}};const k={class:"p-chart"},B=["width","height"];function I(t,e,a,n,s,r){return l(),m("div",k,[g("canvas",y({ref:"canvas",width:a.width,height:a.height,onClick:e[0]||(e[0]=o=>r.onCanvasClick(o))},a.canvasProps),null,16,B)])}function P(t,e){e===void 0&&(e={});var a=e.insertAt;if(!(!t||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",a==="top"&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}}var x=` +import{B as u}from"./BaseLayout.52f1acec.js";import{a as f}from"./asyncComputed.703c33fd.js";import{_ as p,o as l,Y as m,a as g,e8 as y,d as _,X as v,ah as C,c as d,w as b,u as i,S as w}from"./index.d0f12294.js";import{u as E}from"./polling.c979afd7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="84e9b611-e2ce-4f46-87bd-60c92aefa170",t._sentryDebugIdIdentifier="sentry-dbid-84e9b611-e2ce-4f46-87bd-60c92aefa170")}catch{}})();var h={name:"Chart",emits:["select","loaded"],props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150},canvasProps:{type:null,default:null}},chart:null,watch:{data:{handler(){this.reinit()},deep:!0},type(){this.reinit()},options(){this.reinit()}},mounted(){this.initChart()},beforeUnmount(){this.chart&&(this.chart.destroy(),this.chart=null)},methods:{initChart(){p(()=>import("./auto.29a122c8.js"),[]).then(t=>{this.chart&&(this.chart.destroy(),this.chart=null),t&&t.default&&(this.chart=new t.default(this.$refs.canvas,{type:this.type,data:this.data,options:this.options,plugins:this.plugins})),this.$emit("loaded",this.chart)})},getCanvas(){return this.$canvas},getChart(){return this.chart},getBase64Image(){return this.chart.toBase64Image()},refresh(){this.chart&&this.chart.update()},reinit(){this.initChart()},onCanvasClick(t){if(this.chart){const e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),a=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&a&&this.$emit("select",{originalEvent:t,element:e[0],dataset:a})}},generateLegend(){if(this.chart)return this.chart.generateLegend()}}};const k={class:"p-chart"},B=["width","height"];function I(t,e,a,n,s,r){return l(),m("div",k,[g("canvas",y({ref:"canvas",width:a.width,height:a.height,onClick:e[0]||(e[0]=o=>r.onCanvasClick(o))},a.canvasProps),null,16,B)])}function P(t,e){e===void 0&&(e={});var a=e.insertAt;if(!(!t||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",a==="top"&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}}var x=` .p-chart { position: relative; } -`;P(x);d.render=I;async function A(){return await(await fetch("/_editor/api/resources")).json()}const M=_({__name:"ResourcesTracker",setup(t){const{result:e,refetch:a}=f(async()=>{const{mems:r}=await A();return{data:{labels:Array.from({length:r.length},(o,c)=>c*2),datasets:[{label:"Memory",data:r,fill:!1,borderColor:"rgb(105, 193, 102)"}],options:{animation:!1}}}}),{startPolling:n,endPolling:s}=E({task:a,interval:2e3});return v(()=>n()),C(()=>s()),(r,o)=>(l(),h(u,null,{content:b(()=>[i(e)?(l(),h(i(d),{key:0,type:"line",data:i(e).data,class:"h-[30rem]",options:i(e).data.options},null,8,["data","options"])):w("",!0)]),_:1}))}});export{M as default}; -//# sourceMappingURL=ResourcesTracker.e418a694.js.map +`;P(x);h.render=I;async function A(){return await(await fetch("/_editor/api/resources")).json()}const M=_({__name:"ResourcesTracker",setup(t){const{result:e,refetch:a}=f(async()=>{const{mems:r}=await A();return{data:{labels:Array.from({length:r.length},(o,c)=>c*2),datasets:[{label:"Memory",data:r,fill:!1,borderColor:"rgb(105, 193, 102)"}],options:{animation:!1}}}}),{startPolling:n,endPolling:s}=E({task:a,interval:2e3});return v(()=>n()),C(()=>s()),(r,o)=>(l(),d(u,null,{content:b(()=>[i(e)?(l(),d(i(h),{key:0,type:"line",data:i(e).data,class:"h-[30rem]",options:i(e).data.options},null,8,["data","options"])):w("",!0)]),_:1}))}});export{M as default}; +//# sourceMappingURL=ResourcesTracker.6827af8a.js.map diff --git a/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js b/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js similarity index 75% rename from abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js rename to abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js index a6f8162b3d..39f2820ff1 100644 --- a/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js +++ b/abstra_statics/dist/assets/RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js @@ -1,2 +1,2 @@ -import{b as d,ee as p,d as b,o as y,c as g,w as r,u as i,d9 as c,aG as o,e9 as f,dh as m,p as v,bT as _,cO as P}from"./index.8c3f27aa.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="c4347ffd-446e-4a10-b7c7-adc9280442be",a._sentryDebugIdIdentifier="sentry-dbid-c4347ffd-446e-4a10-b7c7-adc9280442be")}catch{}})();var h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const w=h;function u(a){for(var t=1;t(y(),g(i(P),{open:e.disabled?void 0:!1,placement:"bottom"},{content:r(()=>[d(i(m),{vertical:"",gap:"small"},{default:r(()=>[d(i(c),{style:{"font-size":"16px"}},{default:r(()=>{var n;return[o(f((n=e.disabled)==null?void 0:n.title),1)]}),_:1}),d(i(c),null,{default:r(()=>{var n;return[o(f((n=e.disabled)==null?void 0:n.message),1)]}),_:1})]),_:1})]),default:r(()=>[d(i(_),{style:{width:"100%"},loading:e.loading,icon:v(i(O)),disabled:!!e.disabled,size:"large",type:"primary",onClick:l[0]||(l[0]=n=>t("click"))},{default:r(()=>[o(" Run ")]),_:1},8,["loading","icon","disabled"])]),_:1},8,["open"]))}});export{B as _}; -//# sourceMappingURL=RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js.map +import{b as d,ee as p,d as b,o as y,c as g,w as r,u as i,d9 as f,aG as o,e9 as c,dh as m,p as v,bT as _,cO as P}from"./index.d0f12294.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="efbe7fe5-53df-452f-89f6-893d471410a7",a._sentryDebugIdIdentifier="sentry-dbid-efbe7fe5-53df-452f-89f6-893d471410a7")}catch{}})();var h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const w=h;function u(a){for(var t=1;t(y(),g(i(P),{open:e.disabled?void 0:!1,placement:"bottom"},{content:r(()=>[d(i(m),{vertical:"",gap:"small"},{default:r(()=>[d(i(f),{style:{"font-size":"16px"}},{default:r(()=>{var n;return[o(c((n=e.disabled)==null?void 0:n.title),1)]}),_:1}),d(i(f),null,{default:r(()=>{var n;return[o(c((n=e.disabled)==null?void 0:n.message),1)]}),_:1})]),_:1})]),default:r(()=>[d(i(_),{style:{width:"100%"},loading:e.loading,icon:v(i(O)),disabled:!!e.disabled,size:"large",type:"primary",onClick:l[0]||(l[0]=n=>t("click"))},{default:r(()=>[o(" Run ")]),_:1},8,["loading","icon","disabled"])]),_:1},8,["open"]))}});export{B as _}; +//# sourceMappingURL=RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js.map diff --git a/abstra_statics/dist/assets/SaveButton.a02cacb0.js b/abstra_statics/dist/assets/SaveButton.a02cacb0.js new file mode 100644 index 0000000000..b574607c06 --- /dev/null +++ b/abstra_statics/dist/assets/SaveButton.a02cacb0.js @@ -0,0 +1,2 @@ +import{d as w,N as C,O as S,e as y,o as k,Y as B,b as n,w as s,a as D,u as o,d9 as E,aG as r,da as I,bT as $,$ as c,cO as A,cM as L,a0 as N}from"./index.d0f12294.js";import{G as V,U as P}from"./UnsavedChangesHandler.d2f6de7c.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="ee1c6f75-ec6e-42b2-b64f-c87eecf3a1bb",a._sentryDebugIdIdentifier="sentry-dbid-ee1c6f75-ec6e-42b2-b64f-c87eecf3a1bb")}catch{}})();const T={class:"popup-container"},U={style:{padding:"0px 4px"}},z=w({__name:"SaveButton",props:{model:{},neverShowPopover:{type:Boolean},disabled:{type:Boolean}},emits:["save"],setup(a,{emit:d}){var h;const l=a,m=e=>{var t;return(t=e.parentElement)!=null?t:document.body},p=new C(S.boolean(),"dontShowUnsavedChanges"),f=y((h=p.get())!=null?h:!1),_=()=>{p.set(!0),f.value=!0},i=y(!1);async function v(){i.value=!0;try{await l.model.save(),d("save")}catch{L.error({message:"Error saving"})}finally{i.value=!1}}return addEventListener("keydown",e=>{(e.metaKey||e.ctrlKey)&&e.key==="s"&&(e.preventDefault(),v())}),addEventListener("beforeunload",e=>{l.model.hasChanges()&&(e.preventDefault(),e.returnValue="")}),(e,t)=>{var g;return k(),B("div",T,[n(o(A),{placement:"left",open:e.model.hasChanges()&&!f.value&&!e.neverShowPopover,"get-popup-container":m},{content:s(()=>[D("div",U,[n(o(E),null,{default:s(()=>[r("You have unsaved changes")]),_:1}),n(o(I),{onClick:_},{default:s(()=>[r("Don't show this again")]),_:1})])]),default:s(()=>{var b;return[n(o($),{class:"save-button",loading:i.value,disabled:!((b=e.model)!=null&&b.hasChanges())||e.disabled,onClick:t[0]||(t[0]=u=>v())},{icon:s(()=>[c(e.$slots,"icon",{},()=>[n(o(V),{size:"18"})],!0)]),default:s(()=>{var u;return[(u=e.model)!=null&&u.hasChanges()?c(e.$slots,"with-changes",{key:0},()=>[r(" Save ")],!0):c(e.$slots,"without-changes",{key:1},()=>[r(" Saved ")],!0)]}),_:3},8,["loading","disabled"])]}),_:3},8,["open"]),n(P,{"has-changes":(g=e.model)==null?void 0:g.hasChanges()},null,8,["has-changes"])])}}});const O=N(z,[["__scopeId","data-v-b886e845"]]);export{O as S}; +//# sourceMappingURL=SaveButton.a02cacb0.js.map diff --git a/abstra_statics/dist/assets/SaveButton.f2d9e5cc.js b/abstra_statics/dist/assets/SaveButton.f2d9e5cc.js deleted file mode 100644 index 287de6c67e..0000000000 --- a/abstra_statics/dist/assets/SaveButton.f2d9e5cc.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as w,N as C,O as S,e as b,o as k,Y as B,b as n,w as s,a as D,u as o,d9 as E,aG as r,da as I,bT as $,$ as p,cO as A,cM as L,a0 as N}from"./index.8c3f27aa.js";import{G as V,U as P}from"./UnsavedChangesHandler.9ea18755.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="8fad9db1-7985-4b4a-9395-605569b3200a",a._sentryDebugIdIdentifier="sentry-dbid-8fad9db1-7985-4b4a-9395-605569b3200a")}catch{}})();const T={class:"popup-container"},U={style:{padding:"0px 4px"}},z=w({__name:"SaveButton",props:{model:{},neverShowPopover:{type:Boolean},disabled:{type:Boolean}},emits:["save"],setup(a,{emit:d}){var h;const l=a,m=e=>{var t;return(t=e.parentElement)!=null?t:document.body},c=new C(S.boolean(),"dontShowUnsavedChanges"),v=b((h=c.get())!=null?h:!1),_=()=>{c.set(!0),v.value=!0},i=b(!1);async function f(){i.value=!0;try{await l.model.save(),d("save")}catch{L.error({message:"Error saving"})}finally{i.value=!1}}return addEventListener("keydown",e=>{(e.metaKey||e.ctrlKey)&&e.key==="s"&&(e.preventDefault(),f())}),addEventListener("beforeunload",e=>{l.model.hasChanges()&&(e.preventDefault(),e.returnValue="")}),(e,t)=>{var g;return k(),B("div",T,[n(o(A),{placement:"left",open:e.model.hasChanges()&&!v.value&&!e.neverShowPopover,"get-popup-container":m},{content:s(()=>[D("div",U,[n(o(E),null,{default:s(()=>[r("You have unsaved changes")]),_:1}),n(o(I),{onClick:_},{default:s(()=>[r("Don't show this again")]),_:1})])]),default:s(()=>{var y;return[n(o($),{class:"save-button",loading:i.value,disabled:!((y=e.model)!=null&&y.hasChanges())||e.disabled,onClick:t[0]||(t[0]=u=>f())},{icon:s(()=>[p(e.$slots,"icon",{},()=>[n(o(V),{size:"18"})],!0)]),default:s(()=>{var u;return[(u=e.model)!=null&&u.hasChanges()?p(e.$slots,"with-changes",{key:0},()=>[r(" Save ")],!0):p(e.$slots,"without-changes",{key:1},()=>[r(" Saved ")],!0)]}),_:3},8,["loading","disabled"])]}),_:3},8,["open"]),n(P,{"has-changes":(g=e.model)==null?void 0:g.hasChanges()},null,8,["has-changes"])])}}});const O=N(z,[["__scopeId","data-v-b886e845"]]);export{O as S}; -//# sourceMappingURL=SaveButton.f2d9e5cc.js.map diff --git a/abstra_statics/dist/assets/ScriptEditor.10fa89bf.js b/abstra_statics/dist/assets/ScriptEditor.9189d0f2.js similarity index 56% rename from abstra_statics/dist/assets/ScriptEditor.10fa89bf.js rename to abstra_statics/dist/assets/ScriptEditor.9189d0f2.js index 4c34ffa7a1..24b56a6861 100644 --- a/abstra_statics/dist/assets/ScriptEditor.10fa89bf.js +++ b/abstra_statics/dist/assets/ScriptEditor.9189d0f2.js @@ -1,2 +1,2 @@ -import{B as U}from"./BaseLayout.995c8c6b.js";import{R as L,S as W,E as D,a as P,L as $}from"./SourceCode.38be4205.js";import{S as V}from"./SaveButton.f2d9e5cc.js";import{a as z}from"./asyncComputed.cfc0cdaf.js";import{d as _,e as g,o as p,c as f,w as o,b as a,u as e,bL as J,cz as K,cy as M,Y as O,eo as q,ea as G,f as H,eg as X,z as Y,S as y,dh as C,dc as I,aG as R,e9 as j,cX as Q}from"./index.8c3f27aa.js";import"./editor.e7656461.js";import{S as Z}from"./scripts.ab5c52f3.js";import{W as ee}from"./workspaces.7bc437a6.js";import{_ as te}from"./RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js";import{T as ae}from"./ThreadSelector.0fc03e39.js";import{N as oe}from"./NavbarControls.0c752e0f.js";import{b as re}from"./index.d667cd0d.js";import{A as w,T}from"./TabPane.2034bc94.js";import{A as ie,C as se}from"./CollapsePanel.14b56554.js";import{B as ne}from"./Badge.7a29ebdb.js";import"./uuid.4ec4da84.js";import"./validations.1f9bbc1f.js";import"./string.0a3509c3.js";import"./PhCopy.vue.a05dc1a1.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhCopySimple.vue.cf5729b7.js";import"./PhCaretRight.vue.a26e962f.js";import"./PhBug.vue.96a42e8e.js";import"./PhQuestion.vue.5030f781.js";import"./LoadingOutlined.7a2941f5.js";import"./polling.98a0bd01.js";import"./PhPencil.vue.47d672ed.js";import"./toggleHighContrast.5028b4ff.js";import"./index.126762e2.js";import"./Card.c4293d90.js";import"./UnsavedChangesHandler.9ea18755.js";import"./ExclamationCircleOutlined.433881ab.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./record.a6861841.js";import"./index.eefd8753.js";import"./index.d18d35d7.js";import"./CloseCircleOutlined.7faf1c70.js";import"./index.37c7ea66.js";import"./popupNotifcation.40886a7f.js";import"./PhArrowSquareOut.vue.da8bb581.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./PhChats.vue.296ae643.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[m]="cc7efdb7-6533-446e-957f-03bf2dbf3f80",l._sentryDebugIdIdentifier="sentry-dbid-cc7efdb7-6533-446e-957f-03bf2dbf3f80")}catch{}})();const le=_({__name:"ScriptSettings",props:{script:{}},setup(l){const n=g(l.script);return(v,b)=>(p(),f(e(M),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:o(()=>[a(e(K),{label:"Name",required:""},{default:o(()=>[a(e(J),{value:n.value.title,"onUpdate:value":b[0]||(b[0]=u=>n.value.title=u)},null,8,["value"])]),_:1}),a(L,{runtime:n.value},null,8,["runtime"])]),_:1}))}}),ue={style:{width:"100%",display:"flex","flex-direction":"column"}},de=_({__name:"ScriptTester",props:{script:{},executionConfig:{},disabledWarning:{}},emits:["update-stage-run-id"],setup(l,{emit:m}){const n=l,v=g(!1),b=async()=>{var u;v.value=!0;try{n.executionConfig.attached?await n.script.run((u=n.executionConfig.stageRunId)!=null?u:null):await n.script.test()}finally{v.value=!1,m("update-stage-run-id",null)}};return(u,c)=>(p(),O("div",ue,[a(te,{loading:v.value,disabled:u.disabledWarning,onClick:b,onSave:c[0]||(c[0]=k=>u.script.save())},null,8,["loading","disabled"])]))}}),rt=_({__name:"ScriptEditor",setup(l){const m=q(),n=G();function v(){m.push({name:"stages"})}const b=g(null),u=s=>{!t.value||(t.value.script.file=s)},c=g("source-code"),k=g("preview");function A(){var r;if(!t.value)return;const s=t.value.script.codeContent;(r=b.value)==null||r.updateLocalEditorCode(s)}const i=g({attached:!1,stageRunId:null,isInitial:!1}),B=s=>i.value={...i.value,attached:!!s},E=H(()=>{var s;return(s=t.value)!=null&&s.script.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:!i.value.isInitial&&i.value.attached&&!i.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),{result:t}=z(async()=>{const[s,r]=await Promise.all([ee.get(),Z.get(n.params.id)]);return i.value.isInitial=r.isInitial,Y({workspace:s,script:r})}),F=$.create(),x=g(null),S=s=>{var r;return s!==c.value&&((r=t.value)==null?void 0:r.script.hasChanges())};return(s,r)=>(p(),f(U,null,X({navbar:o(()=>[e(t)?(p(),f(e(re),{key:0,title:e(t).script.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:v},{extra:o(()=>[a(oe,{"editing-model":e(t).script},null,8,["editing-model"])]),_:1},8,["title"])):y("",!0)]),content:o(()=>[e(t)?(p(),f(D,{key:0},{left:o(()=>[a(e(T),{"active-key":c.value,"onUpdate:activeKey":r[0]||(r[0]=d=>c.value=d)},{rightExtra:o(()=>[a(V,{model:e(t).script,onSave:A},null,8,["model"])]),default:o(()=>[a(e(w),{key:"source-code",tab:"Source code",disabled:S("source-code")},null,8,["disabled"]),a(e(w),{key:"settings",tab:"Settings",disabled:S("settings")},null,8,["disabled"])]),_:1},8,["active-key"]),c.value==="source-code"?(p(),f(P,{key:0,script:e(t).script,workspace:e(t).workspace,onUpdateFile:u},null,8,["script","workspace"])):y("",!0),e(t).script&&c.value==="settings"?(p(),f(le,{key:1,script:e(t).script},null,8,["script"])):y("",!0)]),right:o(()=>[a(e(T),{"active-key":k.value,"onUpdate:activeKey":r[1]||(r[1]=d=>k.value=d)},{rightExtra:o(()=>[a(e(C),{align:"center",gap:"middle"},{default:o(()=>[a(e(C),{gap:"small"},{default:o(()=>[a(e(I),null,{default:o(()=>[R(j(i.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(Q),{checked:i.value.attached,"onUpdate:checked":B},null,8,["checked"])]),_:1})]),_:1})]),default:o(()=>[a(e(w),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(t).script&&k.value==="preview"?(p(),f(de,{key:0,ref:"tester",script:e(t).script,"execution-config":i.value,"disabled-warning":E.value,onUpdateStageRunId:r[2]||(r[2]=d=>i.value={...i.value,stageRunId:d})},null,8,["script","execution-config","disabled-warning"])):y("",!0),a(e(se),{ghost:"",style:{"margin-top":"20px"}},{default:o(()=>[a(e(ie),{key:"1"},{header:o(()=>[a(e(ne),{dot:i.value.attached&&!i.value.stageRunId},{default:o(()=>[a(e(I),null,{default:o(()=>[R("Thread")]),_:1})]),_:1},8,["dot"])]),default:o(()=>[a(ae,{"execution-config":i.value,"onUpdate:executionConfig":r[3]||(r[3]=d=>i.value=d),stage:e(t).script,onFixInvalidJson:r[4]||(r[4]=(d,N)=>{var h;return(h=x.value)==null?void 0:h.fixJson(d,N)})},null,8,["execution-config","stage"])]),_:1})]),_:1})]),_:1})):y("",!0)]),_:2},[e(t)?{name:"footer",fn:o(()=>[a(W,{ref_key:"smartConsole",ref:x,"stage-type":"scripts",stage:e(t).script,"log-service":e(F),workspace:e(t).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{rt as default}; -//# sourceMappingURL=ScriptEditor.10fa89bf.js.map +import{B as U}from"./BaseLayout.52f1acec.js";import{R as L,S as W,E as D,a as P,L as $}from"./SourceCode.a748d690.js";import{S as V}from"./SaveButton.a02cacb0.js";import{a as z}from"./asyncComputed.703c33fd.js";import{d as _,e as g,o as c,c as f,w as o,b as a,u as e,bL as J,cz as K,cy as M,Y as O,eo as q,ea as G,f as H,eg as X,z as Y,S as y,dh as C,dc as I,aG as R,e9 as j,cX as Q}from"./index.d0f12294.js";import"./editor.95f16260.js";import{S as Z}from"./scripts.9802e877.js";import{W as ee}from"./workspaces.e43325e2.js";import{_ as te}from"./RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js";import{T as ae}from"./ThreadSelector.f3c948bb.js";import{N as oe}from"./NavbarControls.be646660.js";import{b as re}from"./index.3b2f4dca.js";import{A as w,T}from"./TabPane.79f4882f.js";import{A as ie,C as se}from"./CollapsePanel.40b6e69e.js";import{B as ne}from"./Badge.f6241be2.js";import"./uuid.f9389d59.js";import"./validations.2475f715.js";import"./string.d9c83adf.js";import"./PhCopy.vue.dfade011.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhCopySimple.vue.6b8fcb49.js";import"./PhCaretRight.vue.5db53029.js";import"./PhBug.vue.33662d9e.js";import"./PhQuestion.vue.f82af3dd.js";import"./LoadingOutlined.bcfc8c20.js";import"./polling.c979afd7.js";import"./PhPencil.vue.7418c4e5.js";import"./toggleHighContrast.0eb315ff.js";import"./index.289665f1.js";import"./Card.2a8fe028.js";import"./UnsavedChangesHandler.d2f6de7c.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./record.8c284c67.js";import"./index.3814eba6.js";import"./index.a552d580.js";import"./CloseCircleOutlined.c0e3f3e1.js";import"./index.a82e0ed1.js";import"./popupNotifcation.a0a6244b.js";import"./PhArrowSquareOut.vue.418ffcff.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./PhChats.vue.1b5982bf.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[m]="b16b2566-d637-4f08-9849-a8a08948b6b1",l._sentryDebugIdIdentifier="sentry-dbid-b16b2566-d637-4f08-9849-a8a08948b6b1")}catch{}})();const le=_({__name:"ScriptSettings",props:{script:{}},setup(l){const n=g(l.script);return(v,b)=>(c(),f(e(M),{layout:"vertical",style:{"padding-bottom":"50px"}},{default:o(()=>[a(e(K),{label:"Name",required:""},{default:o(()=>[a(e(J),{value:n.value.title,"onUpdate:value":b[0]||(b[0]=u=>n.value.title=u)},null,8,["value"])]),_:1}),a(L,{runtime:n.value},null,8,["runtime"])]),_:1}))}}),ue={style:{width:"100%",display:"flex","flex-direction":"column"}},de=_({__name:"ScriptTester",props:{script:{},executionConfig:{},disabledWarning:{}},emits:["update-stage-run-id"],setup(l,{emit:m}){const n=l,v=g(!1),b=async()=>{var u;v.value=!0;try{n.executionConfig.attached?await n.script.run((u=n.executionConfig.stageRunId)!=null?u:null):await n.script.test()}finally{v.value=!1,m("update-stage-run-id",null)}};return(u,p)=>(c(),O("div",ue,[a(te,{loading:v.value,disabled:u.disabledWarning,onClick:b,onSave:p[0]||(p[0]=k=>u.script.save())},null,8,["loading","disabled"])]))}}),rt=_({__name:"ScriptEditor",setup(l){const m=q(),n=G();function v(){m.push({name:"stages"})}const b=g(null),u=s=>{!t.value||(t.value.script.file=s)},p=g("source-code"),k=g("preview");function A(){var r;if(!t.value)return;const s=t.value.script.codeContent;(r=b.value)==null||r.updateLocalEditorCode(s)}const i=g({attached:!1,stageRunId:null,isInitial:!1}),B=s=>i.value={...i.value,attached:!!s},E=H(()=>{var s;return(s=t.value)!=null&&s.script.hasChanges()?{title:"Unsaved changes",message:"Save the form before running the workflow"}:!i.value.isInitial&&i.value.attached&&!i.value.stageRunId?{title:"No thread selected",message:"Select a thread to run the workflow"}:null}),{result:t}=z(async()=>{const[s,r]=await Promise.all([ee.get(),Z.get(n.params.id)]);return i.value.isInitial=r.isInitial,Y({workspace:s,script:r})}),F=$.create(),x=g(null),S=s=>{var r;return s!==p.value&&((r=t.value)==null?void 0:r.script.hasChanges())};return(s,r)=>(c(),f(U,null,X({navbar:o(()=>[e(t)?(c(),f(e(re),{key:0,title:e(t).script.title,style:{padding:"5px 25px",border:"1px solid #f6f6f6"},onBack:v},{extra:o(()=>[a(oe,{"editing-model":e(t).script},null,8,["editing-model"])]),_:1},8,["title"])):y("",!0)]),content:o(()=>[e(t)?(c(),f(D,{key:0},{left:o(()=>[a(e(T),{"active-key":p.value,"onUpdate:activeKey":r[0]||(r[0]=d=>p.value=d)},{rightExtra:o(()=>[a(V,{model:e(t).script,onSave:A},null,8,["model"])]),default:o(()=>[a(e(w),{key:"source-code",tab:"Source code",disabled:S("source-code")},null,8,["disabled"]),a(e(w),{key:"settings",tab:"Settings",disabled:S("settings")},null,8,["disabled"])]),_:1},8,["active-key"]),p.value==="source-code"?(c(),f(P,{key:0,script:e(t).script,workspace:e(t).workspace,onUpdateFile:u},null,8,["script","workspace"])):y("",!0),e(t).script&&p.value==="settings"?(c(),f(le,{key:1,script:e(t).script},null,8,["script"])):y("",!0)]),right:o(()=>[a(e(T),{"active-key":k.value,"onUpdate:activeKey":r[1]||(r[1]=d=>k.value=d)},{rightExtra:o(()=>[a(e(C),{align:"center",gap:"middle"},{default:o(()=>[a(e(C),{gap:"small"},{default:o(()=>[a(e(I),null,{default:o(()=>[R(j(i.value.attached?"Workflow ON":"Workflow OFF"),1)]),_:1}),a(e(Q),{checked:i.value.attached,"onUpdate:checked":B},null,8,["checked"])]),_:1})]),_:1})]),default:o(()=>[a(e(w),{key:"preview",tab:"Preview"})]),_:1},8,["active-key"]),e(t).script&&k.value==="preview"?(c(),f(de,{key:0,ref:"tester",script:e(t).script,"execution-config":i.value,"disabled-warning":E.value,onUpdateStageRunId:r[2]||(r[2]=d=>i.value={...i.value,stageRunId:d})},null,8,["script","execution-config","disabled-warning"])):y("",!0),a(e(se),{ghost:"",style:{"margin-top":"20px"}},{default:o(()=>[a(e(ie),{key:"1"},{header:o(()=>[a(e(ne),{dot:i.value.attached&&!i.value.stageRunId},{default:o(()=>[a(e(I),null,{default:o(()=>[R("Thread")]),_:1})]),_:1},8,["dot"])]),default:o(()=>[a(ae,{"execution-config":i.value,"onUpdate:executionConfig":r[3]||(r[3]=d=>i.value=d),stage:e(t).script,onFixInvalidJson:r[4]||(r[4]=(d,N)=>{var h;return(h=x.value)==null?void 0:h.fixJson(d,N)})},null,8,["execution-config","stage"])]),_:1})]),_:1})]),_:1})):y("",!0)]),_:2},[e(t)?{name:"footer",fn:o(()=>[a(W,{ref_key:"smartConsole",ref:x,"stage-type":"scripts",stage:e(t).script,"log-service":e(F),workspace:e(t).workspace},null,8,["stage","log-service","workspace"])]),key:"0"}:void 0]),1024))}});export{rt as default}; +//# sourceMappingURL=ScriptEditor.9189d0f2.js.map diff --git a/abstra_statics/dist/assets/Sidebar.f4cbdc17.js b/abstra_statics/dist/assets/Sidebar.0a307c47.js similarity index 81% rename from abstra_statics/dist/assets/Sidebar.f4cbdc17.js rename to abstra_statics/dist/assets/Sidebar.0a307c47.js index c6b8e6dc5b..cca2f752d0 100644 --- a/abstra_statics/dist/assets/Sidebar.f4cbdc17.js +++ b/abstra_statics/dist/assets/Sidebar.0a307c47.js @@ -1,2 +1,2 @@ -import{C as z,T as N}from"./router.f4663fd5.js";import{d as x,D as k,f as _,o as a,Y as d,$ as w,S as y,e8 as V,a as i,c as f,w as n,b as S,aG as C,e9 as b,u as p,dc as P,bT as Z,e as A,Z as L,a0 as I,ea as E,r as R,aS as $,eb as B,bx as G,ec as j,ed as T,d5 as D,cJ as q,bz as F}from"./index.8c3f27aa.js";import{A as O}from"./index.126762e2.js";import{_ as W}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import{A as H}from"./index.d18d35d7.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[s]="532e3502-a5fb-4b8a-9218-9ef07313f9ae",l._sentryDebugIdIdentifier="sentry-dbid-532e3502-a5fb-4b8a-9218-9ef07313f9ae")}catch{}})();const J=["width","height","fill","transform"],U={key:0},Y=i("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),K=[Y],Q={key:1},X=i("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.64-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"},null,-1),e1=i("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),t1=[X,e1],s1={key:2},a1=i("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),c1=[a1],o1={key:3},n1=i("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),l1=[n1],r1={key:4},i1=i("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),u1=[i1],d1={key:5},p1=i("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88ZM124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),f1=[p1],m1={name:"PhSealWarning"},g1=x({...m1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const s=l,u=k("weight","regular"),v=k("size","1em"),o=k("color","currentColor"),m=k("mirrored",!1),c=_(()=>{var e;return(e=s.weight)!=null?e:u}),t=_(()=>{var e;return(e=s.size)!=null?e:v}),g=_(()=>{var e;return(e=s.color)!=null?e:o}),r=_(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(e,h)=>(a(),d("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:t.value,height:t.value,fill:g.value,transform:r.value},e.$attrs),[w(e.$slots,"default"),c.value==="bold"?(a(),d("g",U,K)):c.value==="duotone"?(a(),d("g",Q,t1)):c.value==="fill"?(a(),d("g",s1,c1)):c.value==="light"?(a(),d("g",o1,l1)):c.value==="regular"?(a(),d("g",r1,u1)):c.value==="thin"?(a(),d("g",d1,f1)):y("",!0)],16,J))}}),$1=x({__name:"BillingAlert",props:{organizationId:{},billingMetadata:{}},setup(l){const s=l,u=_(()=>{var o,m;return(m=(o=s.billingMetadata)==null?void 0:o.messageCTA)!=null?m:"Contact Us"}),v=()=>{z.showNewMessage("Help me with my plan"),N.billingAlertCtaClicked(s.organizationId,u.value)};return(o,m)=>{var c;return(c=o.billingMetadata)!=null&&c.message?(a(),f(p(O),{key:0,type:"error"},{message:n(()=>[S(p(P),{type:"secondary"},{default:n(()=>{var t;return[C(b((t=o.billingMetadata)==null?void 0:t.message),1)]}),_:1})]),action:n(()=>{var t;return[(t=o.billingMetadata)!=null&&t.messageLink?(a(),f(p(Z),{key:0,type:"primary",target:"_blank",href:o.billingMetadata.messageLink},{default:n(()=>[C(b(u.value),1)]),_:1},8,["href"])):(a(),f(p(Z),{key:1,type:"primary",onClick:v},{default:n(()=>[C(b(u.value),1)]),_:1}))]}),_:1})):y("",!0)}}}),_1={class:"text"},v1=x({__name:"Tooltip",props:{text:{type:String,required:!0},left:{type:Number},top:{type:Number},fixed:{type:Boolean,default:!1}},setup(l){const s=l,u=A(Date.now()),v=()=>{u.value=Date.now()},o=A(null),m=()=>{var e,h,M;const t=(e=o.value)==null?void 0:e.getBoundingClientRect();if(!t)return{};const{x:g,y:r}=t;return u.value,{position:"fixed",top:`${r+((h=s.top)!=null?h:0)}px`,left:`${g+((M=s.left)!=null?M:0)}px`}},c=_(()=>{var t;return s.fixed?m():{left:`${(t=s.left)!=null?t:-14}px`,...s.top?{top:`${s.top}px`}:{}}});return(t,g)=>(a(),d("div",{ref_key:"tooltipBox",ref:o,class:"tooltip-box",onMouseenter:v},[w(t.$slots,"default",{},void 0,!0),i("div",{class:"tooltip",style:L(c.value)},[i("span",_1,b(l.text),1)],4)],544))}});const y1=I(v1,[["__scopeId","data-v-c3a6ca5e"]]),C1={class:"container"},b1={class:"upper"},h1={style:{"margin-right":"5px"}},S1={class:"lower"},k1=x({__name:"Sidebar",props:{sections:{}},setup(l){const s=l,u=E();function v(){var t,g;return[(g=(t=s.sections.map(r=>r.items).flat().find(r=>{const e=u.path.split("/"),h=e[e.length-1];return r.path===h}))==null?void 0:t.name)!=null?g:"forms"]}const o=_(v),m=_(()=>s.sections.map(c=>({...c,items:c.items.filter(t=>!t.unavailable)})));return(c,t)=>{const g=R("RouterLink");return a(),d("div",C1,[i("div",b1,[S(p(F),{style:{"border-right":"1px solid #f6f6f6",height:"100%"},"selected-keys":o.value},{default:n(()=>[S(W,{style:{width:"160px",padding:"5px 15px"}}),(a(!0),d($,null,B(m.value,r=>(a(),f(p(q),{key:r.name},{title:n(()=>[C(b(r.name),1)]),default:n(()=>[(a(!0),d($,null,B(r.items,e=>(a(),f(p(G),{key:e.name,role:"button",class:"menu-item",disabled:e.unavailable||r.cloud,tabindex:"0"},{icon:n(()=>[(a(),f(j(e.icon),{class:T({disabled:e.unavailable,active:o.value.includes(e.path)}),size:"20"},null,8,["class"]))]),default:n(()=>[S(g,{to:e.path,class:T({active:o.value.includes(e.path),disabled:e.unavailable})},{default:n(()=>[i("span",h1,b(e.name),1)]),_:2},1032,["to","class"]),e.unavailable?(a(),f(p(D),{key:0},{default:n(()=>[C("SOON")]),_:1})):y("",!0),e.beta?(a(),f(p(D),{key:1},{default:n(()=>[C("BETA")]),_:1})):y("",!0),e.warning?(a(),f(y1,{key:2,text:e.warning,fixed:!0,top:18,left:18},{default:n(()=>[S(p(g1),{color:"#D35249",size:"20"})]),_:2},1032,["text"])):y("",!0)]),_:2},1032,["disabled"]))),128))]),_:2},1024))),128))]),_:1},8,["selected-keys"])]),i("div",S1,[c.$slots.bottom?(a(),f(p(H),{key:0})):y("",!0),w(c.$slots,"bottom",{},void 0,!0)])])}}});const B1=I(k1,[["__scopeId","data-v-9c69b799"]]);export{B1 as S,$1 as _}; -//# sourceMappingURL=Sidebar.f4cbdc17.js.map +import{C as z,T as N}from"./router.375df57e.js";import{d as x,D as k,f as _,o as a,Y as u,$ as w,S as y,e8 as V,a as i,c as m,w as n,b as S,aG as C,e9 as b,u as p,dc as P,bT as Z,e as A,Z as L,a0 as I,ea as E,r as R,aS as $,eb as B,bx as G,ec as j,ed as T,d5 as D,cJ as q,bz as F}from"./index.d0f12294.js";import{A as O}from"./index.289665f1.js";import{_ as W}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import{A as H}from"./index.a552d580.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[s]="876612dd-9c24-4fb0-9ecd-f4e82b098043",l._sentryDebugIdIdentifier="sentry-dbid-876612dd-9c24-4fb0-9ecd-f4e82b098043")}catch{}})();const J=["width","height","fill","transform"],U={key:0},Y=i("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),K=[Y],Q={key:1},X=i("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.64-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"},null,-1),e1=i("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),t1=[X,e1],s1={key:2},a1=i("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),c1=[a1],o1={key:3},n1=i("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),l1=[n1],r1={key:4},i1=i("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),d1=[i1],u1={key:5},p1=i("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88ZM124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),m1=[p1],f1={name:"PhSealWarning"},g1=x({...f1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const s=l,d=k("weight","regular"),v=k("size","1em"),o=k("color","currentColor"),f=k("mirrored",!1),c=_(()=>{var e;return(e=s.weight)!=null?e:d}),t=_(()=>{var e;return(e=s.size)!=null?e:v}),g=_(()=>{var e;return(e=s.color)!=null?e:o}),r=_(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:f?"scale(-1, 1)":void 0);return(e,h)=>(a(),u("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:t.value,height:t.value,fill:g.value,transform:r.value},e.$attrs),[w(e.$slots,"default"),c.value==="bold"?(a(),u("g",U,K)):c.value==="duotone"?(a(),u("g",Q,t1)):c.value==="fill"?(a(),u("g",s1,c1)):c.value==="light"?(a(),u("g",o1,l1)):c.value==="regular"?(a(),u("g",r1,d1)):c.value==="thin"?(a(),u("g",u1,m1)):y("",!0)],16,J))}}),$1=x({__name:"BillingAlert",props:{organizationId:{},billingMetadata:{}},setup(l){const s=l,d=_(()=>{var o,f;return(f=(o=s.billingMetadata)==null?void 0:o.messageCTA)!=null?f:"Contact Us"}),v=()=>{z.showNewMessage("Help me with my plan"),N.billingAlertCtaClicked(s.organizationId,d.value)};return(o,f)=>{var c;return(c=o.billingMetadata)!=null&&c.message?(a(),m(p(O),{key:0,type:"error"},{message:n(()=>[S(p(P),{type:"secondary"},{default:n(()=>{var t;return[C(b((t=o.billingMetadata)==null?void 0:t.message),1)]}),_:1})]),action:n(()=>{var t;return[(t=o.billingMetadata)!=null&&t.messageLink?(a(),m(p(Z),{key:0,type:"primary",target:"_blank",href:o.billingMetadata.messageLink},{default:n(()=>[C(b(d.value),1)]),_:1},8,["href"])):(a(),m(p(Z),{key:1,type:"primary",onClick:v},{default:n(()=>[C(b(d.value),1)]),_:1}))]}),_:1})):y("",!0)}}}),_1={class:"text"},v1=x({__name:"Tooltip",props:{text:{type:String,required:!0},left:{type:Number},top:{type:Number},fixed:{type:Boolean,default:!1}},setup(l){const s=l,d=A(Date.now()),v=()=>{d.value=Date.now()},o=A(null),f=()=>{var e,h,M;const t=(e=o.value)==null?void 0:e.getBoundingClientRect();if(!t)return{};const{x:g,y:r}=t;return d.value,{position:"fixed",top:`${r+((h=s.top)!=null?h:0)}px`,left:`${g+((M=s.left)!=null?M:0)}px`}},c=_(()=>{var t;return s.fixed?f():{left:`${(t=s.left)!=null?t:-14}px`,...s.top?{top:`${s.top}px`}:{}}});return(t,g)=>(a(),u("div",{ref_key:"tooltipBox",ref:o,class:"tooltip-box",onMouseenter:v},[w(t.$slots,"default",{},void 0,!0),i("div",{class:"tooltip",style:L(c.value)},[i("span",_1,b(l.text),1)],4)],544))}});const y1=I(v1,[["__scopeId","data-v-c3a6ca5e"]]),C1={class:"container"},b1={class:"upper"},h1={style:{"margin-right":"5px"}},S1={class:"lower"},k1=x({__name:"Sidebar",props:{sections:{}},setup(l){const s=l,d=E();function v(){var t,g;return[(g=(t=s.sections.map(r=>r.items).flat().find(r=>{const e=d.path.split("/"),h=e[e.length-1];return r.path===h}))==null?void 0:t.name)!=null?g:"forms"]}const o=_(v),f=_(()=>s.sections.map(c=>({...c,items:c.items.filter(t=>!t.unavailable)})));return(c,t)=>{const g=R("RouterLink");return a(),u("div",C1,[i("div",b1,[S(p(F),{style:{"border-right":"1px solid #f6f6f6",height:"100%"},"selected-keys":o.value},{default:n(()=>[S(W,{style:{width:"160px",padding:"5px 15px"}}),(a(!0),u($,null,B(f.value,r=>(a(),m(p(q),{key:r.name},{title:n(()=>[C(b(r.name),1)]),default:n(()=>[(a(!0),u($,null,B(r.items,e=>(a(),m(p(G),{key:e.name,role:"button",class:"menu-item",disabled:e.unavailable||r.cloud,tabindex:"0"},{icon:n(()=>[(a(),m(j(e.icon),{class:T({disabled:e.unavailable,active:o.value.includes(e.path)}),size:"20"},null,8,["class"]))]),default:n(()=>[S(g,{to:e.path,class:T({active:o.value.includes(e.path),disabled:e.unavailable})},{default:n(()=>[i("span",h1,b(e.name),1)]),_:2},1032,["to","class"]),e.unavailable?(a(),m(p(D),{key:0},{default:n(()=>[C("SOON")]),_:1})):y("",!0),e.beta?(a(),m(p(D),{key:1},{default:n(()=>[C("BETA")]),_:1})):y("",!0),e.warning?(a(),m(y1,{key:2,text:e.warning,fixed:!0,top:18,left:18},{default:n(()=>[S(p(g1),{color:"#D35249",size:"20"})]),_:2},1032,["text"])):y("",!0)]),_:2},1032,["disabled"]))),128))]),_:2},1024))),128))]),_:1},8,["selected-keys"])]),i("div",S1,[c.$slots.bottom?(a(),m(p(H),{key:0})):y("",!0),w(c.$slots,"bottom",{},void 0,!0)])])}}});const B1=I(k1,[["__scopeId","data-v-9c69b799"]]);export{B1 as S,$1 as _}; +//# sourceMappingURL=Sidebar.0a307c47.js.map diff --git a/abstra_statics/dist/assets/SourceCode.38be4205.js b/abstra_statics/dist/assets/SourceCode.a748d690.js similarity index 92% rename from abstra_statics/dist/assets/SourceCode.38be4205.js rename to abstra_statics/dist/assets/SourceCode.a748d690.js index f3e909b36c..a98be6bec7 100644 --- a/abstra_statics/dist/assets/SourceCode.38be4205.js +++ b/abstra_statics/dist/assets/SourceCode.a748d690.js @@ -1,10 +1,10 @@ -var be=Object.defineProperty;var Ze=(i,e,t)=>e in i?be(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var f=(i,e,t)=>(Ze(i,typeof e!="symbol"?e+"":e,t),t);import{d as Z,D as y,f as v,o,Y as n,$ as P,S as w,e8 as O,a as r,a0 as j,E as $e,c as S,eg as Le,u as c,w as g,aG as V,bL as we,b as m,cz as Ce,e9 as J,aS as ce,e as L,aW as z,eT as Ve,x as Ee,dh as T,ed as N,g as Y,X as de,ah as he,eU as Ie,eb as Ae,ec as xe,ea as ze,K as ie,ar as Te,r as Pe,Z as Be,db as Ne,em as De,en as Fe,R as ae,bT as ee}from"./index.8c3f27aa.js";import{u as ue}from"./uuid.4ec4da84.js";import{H as We,J as Oe,S as Re,A as te}from"./scripts.ab5c52f3.js";import{u as je}from"./editor.e7656461.js";import{d as Ue,e as Ge,v as Je}from"./validations.1f9bbc1f.js";import{I as Ke}from"./PhCopy.vue.a05dc1a1.js";import{H as qe}from"./PhCheckCircle.vue.9df5f131.js";import{I as Ye}from"./PhCopySimple.vue.cf5729b7.js";import{G as ye}from"./PhCaretRight.vue.a26e962f.js";import{B as Xe}from"./Badge.7a29ebdb.js";import{G as Qe}from"./PhBug.vue.96a42e8e.js";import{H as e0}from"./PhQuestion.vue.5030f781.js";import{L as t0}from"./LoadingOutlined.7a2941f5.js";import{W as re}from"./workspaces.7bc437a6.js";import{a as _e}from"./asyncComputed.cfc0cdaf.js";import{u as a0}from"./polling.98a0bd01.js";import{G as l0}from"./PhPencil.vue.47d672ed.js";import{l as le,R as Me,e as X,M as q}from"./toggleHighContrast.5028b4ff.js";import{A as o0}from"./index.126762e2.js";import{C as s0}from"./Card.c4293d90.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="a03528b0-568c-4b84-89a1-d631798df76f",i._sentryDebugIdIdentifier="sentry-dbid-a03528b0-568c-4b84-89a1-d631798df76f")}catch{}})();const n0=["width","height","fill","transform"],r0={key:0},i0=r("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"},null,-1),u0=[i0],c0={key:1},d0=r("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"},null,-1),h0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),p0=[d0,h0],g0={key:2},v0=r("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"},null,-1),f0=[v0],m0={key:3},y0=r("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"},null,-1),_0=[y0],H0={key:4},$0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),w0=[$0],C0={key:5},A0=r("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"},null,-1),M0=[A0],S0={name:"PhBroom"},k0=Z({...S0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",r0,u0)):s.value==="duotone"?(o(),n("g",c0,p0)):s.value==="fill"?(o(),n("g",g0,f0)):s.value==="light"?(o(),n("g",m0,_0)):s.value==="regular"?(o(),n("g",H0,w0)):s.value==="thin"?(o(),n("g",C0,M0)):w("",!0)],16,n0))}}),b0=["width","height","fill","transform"],Z0={key:0},L0=r("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"},null,-1),V0=[L0],E0={key:1},I0=r("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"},null,-1),x0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"},null,-1),z0=[I0,x0],T0={key:2},P0=r("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"},null,-1),B0=[P0],N0={key:3},D0=r("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"},null,-1),F0=[D0],W0={key:4},O0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"},null,-1),R0=[O0],j0={key:5},U0=r("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"},null,-1),G0=[U0],J0={name:"PhFolder"},K0=Z({...J0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",Z0,V0)):s.value==="duotone"?(o(),n("g",E0,z0)):s.value==="fill"?(o(),n("g",T0,B0)):s.value==="light"?(o(),n("g",N0,F0)):s.value==="regular"?(o(),n("g",W0,R0)):s.value==="thin"?(o(),n("g",j0,G0)):w("",!0)],16,b0))}}),q0=["width","height","fill","transform"],Y0={key:0},X0=r("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"},null,-1),Q0=[X0],et={key:1},tt=r("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"},null,-1),at=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),lt=[tt,at],ot={key:2},st=r("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"},null,-1),nt=[st],rt={key:3},it=r("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"},null,-1),ut=[it],ct={key:4},dt=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),ht=[dt],pt={key:5},gt=r("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"},null,-1),vt=[gt],ft={name:"PhPaperPlaneRight"},mt=Z({...ft,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",Y0,Q0)):s.value==="duotone"?(o(),n("g",et,lt)):s.value==="fill"?(o(),n("g",ot,nt)):s.value==="light"?(o(),n("g",rt,ut)):s.value==="regular"?(o(),n("g",ct,ht)):s.value==="thin"?(o(),n("g",pt,vt)):w("",!0)],16,q0))}}),yt=["width","height","fill","transform"],_t={key:0},Ht=r("path",{d:"M20,128A76.08,76.08,0,0,1,96,52h99l-3.52-3.51a12,12,0,1,1,17-17l24,24a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L195,76H96a52.06,52.06,0,0,0-52,52,12,12,0,0,1-24,0Zm204-12a12,12,0,0,0-12,12,52.06,52.06,0,0,1-52,52H61l3.52-3.51a12,12,0,1,0-17-17l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,1,0,17-17L61,204h99a76.08,76.08,0,0,0,76-76A12,12,0,0,0,224,116Z"},null,-1),$t=[Ht],wt={key:1},Ct=r("path",{d:"M224,64v64a64,64,0,0,1-64,64H32V128A64,64,0,0,1,96,64Z",opacity:"0.2"},null,-1),At=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),Mt=[Ct,At],St={key:2},kt=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56h96V40a8,8,0,0,1,13.66-5.66l24,24a8,8,0,0,1,0,11.32l-24,24A8,8,0,0,1,192,88V72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H64V168a8,8,0,0,0-13.66-5.66l-24,24a8,8,0,0,0,0,11.32l24,24A8,8,0,0,0,64,216V200h96a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),bt=[kt],Zt={key:3},Lt=r("path",{d:"M26,128A70.08,70.08,0,0,1,96,58H209.51L195.76,44.24a6,6,0,0,1,8.48-8.48l24,24a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L209.51,70H96a58.07,58.07,0,0,0-58,58,6,6,0,0,1-12,0Zm198-6a6,6,0,0,0-6,6,58.07,58.07,0,0,1-58,58H46.49l13.75-13.76a6,6,0,0,0-8.48-8.48l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,0,0,8.48-8.48L46.49,198H160a70.08,70.08,0,0,0,70-70A6,6,0,0,0,224,122Z"},null,-1),Vt=[Lt],Et={key:4},It=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),xt=[It],zt={key:5},Tt=r("path",{d:"M28,128A68.07,68.07,0,0,1,96,60H214.34L197.17,42.83a4,4,0,0,1,5.66-5.66l24,24a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L214.34,68H96a60.07,60.07,0,0,0-60,60,4,4,0,0,1-8,0Zm196-4a4,4,0,0,0-4,4,60.07,60.07,0,0,1-60,60H41.66l17.17-17.17a4,4,0,0,0-5.66-5.66l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L41.66,196H160a68.07,68.07,0,0,0,68-68A4,4,0,0,0,224,124Z"},null,-1),Pt=[Tt],Bt={name:"PhRepeat"},Nt=Z({...Bt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",_t,$t)):s.value==="duotone"?(o(),n("g",wt,Mt)):s.value==="fill"?(o(),n("g",St,bt)):s.value==="light"?(o(),n("g",Zt,Vt)):s.value==="regular"?(o(),n("g",Et,xt)):s.value==="thin"?(o(),n("g",zt,Pt)):w("",!0)],16,yt))}}),Dt=["width","height","fill","transform"],Ft={key:0},Wt=r("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"},null,-1),Ot=[Wt],Rt={key:1},jt=r("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"},null,-1),Ut=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),Gt=[jt,Ut],Jt={key:2},Kt=r("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"},null,-1),qt=[Kt],Yt={key:3},Xt=r("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"},null,-1),Qt=[Xt],e1={key:4},t1=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),a1=[t1],l1={key:5},o1=r("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"},null,-1),s1=[o1],n1={name:"PhStop"},r1=Z({...n1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",Ft,Ot)):s.value==="duotone"?(o(),n("g",Rt,Gt)):s.value==="fill"?(o(),n("g",Jt,qt)):s.value==="light"?(o(),n("g",Yt,Qt)):s.value==="regular"?(o(),n("g",e1,a1)):s.value==="thin"?(o(),n("g",l1,s1)):w("",!0)],16,Dt))}}),i1=["width","height","fill","transform"],u1={key:0},c1=r("path",{d:"M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"},null,-1),d1=[c1],h1={key:1},p1=r("path",{d:"M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),g1=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),v1=[p1,g1],f1={key:2},m1=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z"},null,-1),y1=[m1],_1={key:3},H1=r("path",{d:"M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z"},null,-1),$1=[H1],w1={key:4},C1=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),A1=[C1],M1={key:5},S1=r("path",{d:"M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z"},null,-1),k1=[S1],b1={name:"PhTerminalWindow"},Z1=Z({...b1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",u1,d1)):s.value==="duotone"?(o(),n("g",h1,v1)):s.value==="fill"?(o(),n("g",f1,y1)):s.value==="light"?(o(),n("g",_1,$1)):s.value==="regular"?(o(),n("g",w1,A1)):s.value==="thin"?(o(),n("g",M1,k1)):w("",!0)],16,i1))}}),L1=["width","height","fill","transform"],V1={key:0},E1=r("path",{d:"M243.78,156.53l-12-96A28,28,0,0,0,204,36H32A20,20,0,0,0,12,56v88a20,20,0,0,0,20,20H72.58l36.69,73.37A12,12,0,0,0,120,244a44.05,44.05,0,0,0,44-44V188h52a28,28,0,0,0,27.78-31.47ZM68,140H36V60H68Zm151,22.65a4,4,0,0,1-3,1.35H152a12,12,0,0,0-12,12v24a20,20,0,0,1-13.18,18.8L92,149.17V60H204a4,4,0,0,1,4,3.5l12,96A4,4,0,0,1,219,162.65Z"},null,-1),I1=[E1],x1={key:1},z1=r("path",{d:"M80,48V152H32a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),T1=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),P1=[z1,T1],B1={key:2},N1=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"},null,-1),D1=[N1],F1={key:3},W1=r("path",{d:"M237.83,157.27l-12-96A22,22,0,0,0,204,42H32A14,14,0,0,0,18,56v88a14,14,0,0,0,14,14H76.29l38.34,76.68A6,6,0,0,0,120,238a38,38,0,0,0,38-38V182h58a22,22,0,0,0,21.83-24.73ZM74,146H32a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H74Zm149.5,20.62A9.89,9.89,0,0,1,216,170H152a6,6,0,0,0-6,6v24a26,26,0,0,1-22.42,25.75L86,150.58V54H204a10,10,0,0,1,9.92,8.76l12,96A9.89,9.89,0,0,1,223.5,166.62Z"},null,-1),O1=[W1],R1={key:4},j1=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),U1=[j1],G1={key:5},J1=r("path",{d:"M235.85,157.52l-12-96A20,20,0,0,0,204,44H32A12,12,0,0,0,20,56v88a12,12,0,0,0,12,12H77.53l38.89,77.79A4,4,0,0,0,120,236a36,36,0,0,0,36-36V180h60a20,20,0,0,0,19.85-22.48ZM76,148H32a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H76Zm149,19.94a12,12,0,0,1-9,4.06H152a4,4,0,0,0-4,4v24a28,28,0,0,1-25.58,27.9L84,151.06V52H204a12,12,0,0,1,11.91,10.51l12,96A12,12,0,0,1,225,167.94Z"},null,-1),K1=[J1],q1={name:"PhThumbsDown"},Y1=Z({...q1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",V1,I1)):s.value==="duotone"?(o(),n("g",x1,P1)):s.value==="fill"?(o(),n("g",B1,D1)):s.value==="light"?(o(),n("g",F1,O1)):s.value==="regular"?(o(),n("g",R1,U1)):s.value==="thin"?(o(),n("g",G1,K1)):w("",!0)],16,L1))}}),X1=["width","height","fill","transform"],Q1={key:0},ea=r("path",{d:"M237,77.47A28,28,0,0,0,216,68H164V56a44.05,44.05,0,0,0-44-44,12,12,0,0,0-10.73,6.63L72.58,92H32a20,20,0,0,0-20,20v88a20,20,0,0,0,20,20H204a28,28,0,0,0,27.78-24.53l12-96A28,28,0,0,0,237,77.47ZM36,116H68v80H36ZM220,96.5l-12,96a4,4,0,0,1-4,3.5H92V106.83L126.82,37.2A20,20,0,0,1,140,56V80a12,12,0,0,0,12,12h64a4,4,0,0,1,4,4.5Z"},null,-1),ta=[ea],aa={key:1},la=r("path",{d:"M80,104V208H32a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),oa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),sa=[la,oa],na={key:2},ra=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"},null,-1),ia=[ra],ua={key:3},ca=r("path",{d:"M232.49,81.44A22,22,0,0,0,216,74H158V56a38,38,0,0,0-38-38,6,6,0,0,0-5.37,3.32L76.29,98H32a14,14,0,0,0-14,14v88a14,14,0,0,0,14,14H204a22,22,0,0,0,21.83-19.27l12-96A22,22,0,0,0,232.49,81.44ZM30,200V112a2,2,0,0,1,2-2H74v92H32A2,2,0,0,1,30,200ZM225.92,97.24l-12,96A10,10,0,0,1,204,202H86V105.42l37.58-75.17A26,26,0,0,1,146,56V80a6,6,0,0,0,6,6h64a10,10,0,0,1,9.92,11.24Z"},null,-1),da=[ca],ha={key:4},pa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),ga=[pa],va={key:5},fa=r("path",{d:"M231,82.76A20,20,0,0,0,216,76H156V56a36,36,0,0,0-36-36,4,4,0,0,0-3.58,2.21L77.53,100H32a12,12,0,0,0-12,12v88a12,12,0,0,0,12,12H204a20,20,0,0,0,19.85-17.52l12-96A20,20,0,0,0,231,82.76ZM76,204H32a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H76ZM227.91,97.49l-12,96A12,12,0,0,1,204,204H84V104.94L122.42,28.1A28,28,0,0,1,148,56V80a4,4,0,0,0,4,4h64a12,12,0,0,1,11.91,13.49Z"},null,-1),ma=[fa],ya={name:"PhThumbsUp"},_a=Z({...ya,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",Q1,ta)):s.value==="duotone"?(o(),n("g",aa,sa)):s.value==="fill"?(o(),n("g",na,ia)):s.value==="light"?(o(),n("g",ua,da)):s.value==="regular"?(o(),n("g",ha,ga)):s.value==="thin"?(o(),n("g",va,ma)):w("",!0)],16,X1))}}),Ha=["width","height","fill","transform"],$a={key:0},wa=r("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"},null,-1),Ca=[wa],Aa={key:1},Ma=r("path",{d:"M232,56v64L168,56Z",opacity:"0.2"},null,-1),Sa=r("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"},null,-1),ka=[Ma,Sa],ba={key:2},Za=r("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"},null,-1),La=[Za],Va={key:3},Ea=r("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"},null,-1),Ia=[Ea],xa={key:4},za=r("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"},null,-1),Ta=[za],Pa={key:5},Ba=r("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"},null,-1),Na=[Ba],Da={name:"PhTrendUp"},Fa=Z({...Da,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",$a,Ca)):s.value==="duotone"?(o(),n("g",Aa,ka)):s.value==="fill"?(o(),n("g",ba,La)):s.value==="light"?(o(),n("g",Va,Ia)):s.value==="regular"?(o(),n("g",xa,Ta)):s.value==="thin"?(o(),n("g",Pa,Na)):w("",!0)],16,Ha))}}),Wa={class:"editor-layout"},Oa={class:"layout-left"},Ra={class:"layout-right"},ja=Z({__name:"EditorLayout",props:{fullWidth:{type:Boolean}},setup(i){return(e,t)=>(o(),n("div",Wa,[r("section",Oa,[P(e.$slots,"left",{},void 0,!0)]),r("section",Ra,[P(e.$slots,"right",{},void 0,!0)])]))}});const Jl=j(ja,[["__scopeId","data-v-74db9fe9"]]);class Se{constructor(){f(this,"logState",$e({log:[]}));f(this,"_listeners",{})}static create(){return new Se}get logs(){return this.logState.log}log(e,t){if(e.type!=="restart"&&e.log.trim()==="")return;const l=t?this.logs.find(u=>u.id===t):null;return l?(l.type==="stderr"&&e.type==="stderr"&&(e.log=l.log+` -`+e.log),Object.assign(l,e)):this.logs.push({...e,id:t||ue()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=ue();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Ua=Z({__name:"PathInput",props:{runtime:{}},setup(i){const e=i,t=()=>{const l=Ue(e.runtime.path);l&&l!==e.runtime.path&&(e.runtime.path=l)};return(l,u)=>(o(),S(c(we),{value:l.runtime.path,"onUpdate:value":u[0]||(u[0]=d=>l.runtime.path=d),type:"text",onBlur:t},Le({_:2},[l.runtime instanceof c(We)?{name:"addonBefore",fn:g(()=>[V(" https://[your-subdomain].abstra.app/_hooks/ ")]),key:"0"}:{name:"addonBefore",fn:g(()=>[V(" https://[your-subdomain].abstra.app/ ")]),key:"1"}]),1032,["value"]))}}),Ga={key:1},Ja=Z({__name:"RuntimeCommonSettings",props:{runtime:{}},setup(i){const e=$e({pathError:null});return(t,l)=>(o(),n(ce,null,[t.runtime instanceof c(Oe)||t.runtime instanceof c(Re)?w("",!0):(o(),S(c(Ce),{key:0,label:"URL path"},{default:g(()=>[m(Ua,{runtime:t.runtime},null,8,["runtime"])]),_:1})),e.pathError?(o(),n("div",Ga,J(e.pathError),1)):w("",!0)],64))}});const Kl=j(Ja,[["__scopeId","data-v-18856675"]]),Ka="/assets/typing.c1831e40.svg";class qa{constructor(e,t){f(this,"ws",null);f(this,"selfClosed",!1);f(this,"reconnectInterval");this.onMessage=e,this.stageId=t}get url(){return"/_editor/api/stdio/listen"}handleMessage(e){const t=JSON.parse(e.data);t.stage_id===this.stageId&&this.onMessage(t)}handleClose(e){this.selfClosed||this.reconnectInterval||(this.reconnectInterval=setInterval(()=>this.reset(),2e3))}clearReconnectInterval(){this.reconnectInterval&&(clearInterval(this.reconnectInterval),this.reconnectInterval=void 0)}async close(){if(!!this.ws){this.selfClosed=!0;try{this.ws.close()}catch{console.warn("already closed")}this.ws=null}}async reset(){await this.close(),await this.connect()}async connect(){return await new Promise(e=>{this.ws=new WebSocket(this.url),this.ws.onopen=()=>e(),this.ws.onclose=t=>this.handleClose(t),this.ws.onmessage=t=>this.handleMessage(t),this.selfClosed=!1,this.clearReconnectInterval()})}}const Ya=Z({__name:"SmartConsoleCopy",props:{textToCopy:{}},setup(i){const e=i,t=L(!1),l=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},u=v(()=>t.value?"Copied!":"Copy to clipboard");return(d,s)=>(o(),S(c(z),null,{title:g(()=>[V(J(u.value),1)]),default:g(()=>[r("div",{class:"copy-button",onClick:l},[t.value?(o(),S(c(qe),{key:1,color:"#fff",size:"22"})):(o(),S(c(Ye),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const Xa=j(Ya,[["__scopeId","data-v-cbb7de67"]]);class Qa{constructor(e,t){f(this,"_threadId");f(this,"_input");f(this,"_badgeState");f(this,"_smartConsoleState");f(this,"_logService");f(this,"_stageType");f(this,"_cachedFileContent",null);f(this,"setupThread",async()=>{this._smartConsoleState.value="creating-thread";const{thread:e}=await te.createThread();this._threadId.value=e,this._smartConsoleState.value="idle"});f(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const l=m(Xa,{textToCopy:t.textContent});Ve(l,t)})});f(this,"getLastExecutionError",()=>{let e="";for(let t=this._logService.logs.length-1;t>=0;t--){const l=this._logService.logs[t];if(l.type==="stderr"){e=l.log;break}}return e});f(this,"getPreffixes",e=>{const t=[{role:"user",content:`If necessary to check, this is my current code: +var Ze=Object.defineProperty;var be=(i,e,t)=>e in i?Ze(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var f=(i,e,t)=>(be(i,typeof e!="symbol"?e+"":e,t),t);import{d as b,D as y,f as v,o,Y as n,$ as P,S as w,e8 as O,a as r,a0 as j,E as $e,c as S,eg as Le,u as c,w as g,aG as V,bL as we,b as m,cz as Ce,e9 as J,aS as ce,e as L,aW as z,eT as Ve,x as Ee,dh as T,ed as N,g as Y,X as de,ah as he,eU as Ie,eb as Ae,ec as xe,ea as ze,K as ie,ar as Te,r as Pe,Z as Be,db as Ne,em as De,en as Fe,R as ae,bT as ee}from"./index.d0f12294.js";import{u as ue}from"./uuid.f9389d59.js";import{H as We,J as Oe,S as Re,A as te}from"./scripts.9802e877.js";import{u as je}from"./editor.95f16260.js";import{d as Ue,e as Ge,v as Je}from"./validations.2475f715.js";import{I as Ke}from"./PhCopy.vue.dfade011.js";import{H as qe}from"./PhCheckCircle.vue.e567d5b0.js";import{I as Ye}from"./PhCopySimple.vue.6b8fcb49.js";import{G as ye}from"./PhCaretRight.vue.5db53029.js";import{B as Xe}from"./Badge.f6241be2.js";import{G as Qe}from"./PhBug.vue.33662d9e.js";import{H as e0}from"./PhQuestion.vue.f82af3dd.js";import{L as t0}from"./LoadingOutlined.bcfc8c20.js";import{W as re}from"./workspaces.e43325e2.js";import{a as _e}from"./asyncComputed.703c33fd.js";import{u as a0}from"./polling.c979afd7.js";import{G as l0}from"./PhPencil.vue.7418c4e5.js";import{l as le,R as Me,e as X,M as q}from"./toggleHighContrast.0eb315ff.js";import{A as o0}from"./index.289665f1.js";import{C as s0}from"./Card.2a8fe028.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="cfade80c-03f3-475d-a0c4-8cc8aed4edd4",i._sentryDebugIdIdentifier="sentry-dbid-cfade80c-03f3-475d-a0c4-8cc8aed4edd4")}catch{}})();const n0=["width","height","fill","transform"],r0={key:0},i0=r("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"},null,-1),u0=[i0],c0={key:1},d0=r("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"},null,-1),h0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),p0=[d0,h0],g0={key:2},v0=r("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"},null,-1),f0=[v0],m0={key:3},y0=r("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"},null,-1),_0=[y0],H0={key:4},$0=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),w0=[$0],C0={key:5},A0=r("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"},null,-1),M0=[A0],S0={name:"PhBroom"},k0=b({...S0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",r0,u0)):s.value==="duotone"?(o(),n("g",c0,p0)):s.value==="fill"?(o(),n("g",g0,f0)):s.value==="light"?(o(),n("g",m0,_0)):s.value==="regular"?(o(),n("g",H0,w0)):s.value==="thin"?(o(),n("g",C0,M0)):w("",!0)],16,n0))}}),Z0=["width","height","fill","transform"],b0={key:0},L0=r("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"},null,-1),V0=[L0],E0={key:1},I0=r("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"},null,-1),x0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"},null,-1),z0=[I0,x0],T0={key:2},P0=r("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"},null,-1),B0=[P0],N0={key:3},D0=r("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"},null,-1),F0=[D0],W0={key:4},O0=r("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"},null,-1),R0=[O0],j0={key:5},U0=r("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"},null,-1),G0=[U0],J0={name:"PhFolder"},K0=b({...J0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",b0,V0)):s.value==="duotone"?(o(),n("g",E0,z0)):s.value==="fill"?(o(),n("g",T0,B0)):s.value==="light"?(o(),n("g",N0,F0)):s.value==="regular"?(o(),n("g",W0,R0)):s.value==="thin"?(o(),n("g",j0,G0)):w("",!0)],16,Z0))}}),q0=["width","height","fill","transform"],Y0={key:0},X0=r("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"},null,-1),Q0=[X0],et={key:1},tt=r("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"},null,-1),at=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),lt=[tt,at],ot={key:2},st=r("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"},null,-1),nt=[st],rt={key:3},it=r("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"},null,-1),ut=[it],ct={key:4},dt=r("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"},null,-1),ht=[dt],pt={key:5},gt=r("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"},null,-1),vt=[gt],ft={name:"PhPaperPlaneRight"},mt=b({...ft,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",Y0,Q0)):s.value==="duotone"?(o(),n("g",et,lt)):s.value==="fill"?(o(),n("g",ot,nt)):s.value==="light"?(o(),n("g",rt,ut)):s.value==="regular"?(o(),n("g",ct,ht)):s.value==="thin"?(o(),n("g",pt,vt)):w("",!0)],16,q0))}}),yt=["width","height","fill","transform"],_t={key:0},Ht=r("path",{d:"M20,128A76.08,76.08,0,0,1,96,52h99l-3.52-3.51a12,12,0,1,1,17-17l24,24a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L195,76H96a52.06,52.06,0,0,0-52,52,12,12,0,0,1-24,0Zm204-12a12,12,0,0,0-12,12,52.06,52.06,0,0,1-52,52H61l3.52-3.51a12,12,0,1,0-17-17l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,1,0,17-17L61,204h99a76.08,76.08,0,0,0,76-76A12,12,0,0,0,224,116Z"},null,-1),$t=[Ht],wt={key:1},Ct=r("path",{d:"M224,64v64a64,64,0,0,1-64,64H32V128A64,64,0,0,1,96,64Z",opacity:"0.2"},null,-1),At=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),Mt=[Ct,At],St={key:2},kt=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56h96V40a8,8,0,0,1,13.66-5.66l24,24a8,8,0,0,1,0,11.32l-24,24A8,8,0,0,1,192,88V72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H64V168a8,8,0,0,0-13.66-5.66l-24,24a8,8,0,0,0,0,11.32l24,24A8,8,0,0,0,64,216V200h96a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),Zt=[kt],bt={key:3},Lt=r("path",{d:"M26,128A70.08,70.08,0,0,1,96,58H209.51L195.76,44.24a6,6,0,0,1,8.48-8.48l24,24a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L209.51,70H96a58.07,58.07,0,0,0-58,58,6,6,0,0,1-12,0Zm198-6a6,6,0,0,0-6,6,58.07,58.07,0,0,1-58,58H46.49l13.75-13.76a6,6,0,0,0-8.48-8.48l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,0,0,8.48-8.48L46.49,198H160a70.08,70.08,0,0,0,70-70A6,6,0,0,0,224,122Z"},null,-1),Vt=[Lt],Et={key:4},It=r("path",{d:"M24,128A72.08,72.08,0,0,1,96,56H204.69L194.34,45.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L204.69,72H96a56.06,56.06,0,0,0-56,56,8,8,0,0,1-16,0Zm200-8a8,8,0,0,0-8,8,56.06,56.06,0,0,1-56,56H51.31l10.35-10.34a8,8,0,0,0-11.32-11.32l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L51.31,200H160a72.08,72.08,0,0,0,72-72A8,8,0,0,0,224,120Z"},null,-1),xt=[It],zt={key:5},Tt=r("path",{d:"M28,128A68.07,68.07,0,0,1,96,60H214.34L197.17,42.83a4,4,0,0,1,5.66-5.66l24,24a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L214.34,68H96a60.07,60.07,0,0,0-60,60,4,4,0,0,1-8,0Zm196-4a4,4,0,0,0-4,4,60.07,60.07,0,0,1-60,60H41.66l17.17-17.17a4,4,0,0,0-5.66-5.66l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L41.66,196H160a68.07,68.07,0,0,0,68-68A4,4,0,0,0,224,124Z"},null,-1),Pt=[Tt],Bt={name:"PhRepeat"},Nt=b({...Bt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",_t,$t)):s.value==="duotone"?(o(),n("g",wt,Mt)):s.value==="fill"?(o(),n("g",St,Zt)):s.value==="light"?(o(),n("g",bt,Vt)):s.value==="regular"?(o(),n("g",Et,xt)):s.value==="thin"?(o(),n("g",zt,Pt)):w("",!0)],16,yt))}}),Dt=["width","height","fill","transform"],Ft={key:0},Wt=r("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"},null,-1),Ot=[Wt],Rt={key:1},jt=r("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"},null,-1),Ut=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),Gt=[jt,Ut],Jt={key:2},Kt=r("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"},null,-1),qt=[Kt],Yt={key:3},Xt=r("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"},null,-1),Qt=[Xt],e1={key:4},t1=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),a1=[t1],l1={key:5},o1=r("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"},null,-1),s1=[o1],n1={name:"PhStop"},r1=b({...n1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",Ft,Ot)):s.value==="duotone"?(o(),n("g",Rt,Gt)):s.value==="fill"?(o(),n("g",Jt,qt)):s.value==="light"?(o(),n("g",Yt,Qt)):s.value==="regular"?(o(),n("g",e1,a1)):s.value==="thin"?(o(),n("g",l1,s1)):w("",!0)],16,Dt))}}),i1=["width","height","fill","transform"],u1={key:0},c1=r("path",{d:"M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"},null,-1),d1=[c1],h1={key:1},p1=r("path",{d:"M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),g1=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),v1=[p1,g1],f1={key:2},m1=r("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z"},null,-1),y1=[m1],_1={key:3},H1=r("path",{d:"M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z"},null,-1),$1=[H1],w1={key:4},C1=r("path",{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},null,-1),A1=[C1],M1={key:5},S1=r("path",{d:"M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z"},null,-1),k1=[S1],Z1={name:"PhTerminalWindow"},b1=b({...Z1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",u1,d1)):s.value==="duotone"?(o(),n("g",h1,v1)):s.value==="fill"?(o(),n("g",f1,y1)):s.value==="light"?(o(),n("g",_1,$1)):s.value==="regular"?(o(),n("g",w1,A1)):s.value==="thin"?(o(),n("g",M1,k1)):w("",!0)],16,i1))}}),L1=["width","height","fill","transform"],V1={key:0},E1=r("path",{d:"M243.78,156.53l-12-96A28,28,0,0,0,204,36H32A20,20,0,0,0,12,56v88a20,20,0,0,0,20,20H72.58l36.69,73.37A12,12,0,0,0,120,244a44.05,44.05,0,0,0,44-44V188h52a28,28,0,0,0,27.78-31.47ZM68,140H36V60H68Zm151,22.65a4,4,0,0,1-3,1.35H152a12,12,0,0,0-12,12v24a20,20,0,0,1-13.18,18.8L92,149.17V60H204a4,4,0,0,1,4,3.5l12,96A4,4,0,0,1,219,162.65Z"},null,-1),I1=[E1],x1={key:1},z1=r("path",{d:"M80,48V152H32a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),T1=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),P1=[z1,T1],B1={key:2},N1=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"},null,-1),D1=[N1],F1={key:3},W1=r("path",{d:"M237.83,157.27l-12-96A22,22,0,0,0,204,42H32A14,14,0,0,0,18,56v88a14,14,0,0,0,14,14H76.29l38.34,76.68A6,6,0,0,0,120,238a38,38,0,0,0,38-38V182h58a22,22,0,0,0,21.83-24.73ZM74,146H32a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H74Zm149.5,20.62A9.89,9.89,0,0,1,216,170H152a6,6,0,0,0-6,6v24a26,26,0,0,1-22.42,25.75L86,150.58V54H204a10,10,0,0,1,9.92,8.76l12,96A9.89,9.89,0,0,1,223.5,166.62Z"},null,-1),O1=[W1],R1={key:4},j1=r("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"},null,-1),U1=[j1],G1={key:5},J1=r("path",{d:"M235.85,157.52l-12-96A20,20,0,0,0,204,44H32A12,12,0,0,0,20,56v88a12,12,0,0,0,12,12H77.53l38.89,77.79A4,4,0,0,0,120,236a36,36,0,0,0,36-36V180h60a20,20,0,0,0,19.85-22.48ZM76,148H32a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H76Zm149,19.94a12,12,0,0,1-9,4.06H152a4,4,0,0,0-4,4v24a28,28,0,0,1-25.58,27.9L84,151.06V52H204a12,12,0,0,1,11.91,10.51l12,96A12,12,0,0,1,225,167.94Z"},null,-1),K1=[J1],q1={name:"PhThumbsDown"},Y1=b({...q1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",V1,I1)):s.value==="duotone"?(o(),n("g",x1,P1)):s.value==="fill"?(o(),n("g",B1,D1)):s.value==="light"?(o(),n("g",F1,O1)):s.value==="regular"?(o(),n("g",R1,U1)):s.value==="thin"?(o(),n("g",G1,K1)):w("",!0)],16,L1))}}),X1=["width","height","fill","transform"],Q1={key:0},ea=r("path",{d:"M237,77.47A28,28,0,0,0,216,68H164V56a44.05,44.05,0,0,0-44-44,12,12,0,0,0-10.73,6.63L72.58,92H32a20,20,0,0,0-20,20v88a20,20,0,0,0,20,20H204a28,28,0,0,0,27.78-24.53l12-96A28,28,0,0,0,237,77.47ZM36,116H68v80H36ZM220,96.5l-12,96a4,4,0,0,1-4,3.5H92V106.83L126.82,37.2A20,20,0,0,1,140,56V80a12,12,0,0,0,12,12h64a4,4,0,0,1,4,4.5Z"},null,-1),ta=[ea],aa={key:1},la=r("path",{d:"M80,104V208H32a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8Z",opacity:"0.2"},null,-1),oa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),sa=[la,oa],na={key:2},ra=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"},null,-1),ia=[ra],ua={key:3},ca=r("path",{d:"M232.49,81.44A22,22,0,0,0,216,74H158V56a38,38,0,0,0-38-38,6,6,0,0,0-5.37,3.32L76.29,98H32a14,14,0,0,0-14,14v88a14,14,0,0,0,14,14H204a22,22,0,0,0,21.83-19.27l12-96A22,22,0,0,0,232.49,81.44ZM30,200V112a2,2,0,0,1,2-2H74v92H32A2,2,0,0,1,30,200ZM225.92,97.24l-12,96A10,10,0,0,1,204,202H86V105.42l37.58-75.17A26,26,0,0,1,146,56V80a6,6,0,0,0,6,6h64a10,10,0,0,1,9.92,11.24Z"},null,-1),da=[ca],ha={key:4},pa=r("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"},null,-1),ga=[pa],va={key:5},fa=r("path",{d:"M231,82.76A20,20,0,0,0,216,76H156V56a36,36,0,0,0-36-36,4,4,0,0,0-3.58,2.21L77.53,100H32a12,12,0,0,0-12,12v88a12,12,0,0,0,12,12H204a20,20,0,0,0,19.85-17.52l12-96A20,20,0,0,0,231,82.76ZM76,204H32a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H76ZM227.91,97.49l-12,96A12,12,0,0,1,204,204H84V104.94L122.42,28.1A28,28,0,0,1,148,56V80a4,4,0,0,0,4,4h64a12,12,0,0,1,11.91,13.49Z"},null,-1),ma=[fa],ya={name:"PhThumbsUp"},_a=b({...ya,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",Q1,ta)):s.value==="duotone"?(o(),n("g",aa,sa)):s.value==="fill"?(o(),n("g",na,ia)):s.value==="light"?(o(),n("g",ua,da)):s.value==="regular"?(o(),n("g",ha,ga)):s.value==="thin"?(o(),n("g",va,ma)):w("",!0)],16,X1))}}),Ha=["width","height","fill","transform"],$a={key:0},wa=r("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"},null,-1),Ca=[wa],Aa={key:1},Ma=r("path",{d:"M232,56v64L168,56Z",opacity:"0.2"},null,-1),Sa=r("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"},null,-1),ka=[Ma,Sa],Za={key:2},ba=r("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"},null,-1),La=[ba],Va={key:3},Ea=r("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"},null,-1),Ia=[Ea],xa={key:4},za=r("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"},null,-1),Ta=[za],Pa={key:5},Ba=r("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"},null,-1),Na=[Ba],Da={name:"PhTrendUp"},Fa=b({...Da,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=y("weight","regular"),l=y("size","1em"),u=y("color","currentColor"),d=y("mirrored",!1),s=v(()=>{var a;return(a=e.weight)!=null?a:t}),p=v(()=>{var a;return(a=e.size)!=null?a:l}),H=v(()=>{var a;return(a=e.color)!=null?a:u}),$=v(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:d?"scale(-1, 1)":void 0);return(a,h)=>(o(),n("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:H.value,transform:$.value},a.$attrs),[P(a.$slots,"default"),s.value==="bold"?(o(),n("g",$a,Ca)):s.value==="duotone"?(o(),n("g",Aa,ka)):s.value==="fill"?(o(),n("g",Za,La)):s.value==="light"?(o(),n("g",Va,Ia)):s.value==="regular"?(o(),n("g",xa,Ta)):s.value==="thin"?(o(),n("g",Pa,Na)):w("",!0)],16,Ha))}}),Wa={class:"editor-layout"},Oa={class:"layout-left"},Ra={class:"layout-right"},ja=b({__name:"EditorLayout",props:{fullWidth:{type:Boolean}},setup(i){return(e,t)=>(o(),n("div",Wa,[r("section",Oa,[P(e.$slots,"left",{},void 0,!0)]),r("section",Ra,[P(e.$slots,"right",{},void 0,!0)])]))}});const Jl=j(ja,[["__scopeId","data-v-74db9fe9"]]);class Se{constructor(){f(this,"logState",$e({log:[]}));f(this,"_listeners",{})}static create(){return new Se}get logs(){return this.logState.log}log(e,t){if(e.type!=="restart"&&e.log.trim()==="")return;const l=t?this.logs.find(u=>u.id===t):null;return l?(l.type==="stderr"&&e.type==="stderr"&&(e.log=l.log+` +`+e.log),Object.assign(l,e)):this.logs.push({...e,id:t||ue()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=ue();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Ua=b({__name:"PathInput",props:{runtime:{}},setup(i){const e=i,t=()=>{const l=Ue(e.runtime.path);l&&l!==e.runtime.path&&(e.runtime.path=l)};return(l,u)=>(o(),S(c(we),{value:l.runtime.path,"onUpdate:value":u[0]||(u[0]=d=>l.runtime.path=d),type:"text",onBlur:t},Le({_:2},[l.runtime instanceof c(We)?{name:"addonBefore",fn:g(()=>[V(" https://[your-subdomain].abstra.app/_hooks/ ")]),key:"0"}:{name:"addonBefore",fn:g(()=>[V(" https://[your-subdomain].abstra.app/ ")]),key:"1"}]),1032,["value"]))}}),Ga={key:1},Ja=b({__name:"RuntimeCommonSettings",props:{runtime:{}},setup(i){const e=$e({pathError:null});return(t,l)=>(o(),n(ce,null,[t.runtime instanceof c(Oe)||t.runtime instanceof c(Re)?w("",!0):(o(),S(c(Ce),{key:0,label:"URL path"},{default:g(()=>[m(Ua,{runtime:t.runtime},null,8,["runtime"])]),_:1})),e.pathError?(o(),n("div",Ga,J(e.pathError),1)):w("",!0)],64))}});const Kl=j(Ja,[["__scopeId","data-v-18856675"]]),Ka="/assets/typing.c1831e40.svg";class qa{constructor(e,t){f(this,"ws",null);f(this,"selfClosed",!1);f(this,"reconnectInterval");this.onMessage=e,this.stageId=t}get url(){return"/_editor/api/stdio/listen"}handleMessage(e){const t=JSON.parse(e.data);t.stage_id===this.stageId&&this.onMessage(t)}handleClose(e){this.selfClosed||this.reconnectInterval||(this.reconnectInterval=setInterval(()=>this.reset(),2e3))}clearReconnectInterval(){this.reconnectInterval&&(clearInterval(this.reconnectInterval),this.reconnectInterval=void 0)}async close(){if(!!this.ws){this.selfClosed=!0;try{this.ws.close()}catch{console.warn("already closed")}this.ws=null}}async reset(){await this.close(),await this.connect()}async connect(){return await new Promise(e=>{this.ws=new WebSocket(this.url),this.ws.onopen=()=>e(),this.ws.onclose=t=>this.handleClose(t),this.ws.onmessage=t=>this.handleMessage(t),this.selfClosed=!1,this.clearReconnectInterval()})}}const Ya=b({__name:"SmartConsoleCopy",props:{textToCopy:{}},setup(i){const e=i,t=L(!1),l=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},u=v(()=>t.value?"Copied!":"Copy to clipboard");return(d,s)=>(o(),S(c(z),null,{title:g(()=>[V(J(u.value),1)]),default:g(()=>[r("div",{class:"copy-button",onClick:l},[t.value?(o(),S(c(qe),{key:1,color:"#fff",size:"22"})):(o(),S(c(Ye),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const Xa=j(Ya,[["__scopeId","data-v-cbb7de67"]]);class Qa{constructor(e,t){f(this,"_threadId");f(this,"_input");f(this,"_badgeState");f(this,"_smartConsoleState");f(this,"_logService");f(this,"_stageType");f(this,"_cachedFileContent",null);f(this,"setupThread",async()=>{this._smartConsoleState.value="creating-thread";const{thread:e}=await te.createThread();this._threadId.value=e,this._smartConsoleState.value="idle"});f(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const l=m(Xa,{textToCopy:t.textContent});Ve(l,t)})});f(this,"getLastExecutionError",()=>{let e="";for(let t=this._logService.logs.length-1;t>=0;t--){const l=this._logService.logs[t];if(l.type==="stderr"){e=l.log;break}}return e});f(this,"getPreffixes",e=>{const t=[{role:"user",content:`If necessary to check, this is my current code: ${e||"No code found"} . Otherwise, just IGNORE it. `}],l=this.getLastExecutionError();return l.length&&t.push({role:"user",content:`If necessary to check, I got this error during execution: ${l}. Otherwise, just IGNORE it.`}),t});f(this,"buildMessages",(e,t)=>{const l=this.getPreffixes(e),u=[{role:"system",content:"The Python code and its possible errors during execution are sent by default, but it should be IGNORED if the main question is not about them."},...l,{role:"user",content:this._input.value}];return t&&u.push({role:"user",content:"The last answer was bad and you must regenerate it differently."}),u});f(this,"send",async(e,t=!1)=>{this._cachedFileContent=e,this._logService.log({type:"ai-input",log:this._input.value}),this._smartConsoleState.value="processing";const l=this.buildMessages(e,t);try{const u=ue();let d="";const s=te.sendMessage(l,this._stageType,this._threadId.value,this.isIdle.bind(this));for await(const p of s){if(this.isIdle())break;this._smartConsoleState.value==="processing"&&(this._smartConsoleState.value="answering"),d+=p,this._logService.log({type:"ai-output",log:d},u)}this._input.value=""}catch(u){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Plese try again later."}),console.error(u),Ee(u)}finally{this._smartConsoleState.value="idle",this.renderCopyButtons()}});f(this,"cancel",()=>{!this._threadId.value||(te.cancelAllRuns(this._threadId.value),this._smartConsoleState.value="idle")});f(this,"isProcessing",()=>this._smartConsoleState.value==="processing");f(this,"isAnswering",()=>this._smartConsoleState.value==="answering");f(this,"isIdle",()=>this._smartConsoleState.value==="idle");f(this,"isCreatingThread",()=>this._smartConsoleState.value==="creating-thread");f(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});f(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});f(this,"setInput",e=>{this._input.value=e||""});f(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send(this._cachedFileContent,!0)});f(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code: ${e} - And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send(null)});f(this,"vote",async(e,t)=>{const l=this._logService.logs[e],u=this._logService.logs[e-1],d=this._logService.logs.slice(0,e-1);await te.vote(t,u,l,d)});this._stageType=t,this._logService=e,this._threadId=L(null),this._input=L(""),this._badgeState=L({type:"seen"}),this._smartConsoleState=L("idle")}init(){this.setupThread(),this.renderCopyButtons()}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}const el={class:"toggle-button"},tl=Z({__name:"SmartConsoleHeader",props:{controller:{},open:{type:Boolean}},emits:["toggle-console"],setup(i,{emit:e}){return(t,l)=>(o(),S(c(T),{class:"header",justify:"space-between"},{default:g(()=>[m(c(T),{align:"center",gap:"middle"},{default:g(()=>[m(c(Z1),{size:"20"}),V(" Smart Console ")]),_:1}),m(c(z),{placement:"left","mouse-enter-delay":.5,title:t.open?"Hide Smart Console":"Show Smart Console"},{default:g(()=>{var u,d,s;return[r("div",el,[((u=t.controller)==null?void 0:u.badgeState.type)==="unseen"?(o(),S(c(Xe),{key:0,count:(d=t.controller)==null?void 0:d.badgeState.count,"number-style":{backgroundColor:((s=t.controller)==null?void 0:s.badgeState.severity)==="error"?"#e03636":"#606060"}},{default:g(()=>[m(c(ye),{class:N(["icon",{open:t.open}]),onClick:l[0]||(l[0]=p=>e("toggle-console"))},null,8,["class"])]),_:1},8,["count","number-style"])):(o(),S(c(ye),{key:1,class:N(["icon",{open:t.open}]),onClick:l[1]||(l[1]=p=>e("toggle-console"))},null,8,["class"]))])]}),_:1},8,["title"])]),_:1}))}});const al=j(tl,[["__scopeId","data-v-63216dee"]]),ll=["contenteditable","onKeydown"],ol=Z({__name:"SmartConsoleInput",props:{controller:{},workspace:{},stage:{}},emits:["sendMessage"],setup(i,{emit:e}){const t=i,l=L(!1),u=L(null),d=v(()=>t.controller.isCreatingThread()),s=v(()=>t.controller.isProcessing()||t.controller.isAnswering()),p=()=>{var h;!t.controller||t.controller.setInput((h=u.value)==null?void 0:h.innerText)},H=h=>{if(h.preventDefault(),h.shiftKey){document.execCommand("insertLineBreak");return}$()};Y(()=>t.controller.isCreatingThread(),()=>{!t.controller.isCreatingThread()&&(l.value=!1)});const $=async()=>{var b;if(e("sendMessage"),!t.controller)return;if(t.controller.isCreatingThread()){l.value=!0;return}t.controller.setInput((b=u.value)==null?void 0:b.innerText),u.value.innerText="";let h=null;t.workspace&&t.stage&&(h=await t.workspace.readFile(t.stage.file)),await t.controller.send(h)},a=h=>{var k;h.preventDefault();const b=(k=h.clipboardData)==null?void 0:k.getData("text/plain");document.execCommand("insertText",!1,b)};return de(()=>{var h;(h=u.value)==null||h.addEventListener("paste",a),u.value.innerText=t.controller.input}),he(()=>{var h;return(h=u.value)==null?void 0:h.removeEventListener("paste",a)}),(h,b)=>(o(),n("div",{class:N(["input",{disabled:s.value}])},[r("div",{ref_key:"inputRef",ref:u,class:"input-text",contenteditable:!s.value,onKeydown:Ie(H,["enter"]),onInput:p},null,40,ll),s.value?(o(),S(c(r1),{key:0,size:18,class:"icon",onClick:b[0]||(b[0]=k=>{var B;return(B=h.controller)==null?void 0:B.cancel()})})):w("",!0),m(c(z),{title:"Just a second, we're setting up...",open:l.value,placement:"topRight"},{default:g(()=>[s.value?w("",!0):(o(),S(c(mt),{key:0,size:18,class:N(["icon",[{disabled:h.controller.input.length===0||d.value}]]),onClick:$},null,8,["class"]))]),_:1},8,["open"])],2))}});const sl=j(ol,[["__scopeId","data-v-5a077124"]]),nl=["onClick"],rl={class:"icon"},il={class:"title"},ul=Z({__name:"SmartSuggestions",props:{controller:{},workspace:{},stage:{}},setup(i){const e=i,t=v(()=>{var d;return(d=e.controller)==null?void 0:d.isCreatingThread()}),l=async d=>{if(!e.controller||e.controller.isCreatingThread())return;e.controller.setInput(d);let s=null;e.workspace&&e.stage&&(s=await e.workspace.readFile(e.stage.file)),await e.controller.send(s)},u=[{title:"Why is this not working?!",icon:Qe},{title:"How can I improve this code?",icon:Fa},{title:"What is this code doing?",icon:e0}];return(d,s)=>(o(),S(c(T),{class:"suggestions-container",gap:"middle",justify:"center"},{default:g(()=>[(o(),n(ce,null,Ae(u,p=>r("div",{key:p.title,class:N(["suggestion",{disabled:t.value}]),onClick:H=>l(p.title)},[r("div",rl,[(o(),S(xe(p.icon),{size:24}))]),r("div",il,J(p.title),1)],10,nl)),64))]),_:1}))}});const cl=j(ul,[["__scopeId","data-v-2ca3db5f"]]),dl=i=>(De("data-v-6b2cf0ec"),i=i(),Fe(),i),hl=dl(()=>r("div",{class:"entry ai-output"}," Hello there! I'm both an output console and AI assistant. You can ask me anything. ",-1)),pl={key:0},gl={key:1,class:"local-entry"},vl={key:1,class:"typing-img",src:Ka},fl=Z({__name:"SmartConsole",props:{logService:{},workspace:{},stageType:{},stage:{}},setup(i,{expose:e}){const t=i,l=ze(),u=je(),d=L(null),s=L(!1),p=L(400),H=L(!1),$=new qa(_=>t.logService.log(_),t.stage.id),a=new Qa(t.logService,t.stageType),h=L([]);Y(()=>t.logService.logs,()=>{h.value.push(null)});const b=(_,E)=>{h.value[_]||(h.value[_]=E,a.vote(_,E))};Y(()=>{var _;return(_=u.cloudProject)==null?void 0:_.id},async _=>_&&a.setupThread());const k=()=>{t.logService.clear(),a.setupThread()},B=v(()=>({height:`${p.value}px`})),D=L(!0);async function se(){var _;if(s.value=!s.value,s.value){if(a.setSeen(),await ie(),!d.value)return;d.value.addEventListener("wheel",F),D.value&&(d.value.scrollTop=(_=d.value)==null?void 0:_.scrollHeight)}else{if(!d.value)return;d.value.removeEventListener("wheel",F)}a.renderCopyButtons()}const F=()=>{if(!d.value)return;const{scrollTop:_,scrollHeight:E,clientHeight:K}=d.value;_+K>=E?D.value=!0:D.value=!1};Y(l,()=>t.logService.clear()),e({closeConsole:()=>s.value=!1,fixJson:async(_,E)=>{s.value=!0,await a.fixJson(_,E)}}),t.logService.listen(async _=>{s.value||a.setUnseen(_),_.type!=="restart"&&(await ie(),!!d.value&&D.value&&(d.value.scrollTop=d.value.scrollHeight))});const ne=()=>{D.value=!0},U=_=>{!H.value||(p.value=document.body.clientHeight-_.clientY)},A=()=>H.value=!1;return de(async()=>{document.addEventListener("mousemove",U),document.addEventListener("mouseup",A),await $.connect(),a.init()}),Te(async()=>{d.value&&d.value.removeEventListener("wheel",F)}),he(async()=>{document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",A),await $.close()}),(_,E)=>{const K=Pe("Markdown");return o(),S(c(T),{vertical:""},{default:g(()=>[m(al,{controller:c(a),open:s.value,onToggleConsole:se},null,8,["controller","open"]),s.value?(o(),S(c(T),{key:0,class:"terminal",style:Be(B.value),vertical:""},{default:g(()=>[r("div",{class:"resize-handler",onMousedown:E[0]||(E[0]=I=>H.value=!0)},null,32),m(c(T),{class:"cli"},{default:g(()=>[m(c(T),{class:"left",vertical:""},{default:g(()=>[r("div",{ref_key:"entriesContainer",ref:d,class:"entries"},[hl,(o(!0),n(ce,null,Ae(_.logService.logs,(I,x)=>(o(),n("div",{key:x,class:N([I.type,"entry"])},[I.type==="ai-output"?(o(),n("div",pl,[I.type==="ai-output"?(o(),S(K,{key:0,source:I.log},null,8,["source"])):w("",!0),m(c(T),{gap:"6",class:"icons"},{default:g(()=>[m(c(z),{placement:"top",title:"Copy"},{default:g(()=>[m(c(Ne),{copyable:{text:I.log}},{copyableIcon:g(()=>[m(c(Ke),{size:18,class:"icon"})]),_:2},1032,["copyable"])]),_:2},1024),x===_.logService.logs.length-1?(o(),S(c(z),{key:0,placement:"top",title:"Regenerate"},{default:g(()=>[m(c(Nt),{size:18,onClick:E[1]||(E[1]=Q=>c(a).regenerateLast())})]),_:1})):w("",!0),m(c(z),{placement:"top",title:"Good response"},{default:g(()=>[m(c(_a),{size:18,class:N({filled:h.value[x]==="good",disabled:h.value[x]==="bad"}),onClick:Q=>b(x,"good")},null,8,["class","onClick"])]),_:2},1024),m(c(z),{placement:"top",title:"Bad response"},{default:g(()=>[m(c(Y1),{size:18,class:N({filled:h.value[x]==="bad",disabled:h.value[x]==="good"}),onClick:Q=>b(x,"bad")},null,8,["class","onClick"])]),_:2},1024)]),_:2},1024)])):(o(),n("div",gl,J(I.type==="restart"?"-- restarted --":I.log),1))],2))),128))],512),_.logService.logs.length?w("",!0):(o(),S(cl,{key:0,controller:c(a),workspace:_.workspace,stage:_.stage},null,8,["controller","workspace","stage"])),m(sl,{controller:c(a),workspace:_.workspace,stage:_.stage,onSendMessage:ne},null,8,["controller","workspace","stage"])]),_:1}),m(c(T),{class:"right",vertical:"",justify:"space-between",align:"center"},{default:g(()=>{var I,x;return[m(c(z),{placement:"left",title:"Start new conversation"},{default:g(()=>[m(c(k0),{size:20,class:"broom-icon",onClick:k})]),_:1}),(I=c(a))!=null&&I.isProcessing()?(o(),S(c(t0),{key:0,style:{color:"#aaa","font-size":"18px"}})):w("",!0),(x=c(a))!=null&&x.isAnswering()?(o(),n("img",vl)):w("",!0)]}),_:1})]),_:1})]),_:1},8,["style"])):w("",!0)]),_:1})}}});const ql=j(fl,[["__scopeId","data-v-6b2cf0ec"]]);class pe{static async getAutocomplete(e){try{return await(await fetch("/_editor/api/pysa/autocomplete",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getHelp(e){try{return await(await fetch("/_editor/api/pysa/help",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getLint(e){try{return await(await fetch("/_editor/api/pysa/lint",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}}let oe={};function ml(i){return i in oe?"\n\n```python\n"+i+" = "+oe[i]+"\n```":""}function yl(i){switch(i){case"error":return q.Error;case"warning":return q.Warning;case"info":return q.Info;case"hint":return q.Hint;default:return q.Error}}le.registerHoverProvider("python",{async provideHover(i,e){const t=i.getWordAtPosition(e);return t?{contents:(await pe.getHelp({code:i.getValue(),line:e.lineNumber,column:e.column})).map(u=>({value:u.docstring+ml(u.name)})),range:new Me(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn)}:null}});le.registerCompletionItemProvider("python",{async provideCompletionItems(i,e){const t=await pe.getAutocomplete({code:i.getValue(),line:e.lineNumber,column:e.column-1}),l=i.getWordUntilPosition(e);return{suggestions:t.map(u=>({label:u.name,kind:le.CompletionItemKind.Function,documentation:u.documentation,insertText:u.name,insertTextRules:le.CompletionItemInsertTextRule.InsertAsSnippet,range:{startLineNumber:e.lineNumber,endLineNumber:e.lineNumber,startColumn:l.startColumn,endColumn:l.endColumn}}))}}});const He=i=>{pe.getLint({code:i.getValue(),line:0,column:0}).then(e=>{X.setModelMarkers(i,"python",e.map(t=>({startLineNumber:t.line,startColumn:t.column,endLineNumber:t.until_line,endColumn:t.until_column,message:t.message,severity:yl(t.severity)})))})},_l=(i,e,t={})=>{var a;const l=X.create(i,{language:"python",value:e,minimap:{enabled:!1},readOnly:(a=t.readOnly)!=null?a:!1,contextmenu:!t.readOnly,automaticLayout:!t.readOnly,tabSize:4,fixedOverflowWidgets:!0,theme:t.theme?t.theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:t.readOnly?0:5,scrollBeyondLastLine:!t.readOnly,renderLineHighlight:t.readOnly?"none":"all",scrollbar:{useShadows:!1,alwaysConsumeMouseWheel:!1}}),u=l.getContribution("editor.contrib.messageController");l.onDidAttemptReadOnlyEdit(()=>{u.showMessage("Cannot edit during preview execution",l.getPosition())});const d=l.createDecorationsCollection([]),s=(h,b)=>{d.set(h.map(k=>({range:new Me(k.lineno,1,k.lineno,1),options:{isWholeLine:!0,className:b}}))),oe=h.reduce((k,B)=>({...k,...B.locals}),{})},p=(h,b)=>k=>{const B=k.filter(D=>D.filename.endsWith(b));s(B,h)},H=()=>{d.clear(),oe={}},$=h=>{l.updateOptions({readOnly:h})};return He(l.getModel()),l.onDidChangeModelContent(()=>{He(l.getModel())}),{editor:l,highlight:p,clearHighlights:H,setReadOnly:$}},Hl=(i,e,t)=>{const l=X.createModel(e),u=X.createModel(t),d=X.createDiffEditor(i,{minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,renderWhitespace:"none",guides:{indentation:!1},fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:0,scrollBeyondLastLine:!1,renderLineHighlight:"none"});return d.setModel({original:l,modified:u}),{diffEditor:d}};class $l{constructor(e,t){f(this,"_script");f(this,"_localEditorCode");f(this,"_monacoEditor");f(this,"_diffEditor");f(this,"_viewMode");f(this,"_alertMessage");f(this,"_conflictingChanges");this._localEditorCode=e,this._script=t,this._monacoEditor=null,this._diffEditor=null,this._viewMode=ae("editor"),this._alertMessage=ae(""),this._conflictingChanges=ae(!1)}get alertMessage(){return this._alertMessage.value}set alertMessage(e){this._alertMessage.value=e}get conflictingChanges(){return this._conflictingChanges.value}set conflictingChanges(e){this._conflictingChanges.value=e}get viewMode(){return this._viewMode.value}set viewMode(e){this._viewMode.value=e}get abstraIDECode(){return this._script.codeContent}get localEditorCode(){return this._localEditorCode}set localEditorCode(e){this._localEditorCode=e}set monacoEditor(e){this._monacoEditor=e}set diffEditor(e){this._diffEditor=e}finishPreview(){var e;this._viewMode.value="editor",this._script.codeContent=this._localEditorCode,(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.alertMessage=""}updateCodeWhileEditing(e){var u;const t=e!==this._localEditorCode;if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1;return}const l=!this._script.hasChanges("code_content");if(l){(u=this._monacoEditor)==null||u.setValue(e),this._script.codeContent=e,this._script.updateInitialState("code_content",e);return}if(!l&&t){this.alertMessage="You have conflicting changes with your local editor code",this.conflictingChanges=!0;return}}updateCodeWhileDiff(e){var t,l;if(e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1,this.viewMode="editor",this._localEditorCode=e;return}if(e!==this._localEditorCode){(l=(t=this._diffEditor)==null?void 0:t.getModel())==null||l.modified.setValue(e),this._localEditorCode=e;return}}updateCodeWhilePreview(e){if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="";return}this.alertMessage="The changes on your code will be shown after the preview stops running"}updateCode(e){switch(this._viewMode.value){case"editor":return this.updateCodeWhileEditing(e);case"diff":return this.updateCodeWhileDiff(e);case"preview":return this.updateCodeWhilePreview(e)}}keepAbstraIDECode(){var e;(e=this._monacoEditor)==null||e.setValue(this._script.codeContent),this._script.save("code_content"),this._script.updateInitialState("code_content",this._script.codeContent),this._localEditorCode=this._script.codeContent,this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}keepLocalEditor(){var e;(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}}const wl={class:"source-code-container"},Cl={class:"code-container"},Al={key:0,class:"not-found-container"},Ml=Z({__name:"SourceCode",props:{script:{},workspace:{}},emits:["update-file"],setup(i,{expose:e,emit:t}){const l=i,u=()=>{!l.script.file||re.openFile(l.script.file)},d=()=>{A.value.viewMode="diff",ke()},s=L(null),p=L(null);let H,$,a,h;const{result:b}=_e(()=>fetch("/_editor/api/workspace/root").then(C=>C.text())),k=L(l.script.file);Y(()=>l.script.file,()=>k.value=l.script.file);const{result:B,refetch:D}=_e(()=>re.checkFile(k.value)),se=()=>{F.value.valid?t("update-file",Ge(k.value)):t("update-file",k.value),D()},F=v(()=>{var M;const C=Je(k.value);return C.valid?((M=B.value)==null?void 0:M.exists)&&l.script.hasChanges("file")?{valid:!0,help:"This file already exists"}:l.script.hasChanges("file")?{valid:!0,help:"The original file will be renamed"}:C:C}),ne=()=>{!l.workspace||!b.value||re.openFile(".")},U=L(!1),A=ae(null),_=async()=>{var M;if(!l.script.file)return;const C=await l.workspace.readFile(l.script.file);if(C===null){U.value=!0;return}U.value=!1,(M=A.value)==null||M.updateCode(C)},{startPolling:E,endPolling:K}=a0({task:_});de(()=>{Q(),E()}),he(()=>{K()});const I=()=>{h(!0),A.value.viewMode="preview"},x=(C,M)=>{if(M)return a("error-line",l.script.file)(C);a("executing-line",l.script.file)(C)},Q=async()=>{await ie(),l.workspace.readFile(l.script.file).then(C=>{const M=C!=null?C:"";l.script.codeContent=M,l.script.updateInitialState("code_content",M),A.value=new $l(M,l.script);const W=_l(s.value,M);$=W.clearHighlights,a=W.highlight,h=W.setReadOnly,H=W.editor,A.value.monacoEditor=H,H.onDidChangeModelContent(()=>{l.script.codeContent=H.getValue()})})},ke=async()=>{const C=await l.workspace.readFile(l.script.file);if(!C)return;const M=l.script.codeContent,W=Hl(p.value,M,C);A.value.diffEditor=W.diffEditor},ge=()=>{var C;$(),h(!1),(C=A.value)==null||C.finishPreview()};return e({startPreviewMode:I,setHighlight:x,restartEditor:ge,updateLocalEditorCode:C=>{A.value.localEditorCode=C,ge()}}),(C,M)=>{var W,ve,fe,me;return o(),n("div",wl,[m(c(Ce),{"validate-status":F.value.valid?"success":"error",help:F.value.valid?F.value.help:F.value.reason,class:"file-input"},{default:g(()=>[m(c(we),{value:k.value,"onUpdate:value":M[0]||(M[0]=G=>k.value=G),autocomplete:"off",onChange:se},{addonBefore:g(()=>[c(b)?(o(),n("span",{key:0,class:"clickable",onClick:ne},[m(c(z),{placement:"bottomLeft","overlay-style":{maxWidth:"none"}},{title:g(()=>[V(J(c(b)),1)]),default:g(()=>[m(c(K0),{size:"22"})]),_:1})])):w("",!0)]),addonAfter:g(()=>[r("span",{class:"clickable",onClick:u},[V(" Open in editor "),m(c(l0),{size:"20"})])]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),(W=A.value)!=null&&W.alertMessage?(o(),S(c(o0),{key:0,type:"warning","show-icon":""},{message:g(()=>{var G;return[V(J((G=A.value)==null?void 0:G.alertMessage),1)]}),action:g(()=>[A.value.conflictingChanges&&A.value.viewMode!=="diff"?(o(),S(c(T),{key:0,gap:"small"},{default:g(()=>[m(c(ee),{type:"primary",onClick:d},{default:g(()=>[V("Compare")]),_:1}),m(c(z),null,{title:g(()=>[V("Keep the local editor version")]),default:g(()=>[m(c(ee),{onClick:M[1]||(M[1]=G=>{var R;return(R=A.value)==null?void 0:R.keepLocalEditor()})},{default:g(()=>[V("Discard")]),_:1})]),_:1})]),_:1})):w("",!0),A.value.conflictingChanges&&A.value.viewMode==="diff"?(o(),S(c(T),{key:1,gap:"small"},{default:g(()=>[m(c(z),null,{title:g(()=>[V("Keep your current changes")]),default:g(()=>[m(c(ee),{onClick:M[2]||(M[2]=G=>{var R;return(R=A.value)==null?void 0:R.keepAbstraIDECode()})},{default:g(()=>[V("Keep left")]),_:1})]),_:1}),m(c(z),null,{title:g(()=>[V("Keep the local editor version")]),default:g(()=>[m(c(ee),{onClick:M[3]||(M[3]=G=>{var R;return(R=A.value)==null?void 0:R.keepLocalEditor()})},{default:g(()=>[V("Keep right")]),_:1})]),_:1})]),_:1})):w("",!0)]),_:1})):w("",!0),r("div",Cl,[U.value?(o(),n("div",Al,[m(c(s0),null,{title:g(()=>[V("File not found")]),_:1})])):w("",!0),r("div",{id:"code",ref_key:"codeComponent",ref:s,class:N(["monaco-element",{hide:((ve=A.value)==null?void 0:ve.viewMode)==="diff",blur:U.value}])},null,2)]),((fe=A.value)==null?void 0:fe.viewMode)==="diff"?(o(),n("div",{key:1,id:"code",ref_key:"codeDiffComponent",ref:p,class:N(["monaco-element",{hide:((me=A.value)==null?void 0:me.viewMode)!=="diff"}])},null,2)):w("",!0)])}}});const Yl=j(Ml,[["__scopeId","data-v-153aaea3"]]);export{Jl as E,r1 as I,Se as L,Kl as R,ql as S,Yl as a}; -//# sourceMappingURL=SourceCode.38be4205.js.map + And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send(null)});f(this,"vote",async(e,t)=>{const l=this._logService.logs[e],u=this._logService.logs[e-1],d=this._logService.logs.slice(0,e-1);await te.vote(t,u,l,d)});this._stageType=t,this._logService=e,this._threadId=L(null),this._input=L(""),this._badgeState=L({type:"seen"}),this._smartConsoleState=L("idle")}init(){this.setupThread(),this.renderCopyButtons()}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}const el={class:"toggle-button"},tl=b({__name:"SmartConsoleHeader",props:{controller:{},open:{type:Boolean}},emits:["toggle-console"],setup(i,{emit:e}){return(t,l)=>(o(),S(c(T),{class:"header",justify:"space-between"},{default:g(()=>[m(c(T),{align:"center",gap:"middle"},{default:g(()=>[m(c(b1),{size:"20"}),V(" Smart Console ")]),_:1}),m(c(z),{placement:"left","mouse-enter-delay":.5,title:t.open?"Hide Smart Console":"Show Smart Console"},{default:g(()=>{var u,d,s;return[r("div",el,[((u=t.controller)==null?void 0:u.badgeState.type)==="unseen"?(o(),S(c(Xe),{key:0,count:(d=t.controller)==null?void 0:d.badgeState.count,"number-style":{backgroundColor:((s=t.controller)==null?void 0:s.badgeState.severity)==="error"?"#e03636":"#606060"}},{default:g(()=>[m(c(ye),{class:N(["icon",{open:t.open}]),onClick:l[0]||(l[0]=p=>e("toggle-console"))},null,8,["class"])]),_:1},8,["count","number-style"])):(o(),S(c(ye),{key:1,class:N(["icon",{open:t.open}]),onClick:l[1]||(l[1]=p=>e("toggle-console"))},null,8,["class"]))])]}),_:1},8,["title"])]),_:1}))}});const al=j(tl,[["__scopeId","data-v-63216dee"]]),ll=["contenteditable","onKeydown"],ol=b({__name:"SmartConsoleInput",props:{controller:{},workspace:{},stage:{}},emits:["sendMessage"],setup(i,{emit:e}){const t=i,l=L(!1),u=L(null),d=v(()=>t.controller.isCreatingThread()),s=v(()=>t.controller.isProcessing()||t.controller.isAnswering()),p=()=>{var h;!t.controller||t.controller.setInput((h=u.value)==null?void 0:h.innerText)},H=h=>{if(h.preventDefault(),h.shiftKey){document.execCommand("insertLineBreak");return}$()};Y(()=>t.controller.isCreatingThread(),()=>{!t.controller.isCreatingThread()&&(l.value=!1)});const $=async()=>{var Z;if(e("sendMessage"),!t.controller)return;if(t.controller.isCreatingThread()){l.value=!0;return}t.controller.setInput((Z=u.value)==null?void 0:Z.innerText),u.value.innerText="";let h=null;t.workspace&&t.stage&&(h=await t.workspace.readFile(t.stage.file)),await t.controller.send(h)},a=h=>{var k;h.preventDefault();const Z=(k=h.clipboardData)==null?void 0:k.getData("text/plain");document.execCommand("insertText",!1,Z)};return de(()=>{var h;(h=u.value)==null||h.addEventListener("paste",a),u.value.innerText=t.controller.input}),he(()=>{var h;return(h=u.value)==null?void 0:h.removeEventListener("paste",a)}),(h,Z)=>(o(),n("div",{class:N(["input",{disabled:s.value}])},[r("div",{ref_key:"inputRef",ref:u,class:"input-text",contenteditable:!s.value,onKeydown:Ie(H,["enter"]),onInput:p},null,40,ll),s.value?(o(),S(c(r1),{key:0,size:18,class:"icon",onClick:Z[0]||(Z[0]=k=>{var B;return(B=h.controller)==null?void 0:B.cancel()})})):w("",!0),m(c(z),{title:"Just a second, we're setting up...",open:l.value,placement:"topRight"},{default:g(()=>[s.value?w("",!0):(o(),S(c(mt),{key:0,size:18,class:N(["icon",[{disabled:h.controller.input.length===0||d.value}]]),onClick:$},null,8,["class"]))]),_:1},8,["open"])],2))}});const sl=j(ol,[["__scopeId","data-v-5a077124"]]),nl=["onClick"],rl={class:"icon"},il={class:"title"},ul=b({__name:"SmartSuggestions",props:{controller:{},workspace:{},stage:{}},setup(i){const e=i,t=v(()=>{var d;return(d=e.controller)==null?void 0:d.isCreatingThread()}),l=async d=>{if(!e.controller||e.controller.isCreatingThread())return;e.controller.setInput(d);let s=null;e.workspace&&e.stage&&(s=await e.workspace.readFile(e.stage.file)),await e.controller.send(s)},u=[{title:"Why is this not working?!",icon:Qe},{title:"How can I improve this code?",icon:Fa},{title:"What is this code doing?",icon:e0}];return(d,s)=>(o(),S(c(T),{class:"suggestions-container",gap:"middle",justify:"center"},{default:g(()=>[(o(),n(ce,null,Ae(u,p=>r("div",{key:p.title,class:N(["suggestion",{disabled:t.value}]),onClick:H=>l(p.title)},[r("div",rl,[(o(),S(xe(p.icon),{size:24}))]),r("div",il,J(p.title),1)],10,nl)),64))]),_:1}))}});const cl=j(ul,[["__scopeId","data-v-2ca3db5f"]]),dl=i=>(De("data-v-6b2cf0ec"),i=i(),Fe(),i),hl=dl(()=>r("div",{class:"entry ai-output"}," Hello there! I'm both an output console and AI assistant. You can ask me anything. ",-1)),pl={key:0},gl={key:1,class:"local-entry"},vl={key:1,class:"typing-img",src:Ka},fl=b({__name:"SmartConsole",props:{logService:{},workspace:{},stageType:{},stage:{}},setup(i,{expose:e}){const t=i,l=ze(),u=je(),d=L(null),s=L(!1),p=L(400),H=L(!1),$=new qa(_=>t.logService.log(_),t.stage.id),a=new Qa(t.logService,t.stageType),h=L([]);Y(()=>t.logService.logs,()=>{h.value.push(null)});const Z=(_,E)=>{h.value[_]||(h.value[_]=E,a.vote(_,E))};Y(()=>{var _;return(_=u.cloudProject)==null?void 0:_.id},async _=>_&&a.setupThread());const k=()=>{t.logService.clear(),a.setupThread()},B=v(()=>({height:`${p.value}px`})),D=L(!0);async function se(){var _;if(s.value=!s.value,s.value){if(a.setSeen(),await ie(),!d.value)return;d.value.addEventListener("wheel",F),D.value&&(d.value.scrollTop=(_=d.value)==null?void 0:_.scrollHeight)}else{if(!d.value)return;d.value.removeEventListener("wheel",F)}a.renderCopyButtons()}const F=()=>{if(!d.value)return;const{scrollTop:_,scrollHeight:E,clientHeight:K}=d.value;_+K>=E?D.value=!0:D.value=!1};Y(l,()=>t.logService.clear()),e({closeConsole:()=>s.value=!1,fixJson:async(_,E)=>{s.value=!0,await a.fixJson(_,E)}}),t.logService.listen(async _=>{s.value||a.setUnseen(_),_.type!=="restart"&&(await ie(),!!d.value&&D.value&&(d.value.scrollTop=d.value.scrollHeight))});const ne=()=>{D.value=!0},U=_=>{!H.value||(p.value=document.body.clientHeight-_.clientY)},A=()=>H.value=!1;return de(async()=>{document.addEventListener("mousemove",U),document.addEventListener("mouseup",A),await $.connect(),a.init()}),Te(async()=>{d.value&&d.value.removeEventListener("wheel",F)}),he(async()=>{document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",A),await $.close()}),(_,E)=>{const K=Pe("Markdown");return o(),S(c(T),{vertical:""},{default:g(()=>[m(al,{controller:c(a),open:s.value,onToggleConsole:se},null,8,["controller","open"]),s.value?(o(),S(c(T),{key:0,class:"terminal",style:Be(B.value),vertical:""},{default:g(()=>[r("div",{class:"resize-handler",onMousedown:E[0]||(E[0]=I=>H.value=!0)},null,32),m(c(T),{class:"cli"},{default:g(()=>[m(c(T),{class:"left",vertical:""},{default:g(()=>[r("div",{ref_key:"entriesContainer",ref:d,class:"entries"},[hl,(o(!0),n(ce,null,Ae(_.logService.logs,(I,x)=>(o(),n("div",{key:x,class:N([I.type,"entry"])},[I.type==="ai-output"?(o(),n("div",pl,[I.type==="ai-output"?(o(),S(K,{key:0,source:I.log},null,8,["source"])):w("",!0),m(c(T),{gap:"6",class:"icons"},{default:g(()=>[m(c(z),{placement:"top",title:"Copy"},{default:g(()=>[m(c(Ne),{copyable:{text:I.log}},{copyableIcon:g(()=>[m(c(Ke),{size:18,class:"icon"})]),_:2},1032,["copyable"])]),_:2},1024),x===_.logService.logs.length-1?(o(),S(c(z),{key:0,placement:"top",title:"Regenerate"},{default:g(()=>[m(c(Nt),{size:18,onClick:E[1]||(E[1]=Q=>c(a).regenerateLast())})]),_:1})):w("",!0),m(c(z),{placement:"top",title:"Good response"},{default:g(()=>[m(c(_a),{size:18,class:N({filled:h.value[x]==="good",disabled:h.value[x]==="bad"}),onClick:Q=>Z(x,"good")},null,8,["class","onClick"])]),_:2},1024),m(c(z),{placement:"top",title:"Bad response"},{default:g(()=>[m(c(Y1),{size:18,class:N({filled:h.value[x]==="bad",disabled:h.value[x]==="good"}),onClick:Q=>Z(x,"bad")},null,8,["class","onClick"])]),_:2},1024)]),_:2},1024)])):(o(),n("div",gl,J(I.type==="restart"?"-- restarted --":I.log),1))],2))),128))],512),_.logService.logs.length?w("",!0):(o(),S(cl,{key:0,controller:c(a),workspace:_.workspace,stage:_.stage},null,8,["controller","workspace","stage"])),m(sl,{controller:c(a),workspace:_.workspace,stage:_.stage,onSendMessage:ne},null,8,["controller","workspace","stage"])]),_:1}),m(c(T),{class:"right",vertical:"",justify:"space-between",align:"center"},{default:g(()=>{var I,x;return[m(c(z),{placement:"left",title:"Start new conversation"},{default:g(()=>[m(c(k0),{size:20,class:"broom-icon",onClick:k})]),_:1}),(I=c(a))!=null&&I.isProcessing()?(o(),S(c(t0),{key:0,style:{color:"#aaa","font-size":"18px"}})):w("",!0),(x=c(a))!=null&&x.isAnswering()?(o(),n("img",vl)):w("",!0)]}),_:1})]),_:1})]),_:1},8,["style"])):w("",!0)]),_:1})}}});const ql=j(fl,[["__scopeId","data-v-6b2cf0ec"]]);class pe{static async getAutocomplete(e){try{return await(await fetch("/_editor/api/pysa/autocomplete",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getHelp(e){try{return await(await fetch("/_editor/api/pysa/help",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}static async getLint(e){try{return await(await fetch("/_editor/api/pysa/lint",{headers:{"content-type":"application/json"},body:JSON.stringify(e),method:"POST"})).json()}catch{return[]}}}let oe={};function ml(i){return i in oe?"\n\n```python\n"+i+" = "+oe[i]+"\n```":""}function yl(i){switch(i){case"error":return q.Error;case"warning":return q.Warning;case"info":return q.Info;case"hint":return q.Hint;default:return q.Error}}le.registerHoverProvider("python",{async provideHover(i,e){const t=i.getWordAtPosition(e);return t?{contents:(await pe.getHelp({code:i.getValue(),line:e.lineNumber,column:e.column})).map(u=>({value:u.docstring+ml(u.name)})),range:new Me(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn)}:null}});le.registerCompletionItemProvider("python",{async provideCompletionItems(i,e){const t=await pe.getAutocomplete({code:i.getValue(),line:e.lineNumber,column:e.column-1}),l=i.getWordUntilPosition(e);return{suggestions:t.map(u=>({label:u.name,kind:le.CompletionItemKind.Function,documentation:u.documentation,insertText:u.name,insertTextRules:le.CompletionItemInsertTextRule.InsertAsSnippet,range:{startLineNumber:e.lineNumber,endLineNumber:e.lineNumber,startColumn:l.startColumn,endColumn:l.endColumn}}))}}});const He=i=>{pe.getLint({code:i.getValue(),line:0,column:0}).then(e=>{X.setModelMarkers(i,"python",e.map(t=>({startLineNumber:t.line,startColumn:t.column,endLineNumber:t.until_line,endColumn:t.until_column,message:t.message,severity:yl(t.severity)})))})},_l=(i,e,t={})=>{var a;const l=X.create(i,{language:"python",value:e,minimap:{enabled:!1},readOnly:(a=t.readOnly)!=null?a:!1,contextmenu:!t.readOnly,automaticLayout:!t.readOnly,tabSize:4,fixedOverflowWidgets:!0,theme:t.theme?t.theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:t.readOnly?0:5,scrollBeyondLastLine:!t.readOnly,renderLineHighlight:t.readOnly?"none":"all",scrollbar:{useShadows:!1,alwaysConsumeMouseWheel:!1}}),u=l.getContribution("editor.contrib.messageController");l.onDidAttemptReadOnlyEdit(()=>{u.showMessage("Cannot edit during preview execution",l.getPosition())});const d=l.createDecorationsCollection([]),s=(h,Z)=>{d.set(h.map(k=>({range:new Me(k.lineno,1,k.lineno,1),options:{isWholeLine:!0,className:Z}}))),oe=h.reduce((k,B)=>({...k,...B.locals}),{})},p=(h,Z)=>k=>{const B=k.filter(D=>D.filename.endsWith(Z));s(B,h)},H=()=>{d.clear(),oe={}},$=h=>{l.updateOptions({readOnly:h})};return He(l.getModel()),l.onDidChangeModelContent(()=>{He(l.getModel())}),{editor:l,highlight:p,clearHighlights:H,setReadOnly:$}},Hl=(i,e,t)=>{const l=X.createModel(e),u=X.createModel(t),d=X.createDiffEditor(i,{minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,renderWhitespace:"none",guides:{indentation:!1},fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:0,scrollBeyondLastLine:!1,renderLineHighlight:"none"});return d.setModel({original:l,modified:u}),{diffEditor:d}};class $l{constructor(e,t){f(this,"_script");f(this,"_localEditorCode");f(this,"_monacoEditor");f(this,"_diffEditor");f(this,"_viewMode");f(this,"_alertMessage");f(this,"_conflictingChanges");this._localEditorCode=e,this._script=t,this._monacoEditor=null,this._diffEditor=null,this._viewMode=ae("editor"),this._alertMessage=ae(""),this._conflictingChanges=ae(!1)}get alertMessage(){return this._alertMessage.value}set alertMessage(e){this._alertMessage.value=e}get conflictingChanges(){return this._conflictingChanges.value}set conflictingChanges(e){this._conflictingChanges.value=e}get viewMode(){return this._viewMode.value}set viewMode(e){this._viewMode.value=e}get abstraIDECode(){return this._script.codeContent}get localEditorCode(){return this._localEditorCode}set localEditorCode(e){this._localEditorCode=e}set monacoEditor(e){this._monacoEditor=e}set diffEditor(e){this._diffEditor=e}finishPreview(){var e;this._viewMode.value="editor",this._script.codeContent=this._localEditorCode,(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.alertMessage=""}updateCodeWhileEditing(e){var u;const t=e!==this._localEditorCode;if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1;return}const l=!this._script.hasChanges("code_content");if(l){(u=this._monacoEditor)==null||u.setValue(e),this._script.codeContent=e,this._script.updateInitialState("code_content",e);return}if(!l&&t){this.alertMessage="You have conflicting changes with your local editor code",this.conflictingChanges=!0;return}}updateCodeWhileDiff(e){var t,l;if(e===this._script.codeContent){this.alertMessage="",this.conflictingChanges=!1,this.viewMode="editor",this._localEditorCode=e;return}if(e!==this._localEditorCode){(l=(t=this._diffEditor)==null?void 0:t.getModel())==null||l.modified.setValue(e),this._localEditorCode=e;return}}updateCodeWhilePreview(e){if(this._localEditorCode=e,e===this._script.codeContent){this.alertMessage="";return}this.alertMessage="The changes on your code will be shown after the preview stops running"}updateCode(e){switch(this._viewMode.value){case"editor":return this.updateCodeWhileEditing(e);case"diff":return this.updateCodeWhileDiff(e);case"preview":return this.updateCodeWhilePreview(e)}}keepAbstraIDECode(){var e;(e=this._monacoEditor)==null||e.setValue(this._script.codeContent),this._script.save("code_content"),this._script.updateInitialState("code_content",this._script.codeContent),this._localEditorCode=this._script.codeContent,this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}keepLocalEditor(){var e;(e=this._monacoEditor)==null||e.setValue(this._localEditorCode),this._script.updateInitialState("code_content",this._localEditorCode),this.conflictingChanges=!1,this.alertMessage="",this.viewMode="editor"}}const wl={class:"source-code-container"},Cl={class:"code-container"},Al={key:0,class:"not-found-container"},Ml=b({__name:"SourceCode",props:{script:{},workspace:{}},emits:["update-file"],setup(i,{expose:e,emit:t}){const l=i,u=()=>{!l.script.file||re.openFile(l.script.file)},d=()=>{A.value.viewMode="diff",ke()},s=L(null),p=L(null);let H,$,a,h;const{result:Z}=_e(()=>fetch("/_editor/api/workspace/root").then(C=>C.text())),k=L(l.script.file);Y(()=>l.script.file,()=>k.value=l.script.file);const{result:B,refetch:D}=_e(()=>re.checkFile(k.value)),se=()=>{F.value.valid?t("update-file",Ge(k.value)):t("update-file",k.value),D()},F=v(()=>{var M;const C=Je(k.value);return C.valid?((M=B.value)==null?void 0:M.exists)&&l.script.hasChanges("file")?{valid:!0,help:"This file already exists"}:l.script.hasChanges("file")?{valid:!0,help:"The original file will be renamed"}:C:C}),ne=()=>{!l.workspace||!Z.value||re.openFile(".")},U=L(!1),A=ae(null),_=async()=>{var M;if(!l.script.file)return;const C=await l.workspace.readFile(l.script.file);if(C===null){U.value=!0;return}U.value=!1,(M=A.value)==null||M.updateCode(C)},{startPolling:E,endPolling:K}=a0({task:_});de(()=>{Q(),E()}),he(()=>{K()});const I=()=>{h(!0),A.value.viewMode="preview"},x=(C,M)=>{if(M)return a("error-line",l.script.file)(C);a("executing-line",l.script.file)(C)},Q=async()=>{await ie(),l.workspace.readFile(l.script.file).then(C=>{const M=C!=null?C:"";l.script.codeContent=M,l.script.updateInitialState("code_content",M),A.value=new $l(M,l.script);const W=_l(s.value,M);$=W.clearHighlights,a=W.highlight,h=W.setReadOnly,H=W.editor,A.value.monacoEditor=H,H.onDidChangeModelContent(()=>{l.script.codeContent=H.getValue()})})},ke=async()=>{const C=await l.workspace.readFile(l.script.file);if(!C)return;const M=l.script.codeContent,W=Hl(p.value,M,C);A.value.diffEditor=W.diffEditor},ge=()=>{var C;$(),h(!1),(C=A.value)==null||C.finishPreview()};return e({startPreviewMode:I,setHighlight:x,restartEditor:ge,updateLocalEditorCode:C=>{A.value.localEditorCode=C,ge()}}),(C,M)=>{var W,ve,fe,me;return o(),n("div",wl,[m(c(Ce),{"validate-status":F.value.valid?"success":"error",help:F.value.valid?F.value.help:F.value.reason,class:"file-input"},{default:g(()=>[m(c(we),{value:k.value,"onUpdate:value":M[0]||(M[0]=G=>k.value=G),autocomplete:"off",onChange:se},{addonBefore:g(()=>[c(Z)?(o(),n("span",{key:0,class:"clickable",onClick:ne},[m(c(z),{placement:"bottomLeft","overlay-style":{maxWidth:"none"}},{title:g(()=>[V(J(c(Z)),1)]),default:g(()=>[m(c(K0),{size:"22"})]),_:1})])):w("",!0)]),addonAfter:g(()=>[r("span",{class:"clickable",onClick:u},[V(" Open in editor "),m(c(l0),{size:"20"})])]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),(W=A.value)!=null&&W.alertMessage?(o(),S(c(o0),{key:0,type:"warning","show-icon":""},{message:g(()=>{var G;return[V(J((G=A.value)==null?void 0:G.alertMessage),1)]}),action:g(()=>[A.value.conflictingChanges&&A.value.viewMode!=="diff"?(o(),S(c(T),{key:0,gap:"small"},{default:g(()=>[m(c(ee),{type:"primary",onClick:d},{default:g(()=>[V("Compare")]),_:1}),m(c(z),null,{title:g(()=>[V("Keep the local editor version")]),default:g(()=>[m(c(ee),{onClick:M[1]||(M[1]=G=>{var R;return(R=A.value)==null?void 0:R.keepLocalEditor()})},{default:g(()=>[V("Discard")]),_:1})]),_:1})]),_:1})):w("",!0),A.value.conflictingChanges&&A.value.viewMode==="diff"?(o(),S(c(T),{key:1,gap:"small"},{default:g(()=>[m(c(z),null,{title:g(()=>[V("Keep your current changes")]),default:g(()=>[m(c(ee),{onClick:M[2]||(M[2]=G=>{var R;return(R=A.value)==null?void 0:R.keepAbstraIDECode()})},{default:g(()=>[V("Keep left")]),_:1})]),_:1}),m(c(z),null,{title:g(()=>[V("Keep the local editor version")]),default:g(()=>[m(c(ee),{onClick:M[3]||(M[3]=G=>{var R;return(R=A.value)==null?void 0:R.keepLocalEditor()})},{default:g(()=>[V("Keep right")]),_:1})]),_:1})]),_:1})):w("",!0)]),_:1})):w("",!0),r("div",Cl,[U.value?(o(),n("div",Al,[m(c(s0),null,{title:g(()=>[V("File not found")]),_:1})])):w("",!0),r("div",{id:"code",ref_key:"codeComponent",ref:s,class:N(["monaco-element",{hide:((ve=A.value)==null?void 0:ve.viewMode)==="diff",blur:U.value}])},null,2)]),((fe=A.value)==null?void 0:fe.viewMode)==="diff"?(o(),n("div",{key:1,id:"code",ref_key:"codeDiffComponent",ref:p,class:N(["monaco-element",{hide:((me=A.value)==null?void 0:me.viewMode)!=="diff"}])},null,2)):w("",!0)])}}});const Yl=j(Ml,[["__scopeId","data-v-153aaea3"]]);export{Jl as E,r1 as I,Se as L,Kl as R,ql as S,Yl as a}; +//# sourceMappingURL=SourceCode.a748d690.js.map diff --git a/abstra_statics/dist/assets/Sql.6e952103.js b/abstra_statics/dist/assets/Sql.23137c87.js similarity index 73% rename from abstra_statics/dist/assets/Sql.6e952103.js rename to abstra_statics/dist/assets/Sql.23137c87.js index 7534c457d6..02a62db3de 100644 --- a/abstra_statics/dist/assets/Sql.6e952103.js +++ b/abstra_statics/dist/assets/Sql.23137c87.js @@ -1,2 +1,2 @@ -import{b as i,ee as k,d as D,ea as E,N,O as _,e as m,X as P,o as R,Y as B,w as g,u,a as V,bT as x,aG as O,dh as h,cY as L,cM as S,a0 as M}from"./index.8c3f27aa.js";import{d as $}from"./utils.c92e833b.js";import{G as z}from"./PhDownloadSimple.vue.53949cd1.js";import{e as A}from"./toggleHighContrast.5028b4ff.js";import"./gateway.8032b20a.js";import{P as T}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f7690ebf-345b-4f0a-8180-948b8202cd6a",t._sentryDebugIdIdentifier="sentry-dbid-f7690ebf-345b-4f0a-8180-948b8202cd6a")}catch{}})();var F={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const G=F;function I(t){for(var a=1;a{b.value=!0;const o=await T.executeQuery(e,f.value,[]);b.value=!1;const r=s.get();if(!r)s.set([{projectId:e,lastQuery:f.value}]);else{const n=r.findIndex(l=>l.projectId===e);n===-1?r.push({projectId:e,lastQuery:f.value}):r[n].lastQuery=f.value,s.set(r)}if(!o)return;const{returns:p,errors:c}=o;C.value=c;for(const n of c)S.error({message:"SQL Execution Failed",description:n});c.length||S.success({message:"SQL Execution Succeeded"}),y.value=p.fields.map(n=>({title:n.name,key:n.name,dataIndex:n.name})),v.value=p.result.map((n,l)=>J({key:`${l+1}`,...n}))},q=()=>{const o=y.value.map(l=>l.dataIndex),r=y.value.map(l=>l.title),p=v.value.map(l=>o.map(j=>l[j])),n=`data-${new Date().toISOString()}`;$({fileName:n,columns:r,rows:p})};return P(()=>{var p;const o=A.create(d.value,{language:"sql",value:f.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});o.onDidChangeModelContent(()=>{f.value=o.getValue()});const r=s.get();if(r){const c=(p=r.find(n=>n.projectId===e))==null?void 0:p.lastQuery;c&&(f.value=c,o.setValue(c))}}),(o,r)=>(R(),B("div",X,[i(u(h),{gap:"large",class:"sql-container",align:"center"},{default:g(()=>[V("div",{ref_key:"sqlEditor",ref:d,class:"sql-editor"},null,512),i(u(x),{type:"primary",loading:b.value,onClick:Q},{icon:g(()=>[i(u(H))]),default:g(()=>[O(" Run ")]),_:1},8,["loading"])]),_:1}),i(u(h),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:g(()=>[i(u(x),{disabled:!v.value.length,onClick:q},{default:g(()=>[i(u(h),{align:"center",gap:"small"},{default:g(()=>[O(" Export to CSV "),i(u(z))]),_:1})]),_:1},8,["disabled"])]),_:1}),i(u(L),{style:{width:"100%"},scroll:{x:100},"data-source":v.value,columns:y.value},null,8,["data-source","columns"])]))}});const le=M(U,[["__scopeId","data-v-a8dc12c0"]]);export{le as default}; -//# sourceMappingURL=Sql.6e952103.js.map +import{b as i,ee as k,d as D,ea as E,N,O as _,e as m,X as P,o as R,Y as B,w as g,u,a as V,bT as x,aG as O,dh as b,cY as L,cM as S,a0 as M}from"./index.d0f12294.js";import{d as $}from"./utils.537da94d.js";import{G as z}from"./PhDownloadSimple.vue.07a1756e.js";import{e as A}from"./toggleHighContrast.0eb315ff.js";import"./gateway.ae1d6857.js";import{P as T}from"./project.fad91605.js";import"./tables.318f703e.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="86fc7ed3-165a-476d-9350-9ad37727af0c",t._sentryDebugIdIdentifier="sentry-dbid-86fc7ed3-165a-476d-9350-9ad37727af0c")}catch{}})();var F={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const G=F;function I(t){for(var a=1;a{h.value=!0;const o=await T.executeQuery(e,f.value,[]);h.value=!1;const r=s.get();if(!r)s.set([{projectId:e,lastQuery:f.value}]);else{const n=r.findIndex(l=>l.projectId===e);n===-1?r.push({projectId:e,lastQuery:f.value}):r[n].lastQuery=f.value,s.set(r)}if(!o)return;const{returns:p,errors:c}=o;C.value=c;for(const n of c)S.error({message:"SQL Execution Failed",description:n});c.length||S.success({message:"SQL Execution Succeeded"}),y.value=p.fields.map(n=>({title:n.name,key:n.name,dataIndex:n.name})),v.value=p.result.map((n,l)=>J({key:`${l+1}`,...n}))},q=()=>{const o=y.value.map(l=>l.dataIndex),r=y.value.map(l=>l.title),p=v.value.map(l=>o.map(j=>l[j])),n=`data-${new Date().toISOString()}`;$({fileName:n,columns:r,rows:p})};return P(()=>{var p;const o=A.create(d.value,{language:"sql",value:f.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});o.onDidChangeModelContent(()=>{f.value=o.getValue()});const r=s.get();if(r){const c=(p=r.find(n=>n.projectId===e))==null?void 0:p.lastQuery;c&&(f.value=c,o.setValue(c))}}),(o,r)=>(R(),B("div",X,[i(u(b),{gap:"large",class:"sql-container",align:"center"},{default:g(()=>[V("div",{ref_key:"sqlEditor",ref:d,class:"sql-editor"},null,512),i(u(x),{type:"primary",loading:h.value,onClick:Q},{icon:g(()=>[i(u(H))]),default:g(()=>[O(" Run ")]),_:1},8,["loading"])]),_:1}),i(u(b),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:g(()=>[i(u(x),{disabled:!v.value.length,onClick:q},{default:g(()=>[i(u(b),{align:"center",gap:"small"},{default:g(()=>[O(" Export to CSV "),i(u(z))]),_:1})]),_:1},8,["disabled"])]),_:1}),i(u(L),{style:{width:"100%"},scroll:{x:100},"data-source":v.value,columns:y.value},null,8,["data-source","columns"])]))}});const le=M(U,[["__scopeId","data-v-a8dc12c0"]]);export{le as default}; +//# sourceMappingURL=Sql.23137c87.js.map diff --git a/abstra_statics/dist/assets/Stages.6ab1bd41.js b/abstra_statics/dist/assets/Stages.f603f4e8.js similarity index 94% rename from abstra_statics/dist/assets/Stages.6ab1bd41.js rename to abstra_statics/dist/assets/Stages.f603f4e8.js index dddbf8e1f9..d670808e96 100644 --- a/abstra_statics/dist/assets/Stages.6ab1bd41.js +++ b/abstra_statics/dist/assets/Stages.f603f4e8.js @@ -1,2 +1,2 @@ -import{d as x,D as Z,f as w,o as p,Y as C,$ as ye,S as V,e8 as _e,a as v,b as o,ee as be,ek as we,e as I,c as b,w as a,u as e,cz as M,dh as $,bR as ke,bz as Ae,eb as le,bx as Se,aG as m,e9 as T,aS as Y,el as Ce,cE as Le,cy as J,dc as H,cL as se,g as Ve,d9 as Ie,cS as Fe,cO as O,db as D,cR as N,em as Te,en as xe,a0 as ne,bL as K,aW as $e,bT as j,aB as Me,cU as He,eh as Pe,eo as Ze,dd as Oe,da as De,d5 as Ne,ep as je}from"./index.8c3f27aa.js";import{C as Ue}from"./ContentLayout.60e2d770.js";import{C as Ee}from"./CrudView.ac8aad2f.js";import{a as ee}from"./ant-design.ae7d2f9f.js";import{a as W}from"./asyncComputed.cfc0cdaf.js";import{c as Be}from"./string.0a3509c3.js";import{F as ze}from"./PhArrowSquareOut.vue.da8bb581.js";import{F as U}from"./forms.95b70669.js";import{A as Ge,H as E,J as B,S as q}from"./scripts.ab5c52f3.js";import"./editor.e7656461.js";import{W as re}from"./workspaces.7bc437a6.js";import{A as ie}from"./index.126762e2.js";import{F as Re,G as We,I as qe,a as Ye}from"./PhWebhooksLogo.vue.e865dba6.js";import{_ as te}from"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import{b as Je,v as ue}from"./validations.1f9bbc1f.js";import"./router.f4663fd5.js";import"./gateway.8032b20a.js";import"./popupNotifcation.40886a7f.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./record.a6861841.js";import"./workspaceStore.a6063d10.js";import"./colorHelpers.0ac76147.js";import"./BookOutlined.b4191bff.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="23a4ca81-09b8-4fee-9605-b9699a2de76d",s._sentryDebugIdIdentifier="sentry-dbid-23a4ca81-09b8-4fee-9605-b9699a2de76d")}catch{}})();const Xe=["width","height","fill","transform"],Qe={key:0},Ke=v("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"},null,-1),et=[Ke],tt={key:1},at=v("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"},null,-1),ot=v("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),lt=[at,ot],st={key:2},nt=v("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"},null,-1),rt=[nt],it={key:3},ut=v("path",{d:"M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"},null,-1),ct=[ut],pt={key:4},dt=v("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),ft=[dt],ht={key:5},mt=v("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"},null,-1),vt=[mt],gt={name:"PhSparkle"},yt=x({...gt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(s){const l=s,n=Z("weight","regular"),r=Z("size","1em"),u=Z("color","currentColor"),y=Z("mirrored",!1),d=w(()=>{var c;return(c=l.weight)!=null?c:n}),g=w(()=>{var c;return(c=l.size)!=null?c:r}),h=w(()=>{var c;return(c=l.color)!=null?c:u}),k=w(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:y?"scale(-1, 1)":void 0);return(c,S)=>(p(),C("svg",_e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:h.value,transform:k.value},c.$attrs),[ye(c.$slots,"default"),d.value==="bold"?(p(),C("g",Qe,et)):d.value==="duotone"?(p(),C("g",tt,lt)):d.value==="fill"?(p(),C("g",st,rt)):d.value==="light"?(p(),C("g",it,ct)):d.value==="regular"?(p(),C("g",pt,ft)):d.value==="thin"?(p(),C("g",ht,vt)):V("",!0)],16,Xe))}});function ae(s){for(var l=1;lu.value?"Retry":r.value?"Generating":"Generate"),d=[{title:"Reimbursement approval",prompt:"Create a workflow that implements a reimbursement approval process. It starts with a user submitting a request in a form by inputing a file of the receipt. In the same form, use abstra.ai to get the company name and the amount of the receipt with the parameter format, and save those values in the thread. Then, there is an approval form, filled by me, that will get the data from the thread and I will check the amount and decide if I will approve or not the reinbursement."},{title:"Customer onboarding",prompt:'Do a workflow to implememt a customer onboarding process. It starts with the customer filling a form with some data from their company, like name and CNPJ. After that form, there is a script that generates the contract document using python-docx lib and the same script saves the generated document in persistent dir. Following that, there is an approval form, in which someone will approve or not the contrct, setting a variable approved. With that variable, this form is followed by a condition and if approved is "True" it ends with a script that sends this document via docusign and if is "False" it goes to a internal analysis form.'},{title:"Credit approval",prompt:'Create a workflow to implement a credit approval process. It starts with the user filling a form that asks its name, email, monthly income and loan amount in a Abstra Page. After that there is a script that checks if the loan amount is greater than 1/3 of the monthly income, and if yes, sets a variable score as "low" and else as "high". Following this script there is a condition that takes to an automatic review form if the score is high and to a manual review form if the score is low.'},{title:"Vacation request",prompt:'Create a workflow to implement a vacation request process. It starts with a form to the employee fill that asks separately the start and end date of the vacation. This dates are converted to string and saved in the thread. After that, there is a script that calculates the number of days of the vacation and saves this value in the thread. Following that, there is an approval form, in which the manager will approve or not the vacation request. In the same form, save the vacation in abstra tables in a table "vacations", using insert function from abstra.tables.'}],g=t=>{n.value=t.prompt},h=I(-1),k=["Did you know Abstra is open-source? You can star us on GitHub!","Python is the most popular language among non-developers","With our AI, you can create a full project in less than a minute!","Breaking your process into smaller steps can help debug it","Ask anything to Smart Console, our AI assistant","Check our documentation to learn more about Abstra","You can retry a failed step in the workflow using the Kanban","Customize your workspace by changing the theme in the settings"],c=async()=>{u.value=!1,r.value=!0,h.value=0;const t=setInterval(()=>{h.value++,h.value>=k.length&&(h.value=0),h.value>=k.length&&(clearInterval(t),h.value=-1)},8e3);try{await Ge.generateProject(n.value),r.value=!1,clearInterval(t),h.value=-1,n.value="",l("close-and-refetch")}catch{r.value=!1,clearInterval(t),h.value=-1,u.value=!0}},S=()=>{u.value=!1,n.value="",l("close")};return(t,L)=>(p(),b(e(se),{open:t.open,title:"Let AI help you start your project","ok-text":y.value,"confirm-loading":r.value,onCancel:S,onOk:c},{default:a(()=>[o(e(J),{layout:"vertical"},{default:a(()=>[o(e(M),{label:"What do you need to automate? Write a Workflow prompt below, and our AI will create it all for you \u2014 code included"},{default:a(()=>[o(e($),{justify:"end",style:{"margin-bottom":"6px"}},{default:a(()=>[o(e(ke),{trigger:"click",placement:"bottomRight"},{overlay:a(()=>[o(e(Ae),null,{default:a(()=>[(p(),C(Y,null,le(d,F=>o(e(Se),{key:F.title,onClick:G=>g(F)},{default:a(()=>[m(T(F.title),1)]),_:2},1032,["onClick"])),64))]),_:1})]),default:a(()=>[v("a",{class:"ant-dropdown-link",onClick:L[0]||(L[0]=Ce(()=>{},["prevent"]))},[m(" Examples "),o(e(bt))])]),_:1})]),_:1}),o(e(Le),{value:n.value,"onUpdate:value":L[1]||(L[1]=F=>n.value=F),rows:8,placeholder:d[0].prompt},null,8,["value","placeholder"])]),_:1})]),_:1}),o(e(H),null,{default:a(()=>[m(T(k[h.value]),1)]),_:1}),u.value?(p(),b(e(ie),{key:0,type:"error",message:"There was an internal error, please try again"})):V("",!0)]),_:1},8,["open","ok-text","confirm-loading"]))}}),z=s=>(Te("data-v-71199594"),s=s(),xe(),s),kt={key:0,class:"choose-type"},At={class:"option-content"},St=z(()=>v("span",null,"Forms",-1)),Ct={class:"option-content"},Lt=z(()=>v("span",null,"Hooks",-1)),Vt={class:"option-content"},It=z(()=>v("span",null,"Scripts",-1)),Ft={class:"option-content"},Tt=z(()=>v("span",null,"Jobs",-1)),xt=x({__name:"ChooseStageType",props:{state:{}},emits:["choose-type"],setup(s,{emit:l}){const n=s,r=w(()=>n.state.type==="form"?"#fff":void 0),u=w(()=>n.state.type==="hook"?"#fff":void 0),y=w(()=>n.state.type==="script"?"#fff":void 0),d=w(()=>n.state.type==="job"?"#fff":void 0);return Ve(()=>n.state.type,g=>{g&&l("choose-type",g)}),(g,h)=>g.state.state==="choosing-type"?(p(),C("div",kt,[o(e($),{vertical:"",gap:"30"},{default:a(()=>[o(e(Ie),null,{default:a(()=>[m("Choose your stage type")]),_:1}),o(e(Fe),{value:g.state.type,"onUpdate:value":h[0]||(h[0]=k=>g.state.type=k),size:"large","button-style":"solid"},{default:a(()=>[o(e($),{gap:"24",vertical:""},{default:a(()=>[o(e($),{gap:"24"},{default:a(()=>[o(e(O),{placement:"left",title:"Forms"},{content:a(()=>[o(e(D),null,{default:a(()=>[m(" Use to collect user input via interaction with a form interface ")]),_:1}),o(te,{path:"concepts/forms"})]),default:a(()=>[o(e(N),{value:"form",class:"option"},{default:a(()=>[v("div",At,[(p(),b(e(Re),{key:r.value,color:r.value},null,8,["color"])),St])]),_:1})]),_:1}),o(e(O),{placement:"right",title:"Hooks"},{content:a(()=>[o(e(D),null,{default:a(()=>[m("Use to build endpoints triggered by HTTP requests")]),_:1}),o(te,{path:"concepts/forms"})]),default:a(()=>[o(e(N),{value:"hook",class:"option"},{default:a(()=>[v("div",Ct,[(p(),b(e(We),{key:u.value,color:u.value},null,8,["color"])),Lt])]),_:1})]),_:1})]),_:1}),o(e($),{gap:"24"},{default:a(()=>[o(e(O),{placement:"left",title:"Scripts"},{content:a(()=>[o(e(D),null,{default:a(()=>[m(" Use to write plain Python scripts ")]),_:1})]),default:a(()=>[o(e(N),{value:"script",class:"option"},{default:a(()=>[v("div",Vt,[(p(),b(e(qe),{key:y.value,color:y.value},null,8,["color"])),It])]),_:1})]),_:1}),o(e(O),{placement:"right",title:"Jobs"},{content:a(()=>[o(e(D),null,{default:a(()=>[m(" Use to schedule your script execution periodically ")]),_:1})]),default:a(()=>[o(e(N),{value:"job",class:"option"},{default:a(()=>[v("div",Ft,[(p(),b(e(Ye),{key:d.value,color:d.value},null,8,["color"])),Tt])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})])):V("",!0)}});const $t=ne(xt,[["__scopeId","data-v-71199594"]]),Mt=v("br",null,null,-1),Ht=x({__name:"NewStage",props:{state:{}},emits:["update-name","update-file"],setup(s,{emit:l}){const n=s,{result:r}=W(()=>fetch("/_editor/api/workspace/root").then(c=>c.text())),u=w(()=>n.state.state!=="creating"?"":`${r.value}/${n.state.stage.filename}`),y=w(()=>n.state.state!=="creating"?"":`${n.state.stage.type[0].toUpperCase()+n.state.stage.type.slice(1)} title`),d=c=>{l("update-name",c);const S=Je(c);l("update-file",S),h()},{result:g,refetch:h}=W(()=>re.checkFile(n.state.stage.filename)),k=w(()=>ue(n.state.stage.filename));return(c,S)=>(p(),b(e(J),{layout:"vertical"},{default:a(()=>{var t;return[o(e(M),{label:y.value,required:!0},{default:a(()=>[o(e(K),{value:c.state.stage.title,"onUpdate:value":d},null,8,["value"])]),_:1},8,["label"]),o(e(M),{label:"Generated file",required:!0,"validate-status":k.value.valid?"success":"error",help:k.value.valid?void 0:k.value.reason},{default:a(()=>[o(e($e),{placement:"right"},{title:a(()=>[m(" You can change this later ")]),default:a(()=>[o(e(K),{value:c.state.stage.filename,"onUpdate:value":S[0]||(S[0]=L=>c.state.stage.filename=L),disabled:!0},null,8,["value"])]),_:1})]),_:1},8,["validate-status","help"]),o(e(M),null,{default:a(()=>[o(e(H),null,{default:a(()=>[m(" Your stage source code will be generated at: ")]),_:1}),Mt,o(e(H),{code:""},{default:a(()=>[m(T(u.value),1)]),_:1})]),_:1}),(t=e(g))!=null&&t.exists?(p(),b(e(ie),{key:0,type:"warning","show-icon":""},{message:a(()=>[o(e(H),null,{default:a(()=>[m(" This file already exists and might be in use by another stage. Contents will be left unchanged. ")]),_:1})]),_:1})):V("",!0)]}),_:1}))}}),Pt=x({__name:"CreateModal",props:{open:{type:Boolean},state:{}},emits:["close","choose-type","next-step","previous-step","create-stage","update-name","update-file"],setup(s,{emit:l}){const n=s,r=I(!1),u=t=>l("update-name",t),y=t=>l("update-file",t),d=()=>l("close"),g=t=>l("choose-type",t),h=()=>l("next-step"),k=()=>l("previous-step"),c=()=>{r.value=!0,l("create-stage")},S=w(()=>!(n.state.state!=="creating"||!ue(n.state.stage.filename).valid||!n.state.stage.title||r.value));return(t,L)=>(p(),b(e(se),{open:t.open,title:"Create a new stage",onCancel:d},{footer:a(()=>[t.state.state==="creating"?(p(),b(e(j),{key:0,onClick:k},{default:a(()=>[m("Previous")]),_:1})):V("",!0),t.state.state==="creating"?(p(),b(e(j),{key:1,type:"primary",disabled:!S.value,onClick:c},{default:a(()=>[m(" Create ")]),_:1},8,["disabled"])):V("",!0),t.state.state==="choosing-type"?(p(),b(e(j),{key:2,type:"primary",disabled:!t.state.type,onClick:h},{default:a(()=>[m(" Next ")]),_:1},8,["disabled"])):V("",!0)]),default:a(()=>[t.state.state==="choosing-type"?(p(),b($t,{key:0,state:t.state,onChooseType:g},null,8,["state"])):V("",!0),t.state.state==="creating"?(p(),b(Ht,{key:1,state:t.state,onUpdateName:u,onUpdateFile:y},null,8,["state"])):V("",!0)]),_:1},8,["open"]))}}),Zt=x({__name:"FilterStages",emits:["update-filter"],setup(s,{emit:l}){const n=[{label:"Forms",value:"form"},{label:"Hooks",value:"hook"},{label:"Scripts",value:"script"},{label:"Jobs",value:"job"}],r=u=>{if(!u){l("update-filter",[]);return}if(!Array.isArray(u)){l("update-filter",[u]);return}const y=u.map(d=>d);l("update-filter",y)};return(u,y)=>(p(),b(e(J),null,{default:a(()=>[o(e(M),{label:"Filter"},{default:a(()=>[o(e(Me),{mode:"multiple",style:{width:"360px"},placeholder:"All","onUpdate:value":r},{default:a(()=>[(p(),C(Y,null,le(n,d=>o(e(He),{key:d.value,value:d.value},{default:a(()=>[m(T(d.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1})]),_:1}))}}),Ot=200,Dt=s=>{if(!s)return[0,0];if(s.length===0)return[0,0];let l=-1/0,n=0;for(const r of s)r.position.x>l&&(l=r.position.x),n+=r.position.y/s.length;return[l+Ot,n]},R=s=>{if(s instanceof U)return"form";if(s instanceof E)return"hook";if(s instanceof B)return"job";if(s instanceof q)return"script";throw new Error("Invalid script type")},Nt=s=>s instanceof U?`/${s.path}`:s instanceof E?`/_hooks/${s.path}`:s instanceof B?`${s.schedule}`:"",jt={class:"ellipsis",style:{"max-width":"300px"}},Ut={class:"ellipsis",style:{"max-width":"250px"}},Et={class:"ellipsis",style:{"max-width":"200px"}},oe=100,Bt=x({__name:"Stages",setup(s){Pe(i=>({a5978c12:ve()}));const l=Ze(),{loading:n,result:r,refetch:u}=W(async()=>Promise.all([U.list(),E.list(),B.list(),q.list()]).then(([i,f,_,A])=>[...i,...f,..._,...A])),y=I(!1),d=async()=>{y.value=!1,u()},g=I([]),h=i=>{g.value=i},k=w(()=>r.value?g.value.length===0?r.value:r.value.filter(i=>g.value.includes(R(i))):[]),c=i=>{re.openFile(i)},S=w(()=>{const i=[{title:"Type",align:"left"},{title:"Title",align:"left"},{title:"File",align:"left"},{title:"Trigger",align:"left"},{title:"",align:"right"}],f=k.value;if(!f)return{columns:i,rows:[]};const _=f.map(A=>{const P=Be(R(A));return{key:A.id,cells:[{type:"tag",text:P},{type:"slot",key:"title",payload:{script:A}},{type:"slot",key:"file",payload:{script:A}},{type:"slot",key:"trigger",payload:{script:A}},{type:"actions",actions:[{icon:ze,label:"Open .py file",onClick:()=>c(A.file)},{icon:je,label:"Delete",onClick:()=>me(A.id)}]}]}});return{columns:i,rows:_}}),t=I({state:"idle"}),L=w(()=>t.value.state==="choosing-type"||t.value.state==="creating"),F=()=>{t.value={state:"choosing-type",type:null}},G=()=>{t.value={state:"idle"}},ce=i=>{t.value.state==="choosing-type"&&(t.value={state:"choosing-type",type:i})},pe=()=>{t.value.state==="choosing-type"&&t.value.type!==null&&(t.value={state:"creating",stage:{type:t.value.type,title:`Untitled ${t.value.type}`,filename:`untitled_${t.value.type}.py`}})},de=()=>{t.value.state==="creating"&&(t.value={state:"choosing-type",type:t.value.stage.type})},fe=i=>{t.value.state==="creating"&&(t.value.stage.title=i)},he=i=>{t.value.state==="creating"&&(t.value.stage.filename=i)},me=async i=>{var f,_;if(await ee("Are you sure you want to delete this script?")){const A=await ee("Do you want to delete the .py file associated with this script?",{okText:"Yes",cancelText:"No"});await((_=(f=r.value)==null?void 0:f.find(P=>P.id===i))==null?void 0:_.delete(A)),await u()}},ve=()=>(oe/1e3).toString()+"s",ge=async()=>{if(t.value.state!=="creating")return;const i=Dt(r.value||[]);let f;if(t.value.stage.type==="form"?f=await U.create(t.value.stage.title,t.value.stage.filename,i):t.value.stage.type==="hook"?f=await E.create(t.value.stage.title,t.value.stage.filename,i):t.value.stage.type==="job"?f=await B.create(t.value.stage.title,t.value.stage.filename,i):t.value.stage.type==="script"&&(f=await q.create(t.value.stage.title,t.value.stage.filename,i)),!f)throw new Error("Failed to create script");const _=f.id,A=t.value.stage.type;setTimeout(async()=>{await Q(_,A),G()},oe)},Q=async(i,f)=>{f==="form"&&await l.push({name:"formEditor",params:{id:i}}),f==="hook"&&await l.push({name:"hookEditor",params:{id:i}}),f==="script"&&await l.push({name:"scriptEditor",params:{id:i}}),f==="job"&&await l.push({name:"jobEditor",params:{id:i}})};return(i,f)=>(p(),C(Y,null,[o(Ue,null,{default:a(()=>[o(e(Oe),null,{default:a(()=>[m("Stages")]),_:1}),o(Zt,{onUpdateFilter:h}),o(Ee,{"empty-title":"There are no scripts","entity-name":"scripts",description:"",table:S.value,loading:e(n),title:"","create-button-text":"Create new",create:F},{title:a(({payload:_})=>[v("div",jt,[o(e(De),{onClick:A=>Q(_.script.id,e(R)(_.script))},{default:a(()=>[m(T(_.script.title),1)]),_:2},1032,["onClick"])])]),secondary:a(()=>[e(r)&&!e(r).length?(p(),b(e(j),{key:0,onClick:f[0]||(f[0]=_=>y.value=!0)},{default:a(()=>[o(e($),{gap:"4",align:"center"},{default:a(()=>[m(" Start with AI "),o(e(yt),{size:16})]),_:1})]),_:1})):V("",!0)]),file:a(({payload:_})=>[v("div",Ut,[o(e(H),null,{default:a(()=>[m(T(_.script.file),1)]),_:2},1024)])]),trigger:a(({payload:_})=>[o(e(Ne),{color:"default"},{default:a(()=>[v("div",Et,T(e(Nt)(_.script)),1)]),_:2},1024)]),_:1},8,["table","loading"])]),_:1}),o(Pt,{open:L.value,state:t.value,onClose:G,onChooseType:ce,onNextStep:pe,onPreviousStep:de,onCreateStage:ge,onUpdateName:fe,onUpdateFile:he},null,8,["open","state"]),o(wt,{open:y.value,onClose:f[1]||(f[1]=_=>y.value=!1),onCloseAndRefetch:d},null,8,["open"])],64))}});const va=ne(Bt,[["__scopeId","data-v-b03308c2"]]);export{va as default}; -//# sourceMappingURL=Stages.6ab1bd41.js.map +import{d as x,D as Z,f as w,o as p,Y as C,$ as ye,S as V,e8 as _e,a as v,b as o,ee as be,ek as we,e as I,c as b,w as a,u as e,cz as M,dh as $,bR as ke,bz as Ae,eb as le,bx as Se,aG as m,e9 as T,aS as Y,el as Ce,cE as Le,cy as J,dc as H,cL as se,g as Ve,d9 as Ie,cS as Fe,cO as O,db as D,cR as N,em as Te,en as xe,a0 as ne,bL as K,aW as $e,bT as j,aB as Me,cU as He,eh as Pe,eo as Ze,dd as Oe,da as De,d5 as Ne,ep as je}from"./index.d0f12294.js";import{C as Ue}from"./ContentLayout.f92ff80c.js";import{C as Ee}from"./CrudView.423d8744.js";import{a as ee}from"./ant-design.d89b18ab.js";import{a as W}from"./asyncComputed.703c33fd.js";import{c as Be}from"./string.d9c83adf.js";import{F as ze}from"./PhArrowSquareOut.vue.418ffcff.js";import{F as U}from"./forms.ac0b102a.js";import{A as Ge,H as E,J as B,S as q}from"./scripts.9802e877.js";import"./editor.95f16260.js";import{W as re}from"./workspaces.e43325e2.js";import{A as ie}from"./index.289665f1.js";import{F as Re,G as We,I as qe,a as Ye}from"./PhWebhooksLogo.vue.15a28437.js";import{_ as te}from"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import{b as Je,v as ue}from"./validations.2475f715.js";import"./router.375df57e.js";import"./gateway.ae1d6857.js";import"./popupNotifcation.a0a6244b.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./record.8c284c67.js";import"./workspaceStore.e47060bf.js";import"./colorHelpers.b079bb04.js";import"./BookOutlined.7c922f07.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="996c6984-e5ee-4a22-a353-74b13f8dd848",s._sentryDebugIdIdentifier="sentry-dbid-996c6984-e5ee-4a22-a353-74b13f8dd848")}catch{}})();const Xe=["width","height","fill","transform"],Qe={key:0},Ke=v("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"},null,-1),et=[Ke],tt={key:1},at=v("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"},null,-1),ot=v("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),lt=[at,ot],st={key:2},nt=v("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"},null,-1),rt=[nt],it={key:3},ut=v("path",{d:"M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"},null,-1),ct=[ut],pt={key:4},dt=v("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"},null,-1),ft=[dt],ht={key:5},mt=v("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"},null,-1),vt=[mt],gt={name:"PhSparkle"},yt=x({...gt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(s){const l=s,n=Z("weight","regular"),r=Z("size","1em"),u=Z("color","currentColor"),y=Z("mirrored",!1),d=w(()=>{var c;return(c=l.weight)!=null?c:n}),g=w(()=>{var c;return(c=l.size)!=null?c:r}),h=w(()=>{var c;return(c=l.color)!=null?c:u}),k=w(()=>l.mirrored!==void 0?l.mirrored?"scale(-1, 1)":void 0:y?"scale(-1, 1)":void 0);return(c,S)=>(p(),C("svg",_e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:h.value,transform:k.value},c.$attrs),[ye(c.$slots,"default"),d.value==="bold"?(p(),C("g",Qe,et)):d.value==="duotone"?(p(),C("g",tt,lt)):d.value==="fill"?(p(),C("g",st,rt)):d.value==="light"?(p(),C("g",it,ct)):d.value==="regular"?(p(),C("g",pt,ft)):d.value==="thin"?(p(),C("g",ht,vt)):V("",!0)],16,Xe))}});function ae(s){for(var l=1;lu.value?"Retry":r.value?"Generating":"Generate"),d=[{title:"Reimbursement approval",prompt:"Create a workflow that implements a reimbursement approval process. It starts with a user submitting a request in a form by inputing a file of the receipt. In the same form, use abstra.ai to get the company name and the amount of the receipt with the parameter format, and save those values in the thread. Then, there is an approval form, filled by me, that will get the data from the thread and I will check the amount and decide if I will approve or not the reinbursement."},{title:"Customer onboarding",prompt:'Do a workflow to implememt a customer onboarding process. It starts with the customer filling a form with some data from their company, like name and CNPJ. After that form, there is a script that generates the contract document using python-docx lib and the same script saves the generated document in persistent dir. Following that, there is an approval form, in which someone will approve or not the contrct, setting a variable approved. With that variable, this form is followed by a condition and if approved is "True" it ends with a script that sends this document via docusign and if is "False" it goes to a internal analysis form.'},{title:"Credit approval",prompt:'Create a workflow to implement a credit approval process. It starts with the user filling a form that asks its name, email, monthly income and loan amount in a Abstra Page. After that there is a script that checks if the loan amount is greater than 1/3 of the monthly income, and if yes, sets a variable score as "low" and else as "high". Following this script there is a condition that takes to an automatic review form if the score is high and to a manual review form if the score is low.'},{title:"Vacation request",prompt:'Create a workflow to implement a vacation request process. It starts with a form to the employee fill that asks separately the start and end date of the vacation. This dates are converted to string and saved in the thread. After that, there is a script that calculates the number of days of the vacation and saves this value in the thread. Following that, there is an approval form, in which the manager will approve or not the vacation request. In the same form, save the vacation in abstra tables in a table "vacations", using insert function from abstra.tables.'}],g=t=>{n.value=t.prompt},h=I(-1),k=["Did you know Abstra is open-source? You can star us on GitHub!","Python is the most popular language among non-developers","With our AI, you can create a full project in less than a minute!","Breaking your process into smaller steps can help debug it","Ask anything to Smart Console, our AI assistant","Check our documentation to learn more about Abstra","You can retry a failed step in the workflow using the Kanban","Customize your workspace by changing the theme in the settings"],c=async()=>{u.value=!1,r.value=!0,h.value=0;const t=setInterval(()=>{h.value++,h.value>=k.length&&(h.value=0),h.value>=k.length&&(clearInterval(t),h.value=-1)},8e3);try{await Ge.generateProject(n.value),r.value=!1,clearInterval(t),h.value=-1,n.value="",l("close-and-refetch")}catch{r.value=!1,clearInterval(t),h.value=-1,u.value=!0}},S=()=>{u.value=!1,n.value="",l("close")};return(t,L)=>(p(),b(e(se),{open:t.open,title:"Let AI help you start your project","ok-text":y.value,"confirm-loading":r.value,onCancel:S,onOk:c},{default:a(()=>[o(e(J),{layout:"vertical"},{default:a(()=>[o(e(M),{label:"What do you need to automate? Write a Workflow prompt below, and our AI will create it all for you \u2014 code included"},{default:a(()=>[o(e($),{justify:"end",style:{"margin-bottom":"6px"}},{default:a(()=>[o(e(ke),{trigger:"click",placement:"bottomRight"},{overlay:a(()=>[o(e(Ae),null,{default:a(()=>[(p(),C(Y,null,le(d,F=>o(e(Se),{key:F.title,onClick:G=>g(F)},{default:a(()=>[m(T(F.title),1)]),_:2},1032,["onClick"])),64))]),_:1})]),default:a(()=>[v("a",{class:"ant-dropdown-link",onClick:L[0]||(L[0]=Ce(()=>{},["prevent"]))},[m(" Examples "),o(e(bt))])]),_:1})]),_:1}),o(e(Le),{value:n.value,"onUpdate:value":L[1]||(L[1]=F=>n.value=F),rows:8,placeholder:d[0].prompt},null,8,["value","placeholder"])]),_:1})]),_:1}),o(e(H),null,{default:a(()=>[m(T(k[h.value]),1)]),_:1}),u.value?(p(),b(e(ie),{key:0,type:"error",message:"There was an internal error, please try again"})):V("",!0)]),_:1},8,["open","ok-text","confirm-loading"]))}}),z=s=>(Te("data-v-71199594"),s=s(),xe(),s),kt={key:0,class:"choose-type"},At={class:"option-content"},St=z(()=>v("span",null,"Forms",-1)),Ct={class:"option-content"},Lt=z(()=>v("span",null,"Hooks",-1)),Vt={class:"option-content"},It=z(()=>v("span",null,"Scripts",-1)),Ft={class:"option-content"},Tt=z(()=>v("span",null,"Jobs",-1)),xt=x({__name:"ChooseStageType",props:{state:{}},emits:["choose-type"],setup(s,{emit:l}){const n=s,r=w(()=>n.state.type==="form"?"#fff":void 0),u=w(()=>n.state.type==="hook"?"#fff":void 0),y=w(()=>n.state.type==="script"?"#fff":void 0),d=w(()=>n.state.type==="job"?"#fff":void 0);return Ve(()=>n.state.type,g=>{g&&l("choose-type",g)}),(g,h)=>g.state.state==="choosing-type"?(p(),C("div",kt,[o(e($),{vertical:"",gap:"30"},{default:a(()=>[o(e(Ie),null,{default:a(()=>[m("Choose your stage type")]),_:1}),o(e(Fe),{value:g.state.type,"onUpdate:value":h[0]||(h[0]=k=>g.state.type=k),size:"large","button-style":"solid"},{default:a(()=>[o(e($),{gap:"24",vertical:""},{default:a(()=>[o(e($),{gap:"24"},{default:a(()=>[o(e(O),{placement:"left",title:"Forms"},{content:a(()=>[o(e(D),null,{default:a(()=>[m(" Use to collect user input via interaction with a form interface ")]),_:1}),o(te,{path:"concepts/forms"})]),default:a(()=>[o(e(N),{value:"form",class:"option"},{default:a(()=>[v("div",At,[(p(),b(e(Re),{key:r.value,color:r.value},null,8,["color"])),St])]),_:1})]),_:1}),o(e(O),{placement:"right",title:"Hooks"},{content:a(()=>[o(e(D),null,{default:a(()=>[m("Use to build endpoints triggered by HTTP requests")]),_:1}),o(te,{path:"concepts/forms"})]),default:a(()=>[o(e(N),{value:"hook",class:"option"},{default:a(()=>[v("div",Ct,[(p(),b(e(We),{key:u.value,color:u.value},null,8,["color"])),Lt])]),_:1})]),_:1})]),_:1}),o(e($),{gap:"24"},{default:a(()=>[o(e(O),{placement:"left",title:"Scripts"},{content:a(()=>[o(e(D),null,{default:a(()=>[m(" Use to write plain Python scripts ")]),_:1})]),default:a(()=>[o(e(N),{value:"script",class:"option"},{default:a(()=>[v("div",Vt,[(p(),b(e(qe),{key:y.value,color:y.value},null,8,["color"])),It])]),_:1})]),_:1}),o(e(O),{placement:"right",title:"Jobs"},{content:a(()=>[o(e(D),null,{default:a(()=>[m(" Use to schedule your script execution periodically ")]),_:1})]),default:a(()=>[o(e(N),{value:"job",class:"option"},{default:a(()=>[v("div",Ft,[(p(),b(e(Ye),{key:d.value,color:d.value},null,8,["color"])),Tt])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})])):V("",!0)}});const $t=ne(xt,[["__scopeId","data-v-71199594"]]),Mt=v("br",null,null,-1),Ht=x({__name:"NewStage",props:{state:{}},emits:["update-name","update-file"],setup(s,{emit:l}){const n=s,{result:r}=W(()=>fetch("/_editor/api/workspace/root").then(c=>c.text())),u=w(()=>n.state.state!=="creating"?"":`${r.value}/${n.state.stage.filename}`),y=w(()=>n.state.state!=="creating"?"":`${n.state.stage.type[0].toUpperCase()+n.state.stage.type.slice(1)} title`),d=c=>{l("update-name",c);const S=Je(c);l("update-file",S),h()},{result:g,refetch:h}=W(()=>re.checkFile(n.state.stage.filename)),k=w(()=>ue(n.state.stage.filename));return(c,S)=>(p(),b(e(J),{layout:"vertical"},{default:a(()=>{var t;return[o(e(M),{label:y.value,required:!0},{default:a(()=>[o(e(K),{value:c.state.stage.title,"onUpdate:value":d},null,8,["value"])]),_:1},8,["label"]),o(e(M),{label:"Generated file",required:!0,"validate-status":k.value.valid?"success":"error",help:k.value.valid?void 0:k.value.reason},{default:a(()=>[o(e($e),{placement:"right"},{title:a(()=>[m(" You can change this later ")]),default:a(()=>[o(e(K),{value:c.state.stage.filename,"onUpdate:value":S[0]||(S[0]=L=>c.state.stage.filename=L),disabled:!0},null,8,["value"])]),_:1})]),_:1},8,["validate-status","help"]),o(e(M),null,{default:a(()=>[o(e(H),null,{default:a(()=>[m(" Your stage source code will be generated at: ")]),_:1}),Mt,o(e(H),{code:""},{default:a(()=>[m(T(u.value),1)]),_:1})]),_:1}),(t=e(g))!=null&&t.exists?(p(),b(e(ie),{key:0,type:"warning","show-icon":""},{message:a(()=>[o(e(H),null,{default:a(()=>[m(" This file already exists and might be in use by another stage. Contents will be left unchanged. ")]),_:1})]),_:1})):V("",!0)]}),_:1}))}}),Pt=x({__name:"CreateModal",props:{open:{type:Boolean},state:{}},emits:["close","choose-type","next-step","previous-step","create-stage","update-name","update-file"],setup(s,{emit:l}){const n=s,r=I(!1),u=t=>l("update-name",t),y=t=>l("update-file",t),d=()=>l("close"),g=t=>l("choose-type",t),h=()=>l("next-step"),k=()=>l("previous-step"),c=()=>{r.value=!0,l("create-stage")},S=w(()=>!(n.state.state!=="creating"||!ue(n.state.stage.filename).valid||!n.state.stage.title||r.value));return(t,L)=>(p(),b(e(se),{open:t.open,title:"Create a new stage",onCancel:d},{footer:a(()=>[t.state.state==="creating"?(p(),b(e(j),{key:0,onClick:k},{default:a(()=>[m("Previous")]),_:1})):V("",!0),t.state.state==="creating"?(p(),b(e(j),{key:1,type:"primary",disabled:!S.value,onClick:c},{default:a(()=>[m(" Create ")]),_:1},8,["disabled"])):V("",!0),t.state.state==="choosing-type"?(p(),b(e(j),{key:2,type:"primary",disabled:!t.state.type,onClick:h},{default:a(()=>[m(" Next ")]),_:1},8,["disabled"])):V("",!0)]),default:a(()=>[t.state.state==="choosing-type"?(p(),b($t,{key:0,state:t.state,onChooseType:g},null,8,["state"])):V("",!0),t.state.state==="creating"?(p(),b(Ht,{key:1,state:t.state,onUpdateName:u,onUpdateFile:y},null,8,["state"])):V("",!0)]),_:1},8,["open"]))}}),Zt=x({__name:"FilterStages",emits:["update-filter"],setup(s,{emit:l}){const n=[{label:"Forms",value:"form"},{label:"Hooks",value:"hook"},{label:"Scripts",value:"script"},{label:"Jobs",value:"job"}],r=u=>{if(!u){l("update-filter",[]);return}if(!Array.isArray(u)){l("update-filter",[u]);return}const y=u.map(d=>d);l("update-filter",y)};return(u,y)=>(p(),b(e(J),null,{default:a(()=>[o(e(M),{label:"Filter"},{default:a(()=>[o(e(Me),{mode:"multiple",style:{width:"360px"},placeholder:"All","onUpdate:value":r},{default:a(()=>[(p(),C(Y,null,le(n,d=>o(e(He),{key:d.value,value:d.value},{default:a(()=>[m(T(d.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1})]),_:1}))}}),Ot=200,Dt=s=>{if(!s)return[0,0];if(s.length===0)return[0,0];let l=-1/0,n=0;for(const r of s)r.position.x>l&&(l=r.position.x),n+=r.position.y/s.length;return[l+Ot,n]},R=s=>{if(s instanceof U)return"form";if(s instanceof E)return"hook";if(s instanceof B)return"job";if(s instanceof q)return"script";throw new Error("Invalid script type")},Nt=s=>s instanceof U?`/${s.path}`:s instanceof E?`/_hooks/${s.path}`:s instanceof B?`${s.schedule}`:"",jt={class:"ellipsis",style:{"max-width":"300px"}},Ut={class:"ellipsis",style:{"max-width":"250px"}},Et={class:"ellipsis",style:{"max-width":"200px"}},oe=100,Bt=x({__name:"Stages",setup(s){Pe(i=>({a5978c12:ve()}));const l=Ze(),{loading:n,result:r,refetch:u}=W(async()=>Promise.all([U.list(),E.list(),B.list(),q.list()]).then(([i,f,_,A])=>[...i,...f,..._,...A])),y=I(!1),d=async()=>{y.value=!1,u()},g=I([]),h=i=>{g.value=i},k=w(()=>r.value?g.value.length===0?r.value:r.value.filter(i=>g.value.includes(R(i))):[]),c=i=>{re.openFile(i)},S=w(()=>{const i=[{title:"Type",align:"left"},{title:"Title",align:"left"},{title:"File",align:"left"},{title:"Trigger",align:"left"},{title:"",align:"right"}],f=k.value;if(!f)return{columns:i,rows:[]};const _=f.map(A=>{const P=Be(R(A));return{key:A.id,cells:[{type:"tag",text:P},{type:"slot",key:"title",payload:{script:A}},{type:"slot",key:"file",payload:{script:A}},{type:"slot",key:"trigger",payload:{script:A}},{type:"actions",actions:[{icon:ze,label:"Open .py file",onClick:()=>c(A.file)},{icon:je,label:"Delete",onClick:()=>me(A.id)}]}]}});return{columns:i,rows:_}}),t=I({state:"idle"}),L=w(()=>t.value.state==="choosing-type"||t.value.state==="creating"),F=()=>{t.value={state:"choosing-type",type:null}},G=()=>{t.value={state:"idle"}},ce=i=>{t.value.state==="choosing-type"&&(t.value={state:"choosing-type",type:i})},pe=()=>{t.value.state==="choosing-type"&&t.value.type!==null&&(t.value={state:"creating",stage:{type:t.value.type,title:`Untitled ${t.value.type}`,filename:`untitled_${t.value.type}.py`}})},de=()=>{t.value.state==="creating"&&(t.value={state:"choosing-type",type:t.value.stage.type})},fe=i=>{t.value.state==="creating"&&(t.value.stage.title=i)},he=i=>{t.value.state==="creating"&&(t.value.stage.filename=i)},me=async i=>{var f,_;if(await ee("Are you sure you want to delete this script?")){const A=await ee("Do you want to delete the .py file associated with this script?",{okText:"Yes",cancelText:"No"});await((_=(f=r.value)==null?void 0:f.find(P=>P.id===i))==null?void 0:_.delete(A)),await u()}},ve=()=>(oe/1e3).toString()+"s",ge=async()=>{if(t.value.state!=="creating")return;const i=Dt(r.value||[]);let f;if(t.value.stage.type==="form"?f=await U.create(t.value.stage.title,t.value.stage.filename,i):t.value.stage.type==="hook"?f=await E.create(t.value.stage.title,t.value.stage.filename,i):t.value.stage.type==="job"?f=await B.create(t.value.stage.title,t.value.stage.filename,i):t.value.stage.type==="script"&&(f=await q.create(t.value.stage.title,t.value.stage.filename,i)),!f)throw new Error("Failed to create script");const _=f.id,A=t.value.stage.type;setTimeout(async()=>{await Q(_,A),G()},oe)},Q=async(i,f)=>{f==="form"&&await l.push({name:"formEditor",params:{id:i}}),f==="hook"&&await l.push({name:"hookEditor",params:{id:i}}),f==="script"&&await l.push({name:"scriptEditor",params:{id:i}}),f==="job"&&await l.push({name:"jobEditor",params:{id:i}})};return(i,f)=>(p(),C(Y,null,[o(Ue,null,{default:a(()=>[o(e(Oe),null,{default:a(()=>[m("Stages")]),_:1}),o(Zt,{onUpdateFilter:h}),o(Ee,{"empty-title":"There are no scripts","entity-name":"scripts",description:"",table:S.value,loading:e(n),title:"","create-button-text":"Create new",create:F},{title:a(({payload:_})=>[v("div",jt,[o(e(De),{onClick:A=>Q(_.script.id,e(R)(_.script))},{default:a(()=>[m(T(_.script.title),1)]),_:2},1032,["onClick"])])]),secondary:a(()=>[e(r)&&!e(r).length?(p(),b(e(j),{key:0,onClick:f[0]||(f[0]=_=>y.value=!0)},{default:a(()=>[o(e($),{gap:"4",align:"center"},{default:a(()=>[m(" Start with AI "),o(e(yt),{size:16})]),_:1})]),_:1})):V("",!0)]),file:a(({payload:_})=>[v("div",Ut,[o(e(H),null,{default:a(()=>[m(T(_.script.file),1)]),_:2},1024)])]),trigger:a(({payload:_})=>[o(e(Ne),{color:"default"},{default:a(()=>[v("div",Et,T(e(Nt)(_.script)),1)]),_:2},1024)]),_:1},8,["table","loading"])]),_:1}),o(Pt,{open:L.value,state:t.value,onClose:G,onChooseType:ce,onNextStep:pe,onPreviousStep:de,onCreateStage:ge,onUpdateName:fe,onUpdateFile:he},null,8,["open","state"]),o(wt,{open:y.value,onClose:f[1]||(f[1]=_=>y.value=!1),onCloseAndRefetch:d},null,8,["open"])],64))}});const va=ne(Bt,[["__scopeId","data-v-b03308c2"]]);export{va as default}; +//# sourceMappingURL=Stages.f603f4e8.js.map diff --git a/abstra_statics/dist/assets/Steps.526dbd54.js b/abstra_statics/dist/assets/Steps.526dbd54.js deleted file mode 100644 index 8b4ef2dea0..0000000000 --- a/abstra_statics/dist/assets/Steps.526dbd54.js +++ /dev/null @@ -1,2 +0,0 @@ -import{A as n}from"./index.f36b2f2c.js";import{d as a,f as o,o as c,Y as r,b as l,u as d,Z as p,S as f,a0 as u}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e173e7a5-b8cc-4aac-80b4-b46575bcdcb7",e._sentryDebugIdIdentifier="sentry-dbid-e173e7a5-b8cc-4aac-80b4-b46575bcdcb7")}catch{}})();const i=a({__name:"Steps",props:{stepsInfo:{type:Object,default:null}},setup(e){const t=e,s=o(()=>t.stepsInfo?Array(t.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(b,m)=>e.stepsInfo?(c(),r("nav",{key:0,class:"p-steps",style:p({maxWidth:Math.min(e.stepsInfo.total*3.5,100)+"%"})},[l(d(n),{current:e.stepsInfo.current-1,items:s.value,responsive:!1},null,8,["current","items"])],4)):f("",!0)}});const I=u(i,[["__scopeId","data-v-1ef844ba"]]);export{I as S}; -//# sourceMappingURL=Steps.526dbd54.js.map diff --git a/abstra_statics/dist/assets/Steps.b72611f7.js b/abstra_statics/dist/assets/Steps.b72611f7.js new file mode 100644 index 0000000000..171ce7f95f --- /dev/null +++ b/abstra_statics/dist/assets/Steps.b72611f7.js @@ -0,0 +1,2 @@ +import{A as n}from"./index.2862b277.js";import{d as a,f as o,o as r,Y as d,b as c,u as f,Z as l,S as p,a0 as u}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aed56461-6710-42c8-9a5d-d52d8bf2827b",e._sentryDebugIdIdentifier="sentry-dbid-aed56461-6710-42c8-9a5d-d52d8bf2827b")}catch{}})();const i=a({__name:"Steps",props:{stepsInfo:{type:Object,default:null}},setup(e){const t=e,s=o(()=>t.stepsInfo?Array(t.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(m,_)=>e.stepsInfo?(r(),d("nav",{key:0,class:"p-steps",style:l({maxWidth:Math.min(e.stepsInfo.total*3.5,100)+"%"})},[c(f(n),{current:e.stepsInfo.current-1,items:s.value,responsive:!1},null,8,["current","items"])],4)):p("",!0)}});const I=u(i,[["__scopeId","data-v-1ef844ba"]]);export{I as S}; +//# sourceMappingURL=Steps.b72611f7.js.map diff --git a/abstra_statics/dist/assets/TabPane.2034bc94.js b/abstra_statics/dist/assets/TabPane.79f4882f.js similarity index 99% rename from abstra_statics/dist/assets/TabPane.2034bc94.js rename to abstra_statics/dist/assets/TabPane.79f4882f.js index 7676ce416f..56bd5dbc25 100644 --- a/abstra_statics/dist/assets/TabPane.2034bc94.js +++ b/abstra_statics/dist/assets/TabPane.79f4882f.js @@ -1,4 +1,4 @@ -import{dY as Ge,dZ as et,d_ as ft,d$ as pt,e0 as gt,e1 as ht,e2 as mt,e3 as $t,R as W,ar as Oe,aa as ye,d as ee,e as U,f as H,b as p,b8 as q,aj as ie,aL as we,U as T,ck as L,X as Pe,g as se,bD as yt,e4 as xt,bz as St,bx as _t,e5 as Ct,av as Ie,aO as j,W as Tt,D as wt,L as Pt,bG as It,am as Ke,al as J,at as xe,e6 as $e,aF as Rt,aQ as Et,e7 as Xe,ad as Bt,ae as Lt,ao as At,ap as tt,dt as at,aq as nt,aD as Dt,ak as Ot,aM as Ce,b7 as Mt,aN as kt,aA as Nt,bZ as Wt,au as Ht,c8 as De,ai as zt,b5 as Gt,aX as Fe,b0 as Kt}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fb45fe8c-fd12-442b-acd8-c2213a5730bb",e._sentryDebugIdIdentifier="sentry-dbid-fb45fe8c-fd12-442b-acd8-c2213a5730bb")}catch{}})();function Xt(e,t,a,o){if(!Ge(e))return e;t=et(t,e);for(var i=-1,l=t.length,n=l-1,c=e;c!=null&&++i{e(...l)}))}return Oe(()=>{a.value=!0,ye.cancel(t.value)}),o}function qt(e){const t=W([]),a=W(typeof e=="function"?e():e),o=Yt(()=>{let l=a.value;t.value.forEach(n=>{l=n(l)}),t.value=[],a.value=l});function i(l){t.value.push(l),o()}return[a,i]}const Ut=ee({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:o}=t;const i=U();function l(u){var v;!((v=e.tab)===null||v===void 0)&&v.disabled||e.onClick(u)}a({domRef:i});function n(u){var v;u.preventDefault(),u.stopPropagation(),e.editable.onEdit("remove",{key:(v=e.tab)===null||v===void 0?void 0:v.key,event:u})}const c=H(()=>{var u;return e.editable&&e.closable!==!1&&!(!((u=e.tab)===null||u===void 0)&&u.disabled)});return()=>{var u;const{prefixCls:v,id:b,active:S,tab:{key:g,tab:s,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:_,editable:D,onFocus:G}=e,O=`${v}-tab`,r=p("div",{key:g,ref:i,class:ie(O,{[`${O}-with-remove`]:c.value,[`${O}-active`]:S,[`${O}-disabled`]:y}),style:o.style,onClick:l},[p("div",{role:"tab","aria-selected":S,id:b&&`${b}-tab-${g}`,class:`${O}-btn`,"aria-controls":b&&`${b}-panel-${g}`,"aria-disabled":y,tabindex:y?null:0,onClick:m=>{m.stopPropagation(),l(m)},onKeydown:m=>{[q.SPACE,q.ENTER].includes(m.which)&&(m.preventDefault(),l(m))},onFocus:G},[typeof s=="function"?s():s]),c.value&&p("button",{type:"button","aria-label":_||"remove",tabindex:0,class:`${O}-remove`,onClick:m=>{m.stopPropagation(),n(m)}},[(x==null?void 0:x())||((u=D.removeIcon)===null||u===void 0?void 0:u.call(D))||"\xD7"])]);return w?w(r):r}}}),je={width:0,height:0,left:0,top:0};function Zt(e,t){const a=U(new Map);return we(()=>{var o,i;const l=new Map,n=e.value,c=t.value.get((o=n[0])===null||o===void 0?void 0:o.key)||je,u=c.left+c.width;for(let v=0;v{const{prefixCls:l,editable:n,locale:c}=e;return!n||n.showAdd===!1?null:p("button",{ref:i,type:"button",class:`${l}-nav-add`,style:o.style,"aria-label":(c==null?void 0:c.addAriaLabel)||"Add tab",onClick:u=>{n.onEdit("add",{event:u})}},[n.addIcon?n.addIcon():"+"])}}}),Qt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Ie.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:j()},Jt=ee({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Qt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:o}=t;const[i,l]=L(!1),[n,c]=L(null),u=s=>{const y=e.tabs.filter(_=>!_.disabled);let x=y.findIndex(_=>_.key===n.value)||0;const w=y.length;for(let _=0;_{const{which:y}=s;if(!i.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(l(!0),s.preventDefault());return}switch(y){case q.UP:u(-1),s.preventDefault();break;case q.DOWN:u(1),s.preventDefault();break;case q.ESC:l(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,s);break}},b=H(()=>`${e.id}-more-popup`),S=H(()=>n.value!==null?`${b.value}-${n.value}`:null),g=(s,y)=>{s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:y,event:s})};return Pe(()=>{se(n,()=>{const s=document.getElementById(S.value);s&&s.scrollIntoView&&s.scrollIntoView(!1)},{flush:"post",immediate:!0})}),se(i,()=>{i.value||c(null)}),yt({}),()=>{var s;const{prefixCls:y,id:x,tabs:w,locale:_,mobile:D,moreIcon:G=((s=o.moreIcon)===null||s===void 0?void 0:s.call(o))||p(xt,null,null),moreTransitionName:O,editable:r,tabBarGutter:m,rtl:d,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const P=`${y}-dropdown`,K=_==null?void 0:_.dropdownAriaLabel,le={[d?"marginRight":"marginLeft"]:m};w.length||(le.visibility="hidden",le.order=1);const de=ie({[`${P}-rtl`]:d,[`${E}`]:!0}),be=D?null:p(Ct,{prefixCls:P,trigger:["hover"],visible:i.value,transitionName:O,onVisibleChange:l,overlayClassName:de,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(St,{onClick:I=>{let{key:Z,domEvent:M}=I;$(Z,M),l(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":S.value,selectedKeys:[n.value],"aria-label":K!==void 0?K:"expanded dropdown"},{default:()=>[w.map(I=>{var Z,M;const V=r&&I.closable!==!1&&!I.disabled;return p(_t,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[p("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${P}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),g(Y,I.key)}},[((Z=I.closeIcon)===null||Z===void 0?void 0:Z.call(I))||((M=r.removeIcon)===null||M===void 0?void 0:M.call(r))||"\xD7"])]})})]}),default:()=>p("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":i.value,onKeydown:v},[G])});return p("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[be,p(it,{prefixCls:y,locale:_,editable:r},null)])}}}),lt=Symbol("tabsContextKey"),rt=e=>{Tt(lt,e)},st=()=>wt(lt,{tabs:U([]),prefixCls:U()});ee({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:a}=t;return rt(Pt(e)),()=>{var o;return(o=a.default)===null||o===void 0?void 0:o.call(a)}}});const ea=.1,Ve=.01,Te=20,Ye=Math.pow(.995,Te);function ta(e,t){const[a,o]=L(),[i,l]=L(0),[n,c]=L(0),[u,v]=L(),b=U();function S(r){const{screenX:m,screenY:d}=r.touches[0];o({x:m,y:d}),clearInterval(b.value)}function g(r){if(!a.value)return;r.preventDefault();const{screenX:m,screenY:d}=r.touches[0],$=m-a.value.x,E=d-a.value.y;t($,E),o({x:m,y:d});const P=Date.now();c(P-i.value),l(P),v({x:$,y:E})}function s(){if(!a.value)return;const r=u.value;if(o(null),v(null),r){const m=r.x/n.value,d=r.y/n.value,$=Math.abs(m),E=Math.abs(d);if(Math.max($,E){if(Math.abs(P)P?($=m,y.value="x"):($=d,y.value="y"),t(-$,-$)&&r.preventDefault()}const w=U({onTouchStart:S,onTouchMove:g,onTouchEnd:s,onWheel:x});function _(r){w.value.onTouchStart(r)}function D(r){w.value.onTouchMove(r)}function G(r){w.value.onTouchEnd(r)}function O(r){w.value.onWheel(r)}Pe(()=>{var r,m;document.addEventListener("touchmove",D,{passive:!1}),document.addEventListener("touchend",G,{passive:!1}),(r=e.value)===null||r===void 0||r.addEventListener("touchstart",_,{passive:!1}),(m=e.value)===null||m===void 0||m.addEventListener("wheel",O,{passive:!1})}),Oe(()=>{document.removeEventListener("touchmove",D),document.removeEventListener("touchend",G)})}function qe(e,t){const a=U(e);function o(i){const l=typeof i=="function"?i(a.value):i;l!==a.value&&t(l,a.value),a.value=l}return[a,o]}const Ue={width:0,height:0,left:0,top:0,right:0},aa=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:xe(),editable:xe(),moreIcon:Ie.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:xe(),popupClassName:String,getPopupContainer:j(),onTabClick:{type:Function},onTabScroll:{type:Function}}),Ze=ee({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:aa(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:o}=t;const{tabs:i,prefixCls:l}=st(),n=W(),c=W(),u=W(),v=W(),[b,S]=It(),g=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[s,y]=qe(0,(h,f)=>{g.value&&e.onTabScroll&&e.onTabScroll({direction:h>f?"left":"right"})}),[x,w]=qe(0,(h,f)=>{!g.value&&e.onTabScroll&&e.onTabScroll({direction:h>f?"top":"bottom"})}),[_,D]=L(0),[G,O]=L(0),[r,m]=L(null),[d,$]=L(null),[E,P]=L(0),[K,le]=L(0),[de,be]=qt(new Map),I=Zt(i,de),Z=H(()=>`${l.value}-nav-operations-hidden`),M=W(0),V=W(0);we(()=>{g.value?e.rtl?(M.value=0,V.value=Math.max(0,_.value-r.value)):(M.value=Math.min(0,r.value-_.value),V.value=0):(M.value=Math.min(0,d.value-G.value),V.value=0)});const Y=h=>hV.value?V.value:h,fe=W(),[z,pe]=L(),ge=()=>{pe(Date.now())},he=()=>{clearTimeout(fe.value)},Se=(h,f)=>{h(C=>Y(C+f))};ta(n,(h,f)=>{if(g.value){if(r.value>=_.value)return!1;Se(y,h)}else{if(d.value>=G.value)return!1;Se(w,f)}return he(),ge(),!0}),se(z,()=>{he(),z.value&&(fe.value=setTimeout(()=>{pe(0)},100))});const ce=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const f=I.value.get(h)||{width:0,height:0,left:0,right:0,top:0};if(g.value){let C=s.value;e.rtl?f.rights.value+r.value&&(C=f.right+f.width-r.value):f.left<-s.value?C=-f.left:f.left+f.width>-s.value+r.value&&(C=-(f.left+f.width-r.value)),w(0),y(Y(C))}else{let C=x.value;f.top<-x.value?C=-f.top:f.top+f.height>-x.value+d.value&&(C=-(f.top+f.height-d.value)),y(0),w(Y(C))}},Re=W(0),Ee=W(0);we(()=>{let h,f,C,R,k,N;const re=I.value;["top","bottom"].includes(e.tabPosition)?(h="width",R=r.value,k=_.value,N=E.value,f=e.rtl?"right":"left",C=Math.abs(s.value)):(h="height",R=d.value,k=_.value,N=K.value,f="top",C=-x.value);let X=R;k+N>R&&kC+X){ue=A-1;break}}let B=0;for(let A=ae-1;A>=0;A-=1)if((re.get(Q[A].key)||Ue)[f]{var h,f,C,R,k;const N=((h=n.value)===null||h===void 0?void 0:h.offsetWidth)||0,re=((f=n.value)===null||f===void 0?void 0:f.offsetHeight)||0,X=((C=v.value)===null||C===void 0?void 0:C.$el)||{},Q=X.offsetWidth||0,ae=X.offsetHeight||0;m(N),$(re),P(Q),le(ae);const ue=(((R=c.value)===null||R===void 0?void 0:R.offsetWidth)||0)-Q,B=(((k=c.value)===null||k===void 0?void 0:k.offsetHeight)||0)-ae;D(ue),O(B),be(()=>{const A=new Map;return i.value.forEach(F=>{let{key:ve}=F;const ne=S.value.get(ve),oe=(ne==null?void 0:ne.$el)||ne;oe&&A.set(ve,{width:oe.offsetWidth,height:oe.offsetHeight,left:oe.offsetLeft,top:oe.offsetTop})}),A})},ke=H(()=>[...i.value.slice(0,Re.value),...i.value.slice(Ee.value+1)]),[ct,ut]=L(),te=H(()=>I.value.get(e.activeKey)),Ne=W(),We=()=>{ye.cancel(Ne.value)};se([te,g,()=>e.rtl],()=>{const h={};te.value&&(g.value?(e.rtl?h.right=$e(te.value.right):h.left=$e(te.value.left),h.width=$e(te.value.width)):(h.top=$e(te.value.top),h.height=$e(te.value.height))),We(),Ne.value=ye(()=>{ut(h)})}),se([()=>e.activeKey,te,I,g],()=>{ce()},{flush:"post"}),se([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>i.value],()=>{Be()},{flush:"post"});const Le=h=>{let{position:f,prefixCls:C,extra:R}=h;if(!R)return null;const k=R==null?void 0:R({position:f});return k?p("div",{class:`${C}-extra-content`},[k]):null};return Oe(()=>{he(),We()}),()=>{const{id:h,animated:f,activeKey:C,rtl:R,editable:k,locale:N,tabPosition:re,tabBarGutter:X,onTabClick:Q}=e,{class:ae,style:ue}=a,B=l.value,A=!!ke.value.length,F=`${B}-nav-wrap`;let ve,ne,oe,He;g.value?R?(ne=s.value>0,ve=s.value+r.value<_.value):(ve=s.value<0,ne=-s.value+r.value<_.value):(oe=x.value<0,He=-x.value+d.value{const{key:me}=Ae;return p(Ut,{id:h,prefixCls:B,key:me,tab:Ae,style:vt===0?void 0:_e,closable:Ae.closable,editable:k,active:me===C,removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:b(me),onClick:bt=>{Q(me,bt)},onFocus:()=>{ce(me),ge(),n.value&&(R||(n.value.scrollLeft=0),n.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:ie(`${B}-nav`,ae),style:ue,onKeydown:()=>{ge()}},[p(Le,{position:"left",prefixCls:B,extra:o.leftExtra},null),p(Ke,{onResize:Be},{default:()=>[p("div",{class:ie(F,{[`${F}-ping-left`]:ve,[`${F}-ping-right`]:ne,[`${F}-ping-top`]:oe,[`${F}-ping-bottom`]:He}),ref:n},[p(Ke,{onResize:Be},{default:()=>[p("div",{ref:c,class:`${B}-nav-list`,style:{transform:`translate(${s.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[ze,p(it,{ref:v,prefixCls:B,locale:N,editable:k,style:T(T({},ze.length===0?void 0:_e),{visibility:A?"hidden":null})},null),p("div",{class:ie(`${B}-ink-bar`,{[`${B}-ink-bar-animated`]:f.inkBar}),style:ct.value},null)])]})])]}),p(Jt,J(J({},e),{},{removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:u,prefixCls:B,tabs:ke.value,class:!A&&Z.value}),ot(o,["moreIcon"])),p(Le,{position:"right",prefixCls:B,extra:o.rightExtra},null),p(Le,{position:"right",prefixCls:B,extra:o.tabBarExtraContent},null)])}}}),na=ee({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:o,activeKey:i,animated:l,tabPosition:n,rtl:c,destroyInactiveTabPane:u}=e,v=l.tabPane,b=a.value,S=t.value.findIndex(g=>g.key===i);return p("div",{class:`${b}-content-holder`},[p("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:v}],style:S&&v?{[c?"marginRight":"marginLeft"]:`-${S}00%`}:null},[t.value.map(g=>Rt(g.node,{key:g.key,prefixCls:b,tabKey:g.key,id:o,animated:v,active:g.key===i,destroyInactiveTabPane:u}))])])}}});var oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const ia=oa;function Qe(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Xe(e,"slide-up"),Xe(e,"slide-down")]]},da=sa,ca=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:o,tabsCardGutter:i,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ua=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},At),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},va=e=>{const{componentCls:t,margin:a,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, +import{dY as Ge,dZ as et,d_ as ft,d$ as pt,e0 as gt,e1 as ht,e2 as mt,e3 as $t,R as W,ar as Oe,aa as ye,d as ee,e as U,f as H,b as p,b8 as q,aj as ie,aL as we,U as T,ck as L,X as Pe,g as se,bD as yt,e4 as xt,bz as St,bx as _t,e5 as Ct,av as Ie,aO as j,W as Tt,D as wt,L as Pt,bG as It,am as Ke,al as J,at as xe,e6 as $e,aF as Rt,aQ as Et,e7 as Xe,ad as Bt,ae as Lt,ao as At,ap as tt,dt as at,aq as nt,aD as Dt,ak as Ot,aM as Ce,b7 as Mt,aN as kt,aA as Nt,bZ as Wt,au as Ht,c8 as De,ai as zt,b5 as Gt,aX as Fe,b0 as Kt}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="298ae53c-8a85-4579-b3e7-03a6d9490812",e._sentryDebugIdIdentifier="sentry-dbid-298ae53c-8a85-4579-b3e7-03a6d9490812")}catch{}})();function Xt(e,t,a,o){if(!Ge(e))return e;t=et(t,e);for(var i=-1,l=t.length,n=l-1,c=e;c!=null&&++i{e(...l)}))}return Oe(()=>{a.value=!0,ye.cancel(t.value)}),o}function qt(e){const t=W([]),a=W(typeof e=="function"?e():e),o=Yt(()=>{let l=a.value;t.value.forEach(n=>{l=n(l)}),t.value=[],a.value=l});function i(l){t.value.push(l),o()}return[a,i]}const Ut=ee({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:o}=t;const i=U();function l(u){var v;!((v=e.tab)===null||v===void 0)&&v.disabled||e.onClick(u)}a({domRef:i});function n(u){var v;u.preventDefault(),u.stopPropagation(),e.editable.onEdit("remove",{key:(v=e.tab)===null||v===void 0?void 0:v.key,event:u})}const c=H(()=>{var u;return e.editable&&e.closable!==!1&&!(!((u=e.tab)===null||u===void 0)&&u.disabled)});return()=>{var u;const{prefixCls:v,id:b,active:S,tab:{key:g,tab:s,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:_,editable:D,onFocus:G}=e,O=`${v}-tab`,r=p("div",{key:g,ref:i,class:ie(O,{[`${O}-with-remove`]:c.value,[`${O}-active`]:S,[`${O}-disabled`]:y}),style:o.style,onClick:l},[p("div",{role:"tab","aria-selected":S,id:b&&`${b}-tab-${g}`,class:`${O}-btn`,"aria-controls":b&&`${b}-panel-${g}`,"aria-disabled":y,tabindex:y?null:0,onClick:m=>{m.stopPropagation(),l(m)},onKeydown:m=>{[q.SPACE,q.ENTER].includes(m.which)&&(m.preventDefault(),l(m))},onFocus:G},[typeof s=="function"?s():s]),c.value&&p("button",{type:"button","aria-label":_||"remove",tabindex:0,class:`${O}-remove`,onClick:m=>{m.stopPropagation(),n(m)}},[(x==null?void 0:x())||((u=D.removeIcon)===null||u===void 0?void 0:u.call(D))||"\xD7"])]);return w?w(r):r}}}),je={width:0,height:0,left:0,top:0};function Zt(e,t){const a=U(new Map);return we(()=>{var o,i;const l=new Map,n=e.value,c=t.value.get((o=n[0])===null||o===void 0?void 0:o.key)||je,u=c.left+c.width;for(let v=0;v{const{prefixCls:l,editable:n,locale:c}=e;return!n||n.showAdd===!1?null:p("button",{ref:i,type:"button",class:`${l}-nav-add`,style:o.style,"aria-label":(c==null?void 0:c.addAriaLabel)||"Add tab",onClick:u=>{n.onEdit("add",{event:u})}},[n.addIcon?n.addIcon():"+"])}}}),Qt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Ie.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:j()},Jt=ee({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Qt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:o}=t;const[i,l]=L(!1),[n,c]=L(null),u=s=>{const y=e.tabs.filter(_=>!_.disabled);let x=y.findIndex(_=>_.key===n.value)||0;const w=y.length;for(let _=0;_{const{which:y}=s;if(!i.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(l(!0),s.preventDefault());return}switch(y){case q.UP:u(-1),s.preventDefault();break;case q.DOWN:u(1),s.preventDefault();break;case q.ESC:l(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,s);break}},b=H(()=>`${e.id}-more-popup`),S=H(()=>n.value!==null?`${b.value}-${n.value}`:null),g=(s,y)=>{s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:y,event:s})};return Pe(()=>{se(n,()=>{const s=document.getElementById(S.value);s&&s.scrollIntoView&&s.scrollIntoView(!1)},{flush:"post",immediate:!0})}),se(i,()=>{i.value||c(null)}),yt({}),()=>{var s;const{prefixCls:y,id:x,tabs:w,locale:_,mobile:D,moreIcon:G=((s=o.moreIcon)===null||s===void 0?void 0:s.call(o))||p(xt,null,null),moreTransitionName:O,editable:r,tabBarGutter:m,rtl:d,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const P=`${y}-dropdown`,K=_==null?void 0:_.dropdownAriaLabel,le={[d?"marginRight":"marginLeft"]:m};w.length||(le.visibility="hidden",le.order=1);const de=ie({[`${P}-rtl`]:d,[`${E}`]:!0}),be=D?null:p(Ct,{prefixCls:P,trigger:["hover"],visible:i.value,transitionName:O,onVisibleChange:l,overlayClassName:de,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(St,{onClick:I=>{let{key:Z,domEvent:M}=I;$(Z,M),l(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":S.value,selectedKeys:[n.value],"aria-label":K!==void 0?K:"expanded dropdown"},{default:()=>[w.map(I=>{var Z,M;const V=r&&I.closable!==!1&&!I.disabled;return p(_t,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[p("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${P}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),g(Y,I.key)}},[((Z=I.closeIcon)===null||Z===void 0?void 0:Z.call(I))||((M=r.removeIcon)===null||M===void 0?void 0:M.call(r))||"\xD7"])]})})]}),default:()=>p("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":i.value,onKeydown:v},[G])});return p("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[be,p(it,{prefixCls:y,locale:_,editable:r},null)])}}}),lt=Symbol("tabsContextKey"),rt=e=>{Tt(lt,e)},st=()=>wt(lt,{tabs:U([]),prefixCls:U()});ee({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:a}=t;return rt(Pt(e)),()=>{var o;return(o=a.default)===null||o===void 0?void 0:o.call(a)}}});const ea=.1,Ve=.01,Te=20,Ye=Math.pow(.995,Te);function ta(e,t){const[a,o]=L(),[i,l]=L(0),[n,c]=L(0),[u,v]=L(),b=U();function S(r){const{screenX:m,screenY:d}=r.touches[0];o({x:m,y:d}),clearInterval(b.value)}function g(r){if(!a.value)return;r.preventDefault();const{screenX:m,screenY:d}=r.touches[0],$=m-a.value.x,E=d-a.value.y;t($,E),o({x:m,y:d});const P=Date.now();c(P-i.value),l(P),v({x:$,y:E})}function s(){if(!a.value)return;const r=u.value;if(o(null),v(null),r){const m=r.x/n.value,d=r.y/n.value,$=Math.abs(m),E=Math.abs(d);if(Math.max($,E){if(Math.abs(P)P?($=m,y.value="x"):($=d,y.value="y"),t(-$,-$)&&r.preventDefault()}const w=U({onTouchStart:S,onTouchMove:g,onTouchEnd:s,onWheel:x});function _(r){w.value.onTouchStart(r)}function D(r){w.value.onTouchMove(r)}function G(r){w.value.onTouchEnd(r)}function O(r){w.value.onWheel(r)}Pe(()=>{var r,m;document.addEventListener("touchmove",D,{passive:!1}),document.addEventListener("touchend",G,{passive:!1}),(r=e.value)===null||r===void 0||r.addEventListener("touchstart",_,{passive:!1}),(m=e.value)===null||m===void 0||m.addEventListener("wheel",O,{passive:!1})}),Oe(()=>{document.removeEventListener("touchmove",D),document.removeEventListener("touchend",G)})}function qe(e,t){const a=U(e);function o(i){const l=typeof i=="function"?i(a.value):i;l!==a.value&&t(l,a.value),a.value=l}return[a,o]}const Ue={width:0,height:0,left:0,top:0,right:0},aa=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:xe(),editable:xe(),moreIcon:Ie.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:xe(),popupClassName:String,getPopupContainer:j(),onTabClick:{type:Function},onTabScroll:{type:Function}}),Ze=ee({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:aa(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:o}=t;const{tabs:i,prefixCls:l}=st(),n=W(),c=W(),u=W(),v=W(),[b,S]=It(),g=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[s,y]=qe(0,(h,f)=>{g.value&&e.onTabScroll&&e.onTabScroll({direction:h>f?"left":"right"})}),[x,w]=qe(0,(h,f)=>{!g.value&&e.onTabScroll&&e.onTabScroll({direction:h>f?"top":"bottom"})}),[_,D]=L(0),[G,O]=L(0),[r,m]=L(null),[d,$]=L(null),[E,P]=L(0),[K,le]=L(0),[de,be]=qt(new Map),I=Zt(i,de),Z=H(()=>`${l.value}-nav-operations-hidden`),M=W(0),V=W(0);we(()=>{g.value?e.rtl?(M.value=0,V.value=Math.max(0,_.value-r.value)):(M.value=Math.min(0,r.value-_.value),V.value=0):(M.value=Math.min(0,d.value-G.value),V.value=0)});const Y=h=>hV.value?V.value:h,fe=W(),[z,pe]=L(),ge=()=>{pe(Date.now())},he=()=>{clearTimeout(fe.value)},Se=(h,f)=>{h(C=>Y(C+f))};ta(n,(h,f)=>{if(g.value){if(r.value>=_.value)return!1;Se(y,h)}else{if(d.value>=G.value)return!1;Se(w,f)}return he(),ge(),!0}),se(z,()=>{he(),z.value&&(fe.value=setTimeout(()=>{pe(0)},100))});const ce=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const f=I.value.get(h)||{width:0,height:0,left:0,right:0,top:0};if(g.value){let C=s.value;e.rtl?f.rights.value+r.value&&(C=f.right+f.width-r.value):f.left<-s.value?C=-f.left:f.left+f.width>-s.value+r.value&&(C=-(f.left+f.width-r.value)),w(0),y(Y(C))}else{let C=x.value;f.top<-x.value?C=-f.top:f.top+f.height>-x.value+d.value&&(C=-(f.top+f.height-d.value)),y(0),w(Y(C))}},Re=W(0),Ee=W(0);we(()=>{let h,f,C,R,k,N;const re=I.value;["top","bottom"].includes(e.tabPosition)?(h="width",R=r.value,k=_.value,N=E.value,f=e.rtl?"right":"left",C=Math.abs(s.value)):(h="height",R=d.value,k=_.value,N=K.value,f="top",C=-x.value);let X=R;k+N>R&&kC+X){ue=A-1;break}}let B=0;for(let A=ae-1;A>=0;A-=1)if((re.get(Q[A].key)||Ue)[f]{var h,f,C,R,k;const N=((h=n.value)===null||h===void 0?void 0:h.offsetWidth)||0,re=((f=n.value)===null||f===void 0?void 0:f.offsetHeight)||0,X=((C=v.value)===null||C===void 0?void 0:C.$el)||{},Q=X.offsetWidth||0,ae=X.offsetHeight||0;m(N),$(re),P(Q),le(ae);const ue=(((R=c.value)===null||R===void 0?void 0:R.offsetWidth)||0)-Q,B=(((k=c.value)===null||k===void 0?void 0:k.offsetHeight)||0)-ae;D(ue),O(B),be(()=>{const A=new Map;return i.value.forEach(F=>{let{key:ve}=F;const ne=S.value.get(ve),oe=(ne==null?void 0:ne.$el)||ne;oe&&A.set(ve,{width:oe.offsetWidth,height:oe.offsetHeight,left:oe.offsetLeft,top:oe.offsetTop})}),A})},ke=H(()=>[...i.value.slice(0,Re.value),...i.value.slice(Ee.value+1)]),[ct,ut]=L(),te=H(()=>I.value.get(e.activeKey)),Ne=W(),We=()=>{ye.cancel(Ne.value)};se([te,g,()=>e.rtl],()=>{const h={};te.value&&(g.value?(e.rtl?h.right=$e(te.value.right):h.left=$e(te.value.left),h.width=$e(te.value.width)):(h.top=$e(te.value.top),h.height=$e(te.value.height))),We(),Ne.value=ye(()=>{ut(h)})}),se([()=>e.activeKey,te,I,g],()=>{ce()},{flush:"post"}),se([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>i.value],()=>{Be()},{flush:"post"});const Le=h=>{let{position:f,prefixCls:C,extra:R}=h;if(!R)return null;const k=R==null?void 0:R({position:f});return k?p("div",{class:`${C}-extra-content`},[k]):null};return Oe(()=>{he(),We()}),()=>{const{id:h,animated:f,activeKey:C,rtl:R,editable:k,locale:N,tabPosition:re,tabBarGutter:X,onTabClick:Q}=e,{class:ae,style:ue}=a,B=l.value,A=!!ke.value.length,F=`${B}-nav-wrap`;let ve,ne,oe,He;g.value?R?(ne=s.value>0,ve=s.value+r.value<_.value):(ve=s.value<0,ne=-s.value+r.value<_.value):(oe=x.value<0,He=-x.value+d.value{const{key:me}=Ae;return p(Ut,{id:h,prefixCls:B,key:me,tab:Ae,style:vt===0?void 0:_e,closable:Ae.closable,editable:k,active:me===C,removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:b(me),onClick:bt=>{Q(me,bt)},onFocus:()=>{ce(me),ge(),n.value&&(R||(n.value.scrollLeft=0),n.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:ie(`${B}-nav`,ae),style:ue,onKeydown:()=>{ge()}},[p(Le,{position:"left",prefixCls:B,extra:o.leftExtra},null),p(Ke,{onResize:Be},{default:()=>[p("div",{class:ie(F,{[`${F}-ping-left`]:ve,[`${F}-ping-right`]:ne,[`${F}-ping-top`]:oe,[`${F}-ping-bottom`]:He}),ref:n},[p(Ke,{onResize:Be},{default:()=>[p("div",{ref:c,class:`${B}-nav-list`,style:{transform:`translate(${s.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[ze,p(it,{ref:v,prefixCls:B,locale:N,editable:k,style:T(T({},ze.length===0?void 0:_e),{visibility:A?"hidden":null})},null),p("div",{class:ie(`${B}-ink-bar`,{[`${B}-ink-bar-animated`]:f.inkBar}),style:ct.value},null)])]})])]}),p(Jt,J(J({},e),{},{removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:u,prefixCls:B,tabs:ke.value,class:!A&&Z.value}),ot(o,["moreIcon"])),p(Le,{position:"right",prefixCls:B,extra:o.rightExtra},null),p(Le,{position:"right",prefixCls:B,extra:o.tabBarExtraContent},null)])}}}),na=ee({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:o,activeKey:i,animated:l,tabPosition:n,rtl:c,destroyInactiveTabPane:u}=e,v=l.tabPane,b=a.value,S=t.value.findIndex(g=>g.key===i);return p("div",{class:`${b}-content-holder`},[p("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:v}],style:S&&v?{[c?"marginRight":"marginLeft"]:`-${S}00%`}:null},[t.value.map(g=>Rt(g.node,{key:g.key,prefixCls:b,tabKey:g.key,id:o,animated:v,active:g.key===i,destroyInactiveTabPane:u}))])])}}});var oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const ia=oa;function Qe(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Xe(e,"slide-up"),Xe(e,"slide-down")]]},da=sa,ca=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:o,tabsCardGutter:i,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ua=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},At),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},va=e=>{const{componentCls:t,margin:a,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${a}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ba=e=>{const{componentCls:t,padding:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${a}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${a}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${a}px ${e.paddingXXS*1.5}px`}}}}}},fa=e=>{const{componentCls:t,tabsActiveColor:a,tabsHoverColor:o,iconCls:i,tabsHorizontalGutter:l}=e,n=`${t}-tab`;return{[n]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":T({"&:focus:not(:focus-visible), &:active":{color:a}},at(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${n}-active ${n}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-disabled ${n}-btn, &${n}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${n}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${n} + ${n}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},pa=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:o,tabsCardGutter:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ga=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeight:o,tabsCardGutter:i,tabsHoverColor:l,tabsActiveColor:n,colorSplit:c}=e;return{[t]:T(T(T(T({},tt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:T({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${c}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:n}},at(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),fa(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%",["&-animated"]:{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},ha=Bt("Tabs",e=>{const t=e.controlHeightLG,a=Lt(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[ba(a),pa(a),va(a),ua(a),ca(a),ga(a),da(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let Je=0;const dt=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:j(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Ce(),animated:Mt([Boolean,Object]),renderTabBar:j(),tabBarGutter:{type:Number},tabBarStyle:xe(),tabPosition:Ce(),destroyInactiveTabPane:kt(),hideAdd:Boolean,type:Ce(),size:Ce(),centered:Boolean,onEdit:j(),onChange:j(),onTabClick:j(),onTabScroll:j(),"onUpdate:activeKey":j(),locale:xe(),onPrevClick:j(),onNextClick:j(),tabBarExtraContent:Ie.any});function ma(e){return e.map(t=>{if(Nt(t)){const a=T({},t.props||{});for(const[g,s]of Object.entries(a))delete a[g],a[Wt(g)]=s;const o=t.children||{},i=t.key!==void 0?t.key:void 0,{tab:l=o.tab,disabled:n,forceRender:c,closable:u,animated:v,active:b,destroyInactiveTabPane:S}=a;return T(T({key:i},a),{node:t,closeIcon:o.closeIcon,tab:l,disabled:n===""||n,forceRender:c===""||c,closable:u===""||u,animated:v===""||v,active:b===""||b,destroyInactiveTabPane:S===""||S})}return null}).filter(t=>t)}const $a=ee({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:T(T({},nt(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Ht()}),slots:Object,setup(e,t){let{attrs:a,slots:o}=t;De(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),De(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),De(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:l,size:n,rootPrefixCls:c,getPopupContainer:u}=zt("tabs",e),[v,b]=ha(i),S=H(()=>l.value==="rtl"),g=H(()=>{const{animated:d,tabPosition:$}=e;return d===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:d===!0?{inkBar:!0,tabPane:!0}:T({inkBar:!0,tabPane:!1},typeof d=="object"?d:{})}),[s,y]=L(!1);Pe(()=>{y(Gt())});const[x,w]=Fe(()=>{var d;return(d=e.tabs[0])===null||d===void 0?void 0:d.key},{value:H(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[_,D]=L(()=>e.tabs.findIndex(d=>d.key===x.value));we(()=>{var d;let $=e.tabs.findIndex(E=>E.key===x.value);$===-1&&($=Math.max(0,Math.min(_.value,e.tabs.length-1)),w((d=e.tabs[$])===null||d===void 0?void 0:d.key)),D($)});const[G,O]=Fe(null,{value:H(()=>e.id)}),r=H(()=>s.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Pe(()=>{e.id||(O(`rc-tabs-${Je}`),Je+=1)});const m=(d,$)=>{var E,P;(E=e.onTabClick)===null||E===void 0||E.call(e,d,$);const K=d!==x.value;w(d),K&&((P=e.onChange)===null||P===void 0||P.call(e,d))};return rt({tabs:H(()=>e.tabs),prefixCls:i}),()=>{const{id:d,type:$,tabBarGutter:E,tabBarStyle:P,locale:K,destroyInactiveTabPane:le,renderTabBar:de=o.renderTabBar,onTabScroll:be,hideAdd:I,centered:Z}=e,M={id:G.value,activeKey:x.value,animated:g.value,tabPosition:r.value,rtl:S.value,mobile:s.value};let V;$==="editable-card"&&(V={onEdit:(pe,ge)=>{let{key:he,event:Se}=ge;var ce;(ce=e.onEdit)===null||ce===void 0||ce.call(e,pe==="add"?Se:he,pe)},removeIcon:()=>p(Kt,null,null),addIcon:o.addIcon?o.addIcon:()=>p(ra,null,null),showAdd:I!==!0});let Y;const fe=T(T({},M),{moreTransitionName:`${c.value}-slide-up`,editable:V,locale:K,tabBarGutter:E,onTabClick:m,onTabScroll:be,style:P,getPopupContainer:u.value,popupClassName:ie(e.popupClassName,b.value)});de?Y=de(T(T({},fe),{DefaultTabBar:Ze})):Y=p(Ze,fe,ot(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const z=i.value;return v(p("div",J(J({},a),{},{id:d,class:ie(z,`${z}-${r.value}`,{[b.value]:!0,[`${z}-${n.value}`]:n.value,[`${z}-card`]:["card","editable-card"].includes($),[`${z}-editable-card`]:$==="editable-card",[`${z}-centered`]:Z,[`${z}-mobile`]:s.value,[`${z}-editable`]:$==="editable-card",[`${z}-rtl`]:S.value},a.class)}),[Y,p(na,J(J({destroyInactiveTabPane:le},M),{},{animated:g.value}),null)]))}}}),Sa=ee({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:nt(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:a,slots:o,emit:i}=t;const l=n=>{i("update:activeKey",n),i("change",n)};return()=>{var n;const c=ma(Dt((n=o.default)===null||n===void 0?void 0:n.call(o)));return p($a,J(J(J({},Ot(e,["onUpdate:activeKey"])),a),{},{onChange:l,tabs:c}),o)}}}),ya=()=>({tab:Ie.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),_a=ee({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:ya(),slots:Object,setup(e,t){let{attrs:a,slots:o}=t;const i=U(e.forceRender);se([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?i.value=!0:e.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const l=H(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var n;const{prefixCls:c,forceRender:u,id:v,active:b,tabKey:S}=e;return p("div",{id:v&&`${v}-panel-${S}`,role:"tabpanel",tabindex:b?0:-1,"aria-labelledby":v&&`${v}-tab-${S}`,"aria-hidden":!b,style:[l.value,a.style],class:[`${c}-tabpane`,b&&`${c}-tabpane-active`,a.class]},[(b||i.value||u)&&((n=o.default)===null||n===void 0?void 0:n.call(o))])}}});export{_a as A,ia as P,Sa as T}; -//# sourceMappingURL=TabPane.2034bc94.js.map +//# sourceMappingURL=TabPane.79f4882f.js.map diff --git a/abstra_statics/dist/assets/TableEditor.55d359e8.js b/abstra_statics/dist/assets/TableEditor.8fd9b580.js similarity index 91% rename from abstra_statics/dist/assets/TableEditor.55d359e8.js rename to abstra_statics/dist/assets/TableEditor.8fd9b580.js index dfeca807d5..0baa335b10 100644 --- a/abstra_statics/dist/assets/TableEditor.55d359e8.js +++ b/abstra_statics/dist/assets/TableEditor.8fd9b580.js @@ -1,2 +1,2 @@ -import{_ as t0}from"./AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js";import{B as j0}from"./BaseLayout.995c8c6b.js";import{a as $0}from"./asyncComputed.cfc0cdaf.js";import{d as U,D as A,f as g,o as a,Y as u,$ as G,S as M,e8 as F,a as r,c as w,w as i,b as s,u as t,bT as O,aG as E,eb as C0,cz as j,bL as Y,eg as E0,bO as R0,aS as V0,cy as A0,ea as f0,e as q,g as m0,ej as u0,by as _0,cX as i0,a0 as S0,X as T0,aB as O0,dh as K,eo as z0,E as G0,r as B0,eK as F0,aW as r0,e9 as n0,ed as K0,cN as W0,ep as Q0,cY as J0,z as X0,cL as Y0}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{O as e1}from"./organization.2853982f.js";import{P as H0}from"./project.cc79d30a.js";import{p as I0,T as e0,d as a1}from"./tables.2ec18755.js";import{C as l1}from"./ContentLayout.60e2d770.js";import{p as g0}from"./popupNotifcation.40886a7f.js";import{A as b0}from"./index.37c7ea66.js";import{A as Z0}from"./index.2753fdb2.js";import{H as q0}from"./PhCheckCircle.vue.9df5f131.js";import{A as x0}from"./index.83aa16e3.js";import{G as t1}from"./PhArrowDown.vue.bbcdf79c.js";import{a as n1}from"./ant-design.ae7d2f9f.js";import{G as o1}from"./PhCaretRight.vue.a26e962f.js";import{L as r1}from"./LoadingOutlined.7a2941f5.js";import{B as u1,A as i1,b as s1}from"./index.d667cd0d.js";import"./record.a6861841.js";import"./string.0a3509c3.js";import"./Badge.7a29ebdb.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";(function(){try{var b=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(b._sentryDebugIds=b._sentryDebugIds||{},b._sentryDebugIds[n]="1e9f2276-a90c-4a0b-9f2a-4f5e37497efb",b._sentryDebugIdIdentifier="sentry-dbid-1e9f2276-a90c-4a0b-9f2a-4f5e37497efb")}catch{}})();const d1=["width","height","fill","transform"],c1={key:0},p1=r("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"},null,-1),v1=[p1],m1={key:1},g1=r("path",{d:"M200,112H56l72-72Z",opacity:"0.2"},null,-1),f1=r("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"},null,-1),h1=[g1,f1],y1={key:2},$1=r("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"},null,-1),V1=[$1],A1={key:3},H1=r("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"},null,-1),b1=[H1],Z1={key:4},k1=r("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"},null,-1),w1=[k1],L1={key:5},M1=r("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"},null,-1),C1=[M1],_1={name:"PhArrowUp"},S1=U({..._1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",c1,v1)):o.value==="duotone"?(a(),u("g",m1,h1)):o.value==="fill"?(a(),u("g",y1,V1)):o.value==="light"?(a(),u("g",A1,b1)):o.value==="regular"?(a(),u("g",Z1,w1)):o.value==="thin"?(a(),u("g",L1,C1)):M("",!0)],16,d1))}}),z1=["width","height","fill","transform"],B1={key:0},I1=r("path",{d:"M120.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L68,179V48a12,12,0,0,1,24,0V179l11.51-11.52A12,12,0,0,1,120.49,167.51Zm96-96-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17L164,77V208a12,12,0,0,0,24,0V77l11.51,11.52a12,12,0,0,0,17-17Z"},null,-1),q1=[I1],x1={key:1},D1=r("path",{d:"M176,48V208H80V48Z",opacity:"0.2"},null,-1),N1=r("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"},null,-1),U1=[D1,N1],P1={key:2},j1=r("path",{d:"M119.39,172.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,48,168H72V48a8,8,0,0,1,16,0V168h24A8,8,0,0,1,119.39,172.94Zm94.27-98.6-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,144,88h24V208a8,8,0,0,0,16,0V88h24a8,8,0,0,0,5.66-13.66Z"},null,-1),E1=[j1],R1={key:3},T1=r("path",{d:"M116.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L74,193.51V48a6,6,0,0,1,12,0V193.51l21.76-21.75A6,6,0,0,1,116.24,171.76Zm96-96-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48L170,62.49V208a6,6,0,0,0,12,0V62.49l21.76,21.75a6,6,0,0,0,8.48-8.48Z"},null,-1),O1=[T1],G1={key:4},F1=r("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"},null,-1),K1=[F1],W1={key:5},Q1=r("path",{d:"M114.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L76,198.34V48a4,4,0,0,1,8,0V198.34l25.17-25.17A4,4,0,0,1,114.83,173.17Zm96-96-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66L172,57.66V208a4,4,0,0,0,8,0V57.66l25.17,25.17a4,4,0,1,0,5.66-5.66Z"},null,-1),J1=[Q1],X1={name:"PhArrowsDownUp"},Y1=U({...X1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",B1,q1)):o.value==="duotone"?(a(),u("g",x1,U1)):o.value==="fill"?(a(),u("g",P1,E1)):o.value==="light"?(a(),u("g",R1,O1)):o.value==="regular"?(a(),u("g",G1,K1)):o.value==="thin"?(a(),u("g",W1,J1)):M("",!0)],16,z1))}}),ee=["width","height","fill","transform"],ae={key:0},le=r("path",{d:"M80,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H80a20,20,0,0,0,20-20V48A20,20,0,0,0,80,28ZM76,204H60V52H76ZM156,28H132a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h24a20,20,0,0,0,20-20V48A20,20,0,0,0,156,28Zm-4,176H136V52h16Zm100-76a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,252,128Z"},null,-1),te=[le],ne={key:1},oe=r("path",{d:"M88,48V208a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H80A8,8,0,0,1,88,48Zm64-8H128a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h24a8,8,0,0,0,8-8V48A8,8,0,0,0,152,40Z",opacity:"0.2"},null,-1),re=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),ue=[oe,re],ie={key:2},se=r("path",{d:"M96,48V208a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H80A16,16,0,0,1,96,48Zm56-16H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm88,88H224V104a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V136h16a8,8,0,0,0,0-16Z"},null,-1),de=[se],ce={key:3},pe=r("path",{d:"M80,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H80a14,14,0,0,0,14-14V48A14,14,0,0,0,80,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H80a2,2,0,0,1,2,2ZM152,34H128a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V48A14,14,0,0,0,152,34Zm2,174a2,2,0,0,1-2,2H128a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h24a2,2,0,0,1,2,2Zm92-80a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V134H192a6,6,0,0,1,0-12h18V104a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,128Z"},null,-1),ve=[pe],me={key:4},ge=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),fe=[ge],he={key:5},ye=r("path",{d:"M80,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H80a12,12,0,0,0,12-12V48A12,12,0,0,0,80,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H80a4,4,0,0,1,4,4ZM152,36H128a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V48A12,12,0,0,0,152,36Zm4,172a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h24a4,4,0,0,1,4,4Zm88-80a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V132H192a4,4,0,0,1,0-8h20V104a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,128Z"},null,-1),$e=[ye],Ve={name:"PhColumnsPlusRight"},Ae=U({...Ve,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",ae,te)):o.value==="duotone"?(a(),u("g",ne,ue)):o.value==="fill"?(a(),u("g",ie,de)):o.value==="light"?(a(),u("g",ce,ve)):o.value==="regular"?(a(),u("g",me,fe)):o.value==="thin"?(a(),u("g",he,$e)):M("",!0)],16,ee))}}),He=["width","height","fill","transform"],be={key:0},Ze=r("path",{d:"M148,96V48a12,12,0,0,1,24,0V84h36a12,12,0,0,1,0,24H160A12,12,0,0,1,148,96ZM96,148H48a12,12,0,0,0,0,24H84v36a12,12,0,0,0,24,0V160A12,12,0,0,0,96,148Zm112,0H160a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V172h36a12,12,0,0,0,0-24ZM96,36A12,12,0,0,0,84,48V84H48a12,12,0,0,0,0,24H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Z"},null,-1),ke=[Ze],we={key:1},Le=r("path",{d:"M208,64V192a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V64A16,16,0,0,1,64,48H192A16,16,0,0,1,208,64Z",opacity:"0.2"},null,-1),Me=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),Ce=[Le,Me],_e={key:2},Se=r("path",{d:"M152,96V48a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,208,104H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0-5.66,13.66l48,48A8,8,0,0,0,104,208V160A8,8,0,0,0,96,152ZM99.06,40.61a8,8,0,0,0-8.72,1.73l-48,48A8,8,0,0,0,48,104H96a8,8,0,0,0,8-8V48A8,8,0,0,0,99.06,40.61ZM208,152H160a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,208,152Z"},null,-1),ze=[Se],Be={key:3},Ie=r("path",{d:"M154,96V48a6,6,0,0,1,12,0V90h42a6,6,0,0,1,0,12H160A6,6,0,0,1,154,96ZM96,154H48a6,6,0,0,0,0,12H90v42a6,6,0,0,0,12,0V160A6,6,0,0,0,96,154Zm112,0H160a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V166h42a6,6,0,0,0,0-12ZM96,42a6,6,0,0,0-6,6V90H48a6,6,0,0,0,0,12H96a6,6,0,0,0,6-6V48A6,6,0,0,0,96,42Z"},null,-1),qe=[Ie],xe={key:4},De=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),Ne=[De],Ue={key:5},Pe=r("path",{d:"M156,96V48a4,4,0,0,1,8,0V92h44a4,4,0,0,1,0,8H160A4,4,0,0,1,156,96ZM96,156H48a4,4,0,0,0,0,8H92v44a4,4,0,0,0,8,0V160A4,4,0,0,0,96,156Zm112,0H160a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V164h44a4,4,0,0,0,0-8ZM96,44a4,4,0,0,0-4,4V92H48a4,4,0,0,0,0,8H96a4,4,0,0,0,4-4V48A4,4,0,0,0,96,44Z"},null,-1),je=[Pe],Ee={name:"PhCornersIn"},Re=U({...Ee,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",be,ke)):o.value==="duotone"?(a(),u("g",we,Ce)):o.value==="fill"?(a(),u("g",_e,ze)):o.value==="light"?(a(),u("g",Be,qe)):o.value==="regular"?(a(),u("g",xe,Ne)):o.value==="thin"?(a(),u("g",Ue,je)):M("",!0)],16,He))}}),Te=["width","height","fill","transform"],Oe={key:0},Ge=r("path",{d:"M220,48V88a12,12,0,0,1-24,0V60H168a12,12,0,0,1,0-24h40A12,12,0,0,1,220,48ZM88,196H60V168a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H88a12,12,0,0,0,0-24Zm120-40a12,12,0,0,0-12,12v28H168a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156ZM88,36H48A12,12,0,0,0,36,48V88a12,12,0,0,0,24,0V60H88a12,12,0,0,0,0-24Z"},null,-1),Fe=[Ge],Ke={key:1},We=r("path",{d:"M208,48V208H48V48Z",opacity:"0.2"},null,-1),Qe=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),Je=[We,Qe],Xe={key:2},Ye=r("path",{d:"M93.66,202.34A8,8,0,0,1,88,216H48a8,8,0,0,1-8-8V168a8,8,0,0,1,13.66-5.66ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,88,40ZM211.06,160.61a8,8,0,0,0-8.72,1.73l-40,40A8,8,0,0,0,168,216h40a8,8,0,0,0,8-8V168A8,8,0,0,0,211.06,160.61ZM208,40H168a8,8,0,0,0-5.66,13.66l40,40A8,8,0,0,0,216,88V48A8,8,0,0,0,208,40Z"},null,-1),ea=[Ye],aa={key:3},la=r("path",{d:"M214,48V88a6,6,0,0,1-12,0V54H168a6,6,0,0,1,0-12h40A6,6,0,0,1,214,48ZM88,202H54V168a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H88a6,6,0,0,0,0-12Zm120-40a6,6,0,0,0-6,6v34H168a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V168A6,6,0,0,0,208,162ZM88,42H48a6,6,0,0,0-6,6V88a6,6,0,0,0,12,0V54H88a6,6,0,0,0,0-12Z"},null,-1),ta=[la],na={key:4},oa=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),ra=[oa],ua={key:5},ia=r("path",{d:"M212,48V88a4,4,0,0,1-8,0V52H168a4,4,0,0,1,0-8h40A4,4,0,0,1,212,48ZM88,204H52V168a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H88a4,4,0,0,0,0-8Zm120-40a4,4,0,0,0-4,4v36H168a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V168A4,4,0,0,0,208,164ZM88,44H48a4,4,0,0,0-4,4V88a4,4,0,0,0,8,0V52H88a4,4,0,0,0,0-8Z"},null,-1),sa=[ia],da={name:"PhCornersOut"},ca=U({...da,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",Oe,Fe)):o.value==="duotone"?(a(),u("g",Ke,Je)):o.value==="fill"?(a(),u("g",Xe,ea)):o.value==="light"?(a(),u("g",aa,ta)):o.value==="regular"?(a(),u("g",na,ra)):o.value==="thin"?(a(),u("g",ua,sa)):M("",!0)],16,Te))}}),pa=["width","height","fill","transform"],va={key:0},ma=r("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"},null,-1),ga=[ma],fa={key:1},ha=r("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),ya=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),$a=[ha,ya],Va={key:2},Aa=r("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),Ha=[Aa],ba={key:3},Za=r("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"},null,-1),ka=[Za],wa={key:4},La=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),Ma=[La],Ca={key:5},_a=r("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"},null,-1),Sa=[_a],za={name:"PhGear"},Ba=U({...za,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",va,ga)):o.value==="duotone"?(a(),u("g",fa,$a)):o.value==="fill"?(a(),u("g",Va,Ha)):o.value==="light"?(a(),u("g",ba,ka)):o.value==="regular"?(a(),u("g",wa,Ma)):o.value==="thin"?(a(),u("g",Ca,Sa)):M("",!0)],16,pa))}}),Ia=["width","height","fill","transform"],qa={key:0},xa=r("path",{d:"M232.49,55.51l-32-32a12,12,0,0,0-17,0l-96,96A12,12,0,0,0,84,128v32a12,12,0,0,0,12,12h32a12,12,0,0,0,8.49-3.51l96-96A12,12,0,0,0,232.49,55.51ZM192,49l15,15L196,75,181,60Zm-69,99H108V133l56-56,15,15Zm105-7.43V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28h67.43a12,12,0,0,1,0,24H52V204H204V140.57a12,12,0,0,1,24,0Z"},null,-1),Da=[xa],Na={key:1},Ua=r("path",{d:"M200,88l-72,72H96V128l72-72Z",opacity:"0.2"},null,-1),Pa=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),ja=[Ua,Pa],Ea={key:2},Ra=r("path",{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"},null,-1),Ta=[Ra],Oa={key:3},Ga=r("path",{d:"M228.24,59.76l-32-32a6,6,0,0,0-8.48,0l-96,96A6,6,0,0,0,90,128v32a6,6,0,0,0,6,6h32a6,6,0,0,0,4.24-1.76l96-96A6,6,0,0,0,228.24,59.76ZM125.51,154H102V130.49l66-66L191.51,88ZM200,79.51,176.49,56,192,40.49,215.51,64ZM222,128v80a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34h80a6,6,0,0,1,0,12H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2V128a6,6,0,0,1,12,0Z"},null,-1),Fa=[Ga],Ka={key:4},Wa=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),Qa=[Wa],Ja={key:5},Xa=r("path",{d:"M226.83,61.17l-32-32a4,4,0,0,0-5.66,0l-96,96A4,4,0,0,0,92,128v32a4,4,0,0,0,4,4h32a4,4,0,0,0,2.83-1.17l96-96A4,4,0,0,0,226.83,61.17ZM126.34,156H100V129.66l68-68L194.34,88ZM200,82.34,173.66,56,192,37.66,218.34,64ZM220,128v80a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36h80a4,4,0,0,1,0,8H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V128a4,4,0,0,1,8,0Z"},null,-1),Ya=[Xa],e2={name:"PhNotePencil"},a2=U({...e2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",qa,Da)):o.value==="duotone"?(a(),u("g",Na,ja)):o.value==="fill"?(a(),u("g",Ea,Ta)):o.value==="light"?(a(),u("g",Oa,Fa)):o.value==="regular"?(a(),u("g",Ka,Qa)):o.value==="thin"?(a(),u("g",Ja,Ya)):M("",!0)],16,Ia))}}),l2=["width","height","fill","transform"],t2={key:0},n2=r("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),o2=[n2],r2={key:1},u2=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),i2=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM48,163.31l88-88L180.69,120l-88,88H48Zm144-54.62L147.32,64l24-24L216,84.69Z"},null,-1),s2=[u2,i2],d2={key:2},c2=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),p2=[c2],v2={key:3},m2=r("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM93.52,210H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.49,183.52,120ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"},null,-1),g2=[m2],f2={key:4},h2=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),y2=[h2],$2={key:5},V2=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM94.34,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.82L136,69.66,186.35,120ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"},null,-1),A2=[V2],H2={name:"PhPencilSimpleLine"},b2=U({...H2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",t2,o2)):o.value==="duotone"?(a(),u("g",r2,s2)):o.value==="fill"?(a(),u("g",d2,p2)):o.value==="light"?(a(),u("g",v2,g2)):o.value==="regular"?(a(),u("g",f2,y2)):o.value==="thin"?(a(),u("g",$2,A2)):M("",!0)],16,l2))}}),Z2=["width","height","fill","transform"],k2={key:0},w2=r("path",{d:"M208,112H48a20,20,0,0,0-20,20v24a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V132A20,20,0,0,0,208,112Zm-4,40H52V136H204Zm4-116H48A20,20,0,0,0,28,56V80a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V56A20,20,0,0,0,208,36Zm-4,40H52V60H204ZM160,220a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,160,220Z"},null,-1),L2=[w2],M2={key:1},C2=r("path",{d:"M216,128v24a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V128a8,8,0,0,1,8-8H208A8,8,0,0,1,216,128Zm-8-80H48a8,8,0,0,0-8,8V80a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V56A8,8,0,0,0,208,48Z",opacity:"0.2"},null,-1),_2=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),S2=[C2,_2],z2={key:2},B2=r("path",{d:"M224,128v24a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128a16,16,0,0,1,16-16H208A16,16,0,0,1,224,128ZM208,40H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40ZM152,208H136V192a8,8,0,0,0-16,0v16H104a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V224h16a8,8,0,0,0,0-16Z"},null,-1),I2=[B2],q2={key:3},x2=r("path",{d:"M208,114H48a14,14,0,0,0-14,14v24a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V128A14,14,0,0,0,208,114Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V128a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,42H48A14,14,0,0,0,34,56V80A14,14,0,0,0,48,94H208a14,14,0,0,0,14-14V56A14,14,0,0,0,208,42Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM158,216a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V222H104a6,6,0,0,1,0-12h18V192a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,216Z"},null,-1),D2=[x2],N2={key:4},U2=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),P2=[U2],j2={key:5},E2=r("path",{d:"M208,116H48a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V128A12,12,0,0,0,208,116Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V128a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,44H48A12,12,0,0,0,36,56V80A12,12,0,0,0,48,92H208a12,12,0,0,0,12-12V56A12,12,0,0,0,208,44Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM156,216a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V220H104a4,4,0,0,1,0-8h20V192a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,216Z"},null,-1),R2=[E2],T2={name:"PhRowsPlusBottom"},L0=U({...T2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",k2,L2)):o.value==="duotone"?(a(),u("g",M2,S2)):o.value==="fill"?(a(),u("g",z2,I2)):o.value==="light"?(a(),u("g",q2,D2)):o.value==="regular"?(a(),u("g",N2,P2)):o.value==="thin"?(a(),u("g",j2,R2)):M("",!0)],16,Z2))}}),O2=["width","height","fill","transform"],G2={key:0},F2=r("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),K2=[F2],W2={key:1},Q2=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),J2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),X2=[Q2,J2],Y2={key:2},e8=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),a8=[e8],l8={key:3},t8=r("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),n8=[t8],o8={key:4},r8=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),u8=[r8],i8={key:5},s8=r("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),d8=[s8],c8={name:"PhWarningCircle"},D0=U({...c8,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(b){const n=b,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",G2,K2)):o.value==="duotone"?(a(),u("g",W2,X2)):o.value==="fill"?(a(),u("g",Y2,a8)):o.value==="light"?(a(),u("g",l8,n8)):o.value==="regular"?(a(),u("g",o8,u8)):o.value==="thin"?(a(),u("g",i8,d8)):M("",!0)],16,O2))}}),p8=U({__name:"AddData",props:{open:{type:Boolean},editableItem:{},table:{},loading:{type:Boolean}},emits:["save","close","update-nullable","record-change"],setup(b,{emit:n}){return(l,y)=>(a(),w(t(Z0),{title:"Data",width:720,open:l.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:y[2]||(y[2]=p=>n("close"))},{extra:i(()=>[s(t(b0),null,{default:i(()=>[s(t(O),{onClick:y[0]||(y[0]=p=>n("close"))},{default:i(()=>[E("Cancel")]),_:1}),s(t(O),{type:"primary",loading:l.loading,onClick:y[1]||(y[1]=p=>n("save"))},{default:i(()=>[E("Save")]),_:1},8,["loading"])]),_:1})]),default:i(()=>[s(t(A0),{model:l.editableItem,layout:"vertical"},{default:i(()=>[(a(!0),u(V0,null,C0(l.table.getUnprotectedColumns(),p=>(a(),w(t(j),{key:p.id,label:p.name,required:!p.nullable},{default:i(()=>[l.editableItem?(a(),w(t(Y),{key:0,placeholder:p.type,value:l.editableItem[p.name],disabled:l.editableItem[p.name]===null,"onUpdate:value":V=>n("record-change",p.name,V)},E0({_:2},[p.nullable?{name:"addonAfter",fn:i(()=>[s(t(R0),{checked:l.editableItem[p.name]===null,"onUpdate:checked":V=>n("update-nullable",p.name,V)},{default:i(()=>[E(" NULL ")]),_:2},1032,["checked","onUpdate:checked"])]),key:"0"}:void 0]),1032,["placeholder","value","disabled","onUpdate:value"])):M("",!0)]),_:2},1032,["label","required"]))),128))]),_:1},8,["model"])]),_:1},8,["open"]))}}),N0=(b,n)=>n.includes(b)?{status:"error",help:"There already is a column with this name in the table"}:{status:""},v8=U({__name:"NewColumn",props:{open:{type:Boolean},table:{}},emits:["created","cancel"],setup(b,{emit:n}){const l=b,p=f0().params.projectId,V=g(()=>{var C;return((C=l.table)==null?void 0:C.getColumns().map(h=>h.name))||[]}),o=g(()=>N0(m.value.name,V.value)),d={name:"",type:null,default:"",nullable:!0,unique:!1},m=q(d),L=()=>{m.value={...d}},e=q([{value:"reference",label:"reference",isLeaf:!1},...I0.map(C=>({value:C,label:C,isLeaf:!0}))]),B=C=>{if(!C)return;const h=C[C.length-1];switch(C.length){case 0:return;case 1:h.loading=!0,e0.list(p).then(I=>{h.children=I.map(x=>({value:x.id,label:x.name,isLeaf:!1})),h.loading=!1});return;case 2:h.loading=!0,e0.get(p,h.value).then(I=>{h.children=I.getColumns().map(x=>({type:x.type,value:x.id,label:x.name,isLeaf:!0})),h.loading=!1});return}},f=(C,h)=>{if(!!C){if(C.length===1){m.value.type=C[0],m.value.foreignKey=void 0;return}if(C.length===3){const I=h[h.length-1];m.value.type=I.type,m.value.foreignKey={columnId:I.value}}}},z=C=>{const h=C.selectedOptions;return h?h.length===1?h[0].label:h.length===3?`reference to ${h[1].label}(${h[2].label})`:"":"Select type"},Z=q({...{status:"success",message:"",fakeLoading:!1}}),T=()=>{Z.value.fakeLoading=!0,o0()};m0(()=>m.value.type,()=>{!m.value.type||(m.value.default=a1[m.value.type]||"",T())});const o0=u0.exports.debounce(async()=>{if(!m.value.default){Z.value.status="success",Z.value.message="",Z.value.fakeLoading=!1;return}const C=`select (${m.value.default})::${m.value.type} `;H0.executeQuery(p,C,[]).then(h=>{Z.value.status=h.errors.length>0?"error":"success",Z.value.message=h.errors[0]||"",Z.value.fakeLoading=!1})},500);function R(){n("cancel")}async function a0(){if(!!l.table&&!(!m.value.name||!m.value.type))try{await l.table.addColumn(m.value),L(),n("created")}catch(C){C instanceof Error&&g0("Database error",C.message)}}return(C,h)=>(a(),w(t(Z0),{title:"New column",width:720,open:l.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:R},{extra:i(()=>[s(t(b0),null,{default:i(()=>[s(t(O),{onClick:R},{default:i(()=>[E("Cancel")]),_:1}),s(t(O),{type:"primary",onClick:a0},{default:i(()=>[E("Save")]),_:1})]),_:1})]),default:i(()=>[s(t(A0),{model:m.value,layout:"vertical"},{default:i(()=>[s(t(j),{key:"name",label:"Name",required:"","validate-status":o.value.status,help:o.value.help},{default:i(()=>[s(t(Y),{value:m.value.name,"onUpdate:value":h[0]||(h[0]=I=>m.value.name=I)},null,8,["value"])]),_:1},8,["validate-status","help"]),s(t(j),{key:"type",label:"Type",required:""},{default:i(()=>[s(t(x0),{options:e.value,"load-data":B,"display-render":z,"allow-clear":!1,onChange:f},null,8,["options"])]),_:1}),s(t(j),{key:"default-value",label:"Default value","validate-status":Z.value.status,help:Z.value.message},{default:i(()=>[s(t(Y),{value:m.value.default,"onUpdate:value":h[1]||(h[1]=I=>m.value.default=I),placeholder:"NULL",onInput:T},{suffix:i(()=>[Z.value.fakeLoading?(a(),w(t(_0),{key:0})):M("",!0),!Z.value.fakeLoading&&Z.value.status==="success"?(a(),w(t(q0),{key:1,size:"18"})):M("",!0),!Z.value.fakeLoading&&Z.value.status==="error"?(a(),w(t(D0),{key:2,size:"18"})):M("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),s(t(j),{key:"nullable",label:"Nullable"},{default:i(()=>[s(t(i0),{checked:m.value.nullable,"onUpdate:checked":h[2]||(h[2]=I=>m.value.nullable=I)},null,8,["checked"])]),_:1}),s(t(j),{key:"unique",label:"Unique"},{default:i(()=>[s(t(i0),{checked:m.value.unique,"onUpdate:checked":h[3]||(h[3]=I=>m.value.unique=I)},null,8,["checked"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}}),m8={class:"icon"},g8=U({__name:"OrderByIcon",props:{column:{},orderBy:{}},emits:["reorder"],setup(b,{emit:n}){return(l,y)=>{var p,V,o;return a(),u("div",m8,[((p=l.orderBy)==null?void 0:p.column)!==String(l.column.title)?(a(),w(t(Y1),{key:0,size:"16",onClick:y[0]||(y[0]=d=>n("reorder",String(l.column.title)))})):M("",!0),((V=l.orderBy)==null?void 0:V.column)===String(l.column.title)&&l.orderBy.direction==="asc"?(a(),w(t(S1),{key:1,size:"16",onClick:y[1]||(y[1]=d=>n("reorder",String(l.column.title)))})):M("",!0),((o=l.orderBy)==null?void 0:o.column)===String(l.column.title)&&l.orderBy.direction==="desc"?(a(),w(t(t1),{key:2,size:"16",onClick:y[2]||(y[2]=d=>n("reorder",String(l.column.title)))})):M("",!0)])}}});const M0=S0(g8,[["__scopeId","data-v-6ae5cef6"]]),f8={class:"twin-container"},h8={class:"fullwidth-input"},y8={class:"fullwidth-input"},$8={class:"using-container"},V8={class:"fullwidth-input"},A8=U({__name:"UpdateColumn",props:{open:{type:Boolean},table:{},column:{}},emits:["updated","cancel"],setup(b,{emit:n}){const l=b,p=f0().params.projectId,V=q(l.column.type);T0(async()=>{if(!l.column.foreignKey)return;V.value="loading...";const c=await e0.fromColumnId(p,l.column.foreignKey.columnId),v=c.getColumn(l.column.foreignKey.columnId);V.value=`reference to ${c.name}(${v.name})`});const o=g(()=>{var c;return((c=l.table)==null?void 0:c.getColumns().map(v=>v.record.initialState.name))||[]}),d=g(()=>l.column.name===l.column.record.initialState.name?{status:"",help:""}:N0(l.column.name,o.value)),{result:m,loading:L}=$0(async()=>l.table.select({},10,0).then(({total:c})=>c));function e(){l.column.record.resetChanges(),n("cancel")}const f=q({status:"success",message:"",fakeLoading:!1}),z=()=>{f.value.fakeLoading=!0,W()},W=u0.exports.debounce(async()=>{if(!l.column.default){f.value.status="success",f.value.message="",f.value.fakeLoading=!1;return}const c=`select (${l.column.default})::${l.column.type} `,v=await H0.executeQuery(p,c,[]);f.value.status=v.errors.length>0?"error":"success",f.value.message=v.errors[0]||"",f.value.fakeLoading=!1},500),Z=q([{value:"reference",label:"reference",isLeaf:!1},...I0.filter(c=>c!==l.column.type).map(c=>({value:c,label:c,isLeaf:!0}))]),T=c=>{if(!c)return;const v=c[c.length-1];switch(c.length){case 0:return;case 1:v.loading=!0,e0.list(p).then(_=>{v.children=_.map(J=>({value:J.id,label:J.name,isLeaf:!1})),v.loading=!1});return;case 2:v.loading=!0,e0.get(p,v.value).then(_=>{v.children=_.getColumns().map(J=>({type:J.type,value:J.id,label:J.name,isLeaf:!0})),v.loading=!1});return}},s0=c=>{const v=c.selectedOptions;return v?v.length===1?v[0].label:v.length===3?`reference to ${v[1].label}(${v[2].label})`:"":"Select type"},o0=(c,v)=>{if(!!c){if(c.length===1){l.column.type=c[0],l.column.foreignKey=null;return}if(c.length===3){if(l.column.foreignKey&&l.column.foreignKey.columnId===c[2])return;const _=v[v.length-1];l.column.type=_.type,l.column.foreignKey={columnId:_.value}}}};async function R(c){await n1("Are you sure you want to delete this column and all its data?")&&await a0(c)}async function a0(c){var v,_;await((_=(v=l.table)==null?void 0:v.getColumn(c))==null?void 0:_.delete()),n("updated")}const C=()=>m.value===0||L.value?!1:l.column.record.hasChangesDeep("type"),h=q({type:"default"}),I=()=>{l.column.type=l.column.record.initialState.type,h.value={type:"default"}};function x(c,v){return v==="varchar"||c==="int"&&v==="boolean"||c==="boolean"&&v==="int"}m0(()=>l.column.type,()=>{z(),d0.value||(h.value={type:"user-defined",using:l0.value,mandatory:!0})});const d0=g(()=>h.value.type==="default"&&x(l.column.record.initialState.type,l.column.type)),c0=g(()=>!x(l.column.record.initialState.type,l.column.type));function p0(c){c?h.value={type:"default"}:h.value={type:"user-defined",using:l0.value,mandatory:!1}}function h0(c){if(h.value.type==="default")throw new Error("Can't change using when using default casting");h.value.using=c!=null?c:""}const Q=()=>c0.value?!0:C()&&h.value.type==="user-defined",l0=g(()=>`${l.column.record.initialState.name}::${l.column.type}`);async function y0(){if(!l.column)return;let c=h.value.type==="default"?l0.value:h.value.using;m.value===0&&(c=`${l.column.record.initialState.name}::text::${l.column.type}`);try{await l.column.update(c),n("updated")}catch(v){v instanceof Error&&g0("Database error",v.message)}}return(c,v)=>(a(),w(t(Z0),{title:"Edit column",width:720,open:c.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:e},{extra:i(()=>[s(t(b0),null,{default:i(()=>[s(t(O),{onClick:e},{default:i(()=>[E("Cancel")]),_:1}),s(t(O),{type:"primary",onClick:y0},{default:i(()=>[E("Save")]),_:1})]),_:1})]),footer:i(()=>[s(t0,{danger:"",onClick:v[7]||(v[7]=_=>R(String(c.column.id)))},{default:i(()=>[E("Delete")]),_:1})]),default:i(()=>[s(t(A0),{model:c.column,layout:"vertical"},{default:i(()=>[s(t(j),{key:"name",label:"Name","validate-status":d.value.status,help:d.value.help},{default:i(()=>[s(t(Y),{value:c.column.name,"onUpdate:value":v[0]||(v[0]=_=>c.column.name=_)},null,8,["value"])]),_:1},8,["validate-status","help"]),r("div",f8,[r("span",h8,[s(t(j),{key:"type",label:"Current Type"},{default:i(()=>[s(t(O0),{value:V.value,"onUpdate:value":v[1]||(v[1]=_=>V.value=_),"default-active-first-option":"",disabled:""},null,8,["value"])]),_:1})]),s(t(o1),{class:"right-arrow"}),r("span",y8,[s(t(j),{key:"new-type",label:"New Type"},{default:i(()=>[s(t(x0),{options:Z.value,"load-data":T,"display-render":s0,"allow-clear":!0,onClear:I,onChange:o0},null,8,["options"])]),_:1})])]),s(t(j),{key:"default-value",label:"Default value","validate-status":f.value.status,help:f.value.message},{default:i(()=>[s(t(Y),{value:c.column.default,"onUpdate:value":v[2]||(v[2]=_=>c.column.default=_),placeholder:"NULL",onInput:z},{suffix:i(()=>[f.value.fakeLoading?(a(),w(t(_0),{key:0,size:"small"})):M("",!0),!f.value.fakeLoading&&f.value.status==="success"?(a(),w(t(q0),{key:1,size:18})):M("",!0),!f.value.fakeLoading&&f.value.status==="error"?(a(),w(t(D0),{key:2,size:18})):M("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),r("div",$8,[C()?(a(),w(t(j),{key:"default-casting",label:"Use default casting"},{default:i(()=>[s(t(i0),{checked:d0.value,disabled:c0.value,"onUpdate:checked":v[3]||(v[3]=_=>p0(!!_))},null,8,["checked","disabled"])]),_:1})):M("",!0),r("span",V8,[C()?(a(),w(t(j),{key:"using",label:"Using"},{default:i(()=>[s(t(Y),{value:h.value.type==="user-defined"?h.value.using:l0.value,disabled:!Q(),onInput:v[4]||(v[4]=_=>h0(_.target.value))},null,8,["value","disabled"])]),_:1})):M("",!0)])]),s(t(K),null,{default:i(()=>[s(t(j),{key:"nullable",label:"Nullable"},{default:i(()=>[s(t(i0),{checked:c.column.nullable,"onUpdate:checked":v[5]||(v[5]=_=>c.column.nullable=_)},null,8,["checked"])]),_:1}),s(t(j),{key:"unique",label:"Unique"},{default:i(()=>[s(t(i0),{checked:c.column.unique,"onUpdate:checked":v[6]||(v[6]=_=>c.column.unique=_)},null,8,["checked"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}});const H8=S0(A8,[["__scopeId","data-v-5f7e2cd2"]]),b8={style:{overflow:"hidden","white-space":"wrap"}},Z8={key:1},k8={key:0,class:"table-row null"},w8={class:"button-container"},L8={class:"button-container"},M8={class:"button-container"},C8={class:"button-container"},_8=U({__name:"TableData",props:{table:{},loading:{type:Boolean}},emits:["refresh"],setup(b,{emit:n}){var w0;const l=b,y=q(1),p=q(10),V=g(()=>{var $,H;return{total:(H=($=h.value)==null?void 0:$.total)!=null?H:0,current:y.value,pageSize:p.value,totalBoundaryShowSizeChanger:10,showSizeChanger:!0,pageSizeOptions:["10","25","50","100"],onChange:async(D,k)=>{y.value=D,p.value=k,await x()}}}),o=q([]),d=f0(),m=z0(),L=q(typeof d.query.q=="string"?d.query.q:""),e=g(()=>{try{return JSON.parse(d.query.where)}catch{return{}}});m0(L,()=>{m.replace({query:{...d.query,where:JSON.stringify(d.query.value),q:L.value}})});const B=q(!1),f=q({type:"idle"}),z=()=>{B.value=!0,W()},W=u0.exports.debounce(()=>{x(),B.value=!1},500);function Z(){f.value={type:"idle"}}async function T(){Z(),n("refresh")}m0(()=>l.table,()=>{l0(),x()});function s0(){f.value={type:"creating"}}const o0=$=>{if(!l.table)throw new Error("Table not found");f.value={type:"editing",column:l.table.getColumn($)}},R=q(null),a0=$=>{var H;((H=R.value)==null?void 0:H.column)===$?R.value={column:$,direction:R.value.direction==="asc"?"desc":"asc"}:R.value={column:$,direction:"asc"},x()},C=g(()=>{var $;return(($=h.value)==null?void 0:$.rows.length)===1}),{result:h,loading:I,refetch:x}=$0(async()=>{const[{rows:$,total:H},D]=await Promise.all([l.table.select(e.value,(y.value-1)*p.value,p.value,L.value,R.value||void 0),Promise.all(l.table.getColumns().filter(k=>k.foreignKey).map(k=>e0.fromColumnId(d.params.projectId,k.foreignKey.columnId).then(P=>[k.name,P])))]);return{rows:$,total:H,columns:D.reduce((k,[P,N])=>({...k,[P]:N}),{})}}),k0=($,H)=>{var N,X;const D=(N=l.table)==null?void 0:N.getColumns().find(S=>S.name===$);if(!D)return"";const k=(X=h.value)==null?void 0:X.columns[D.name],P=k==null?void 0:k.getColumns().find(S=>{var v0;return S.id===((v0=D.foreignKey)==null?void 0:v0.columnId)});return!k||!P?"":{name:"tableEditor",params:{projectId:d.params.projectId,tableId:k.id},query:{where:JSON.stringify({[P.name]:H})}}},d0=($,H)=>{f.value.type==="adding"&&(f.value.editableItem[$]=H)},c0=($,H)=>{f.value.type==="adding"&&(f.value.editableItem[$]=H?null:"")},p0=()=>[...l.table.getColumns().map($=>{var H;return{key:(H=$.id)!=null?H:"",title:$.name,dataIndex:$.name,width:220,resizable:!0,ellipsis:!1}}),{key:"action",title:"",fixed:"right",width:100,align:"center",resizable:!1,ellipsis:!1}],h0=p0(),Q=q(h0),l0=()=>Q.value=p0();function y0($,H){Q.value=Q.value.map(D=>D.key===H.key?{...D,width:$}:D)}const c=g(()=>{var $;return(($=h.value)==null?void 0:$.rows.map(H=>({key:H.id,...H})))||[]});let v=G0((w0=l.table)==null?void 0:w0.getUnprotectedColumns().reduce(($,H)=>({...$,[H.name]:""}),{}));const _=q(!1);async function J(){if(!(!l.table||!v||f.value.type!=="adding")){_.value=!0;try{f.value.editableItem.id&&(typeof f.value.editableItem.id=="string"||typeof f.value.editableItem.id=="number")?await l.table.updateRow(f.value.editableItem.id.toString(),f.value.editableItem):await l.table.insertRow(f.value.editableItem),x(),Z()}catch($){$ instanceof Error&&g0("Database error",$.message)}finally{_.value=!1}}}const U0=async $=>{if(!(!h.value||!h.value.rows.find(H=>H.id===$)))try{await l.table.deleteRow($),C.value&&(y.value=Math.max(1,y.value-1)),x()}catch(H){H instanceof Error&&g0("Database error",H.message)}},P0=$=>{var X;const H=(X=c.value)==null?void 0:X.filter(S=>$===S.key)[0],D=l.table.getColumns(),k=D.map(S=>S.name),P=D.filter(S=>S.type==="json").map(S=>S.name),N=u0.exports.pick(u0.exports.cloneDeep(H),k);P.forEach(S=>{N[S]&&(N[S]=JSON.stringify(N[S]))}),f.value={type:"adding",editableItem:N}};return($,H)=>{const D=B0("RouterLink");return a(),w(l1,{"full-width":""},{default:i(()=>[s(t(K),{justify:"space-between",style:{"margin-bottom":"16px"},gap:"middle"},{default:i(()=>[s(t(Y),{value:L.value,"onUpdate:value":[H[0]||(H[0]=k=>L.value=k),z],placeholder:"Search",style:{width:"400px"},"allow-clear":""},{prefix:i(()=>[s(t(F0))]),suffix:i(()=>[B.value?(a(),w(t(r1),{key:0})):M("",!0)]),_:1},8,["value"]),s(t(K),{justify:"flex-end",gap:"middle"},{default:i(()=>[s(t0,{type:"primary",onClick:s0},{default:i(()=>[s(t(Ae)),E("Create column ")]),_:1}),Q.value.length===3?(a(),w(t(r0),{key:0,title:"Create your first column before adding data"},{default:i(()=>[s(t0,{disabled:!0,onClick:H[1]||(H[1]=k=>f.value={type:"adding",editableItem:{}})},{default:i(()=>[s(t(L0)),E("Add data ")]),_:1})]),_:1})):(a(),w(t0,{key:1,onClick:H[2]||(H[2]=k=>f.value={type:"adding",editableItem:{}})},{default:i(()=>[s(t(L0)),E("Add data ")]),_:1}))]),_:1})]),_:1}),s(t(J0),{columns:Q.value,"data-source":c.value,pagination:V.value,bordered:"",loading:t(I)||$.loading,scroll:{x:1e3,y:720},size:"small",onResizeColumn:y0},{headerCell:i(({column:k})=>[k.title!=="id"&&k.title!=="created_at"&&k.key!=="action"?(a(),w(t(K),{key:0,align:"center",justify:"space-between",gap:"small"},{default:i(()=>[s(t(K),{style:{overflow:"hidden","white-space":"wrap"},align:"center",gap:"small"},{default:i(()=>[r("span",b8,n0(k.title),1),s(t(K),null,{default:i(()=>[s(M0,{column:k,"order-by":R.value,onReorder:a0},null,8,["column","order-by"])]),_:2},1024)]),_:2},1024),s(t0,{type:"text",onClick:P=>o0(String(k.key))},{default:i(()=>[s(t(Ba),{size:"18"})]),_:2},1032,["onClick"])]),_:2},1024)):(a(),u("span",Z8,[s(t(K),{align:"center",gap:"small"},{default:i(()=>[E(n0(k.title)+" ",1),k.key!=="action"?(a(),w(M0,{key:0,column:k,"order-by":R.value,onReorder:a0},null,8,["column","order-by"])):M("",!0)]),_:2},1024)]))]),bodyCell:i(({column:k,text:P,record:N})=>{var X;return[Q.value.map(S=>S.title).includes(k.dataIndex)?(a(),u(V0,{key:0},[P===null?(a(),u("div",k8,"NULL")):(X=$.table.getColumns().find(S=>S.name===k.dataIndex))!=null&&X.foreignKey?(a(),w(D,{key:1,to:k0(k.dataIndex,P),target:"_blank"},{default:i(()=>[E(n0(P),1)]),_:2},1032,["to"])):(a(),u("div",{key:2,class:K0(["table-row",{expanded:o.value.includes(N.id)}])},n0(P),3))],64)):M("",!0),k.key==="action"?(a(),w(t(K),{key:1,gap:"small",justify:"center"},{default:i(()=>[o.value.includes(N.id)?(a(),w(t(O),{key:0,class:"icons",onClick:S=>o.value=o.value.filter(v0=>v0!==N.id)},{icon:i(()=>[s(t(r0),{title:"Collapse"},{default:i(()=>[r("div",w8,[s(t(Re),{size:15})])]),_:1})]),_:2},1032,["onClick"])):(a(),w(t(O),{key:1,onClick:S=>o.value.push(N.id)},{icon:i(()=>[s(t(r0),{title:"Expand"},{default:i(()=>[r("div",L8,[s(t(ca),{size:15})])]),_:1})]),_:2},1032,["onClick"])),s(t(O),{onClick:S=>P0(N.id)},{icon:i(()=>[s(t(r0),{title:"Edit"},{default:i(()=>[r("div",M8,[s(t(b2),{size:15})])]),_:1})]),_:2},1032,["onClick"]),s(t(W0),{title:"Sure to delete?",onConfirm:S=>U0(N.id)},{default:i(()=>[s(t(O),null,{icon:i(()=>[s(t(r0),{title:"Delete"},{default:i(()=>[r("div",C8,[s(t(Q0),{size:15})])]),_:1})]),_:1})]),_:2},1032,["onConfirm"])]),_:2},1024)):M("",!0)]}),_:1},8,["columns","data-source","pagination","loading"]),f.value.type==="adding"?(a(),w(p8,{key:0,open:f.value.type==="adding",table:l.table,"editable-item":f.value.editableItem,loading:_.value,onUpdateNullable:c0,onRecordChange:d0,onClose:Z,onCancel:Z,onSave:J},null,8,["open","table","editable-item","loading"])):M("",!0),f.value.type==="creating"?(a(),w(v8,{key:1,open:f.value.type==="creating",table:l.table,onClose:Z,onCancel:Z,onCreated:T},null,8,["open","table"])):M("",!0),f.value.type==="editing"?(a(),w(H8,{key:2,open:f.value.type==="editing",column:f.value.column,table:$.table,onUpdated:T,onClose:Z,onCancel:Z},null,8,["open","column","table"])):M("",!0)]),_:1})}}});const S8={style:{"font-size":"16px"}},ll=U({__name:"TableEditor",setup(b){const n=z0(),l=f0(),y=l.params.tableId,p=l.params.projectId,V=q(!1),o=()=>{var f;V.value=!1,(f=d.value)==null||f.table.save(),L()},{result:d,loading:m,refetch:L}=$0(()=>Promise.all([H0.get(p).then(async f=>{const z=await e1.get(f.organizationId);return{project:f,organization:z}}),e0.get(p,y)]).then(([{project:f,organization:z},W])=>X0({project:f,organization:z,table:W}))),e=g(()=>!m.value&&d.value?[{label:"My organizations",path:"/organizations"},{label:d.value.organization.name,path:`/organizations/${d.value.organization.id}`},{label:d.value.project.name,path:`/projects/${d.value.project.id}/tables`}]:void 0);function B(){n.push({name:"tables",params:{projectId:p}})}return(f,z)=>{const W=B0("RouterLink");return a(),w(j0,null,{navbar:i(()=>[s(t(s1),{style:{padding:"5px 25px"},onBack:B},{title:i(()=>[s(t(K),{align:"center",gap:"small"},{default:i(()=>{var Z;return[r("span",S8,n0((Z=t(d))==null?void 0:Z.table.name),1),s(t0,{type:"text",onClick:z[0]||(z[0]=T=>V.value=!0)},{default:i(()=>[s(t(a2),{size:"16"})]),_:1})]}),_:1}),s(t(Y0),{title:"Change table name",open:V.value,onCancel:z[2]||(z[2]=Z=>V.value=!1),onOk:o},{default:i(()=>[t(d)?(a(),w(t(Y),{key:0,value:t(d).table.name,"onUpdate:value":z[1]||(z[1]=Z=>t(d).table.name=Z)},null,8,["value"])):M("",!0)]),_:1},8,["open"])]),subTitle:i(()=>[e.value?(a(),w(t(u1),{key:0,style:{margin:"0px 20px"}},{default:i(()=>[(a(!0),u(V0,null,C0(e.value,(Z,T)=>(a(),w(t(i1),{key:T},{default:i(()=>[s(W,{to:Z.path},{default:i(()=>[E(n0(Z.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):M("",!0)]),_:1})]),content:i(()=>[t(d)?(a(),w(_8,{key:0,loading:t(m),table:t(d).table,onRefresh:z[3]||(z[3]=Z=>t(L)())},null,8,["loading","table"])):M("",!0)]),_:1})}}});export{ll as default}; -//# sourceMappingURL=TableEditor.55d359e8.js.map +import{_ as t0}from"./AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js";import{B as j0}from"./BaseLayout.52f1acec.js";import{a as $0}from"./asyncComputed.703c33fd.js";import{d as U,D as A,f as g,o as a,Y as u,$ as G,S as M,e8 as F,a as r,c as w,w as i,b as s,u as t,bT as O,aG as E,eb as C0,cz as j,bL as Y,eg as E0,bO as R0,aS as V0,cy as A0,ea as f0,e as q,g as m0,ej as u0,by as _0,cX as i0,a0 as S0,X as T0,aB as O0,dh as K,eo as z0,E as G0,r as B0,eK as F0,aW as r0,e9 as n0,ed as K0,cN as W0,ep as Q0,cY as J0,z as X0,cL as Y0}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{O as e1}from"./organization.03372a7f.js";import{P as b0}from"./project.fad91605.js";import{p as I0,T as e0,d as a1}from"./tables.318f703e.js";import{C as l1}from"./ContentLayout.f92ff80c.js";import{p as g0}from"./popupNotifcation.a0a6244b.js";import{A as H0}from"./index.a82e0ed1.js";import{A as Z0}from"./index.7c84a9f5.js";import{H as q0}from"./PhCheckCircle.vue.e567d5b0.js";import{A as x0}from"./index.d4b99d43.js";import{G as t1}from"./PhArrowDown.vue.1c758684.js";import{a as n1}from"./ant-design.d89b18ab.js";import{G as o1}from"./PhCaretRight.vue.5db53029.js";import{L as r1}from"./LoadingOutlined.bcfc8c20.js";import{B as u1,A as i1,b as s1}from"./index.3b2f4dca.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";import"./Badge.f6241be2.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";(function(){try{var H=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(H._sentryDebugIds=H._sentryDebugIds||{},H._sentryDebugIds[n]="dd4a31eb-b3bd-41c0-a3a9-cd5bfe30bed7",H._sentryDebugIdIdentifier="sentry-dbid-dd4a31eb-b3bd-41c0-a3a9-cd5bfe30bed7")}catch{}})();const d1=["width","height","fill","transform"],c1={key:0},p1=r("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"},null,-1),v1=[p1],m1={key:1},g1=r("path",{d:"M200,112H56l72-72Z",opacity:"0.2"},null,-1),f1=r("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"},null,-1),h1=[g1,f1],y1={key:2},$1=r("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"},null,-1),V1=[$1],A1={key:3},b1=r("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"},null,-1),H1=[b1],Z1={key:4},k1=r("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"},null,-1),w1=[k1],L1={key:5},M1=r("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"},null,-1),C1=[M1],_1={name:"PhArrowUp"},S1=U({..._1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",c1,v1)):o.value==="duotone"?(a(),u("g",m1,h1)):o.value==="fill"?(a(),u("g",y1,V1)):o.value==="light"?(a(),u("g",A1,H1)):o.value==="regular"?(a(),u("g",Z1,w1)):o.value==="thin"?(a(),u("g",L1,C1)):M("",!0)],16,d1))}}),z1=["width","height","fill","transform"],B1={key:0},I1=r("path",{d:"M120.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L68,179V48a12,12,0,0,1,24,0V179l11.51-11.52A12,12,0,0,1,120.49,167.51Zm96-96-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17L164,77V208a12,12,0,0,0,24,0V77l11.51,11.52a12,12,0,0,0,17-17Z"},null,-1),q1=[I1],x1={key:1},D1=r("path",{d:"M176,48V208H80V48Z",opacity:"0.2"},null,-1),N1=r("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"},null,-1),U1=[D1,N1],P1={key:2},j1=r("path",{d:"M119.39,172.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,48,168H72V48a8,8,0,0,1,16,0V168h24A8,8,0,0,1,119.39,172.94Zm94.27-98.6-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,144,88h24V208a8,8,0,0,0,16,0V88h24a8,8,0,0,0,5.66-13.66Z"},null,-1),E1=[j1],R1={key:3},T1=r("path",{d:"M116.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L74,193.51V48a6,6,0,0,1,12,0V193.51l21.76-21.75A6,6,0,0,1,116.24,171.76Zm96-96-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48L170,62.49V208a6,6,0,0,0,12,0V62.49l21.76,21.75a6,6,0,0,0,8.48-8.48Z"},null,-1),O1=[T1],G1={key:4},F1=r("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"},null,-1),K1=[F1],W1={key:5},Q1=r("path",{d:"M114.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L76,198.34V48a4,4,0,0,1,8,0V198.34l25.17-25.17A4,4,0,0,1,114.83,173.17Zm96-96-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66L172,57.66V208a4,4,0,0,0,8,0V57.66l25.17,25.17a4,4,0,1,0,5.66-5.66Z"},null,-1),J1=[Q1],X1={name:"PhArrowsDownUp"},Y1=U({...X1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",B1,q1)):o.value==="duotone"?(a(),u("g",x1,U1)):o.value==="fill"?(a(),u("g",P1,E1)):o.value==="light"?(a(),u("g",R1,O1)):o.value==="regular"?(a(),u("g",G1,K1)):o.value==="thin"?(a(),u("g",W1,J1)):M("",!0)],16,z1))}}),ee=["width","height","fill","transform"],ae={key:0},le=r("path",{d:"M80,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H80a20,20,0,0,0,20-20V48A20,20,0,0,0,80,28ZM76,204H60V52H76ZM156,28H132a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h24a20,20,0,0,0,20-20V48A20,20,0,0,0,156,28Zm-4,176H136V52h16Zm100-76a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,252,128Z"},null,-1),te=[le],ne={key:1},oe=r("path",{d:"M88,48V208a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H80A8,8,0,0,1,88,48Zm64-8H128a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h24a8,8,0,0,0,8-8V48A8,8,0,0,0,152,40Z",opacity:"0.2"},null,-1),re=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),ue=[oe,re],ie={key:2},se=r("path",{d:"M96,48V208a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H80A16,16,0,0,1,96,48Zm56-16H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm88,88H224V104a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V136h16a8,8,0,0,0,0-16Z"},null,-1),de=[se],ce={key:3},pe=r("path",{d:"M80,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H80a14,14,0,0,0,14-14V48A14,14,0,0,0,80,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H80a2,2,0,0,1,2,2ZM152,34H128a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V48A14,14,0,0,0,152,34Zm2,174a2,2,0,0,1-2,2H128a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h24a2,2,0,0,1,2,2Zm92-80a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V134H192a6,6,0,0,1,0-12h18V104a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,128Z"},null,-1),ve=[pe],me={key:4},ge=r("path",{d:"M80,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H80a16,16,0,0,0,16-16V48A16,16,0,0,0,80,32Zm0,176H56V48H80ZM152,32H128a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V48A16,16,0,0,0,152,32Zm0,176H128V48h24Zm96-80a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V136H192a8,8,0,0,1,0-16h16V104a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,128Z"},null,-1),fe=[ge],he={key:5},ye=r("path",{d:"M80,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H80a12,12,0,0,0,12-12V48A12,12,0,0,0,80,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H80a4,4,0,0,1,4,4ZM152,36H128a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V48A12,12,0,0,0,152,36Zm4,172a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h24a4,4,0,0,1,4,4Zm88-80a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V132H192a4,4,0,0,1,0-8h20V104a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,128Z"},null,-1),$e=[ye],Ve={name:"PhColumnsPlusRight"},Ae=U({...Ve,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",ae,te)):o.value==="duotone"?(a(),u("g",ne,ue)):o.value==="fill"?(a(),u("g",ie,de)):o.value==="light"?(a(),u("g",ce,ve)):o.value==="regular"?(a(),u("g",me,fe)):o.value==="thin"?(a(),u("g",he,$e)):M("",!0)],16,ee))}}),be=["width","height","fill","transform"],He={key:0},Ze=r("path",{d:"M148,96V48a12,12,0,0,1,24,0V84h36a12,12,0,0,1,0,24H160A12,12,0,0,1,148,96ZM96,148H48a12,12,0,0,0,0,24H84v36a12,12,0,0,0,24,0V160A12,12,0,0,0,96,148Zm112,0H160a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V172h36a12,12,0,0,0,0-24ZM96,36A12,12,0,0,0,84,48V84H48a12,12,0,0,0,0,24H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Z"},null,-1),ke=[Ze],we={key:1},Le=r("path",{d:"M208,64V192a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V64A16,16,0,0,1,64,48H192A16,16,0,0,1,208,64Z",opacity:"0.2"},null,-1),Me=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),Ce=[Le,Me],_e={key:2},Se=r("path",{d:"M152,96V48a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,208,104H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0-5.66,13.66l48,48A8,8,0,0,0,104,208V160A8,8,0,0,0,96,152ZM99.06,40.61a8,8,0,0,0-8.72,1.73l-48,48A8,8,0,0,0,48,104H96a8,8,0,0,0,8-8V48A8,8,0,0,0,99.06,40.61ZM208,152H160a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,208,152Z"},null,-1),ze=[Se],Be={key:3},Ie=r("path",{d:"M154,96V48a6,6,0,0,1,12,0V90h42a6,6,0,0,1,0,12H160A6,6,0,0,1,154,96ZM96,154H48a6,6,0,0,0,0,12H90v42a6,6,0,0,0,12,0V160A6,6,0,0,0,96,154Zm112,0H160a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V166h42a6,6,0,0,0,0-12ZM96,42a6,6,0,0,0-6,6V90H48a6,6,0,0,0,0,12H96a6,6,0,0,0,6-6V48A6,6,0,0,0,96,42Z"},null,-1),qe=[Ie],xe={key:4},De=r("path",{d:"M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"},null,-1),Ne=[De],Ue={key:5},Pe=r("path",{d:"M156,96V48a4,4,0,0,1,8,0V92h44a4,4,0,0,1,0,8H160A4,4,0,0,1,156,96ZM96,156H48a4,4,0,0,0,0,8H92v44a4,4,0,0,0,8,0V160A4,4,0,0,0,96,156Zm112,0H160a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V164h44a4,4,0,0,0,0-8ZM96,44a4,4,0,0,0-4,4V92H48a4,4,0,0,0,0,8H96a4,4,0,0,0,4-4V48A4,4,0,0,0,96,44Z"},null,-1),je=[Pe],Ee={name:"PhCornersIn"},Re=U({...Ee,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",He,ke)):o.value==="duotone"?(a(),u("g",we,Ce)):o.value==="fill"?(a(),u("g",_e,ze)):o.value==="light"?(a(),u("g",Be,qe)):o.value==="regular"?(a(),u("g",xe,Ne)):o.value==="thin"?(a(),u("g",Ue,je)):M("",!0)],16,be))}}),Te=["width","height","fill","transform"],Oe={key:0},Ge=r("path",{d:"M220,48V88a12,12,0,0,1-24,0V60H168a12,12,0,0,1,0-24h40A12,12,0,0,1,220,48ZM88,196H60V168a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H88a12,12,0,0,0,0-24Zm120-40a12,12,0,0,0-12,12v28H168a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156ZM88,36H48A12,12,0,0,0,36,48V88a12,12,0,0,0,24,0V60H88a12,12,0,0,0,0-24Z"},null,-1),Fe=[Ge],Ke={key:1},We=r("path",{d:"M208,48V208H48V48Z",opacity:"0.2"},null,-1),Qe=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),Je=[We,Qe],Xe={key:2},Ye=r("path",{d:"M93.66,202.34A8,8,0,0,1,88,216H48a8,8,0,0,1-8-8V168a8,8,0,0,1,13.66-5.66ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,88,40ZM211.06,160.61a8,8,0,0,0-8.72,1.73l-40,40A8,8,0,0,0,168,216h40a8,8,0,0,0,8-8V168A8,8,0,0,0,211.06,160.61ZM208,40H168a8,8,0,0,0-5.66,13.66l40,40A8,8,0,0,0,216,88V48A8,8,0,0,0,208,40Z"},null,-1),ea=[Ye],aa={key:3},la=r("path",{d:"M214,48V88a6,6,0,0,1-12,0V54H168a6,6,0,0,1,0-12h40A6,6,0,0,1,214,48ZM88,202H54V168a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H88a6,6,0,0,0,0-12Zm120-40a6,6,0,0,0-6,6v34H168a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V168A6,6,0,0,0,208,162ZM88,42H48a6,6,0,0,0-6,6V88a6,6,0,0,0,12,0V54H88a6,6,0,0,0,0-12Z"},null,-1),ta=[la],na={key:4},oa=r("path",{d:"M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"},null,-1),ra=[oa],ua={key:5},ia=r("path",{d:"M212,48V88a4,4,0,0,1-8,0V52H168a4,4,0,0,1,0-8h40A4,4,0,0,1,212,48ZM88,204H52V168a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H88a4,4,0,0,0,0-8Zm120-40a4,4,0,0,0-4,4v36H168a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V168A4,4,0,0,0,208,164ZM88,44H48a4,4,0,0,0-4,4V88a4,4,0,0,0,8,0V52H88a4,4,0,0,0,0-8Z"},null,-1),sa=[ia],da={name:"PhCornersOut"},ca=U({...da,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",Oe,Fe)):o.value==="duotone"?(a(),u("g",Ke,Je)):o.value==="fill"?(a(),u("g",Xe,ea)):o.value==="light"?(a(),u("g",aa,ta)):o.value==="regular"?(a(),u("g",na,ra)):o.value==="thin"?(a(),u("g",ua,sa)):M("",!0)],16,Te))}}),pa=["width","height","fill","transform"],va={key:0},ma=r("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"},null,-1),ga=[ma],fa={key:1},ha=r("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),ya=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),$a=[ha,ya],Va={key:2},Aa=r("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),ba=[Aa],Ha={key:3},Za=r("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"},null,-1),ka=[Za],wa={key:4},La=r("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"},null,-1),Ma=[La],Ca={key:5},_a=r("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"},null,-1),Sa=[_a],za={name:"PhGear"},Ba=U({...za,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",va,ga)):o.value==="duotone"?(a(),u("g",fa,$a)):o.value==="fill"?(a(),u("g",Va,ba)):o.value==="light"?(a(),u("g",Ha,ka)):o.value==="regular"?(a(),u("g",wa,Ma)):o.value==="thin"?(a(),u("g",Ca,Sa)):M("",!0)],16,pa))}}),Ia=["width","height","fill","transform"],qa={key:0},xa=r("path",{d:"M232.49,55.51l-32-32a12,12,0,0,0-17,0l-96,96A12,12,0,0,0,84,128v32a12,12,0,0,0,12,12h32a12,12,0,0,0,8.49-3.51l96-96A12,12,0,0,0,232.49,55.51ZM192,49l15,15L196,75,181,60Zm-69,99H108V133l56-56,15,15Zm105-7.43V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28h67.43a12,12,0,0,1,0,24H52V204H204V140.57a12,12,0,0,1,24,0Z"},null,-1),Da=[xa],Na={key:1},Ua=r("path",{d:"M200,88l-72,72H96V128l72-72Z",opacity:"0.2"},null,-1),Pa=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),ja=[Ua,Pa],Ea={key:2},Ra=r("path",{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"},null,-1),Ta=[Ra],Oa={key:3},Ga=r("path",{d:"M228.24,59.76l-32-32a6,6,0,0,0-8.48,0l-96,96A6,6,0,0,0,90,128v32a6,6,0,0,0,6,6h32a6,6,0,0,0,4.24-1.76l96-96A6,6,0,0,0,228.24,59.76ZM125.51,154H102V130.49l66-66L191.51,88ZM200,79.51,176.49,56,192,40.49,215.51,64ZM222,128v80a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34h80a6,6,0,0,1,0,12H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2V128a6,6,0,0,1,12,0Z"},null,-1),Fa=[Ga],Ka={key:4},Wa=r("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"},null,-1),Qa=[Wa],Ja={key:5},Xa=r("path",{d:"M226.83,61.17l-32-32a4,4,0,0,0-5.66,0l-96,96A4,4,0,0,0,92,128v32a4,4,0,0,0,4,4h32a4,4,0,0,0,2.83-1.17l96-96A4,4,0,0,0,226.83,61.17ZM126.34,156H100V129.66l68-68L194.34,88ZM200,82.34,173.66,56,192,37.66,218.34,64ZM220,128v80a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36h80a4,4,0,0,1,0,8H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V128a4,4,0,0,1,8,0Z"},null,-1),Ya=[Xa],e2={name:"PhNotePencil"},a2=U({...e2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",qa,Da)):o.value==="duotone"?(a(),u("g",Na,ja)):o.value==="fill"?(a(),u("g",Ea,Ta)):o.value==="light"?(a(),u("g",Oa,Fa)):o.value==="regular"?(a(),u("g",Ka,Qa)):o.value==="thin"?(a(),u("g",Ja,Ya)):M("",!0)],16,Ia))}}),l2=["width","height","fill","transform"],t2={key:0},n2=r("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),o2=[n2],r2={key:1},u2=r("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),i2=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM48,163.31l88-88L180.69,120l-88,88H48Zm144-54.62L147.32,64l24-24L216,84.69Z"},null,-1),s2=[u2,i2],d2={key:2},c2=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),p2=[c2],v2={key:3},m2=r("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM93.52,210H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.49,183.52,120ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"},null,-1),g2=[m2],f2={key:4},h2=r("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.69,147.32,64l24-24L216,84.69Z"},null,-1),y2=[h2],$2={key:5},V2=r("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM94.34,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.82L136,69.66,186.35,120ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"},null,-1),A2=[V2],b2={name:"PhPencilSimpleLine"},H2=U({...b2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",t2,o2)):o.value==="duotone"?(a(),u("g",r2,s2)):o.value==="fill"?(a(),u("g",d2,p2)):o.value==="light"?(a(),u("g",v2,g2)):o.value==="regular"?(a(),u("g",f2,y2)):o.value==="thin"?(a(),u("g",$2,A2)):M("",!0)],16,l2))}}),Z2=["width","height","fill","transform"],k2={key:0},w2=r("path",{d:"M208,112H48a20,20,0,0,0-20,20v24a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V132A20,20,0,0,0,208,112Zm-4,40H52V136H204Zm4-116H48A20,20,0,0,0,28,56V80a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V56A20,20,0,0,0,208,36Zm-4,40H52V60H204ZM160,220a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,160,220Z"},null,-1),L2=[w2],M2={key:1},C2=r("path",{d:"M216,128v24a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V128a8,8,0,0,1,8-8H208A8,8,0,0,1,216,128Zm-8-80H48a8,8,0,0,0-8,8V80a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V56A8,8,0,0,0,208,48Z",opacity:"0.2"},null,-1),_2=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),S2=[C2,_2],z2={key:2},B2=r("path",{d:"M224,128v24a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128a16,16,0,0,1,16-16H208A16,16,0,0,1,224,128ZM208,40H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40ZM152,208H136V192a8,8,0,0,0-16,0v16H104a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V224h16a8,8,0,0,0,0-16Z"},null,-1),I2=[B2],q2={key:3},x2=r("path",{d:"M208,114H48a14,14,0,0,0-14,14v24a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V128A14,14,0,0,0,208,114Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V128a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,42H48A14,14,0,0,0,34,56V80A14,14,0,0,0,48,94H208a14,14,0,0,0,14-14V56A14,14,0,0,0,208,42Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM158,216a6,6,0,0,1-6,6H134v18a6,6,0,0,1-12,0V222H104a6,6,0,0,1,0-12h18V192a6,6,0,0,1,12,0v18h18A6,6,0,0,1,158,216Z"},null,-1),D2=[x2],N2={key:4},U2=r("path",{d:"M208,112H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V128A16,16,0,0,0,208,112Zm0,40H48V128H208v24Zm0-112H48A16,16,0,0,0,32,56V80A16,16,0,0,0,48,96H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,40H48V56H208V80ZM160,216a8,8,0,0,1-8,8H136v16a8,8,0,0,1-16,0V224H104a8,8,0,0,1,0-16h16V192a8,8,0,0,1,16,0v16h16A8,8,0,0,1,160,216Z"},null,-1),P2=[U2],j2={key:5},E2=r("path",{d:"M208,116H48a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V128A12,12,0,0,0,208,116Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V128a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,44H48A12,12,0,0,0,36,56V80A12,12,0,0,0,48,92H208a12,12,0,0,0,12-12V56A12,12,0,0,0,208,44Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM156,216a4,4,0,0,1-4,4H132v20a4,4,0,0,1-8,0V220H104a4,4,0,0,1,0-8h20V192a4,4,0,0,1,8,0v20h20A4,4,0,0,1,156,216Z"},null,-1),R2=[E2],T2={name:"PhRowsPlusBottom"},L0=U({...T2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",k2,L2)):o.value==="duotone"?(a(),u("g",M2,S2)):o.value==="fill"?(a(),u("g",z2,I2)):o.value==="light"?(a(),u("g",q2,D2)):o.value==="regular"?(a(),u("g",N2,P2)):o.value==="thin"?(a(),u("g",j2,R2)):M("",!0)],16,Z2))}}),O2=["width","height","fill","transform"],G2={key:0},F2=r("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1),K2=[F2],W2={key:1},Q2=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),J2=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),X2=[Q2,J2],Y2={key:2},e8=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1),a8=[e8],l8={key:3},t8=r("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1),n8=[t8],o8={key:4},r8=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1),u8=[r8],i8={key:5},s8=r("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1),d8=[s8],c8={name:"PhWarningCircle"},D0=U({...c8,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(H){const n=H,l=A("weight","regular"),y=A("size","1em"),p=A("color","currentColor"),V=A("mirrored",!1),o=g(()=>{var e;return(e=n.weight)!=null?e:l}),d=g(()=>{var e;return(e=n.size)!=null?e:y}),m=g(()=>{var e;return(e=n.color)!=null?e:p}),L=g(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(e,B)=>(a(),u("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:m.value,transform:L.value},e.$attrs),[G(e.$slots,"default"),o.value==="bold"?(a(),u("g",G2,K2)):o.value==="duotone"?(a(),u("g",W2,X2)):o.value==="fill"?(a(),u("g",Y2,a8)):o.value==="light"?(a(),u("g",l8,n8)):o.value==="regular"?(a(),u("g",o8,u8)):o.value==="thin"?(a(),u("g",i8,d8)):M("",!0)],16,O2))}}),p8=U({__name:"AddData",props:{open:{type:Boolean},editableItem:{},table:{},loading:{type:Boolean}},emits:["save","close","update-nullable","record-change"],setup(H,{emit:n}){return(l,y)=>(a(),w(t(Z0),{title:"Data",width:720,open:l.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:y[2]||(y[2]=p=>n("close"))},{extra:i(()=>[s(t(H0),null,{default:i(()=>[s(t(O),{onClick:y[0]||(y[0]=p=>n("close"))},{default:i(()=>[E("Cancel")]),_:1}),s(t(O),{type:"primary",loading:l.loading,onClick:y[1]||(y[1]=p=>n("save"))},{default:i(()=>[E("Save")]),_:1},8,["loading"])]),_:1})]),default:i(()=>[s(t(A0),{model:l.editableItem,layout:"vertical"},{default:i(()=>[(a(!0),u(V0,null,C0(l.table.getUnprotectedColumns(),p=>(a(),w(t(j),{key:p.id,label:p.name,required:!p.nullable},{default:i(()=>[l.editableItem?(a(),w(t(Y),{key:0,placeholder:p.type,value:l.editableItem[p.name],disabled:l.editableItem[p.name]===null,"onUpdate:value":V=>n("record-change",p.name,V)},E0({_:2},[p.nullable?{name:"addonAfter",fn:i(()=>[s(t(R0),{checked:l.editableItem[p.name]===null,"onUpdate:checked":V=>n("update-nullable",p.name,V)},{default:i(()=>[E(" NULL ")]),_:2},1032,["checked","onUpdate:checked"])]),key:"0"}:void 0]),1032,["placeholder","value","disabled","onUpdate:value"])):M("",!0)]),_:2},1032,["label","required"]))),128))]),_:1},8,["model"])]),_:1},8,["open"]))}}),N0=(H,n)=>n.includes(H)?{status:"error",help:"There already is a column with this name in the table"}:{status:""},v8=U({__name:"NewColumn",props:{open:{type:Boolean},table:{}},emits:["created","cancel"],setup(H,{emit:n}){const l=H,p=f0().params.projectId,V=g(()=>{var C;return((C=l.table)==null?void 0:C.getColumns().map(h=>h.name))||[]}),o=g(()=>N0(m.value.name,V.value)),d={name:"",type:null,default:"",nullable:!0,unique:!1},m=q(d),L=()=>{m.value={...d}},e=q([{value:"reference",label:"reference",isLeaf:!1},...I0.map(C=>({value:C,label:C,isLeaf:!0}))]),B=C=>{if(!C)return;const h=C[C.length-1];switch(C.length){case 0:return;case 1:h.loading=!0,e0.list(p).then(I=>{h.children=I.map(x=>({value:x.id,label:x.name,isLeaf:!1})),h.loading=!1});return;case 2:h.loading=!0,e0.get(p,h.value).then(I=>{h.children=I.getColumns().map(x=>({type:x.type,value:x.id,label:x.name,isLeaf:!0})),h.loading=!1});return}},f=(C,h)=>{if(!!C){if(C.length===1){m.value.type=C[0],m.value.foreignKey=void 0;return}if(C.length===3){const I=h[h.length-1];m.value.type=I.type,m.value.foreignKey={columnId:I.value}}}},z=C=>{const h=C.selectedOptions;return h?h.length===1?h[0].label:h.length===3?`reference to ${h[1].label}(${h[2].label})`:"":"Select type"},Z=q({...{status:"success",message:"",fakeLoading:!1}}),T=()=>{Z.value.fakeLoading=!0,o0()};m0(()=>m.value.type,()=>{!m.value.type||(m.value.default=a1[m.value.type]||"",T())});const o0=u0.exports.debounce(async()=>{if(!m.value.default){Z.value.status="success",Z.value.message="",Z.value.fakeLoading=!1;return}const C=`select (${m.value.default})::${m.value.type} `;b0.executeQuery(p,C,[]).then(h=>{Z.value.status=h.errors.length>0?"error":"success",Z.value.message=h.errors[0]||"",Z.value.fakeLoading=!1})},500);function R(){n("cancel")}async function a0(){if(!!l.table&&!(!m.value.name||!m.value.type))try{await l.table.addColumn(m.value),L(),n("created")}catch(C){C instanceof Error&&g0("Database error",C.message)}}return(C,h)=>(a(),w(t(Z0),{title:"New column",width:720,open:l.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:R},{extra:i(()=>[s(t(H0),null,{default:i(()=>[s(t(O),{onClick:R},{default:i(()=>[E("Cancel")]),_:1}),s(t(O),{type:"primary",onClick:a0},{default:i(()=>[E("Save")]),_:1})]),_:1})]),default:i(()=>[s(t(A0),{model:m.value,layout:"vertical"},{default:i(()=>[s(t(j),{key:"name",label:"Name",required:"","validate-status":o.value.status,help:o.value.help},{default:i(()=>[s(t(Y),{value:m.value.name,"onUpdate:value":h[0]||(h[0]=I=>m.value.name=I)},null,8,["value"])]),_:1},8,["validate-status","help"]),s(t(j),{key:"type",label:"Type",required:""},{default:i(()=>[s(t(x0),{options:e.value,"load-data":B,"display-render":z,"allow-clear":!1,onChange:f},null,8,["options"])]),_:1}),s(t(j),{key:"default-value",label:"Default value","validate-status":Z.value.status,help:Z.value.message},{default:i(()=>[s(t(Y),{value:m.value.default,"onUpdate:value":h[1]||(h[1]=I=>m.value.default=I),placeholder:"NULL",onInput:T},{suffix:i(()=>[Z.value.fakeLoading?(a(),w(t(_0),{key:0})):M("",!0),!Z.value.fakeLoading&&Z.value.status==="success"?(a(),w(t(q0),{key:1,size:"18"})):M("",!0),!Z.value.fakeLoading&&Z.value.status==="error"?(a(),w(t(D0),{key:2,size:"18"})):M("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),s(t(j),{key:"nullable",label:"Nullable"},{default:i(()=>[s(t(i0),{checked:m.value.nullable,"onUpdate:checked":h[2]||(h[2]=I=>m.value.nullable=I)},null,8,["checked"])]),_:1}),s(t(j),{key:"unique",label:"Unique"},{default:i(()=>[s(t(i0),{checked:m.value.unique,"onUpdate:checked":h[3]||(h[3]=I=>m.value.unique=I)},null,8,["checked"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}}),m8={class:"icon"},g8=U({__name:"OrderByIcon",props:{column:{},orderBy:{}},emits:["reorder"],setup(H,{emit:n}){return(l,y)=>{var p,V,o;return a(),u("div",m8,[((p=l.orderBy)==null?void 0:p.column)!==String(l.column.title)?(a(),w(t(Y1),{key:0,size:"16",onClick:y[0]||(y[0]=d=>n("reorder",String(l.column.title)))})):M("",!0),((V=l.orderBy)==null?void 0:V.column)===String(l.column.title)&&l.orderBy.direction==="asc"?(a(),w(t(S1),{key:1,size:"16",onClick:y[1]||(y[1]=d=>n("reorder",String(l.column.title)))})):M("",!0),((o=l.orderBy)==null?void 0:o.column)===String(l.column.title)&&l.orderBy.direction==="desc"?(a(),w(t(t1),{key:2,size:"16",onClick:y[2]||(y[2]=d=>n("reorder",String(l.column.title)))})):M("",!0)])}}});const M0=S0(g8,[["__scopeId","data-v-6ae5cef6"]]),f8={class:"twin-container"},h8={class:"fullwidth-input"},y8={class:"fullwidth-input"},$8={class:"using-container"},V8={class:"fullwidth-input"},A8=U({__name:"UpdateColumn",props:{open:{type:Boolean},table:{},column:{}},emits:["updated","cancel"],setup(H,{emit:n}){const l=H,p=f0().params.projectId,V=q(l.column.type);T0(async()=>{if(!l.column.foreignKey)return;V.value="loading...";const c=await e0.fromColumnId(p,l.column.foreignKey.columnId),v=c.getColumn(l.column.foreignKey.columnId);V.value=`reference to ${c.name}(${v.name})`});const o=g(()=>{var c;return((c=l.table)==null?void 0:c.getColumns().map(v=>v.record.initialState.name))||[]}),d=g(()=>l.column.name===l.column.record.initialState.name?{status:"",help:""}:N0(l.column.name,o.value)),{result:m,loading:L}=$0(async()=>l.table.select({},10,0).then(({total:c})=>c));function e(){l.column.record.resetChanges(),n("cancel")}const f=q({status:"success",message:"",fakeLoading:!1}),z=()=>{f.value.fakeLoading=!0,W()},W=u0.exports.debounce(async()=>{if(!l.column.default){f.value.status="success",f.value.message="",f.value.fakeLoading=!1;return}const c=`select (${l.column.default})::${l.column.type} `,v=await b0.executeQuery(p,c,[]);f.value.status=v.errors.length>0?"error":"success",f.value.message=v.errors[0]||"",f.value.fakeLoading=!1},500),Z=q([{value:"reference",label:"reference",isLeaf:!1},...I0.filter(c=>c!==l.column.type).map(c=>({value:c,label:c,isLeaf:!0}))]),T=c=>{if(!c)return;const v=c[c.length-1];switch(c.length){case 0:return;case 1:v.loading=!0,e0.list(p).then(_=>{v.children=_.map(J=>({value:J.id,label:J.name,isLeaf:!1})),v.loading=!1});return;case 2:v.loading=!0,e0.get(p,v.value).then(_=>{v.children=_.getColumns().map(J=>({type:J.type,value:J.id,label:J.name,isLeaf:!0})),v.loading=!1});return}},s0=c=>{const v=c.selectedOptions;return v?v.length===1?v[0].label:v.length===3?`reference to ${v[1].label}(${v[2].label})`:"":"Select type"},o0=(c,v)=>{if(!!c){if(c.length===1){l.column.type=c[0],l.column.foreignKey=null;return}if(c.length===3){if(l.column.foreignKey&&l.column.foreignKey.columnId===c[2])return;const _=v[v.length-1];l.column.type=_.type,l.column.foreignKey={columnId:_.value}}}};async function R(c){await n1("Are you sure you want to delete this column and all its data?")&&await a0(c)}async function a0(c){var v,_;await((_=(v=l.table)==null?void 0:v.getColumn(c))==null?void 0:_.delete()),n("updated")}const C=()=>m.value===0||L.value?!1:l.column.record.hasChangesDeep("type"),h=q({type:"default"}),I=()=>{l.column.type=l.column.record.initialState.type,h.value={type:"default"}};function x(c,v){return v==="varchar"||c==="int"&&v==="boolean"||c==="boolean"&&v==="int"}m0(()=>l.column.type,()=>{z(),d0.value||(h.value={type:"user-defined",using:l0.value,mandatory:!0})});const d0=g(()=>h.value.type==="default"&&x(l.column.record.initialState.type,l.column.type)),c0=g(()=>!x(l.column.record.initialState.type,l.column.type));function p0(c){c?h.value={type:"default"}:h.value={type:"user-defined",using:l0.value,mandatory:!1}}function h0(c){if(h.value.type==="default")throw new Error("Can't change using when using default casting");h.value.using=c!=null?c:""}const Q=()=>c0.value?!0:C()&&h.value.type==="user-defined",l0=g(()=>`${l.column.record.initialState.name}::${l.column.type}`);async function y0(){if(!l.column)return;let c=h.value.type==="default"?l0.value:h.value.using;m.value===0&&(c=`${l.column.record.initialState.name}::text::${l.column.type}`);try{await l.column.update(c),n("updated")}catch(v){v instanceof Error&&g0("Database error",v.message)}}return(c,v)=>(a(),w(t(Z0),{title:"Edit column",width:720,open:c.open,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:e},{extra:i(()=>[s(t(H0),null,{default:i(()=>[s(t(O),{onClick:e},{default:i(()=>[E("Cancel")]),_:1}),s(t(O),{type:"primary",onClick:y0},{default:i(()=>[E("Save")]),_:1})]),_:1})]),footer:i(()=>[s(t0,{danger:"",onClick:v[7]||(v[7]=_=>R(String(c.column.id)))},{default:i(()=>[E("Delete")]),_:1})]),default:i(()=>[s(t(A0),{model:c.column,layout:"vertical"},{default:i(()=>[s(t(j),{key:"name",label:"Name","validate-status":d.value.status,help:d.value.help},{default:i(()=>[s(t(Y),{value:c.column.name,"onUpdate:value":v[0]||(v[0]=_=>c.column.name=_)},null,8,["value"])]),_:1},8,["validate-status","help"]),r("div",f8,[r("span",h8,[s(t(j),{key:"type",label:"Current Type"},{default:i(()=>[s(t(O0),{value:V.value,"onUpdate:value":v[1]||(v[1]=_=>V.value=_),"default-active-first-option":"",disabled:""},null,8,["value"])]),_:1})]),s(t(o1),{class:"right-arrow"}),r("span",y8,[s(t(j),{key:"new-type",label:"New Type"},{default:i(()=>[s(t(x0),{options:Z.value,"load-data":T,"display-render":s0,"allow-clear":!0,onClear:I,onChange:o0},null,8,["options"])]),_:1})])]),s(t(j),{key:"default-value",label:"Default value","validate-status":f.value.status,help:f.value.message},{default:i(()=>[s(t(Y),{value:c.column.default,"onUpdate:value":v[2]||(v[2]=_=>c.column.default=_),placeholder:"NULL",onInput:z},{suffix:i(()=>[f.value.fakeLoading?(a(),w(t(_0),{key:0,size:"small"})):M("",!0),!f.value.fakeLoading&&f.value.status==="success"?(a(),w(t(q0),{key:1,size:18})):M("",!0),!f.value.fakeLoading&&f.value.status==="error"?(a(),w(t(D0),{key:2,size:18})):M("",!0)]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),r("div",$8,[C()?(a(),w(t(j),{key:"default-casting",label:"Use default casting"},{default:i(()=>[s(t(i0),{checked:d0.value,disabled:c0.value,"onUpdate:checked":v[3]||(v[3]=_=>p0(!!_))},null,8,["checked","disabled"])]),_:1})):M("",!0),r("span",V8,[C()?(a(),w(t(j),{key:"using",label:"Using"},{default:i(()=>[s(t(Y),{value:h.value.type==="user-defined"?h.value.using:l0.value,disabled:!Q(),onInput:v[4]||(v[4]=_=>h0(_.target.value))},null,8,["value","disabled"])]),_:1})):M("",!0)])]),s(t(K),null,{default:i(()=>[s(t(j),{key:"nullable",label:"Nullable"},{default:i(()=>[s(t(i0),{checked:c.column.nullable,"onUpdate:checked":v[5]||(v[5]=_=>c.column.nullable=_)},null,8,["checked"])]),_:1}),s(t(j),{key:"unique",label:"Unique"},{default:i(()=>[s(t(i0),{checked:c.column.unique,"onUpdate:checked":v[6]||(v[6]=_=>c.column.unique=_)},null,8,["checked"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["open"]))}});const b8=S0(A8,[["__scopeId","data-v-5f7e2cd2"]]),H8={style:{overflow:"hidden","white-space":"wrap"}},Z8={key:1},k8={key:0,class:"table-row null"},w8={class:"button-container"},L8={class:"button-container"},M8={class:"button-container"},C8={class:"button-container"},_8=U({__name:"TableData",props:{table:{},loading:{type:Boolean}},emits:["refresh"],setup(H,{emit:n}){var w0;const l=H,y=q(1),p=q(10),V=g(()=>{var $,b;return{total:(b=($=h.value)==null?void 0:$.total)!=null?b:0,current:y.value,pageSize:p.value,totalBoundaryShowSizeChanger:10,showSizeChanger:!0,pageSizeOptions:["10","25","50","100"],onChange:async(D,k)=>{y.value=D,p.value=k,await x()}}}),o=q([]),d=f0(),m=z0(),L=q(typeof d.query.q=="string"?d.query.q:""),e=g(()=>{try{return JSON.parse(d.query.where)}catch{return{}}});m0(L,()=>{m.replace({query:{...d.query,where:JSON.stringify(d.query.value),q:L.value}})});const B=q(!1),f=q({type:"idle"}),z=()=>{B.value=!0,W()},W=u0.exports.debounce(()=>{x(),B.value=!1},500);function Z(){f.value={type:"idle"}}async function T(){Z(),n("refresh")}m0(()=>l.table,()=>{l0(),x()});function s0(){f.value={type:"creating"}}const o0=$=>{if(!l.table)throw new Error("Table not found");f.value={type:"editing",column:l.table.getColumn($)}},R=q(null),a0=$=>{var b;((b=R.value)==null?void 0:b.column)===$?R.value={column:$,direction:R.value.direction==="asc"?"desc":"asc"}:R.value={column:$,direction:"asc"},x()},C=g(()=>{var $;return(($=h.value)==null?void 0:$.rows.length)===1}),{result:h,loading:I,refetch:x}=$0(async()=>{const[{rows:$,total:b},D]=await Promise.all([l.table.select(e.value,(y.value-1)*p.value,p.value,L.value,R.value||void 0),Promise.all(l.table.getColumns().filter(k=>k.foreignKey).map(k=>e0.fromColumnId(d.params.projectId,k.foreignKey.columnId).then(P=>[k.name,P])))]);return{rows:$,total:b,columns:D.reduce((k,[P,N])=>({...k,[P]:N}),{})}}),k0=($,b)=>{var N,X;const D=(N=l.table)==null?void 0:N.getColumns().find(S=>S.name===$);if(!D)return"";const k=(X=h.value)==null?void 0:X.columns[D.name],P=k==null?void 0:k.getColumns().find(S=>{var v0;return S.id===((v0=D.foreignKey)==null?void 0:v0.columnId)});return!k||!P?"":{name:"tableEditor",params:{projectId:d.params.projectId,tableId:k.id},query:{where:JSON.stringify({[P.name]:b})}}},d0=($,b)=>{f.value.type==="adding"&&(f.value.editableItem[$]=b)},c0=($,b)=>{f.value.type==="adding"&&(f.value.editableItem[$]=b?null:"")},p0=()=>[...l.table.getColumns().map($=>{var b;return{key:(b=$.id)!=null?b:"",title:$.name,dataIndex:$.name,width:220,resizable:!0,ellipsis:!1}}),{key:"action",title:"",fixed:"right",width:100,align:"center",resizable:!1,ellipsis:!1}],h0=p0(),Q=q(h0),l0=()=>Q.value=p0();function y0($,b){Q.value=Q.value.map(D=>D.key===b.key?{...D,width:$}:D)}const c=g(()=>{var $;return(($=h.value)==null?void 0:$.rows.map(b=>({key:b.id,...b})))||[]});let v=G0((w0=l.table)==null?void 0:w0.getUnprotectedColumns().reduce(($,b)=>({...$,[b.name]:""}),{}));const _=q(!1);async function J(){if(!(!l.table||!v||f.value.type!=="adding")){_.value=!0;try{f.value.editableItem.id&&(typeof f.value.editableItem.id=="string"||typeof f.value.editableItem.id=="number")?await l.table.updateRow(f.value.editableItem.id.toString(),f.value.editableItem):await l.table.insertRow(f.value.editableItem),x(),Z()}catch($){$ instanceof Error&&g0("Database error",$.message)}finally{_.value=!1}}}const U0=async $=>{if(!(!h.value||!h.value.rows.find(b=>b.id===$)))try{await l.table.deleteRow($),C.value&&(y.value=Math.max(1,y.value-1)),x()}catch(b){b instanceof Error&&g0("Database error",b.message)}},P0=$=>{var X;const b=(X=c.value)==null?void 0:X.filter(S=>$===S.key)[0],D=l.table.getColumns(),k=D.map(S=>S.name),P=D.filter(S=>S.type==="json").map(S=>S.name),N=u0.exports.pick(u0.exports.cloneDeep(b),k);P.forEach(S=>{N[S]&&(N[S]=JSON.stringify(N[S]))}),f.value={type:"adding",editableItem:N}};return($,b)=>{const D=B0("RouterLink");return a(),w(l1,{"full-width":""},{default:i(()=>[s(t(K),{justify:"space-between",style:{"margin-bottom":"16px"},gap:"middle"},{default:i(()=>[s(t(Y),{value:L.value,"onUpdate:value":[b[0]||(b[0]=k=>L.value=k),z],placeholder:"Search",style:{width:"400px"},"allow-clear":""},{prefix:i(()=>[s(t(F0))]),suffix:i(()=>[B.value?(a(),w(t(r1),{key:0})):M("",!0)]),_:1},8,["value"]),s(t(K),{justify:"flex-end",gap:"middle"},{default:i(()=>[s(t0,{type:"primary",onClick:s0},{default:i(()=>[s(t(Ae)),E("Create column ")]),_:1}),Q.value.length===3?(a(),w(t(r0),{key:0,title:"Create your first column before adding data"},{default:i(()=>[s(t0,{disabled:!0,onClick:b[1]||(b[1]=k=>f.value={type:"adding",editableItem:{}})},{default:i(()=>[s(t(L0)),E("Add data ")]),_:1})]),_:1})):(a(),w(t0,{key:1,onClick:b[2]||(b[2]=k=>f.value={type:"adding",editableItem:{}})},{default:i(()=>[s(t(L0)),E("Add data ")]),_:1}))]),_:1})]),_:1}),s(t(J0),{columns:Q.value,"data-source":c.value,pagination:V.value,bordered:"",loading:t(I)||$.loading,scroll:{x:1e3,y:720},size:"small",onResizeColumn:y0},{headerCell:i(({column:k})=>[k.title!=="id"&&k.title!=="created_at"&&k.key!=="action"?(a(),w(t(K),{key:0,align:"center",justify:"space-between",gap:"small"},{default:i(()=>[s(t(K),{style:{overflow:"hidden","white-space":"wrap"},align:"center",gap:"small"},{default:i(()=>[r("span",H8,n0(k.title),1),s(t(K),null,{default:i(()=>[s(M0,{column:k,"order-by":R.value,onReorder:a0},null,8,["column","order-by"])]),_:2},1024)]),_:2},1024),s(t0,{type:"text",onClick:P=>o0(String(k.key))},{default:i(()=>[s(t(Ba),{size:"18"})]),_:2},1032,["onClick"])]),_:2},1024)):(a(),u("span",Z8,[s(t(K),{align:"center",gap:"small"},{default:i(()=>[E(n0(k.title)+" ",1),k.key!=="action"?(a(),w(M0,{key:0,column:k,"order-by":R.value,onReorder:a0},null,8,["column","order-by"])):M("",!0)]),_:2},1024)]))]),bodyCell:i(({column:k,text:P,record:N})=>{var X;return[Q.value.map(S=>S.title).includes(k.dataIndex)?(a(),u(V0,{key:0},[P===null?(a(),u("div",k8,"NULL")):(X=$.table.getColumns().find(S=>S.name===k.dataIndex))!=null&&X.foreignKey?(a(),w(D,{key:1,to:k0(k.dataIndex,P),target:"_blank"},{default:i(()=>[E(n0(P),1)]),_:2},1032,["to"])):(a(),u("div",{key:2,class:K0(["table-row",{expanded:o.value.includes(N.id)}])},n0(P),3))],64)):M("",!0),k.key==="action"?(a(),w(t(K),{key:1,gap:"small",justify:"center"},{default:i(()=>[o.value.includes(N.id)?(a(),w(t(O),{key:0,class:"icons",onClick:S=>o.value=o.value.filter(v0=>v0!==N.id)},{icon:i(()=>[s(t(r0),{title:"Collapse"},{default:i(()=>[r("div",w8,[s(t(Re),{size:15})])]),_:1})]),_:2},1032,["onClick"])):(a(),w(t(O),{key:1,onClick:S=>o.value.push(N.id)},{icon:i(()=>[s(t(r0),{title:"Expand"},{default:i(()=>[r("div",L8,[s(t(ca),{size:15})])]),_:1})]),_:2},1032,["onClick"])),s(t(O),{onClick:S=>P0(N.id)},{icon:i(()=>[s(t(r0),{title:"Edit"},{default:i(()=>[r("div",M8,[s(t(H2),{size:15})])]),_:1})]),_:2},1032,["onClick"]),s(t(W0),{title:"Sure to delete?",onConfirm:S=>U0(N.id)},{default:i(()=>[s(t(O),null,{icon:i(()=>[s(t(r0),{title:"Delete"},{default:i(()=>[r("div",C8,[s(t(Q0),{size:15})])]),_:1})]),_:1})]),_:2},1032,["onConfirm"])]),_:2},1024)):M("",!0)]}),_:1},8,["columns","data-source","pagination","loading"]),f.value.type==="adding"?(a(),w(p8,{key:0,open:f.value.type==="adding",table:l.table,"editable-item":f.value.editableItem,loading:_.value,onUpdateNullable:c0,onRecordChange:d0,onClose:Z,onCancel:Z,onSave:J},null,8,["open","table","editable-item","loading"])):M("",!0),f.value.type==="creating"?(a(),w(v8,{key:1,open:f.value.type==="creating",table:l.table,onClose:Z,onCancel:Z,onCreated:T},null,8,["open","table"])):M("",!0),f.value.type==="editing"?(a(),w(b8,{key:2,open:f.value.type==="editing",column:f.value.column,table:$.table,onUpdated:T,onClose:Z,onCancel:Z},null,8,["open","column","table"])):M("",!0)]),_:1})}}});const S8={style:{"font-size":"16px"}},ll=U({__name:"TableEditor",setup(H){const n=z0(),l=f0(),y=l.params.tableId,p=l.params.projectId,V=q(!1),o=()=>{var f;V.value=!1,(f=d.value)==null||f.table.save(),L()},{result:d,loading:m,refetch:L}=$0(()=>Promise.all([b0.get(p).then(async f=>{const z=await e1.get(f.organizationId);return{project:f,organization:z}}),e0.get(p,y)]).then(([{project:f,organization:z},W])=>X0({project:f,organization:z,table:W}))),e=g(()=>!m.value&&d.value?[{label:"My organizations",path:"/organizations"},{label:d.value.organization.name,path:`/organizations/${d.value.organization.id}`},{label:d.value.project.name,path:`/projects/${d.value.project.id}/tables`}]:void 0);function B(){n.push({name:"tables",params:{projectId:p}})}return(f,z)=>{const W=B0("RouterLink");return a(),w(j0,null,{navbar:i(()=>[s(t(s1),{style:{padding:"5px 25px"},onBack:B},{title:i(()=>[s(t(K),{align:"center",gap:"small"},{default:i(()=>{var Z;return[r("span",S8,n0((Z=t(d))==null?void 0:Z.table.name),1),s(t0,{type:"text",onClick:z[0]||(z[0]=T=>V.value=!0)},{default:i(()=>[s(t(a2),{size:"16"})]),_:1})]}),_:1}),s(t(Y0),{title:"Change table name",open:V.value,onCancel:z[2]||(z[2]=Z=>V.value=!1),onOk:o},{default:i(()=>[t(d)?(a(),w(t(Y),{key:0,value:t(d).table.name,"onUpdate:value":z[1]||(z[1]=Z=>t(d).table.name=Z)},null,8,["value"])):M("",!0)]),_:1},8,["open"])]),subTitle:i(()=>[e.value?(a(),w(t(u1),{key:0,style:{margin:"0px 20px"}},{default:i(()=>[(a(!0),u(V0,null,C0(e.value,(Z,T)=>(a(),w(t(i1),{key:T},{default:i(()=>[s(W,{to:Z.path},{default:i(()=>[E(n0(Z.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):M("",!0)]),_:1})]),content:i(()=>[t(d)?(a(),w(_8,{key:0,loading:t(m),table:t(d).table,onRefresh:z[3]||(z[3]=Z=>t(L)())},null,8,["loading","table"])):M("",!0)]),_:1})}}});export{ll as default}; +//# sourceMappingURL=TableEditor.8fd9b580.js.map diff --git a/abstra_statics/dist/assets/Tables.29c026f5.js b/abstra_statics/dist/assets/Tables.29c026f5.js new file mode 100644 index 0000000000..52936b0195 --- /dev/null +++ b/abstra_statics/dist/assets/Tables.29c026f5.js @@ -0,0 +1,2 @@ +import{C}from"./CrudView.423d8744.js";import{a as _}from"./ant-design.d89b18ab.js";import{a as k}from"./asyncComputed.703c33fd.js";import{n as i}from"./string.d9c83adf.js";import{G as w}from"./PhPencil.vue.7418c4e5.js";import{d as h,eo as I,ea as x,f as N,o as D,c as E,w as l,u as m,b as S,aG as v,bT as A,ep as B}from"./index.d0f12294.js";import"./gateway.ae1d6857.js";import{T as c}from"./tables.318f703e.js";import"./router.375df57e.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./Badge.f6241be2.js";import"./index.a82e0ed1.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="08aff574-7095-42b8-80b0-f0ce3269ae82",o._sentryDebugIdIdentifier="sentry-dbid-08aff574-7095-42b8-80b0-f0ce3269ae82")}catch{}})();const Y=h({__name:"Tables",setup(o){const a=I(),t=x().params.projectId,{loading:p,result:u,refetch:f}=k(()=>c.list(t)),b=async e=>{const r=await c.create(t,e.name);a.push({name:"tableEditor",params:{tableId:r.id,projectId:t}})},y=()=>{a.push({name:"sql",params:{projectId:t}})},g=N(()=>{var e,r;return{columns:[{title:"Table Name"},{title:"",align:"right"}],rows:(r=(e=u.value)==null?void 0:e.map(s=>({key:s.id,cells:[{type:"link",text:s.name,to:{name:"tableEditor",params:{tableId:s.id,projectId:t}}},{type:"actions",actions:[{icon:w,label:"Edit Table",onClick({key:n}){a.push({name:"tableEditor",params:{tableId:n,projectId:t}})}},{icon:B,label:"Delete",dangerous:!0,async onClick(){!await _("Are you sure you want to delete this table and all its data?")||(await s.delete(t,s.id),f())}}]}]})))!=null?r:[]}}),T=[{key:"name",label:"Table name",type:"text",format:e=>i(e,!0),blur:e=>i(e,!1)}];return(e,r)=>(D(),E(C,{"entity-name":"table",loading:m(p),"docs-path":"cloud/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:g.value,fields:T,"create-button-text":"Create Table",create:b},{more:l(()=>[S(m(A),{onClick:y},{default:l(()=>[v("Run SQL")]),_:1})]),_:1},8,["loading","table"]))}});export{Y as default}; +//# sourceMappingURL=Tables.29c026f5.js.map diff --git a/abstra_statics/dist/assets/Tables.6df43ce2.js b/abstra_statics/dist/assets/Tables.6df43ce2.js deleted file mode 100644 index b8726bc598..0000000000 --- a/abstra_statics/dist/assets/Tables.6df43ce2.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C}from"./CrudView.ac8aad2f.js";import{a as _}from"./ant-design.ae7d2f9f.js";import{a as k}from"./asyncComputed.cfc0cdaf.js";import{n as i}from"./string.0a3509c3.js";import{G as w}from"./PhPencil.vue.47d672ed.js";import{d as h,eo as I,ea as x,f as N,o as D,c as E,w as l,u as c,b as S,aG as v,bT as A,ep as B}from"./index.8c3f27aa.js";import"./gateway.8032b20a.js";import{T as m}from"./tables.2ec18755.js";import"./router.f4663fd5.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./Badge.7a29ebdb.js";import"./index.37c7ea66.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="a7e6a2fc-c630-420b-904a-052c0b4eaa2a",o._sentryDebugIdIdentifier="sentry-dbid-a7e6a2fc-c630-420b-904a-052c0b4eaa2a")}catch{}})();const Y=h({__name:"Tables",setup(o){const t=I(),a=x().params.projectId,{loading:p,result:u,refetch:b}=k(()=>m.list(a)),f=async e=>{const r=await m.create(a,e.name);t.push({name:"tableEditor",params:{tableId:r.id,projectId:a}})},y=()=>{t.push({name:"sql",params:{projectId:a}})},g=N(()=>{var e,r;return{columns:[{title:"Table Name"},{title:"",align:"right"}],rows:(r=(e=u.value)==null?void 0:e.map(s=>({key:s.id,cells:[{type:"link",text:s.name,to:{name:"tableEditor",params:{tableId:s.id,projectId:a}}},{type:"actions",actions:[{icon:w,label:"Edit Table",onClick({key:n}){t.push({name:"tableEditor",params:{tableId:n,projectId:a}})}},{icon:B,label:"Delete",dangerous:!0,async onClick(){!await _("Are you sure you want to delete this table and all its data?")||(await s.delete(a,s.id),b())}}]}]})))!=null?r:[]}}),T=[{key:"name",label:"Table name",type:"text",format:e=>i(e,!0),blur:e=>i(e,!1)}];return(e,r)=>(D(),E(C,{"entity-name":"table",loading:c(p),"docs-path":"cloud/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:g.value,fields:T,"create-button-text":"Create Table",create:f},{more:l(()=>[S(c(A),{onClick:y},{default:l(()=>[v("Run SQL")]),_:1})]),_:1},8,["loading","table"]))}});export{Y as default}; -//# sourceMappingURL=Tables.6df43ce2.js.map diff --git a/abstra_statics/dist/assets/ThreadSelector.0fc03e39.js b/abstra_statics/dist/assets/ThreadSelector.f3c948bb.js similarity index 83% rename from abstra_statics/dist/assets/ThreadSelector.0fc03e39.js rename to abstra_statics/dist/assets/ThreadSelector.f3c948bb.js index 366f9340c4..5775fc4386 100644 --- a/abstra_statics/dist/assets/ThreadSelector.0fc03e39.js +++ b/abstra_statics/dist/assets/ThreadSelector.f3c948bb.js @@ -1,2 +1,2 @@ -import{d as P,D as H,f as m,o as h,Y as v,$ as B,S as $,e8 as O,a as g,e as E,X as J,ej as A,g as D,E as z,b as c,w as p,u as l,cz as F,aB as W,cy as U,aG as R,c as q,dh as I,bT as k,e9 as G,aS as X,em as Y,en as K,a0 as Q}from"./index.8c3f27aa.js";import"./editor.e7656461.js";import{W as T}from"./workspaces.7bc437a6.js";import{v as aa}from"./string.0a3509c3.js";import{e as ea}from"./toggleHighContrast.5028b4ff.js";import{f as j}from"./index.eefd8753.js";import{A as ta}from"./index.d18d35d7.js";import{A as na}from"./index.126762e2.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="02590d55-e422-432a-85ea-86635f3bcf0a",s._sentryDebugIdIdentifier="sentry-dbid-02590d55-e422-432a-85ea-86635f3bcf0a")}catch{}})();const oa=["width","height","fill","transform"],sa={key:0},ia=g("path",{d:"M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"},null,-1),ra=[ia],da={key:1},la=g("path",{d:"M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z",opacity:"0.2"},null,-1),ua=g("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),ca=[la,ua],ha={key:2},ga=g("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),fa=[ga],pa={key:3},va=g("path",{d:"M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"},null,-1),ma=[va],wa={key:4},Sa=g("path",{d:"M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),Va=[Sa],ya={key:5},xa=g("path",{d:"M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"},null,-1),ba=[xa],Za={name:"PhMagicWand"},Ma=P({...Za,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(s){const e=s,t=H("weight","regular"),u=H("size","1em"),V=H("color","currentColor"),_=H("mirrored",!1),r=m(()=>{var i;return(i=e.weight)!=null?i:t}),b=m(()=>{var i;return(i=e.size)!=null?i:u}),Z=m(()=>{var i;return(i=e.color)!=null?i:V}),L=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:_?"scale(-1, 1)":void 0);return(i,C)=>(h(),v("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:Z.value,transform:L.value},i.$attrs),[B(i.$slots,"default"),r.value==="bold"?(h(),v("g",sa,ra)):r.value==="duotone"?(h(),v("g",da,ca)):r.value==="fill"?(h(),v("g",ha,fa)):r.value==="light"?(h(),v("g",pa,ma)):r.value==="regular"?(h(),v("g",wa,Va)):r.value==="thin"?(h(),v("g",ya,ba)):$("",!0)],16,oa))}});class Ha{async list(e){const t=new URLSearchParams({stage:e});return await(await fetch(`/_editor/api/stage_runs?${t}`)).json()}async listPast(e){const t=new URLSearchParams({stage:e});return await(await fetch(`/_editor/api/stage_runs/past?${t}`)).json()}}const N=new Ha;class x{constructor(e){this.dto=e}static async list(e){return(await N.list(e)).map(u=>new x(u))}static async listPast(e){return(await N.listPast(e)).map(u=>new x(u))}get id(){return this.dto.id}get data(){return this.dto.data}get assignee(){return this.dto.assignee}get stage(){return this.dto.stage}get status(){return this.dto.status}get createdAt(){return new Date(this.dto.createdAt)}}const _a=s=>(Y("data-v-061ac7eb"),s=s(),K(),s),La=_a(()=>g("span",null," Fix with AI ",-1)),Ca=P({__name:"ThreadSelector",props:{stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(s,{emit:e}){const t=s,u=m(()=>t.executionConfig.attached?"Select a thread to continue the workflow":"Choose a thread to copy the data from"),V=m(()=>t.executionConfig.attached?"Select thread":"Use this thread data"),_=m(()=>t.executionConfig.attached?!t.executionConfig.stageRunId:!1),r=m(()=>{if(!a.threadData)return{valid:!0,parsed:{}};const n=aa(a.threadData);return n.valid&&!A.exports.isObject(n.parsed)?{valid:!1,message:"Thread data must be an object."}:n});function b(){r.value.valid||e("fix-invalid-json",a.threadData,r.value.message)}const Z=E(null),L=n=>{const d=a.waitingStageRuns.find(S=>S.id===n),w=a.pastStageRuns.find(S=>S.id===n),y=d!=null?d:w;if(!y)throw new Error("Stage run not found");const o=JSON.stringify(y.data,null,2);f.setValue(o),a.threadData=o,a.selectedStageRunId=n,e("update:execution-config",{...t.executionConfig,stageRunId:n})},i=()=>{e("update:execution-config",{...t.executionConfig,stageRunId:null})},C=()=>{e("update:show-thread-modal",!1),T.writeTestData(a.threadData)};let f;J(async()=>{var y;a.threadData=await T.readTestData(),a.selectedStageRunId=(y=t.executionConfig.stageRunId)!=null?y:void 0;const n=await x.list(t.stage.id),d=await x.listPast(t.stage.id);a.waitingStageRuns=n.filter(o=>o.status==="waiting"),a.pastStageRuns=[...d,...n.filter(o=>o.status!=="waiting")],a.options=[],a.waitingStageRuns.length>0&&a.options.push({label:"Waiting threads",options:a.waitingStageRuns.map(o=>({value:o.id,label:`Started ${j(o.createdAt,{addSuffix:!0})} (${o.status})`}))}),a.pastStageRuns.length>0&&a.options.push({label:"Past threads",options:a.pastStageRuns.map(o=>({value:o.id,label:`Started ${j(o.createdAt,{addSuffix:!0})} (${o.status})`}))}),f=ea.create(Z.value,{language:"json",value:a.threadData,fontFamily:"monospace",lineNumbers:"off",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},readOnly:t.executionConfig.attached});const w=f.getContribution("editor.contrib.messageController");f.onDidAttemptReadOnlyEdit(()=>{w.showMessage("Can't edit thread data with workflow on",f.getPosition())}),f.onDidChangeModelContent(()=>{const o=f.getValue();if(a.threadData=o,t.executionConfig.attached&&a.selectedStageRunId){const S=[...a.waitingStageRuns,...a.pastStageRuns].find(M=>M.id===a.selectedStageRunId);if(!S){e("update:execution-config",{...t.executionConfig});return}try{const M=JSON.parse(o);A.exports.isEqual(S.data,M)?e("update:execution-config",{...t.executionConfig}):e("update:execution-config",{...t.executionConfig})}catch{e("update:execution-config",{...t.executionConfig})}}})}),D(()=>t.executionConfig.stageRunId,n=>{n?a.selectedStageRunId=n:a.selectedStageRunId=void 0}),D(()=>t.executionConfig.attached,n=>{f.updateOptions({readOnly:n})});const a=z({waitingStageRuns:[],pastStageRuns:[],options:[],loading:!1,threadData:"{}",selectedStageRunId:void 0});return(n,d)=>(h(),v(X,null,[c(l(U),{layout:"vertical"},{default:p(()=>[c(l(F),{label:u.value},{default:p(()=>[c(l(W),{placeholder:"No thread selected","filter-option":"",style:{width:"100%"},"allow-clear":!0,options:a.options,value:a.selectedStageRunId,"not-found-content":"There are no threads",onSelect:d[0]||(d[0]=w=>L(w)),onClear:d[1]||(d[1]=w=>i())},null,8,["options","value"])]),_:1},8,["label"])]),_:1}),c(l(ta),{orientation:"left"},{default:p(()=>[R("Data")]),_:1}),g("div",{ref_key:"dataJson",ref:Z,class:"data-container"},null,512),r.value.valid===!1?(h(),q(l(na),{key:0,type:"error",message:"Invalid JSON",description:r.value.message},{action:p(()=>[c(l(k),{onClick:b},{default:p(()=>[c(l(I),{align:"center",gap:"small"},{default:p(()=>[c(l(Ma)),La]),_:1})]),_:1})]),_:1},8,["description"])):$("",!0),c(l(I),{justify:"end",gap:"middle",style:{"margin-top":"12px"}},{default:p(()=>[c(l(k),{type:"primary",disabled:_.value,onClick:C},{default:p(()=>[R(G(V.value),1)]),_:1},8,["disabled"])]),_:1})],64))}});const Pa=Q(Ca,[["__scopeId","data-v-061ac7eb"]]);export{Pa as T}; -//# sourceMappingURL=ThreadSelector.0fc03e39.js.map +import{d as P,D as H,f as m,o as h,Y as v,$ as B,S as $,e8 as O,a as g,e as E,X as J,ej as A,g as D,E as z,b as c,w as p,u as l,cz as F,aB as W,cy as U,aG as R,c as q,dh as I,bT as k,e9 as G,aS as X,em as Y,en as K,a0 as Q}from"./index.d0f12294.js";import"./editor.95f16260.js";import{W as T}from"./workspaces.e43325e2.js";import{v as aa}from"./string.d9c83adf.js";import{e as ea}from"./toggleHighContrast.0eb315ff.js";import{f as j}from"./index.3814eba6.js";import{A as ta}from"./index.a552d580.js";import{A as na}from"./index.289665f1.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="b6b20bfb-849f-416d-a2c7-4602f6f810e1",s._sentryDebugIdIdentifier="sentry-dbid-b6b20bfb-849f-416d-a2c7-4602f6f810e1")}catch{}})();const oa=["width","height","fill","transform"],sa={key:0},ia=g("path",{d:"M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"},null,-1),ra=[ia],da={key:1},la=g("path",{d:"M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z",opacity:"0.2"},null,-1),ua=g("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),ca=[la,ua],ha={key:2},ga=g("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),fa=[ga],pa={key:3},va=g("path",{d:"M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"},null,-1),ma=[va],wa={key:4},Sa=g("path",{d:"M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1),Va=[Sa],ba={key:5},ya=g("path",{d:"M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"},null,-1),xa=[ya],Za={name:"PhMagicWand"},Ma=P({...Za,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(s){const e=s,t=H("weight","regular"),u=H("size","1em"),V=H("color","currentColor"),_=H("mirrored",!1),r=m(()=>{var i;return(i=e.weight)!=null?i:t}),x=m(()=>{var i;return(i=e.size)!=null?i:u}),Z=m(()=>{var i;return(i=e.color)!=null?i:V}),L=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:_?"scale(-1, 1)":void 0);return(i,C)=>(h(),v("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:x.value,height:x.value,fill:Z.value,transform:L.value},i.$attrs),[B(i.$slots,"default"),r.value==="bold"?(h(),v("g",sa,ra)):r.value==="duotone"?(h(),v("g",da,ca)):r.value==="fill"?(h(),v("g",ha,fa)):r.value==="light"?(h(),v("g",pa,ma)):r.value==="regular"?(h(),v("g",wa,Va)):r.value==="thin"?(h(),v("g",ba,xa)):$("",!0)],16,oa))}});class Ha{async list(e){const t=new URLSearchParams({stage:e});return await(await fetch(`/_editor/api/stage_runs?${t}`)).json()}async listPast(e){const t=new URLSearchParams({stage:e});return await(await fetch(`/_editor/api/stage_runs/past?${t}`)).json()}}const N=new Ha;class y{constructor(e){this.dto=e}static async list(e){return(await N.list(e)).map(u=>new y(u))}static async listPast(e){return(await N.listPast(e)).map(u=>new y(u))}get id(){return this.dto.id}get data(){return this.dto.data}get assignee(){return this.dto.assignee}get stage(){return this.dto.stage}get status(){return this.dto.status}get createdAt(){return new Date(this.dto.createdAt)}}const _a=s=>(Y("data-v-061ac7eb"),s=s(),K(),s),La=_a(()=>g("span",null," Fix with AI ",-1)),Ca=P({__name:"ThreadSelector",props:{stage:{},executionConfig:{}},emits:["fix-invalid-json","update:execution-config","update:show-thread-modal"],setup(s,{emit:e}){const t=s,u=m(()=>t.executionConfig.attached?"Select a thread to continue the workflow":"Choose a thread to copy the data from"),V=m(()=>t.executionConfig.attached?"Select thread":"Use this thread data"),_=m(()=>t.executionConfig.attached?!t.executionConfig.stageRunId:!1),r=m(()=>{if(!a.threadData)return{valid:!0,parsed:{}};const n=aa(a.threadData);return n.valid&&!A.exports.isObject(n.parsed)?{valid:!1,message:"Thread data must be an object."}:n});function x(){r.value.valid||e("fix-invalid-json",a.threadData,r.value.message)}const Z=E(null),L=n=>{const d=a.waitingStageRuns.find(S=>S.id===n),w=a.pastStageRuns.find(S=>S.id===n),b=d!=null?d:w;if(!b)throw new Error("Stage run not found");const o=JSON.stringify(b.data,null,2);f.setValue(o),a.threadData=o,a.selectedStageRunId=n,e("update:execution-config",{...t.executionConfig,stageRunId:n})},i=()=>{e("update:execution-config",{...t.executionConfig,stageRunId:null})},C=()=>{e("update:show-thread-modal",!1),T.writeTestData(a.threadData)};let f;J(async()=>{var b;a.threadData=await T.readTestData(),a.selectedStageRunId=(b=t.executionConfig.stageRunId)!=null?b:void 0;const n=await y.list(t.stage.id),d=await y.listPast(t.stage.id);a.waitingStageRuns=n.filter(o=>o.status==="waiting"),a.pastStageRuns=[...d,...n.filter(o=>o.status!=="waiting")],a.options=[],a.waitingStageRuns.length>0&&a.options.push({label:"Waiting threads",options:a.waitingStageRuns.map(o=>({value:o.id,label:`Started ${j(o.createdAt,{addSuffix:!0})} (${o.status})`}))}),a.pastStageRuns.length>0&&a.options.push({label:"Past threads",options:a.pastStageRuns.map(o=>({value:o.id,label:`Started ${j(o.createdAt,{addSuffix:!0})} (${o.status})`}))}),f=ea.create(Z.value,{language:"json",value:a.threadData,fontFamily:"monospace",lineNumbers:"off",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},readOnly:t.executionConfig.attached});const w=f.getContribution("editor.contrib.messageController");f.onDidAttemptReadOnlyEdit(()=>{w.showMessage("Can't edit thread data with workflow on",f.getPosition())}),f.onDidChangeModelContent(()=>{const o=f.getValue();if(a.threadData=o,t.executionConfig.attached&&a.selectedStageRunId){const S=[...a.waitingStageRuns,...a.pastStageRuns].find(M=>M.id===a.selectedStageRunId);if(!S){e("update:execution-config",{...t.executionConfig});return}try{const M=JSON.parse(o);A.exports.isEqual(S.data,M)?e("update:execution-config",{...t.executionConfig}):e("update:execution-config",{...t.executionConfig})}catch{e("update:execution-config",{...t.executionConfig})}}})}),D(()=>t.executionConfig.stageRunId,n=>{n?a.selectedStageRunId=n:a.selectedStageRunId=void 0}),D(()=>t.executionConfig.attached,n=>{f.updateOptions({readOnly:n})});const a=z({waitingStageRuns:[],pastStageRuns:[],options:[],loading:!1,threadData:"{}",selectedStageRunId:void 0});return(n,d)=>(h(),v(X,null,[c(l(U),{layout:"vertical"},{default:p(()=>[c(l(F),{label:u.value},{default:p(()=>[c(l(W),{placeholder:"No thread selected","filter-option":"",style:{width:"100%"},"allow-clear":!0,options:a.options,value:a.selectedStageRunId,"not-found-content":"There are no threads",onSelect:d[0]||(d[0]=w=>L(w)),onClear:d[1]||(d[1]=w=>i())},null,8,["options","value"])]),_:1},8,["label"])]),_:1}),c(l(ta),{orientation:"left"},{default:p(()=>[R("Data")]),_:1}),g("div",{ref_key:"dataJson",ref:Z,class:"data-container"},null,512),r.value.valid===!1?(h(),q(l(na),{key:0,type:"error",message:"Invalid JSON",description:r.value.message},{action:p(()=>[c(l(k),{onClick:x},{default:p(()=>[c(l(I),{align:"center",gap:"small"},{default:p(()=>[c(l(Ma)),La]),_:1})]),_:1})]),_:1},8,["description"])):$("",!0),c(l(I),{justify:"end",gap:"middle",style:{"margin-top":"12px"}},{default:p(()=>[c(l(k),{type:"primary",disabled:_.value,onClick:C},{default:p(()=>[R(G(V.value),1)]),_:1},8,["disabled"])]),_:1})],64))}});const Pa=Q(Ca,[["__scopeId","data-v-061ac7eb"]]);export{Pa as T}; +//# sourceMappingURL=ThreadSelector.f3c948bb.js.map diff --git a/abstra_statics/dist/assets/Threads.0de8595c.js b/abstra_statics/dist/assets/Threads.0de8595c.js deleted file mode 100644 index 689cbfcd89..0000000000 --- a/abstra_statics/dist/assets/Threads.0de8595c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{P as k}from"./api.ebb7a8be.js";import{b as _}from"./workspaceStore.a6063d10.js";import{d as w,N as g,O as b,e as v,o as r,Y as h,b as s,w as T,u as e,c as p,S as m,a0 as K}from"./index.8c3f27aa.js";import{K as S,_ as I,W as P,P as R,b as V}from"./WorkflowView.a56d2fab.js";import{A as c,T as x}from"./TabPane.2034bc94.js";import"./Card.c4293d90.js";import"./fetch.fd4370bb.js";import"./metadata.2beed20a.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./polling.98a0bd01.js";import"./asyncComputed.cfc0cdaf.js";import"./PhQuestion.vue.5030f781.js";import"./ant-design.ae7d2f9f.js";import"./index.37c7ea66.js";import"./index.eefd8753.js";import"./index.90acc740.js";import"./CollapsePanel.14b56554.js";import"./index.d18d35d7.js";import"./index.2753fdb2.js";import"./Badge.7a29ebdb.js";import"./PhArrowCounterClockwise.vue.e0916215.js";import"./Workflow.0ffe81e0.js";import"./validations.1f9bbc1f.js";import"./string.0a3509c3.js";import"./uuid.4ec4da84.js";import"./index.73b06b4b.js";import"./workspaces.7bc437a6.js";import"./record.a6861841.js";import"./index.c8ad961f.js";import"./PhArrowDown.vue.bbcdf79c.js";import"./LoadingOutlined.7a2941f5.js";import"./DeleteOutlined.0e27ef4f.js";import"./PhDownloadSimple.vue.53949cd1.js";import"./utils.c92e833b.js";import"./LoadingContainer.e327afe8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="cf925c1f-13b0-4ce0-9487-0efce8b1aa73",t._sentryDebugIdIdentifier="sentry-dbid-cf925c1f-13b0-4ce0-9487-0efce8b1aa73")}catch{}})();const W={class:"threads-view"},A=w({__name:"Threads",setup(t){const a=_().authHeaders,u=new k(a),i=new R(a),d=new V(a),f=new g(b.array(b.string()),"kanban-selected-stages"),o=v("kanban");return(B,l)=>(r(),h("div",W,[s(e(x),{activeKey:o.value,"onUpdate:activeKey":l[0]||(l[0]=y=>o.value=y)},{default:T(()=>[s(e(c),{key:"kanban",tab:"Kanban View"}),s(e(c),{key:"table",tab:"Table View"}),s(e(c),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),o.value==="kanban"?(r(),p(S,{key:0,"kanban-repository":e(i),"kanban-stages-storage":e(f),"stage-run-repository":e(d)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):m("",!0),o.value==="table"?(r(),p(I,{key:1,"kanban-repository":e(i)},null,8,["kanban-repository"])):m("",!0),o.value==="workflow"?(r(),p(P,{key:2,"kanban-repository":e(i),"workflow-api":e(u)},null,8,["kanban-repository","workflow-api"])):m("",!0)]))}});const ge=K(A,[["__scopeId","data-v-d6c18c3e"]]);export{ge as default}; -//# sourceMappingURL=Threads.0de8595c.js.map diff --git a/abstra_statics/dist/assets/Threads.2e2a8fc1.js b/abstra_statics/dist/assets/Threads.2e2a8fc1.js new file mode 100644 index 0000000000..9f0487082e --- /dev/null +++ b/abstra_statics/dist/assets/Threads.2e2a8fc1.js @@ -0,0 +1,2 @@ +import{P as k}from"./api.8656aeba.js";import{b as _}from"./workspaceStore.e47060bf.js";import{d as w,N as g,O as d,e as v,o as r,Y as h,b as s,w as T,u as e,c as p,S as m,a0 as K}from"./index.d0f12294.js";import{K as S,_ as I,W as P,P as R,b as V}from"./WorkflowView.0114ce29.js";import{A as c,T as x}from"./TabPane.79f4882f.js";import"./Card.2a8fe028.js";import"./fetch.e5ebd511.js";import"./metadata.bc77f4b9.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./polling.c979afd7.js";import"./asyncComputed.703c33fd.js";import"./PhQuestion.vue.f82af3dd.js";import"./ant-design.d89b18ab.js";import"./index.a82e0ed1.js";import"./index.3814eba6.js";import"./index.05dd3c22.js";import"./CollapsePanel.40b6e69e.js";import"./index.a552d580.js";import"./index.7c84a9f5.js";import"./Badge.f6241be2.js";import"./PhArrowCounterClockwise.vue.70f7f135.js";import"./Workflow.1ecea04a.js";import"./validations.2475f715.js";import"./string.d9c83adf.js";import"./uuid.f9389d59.js";import"./index.c7e8afe7.js";import"./workspaces.e43325e2.js";import"./record.8c284c67.js";import"./index.61f90e53.js";import"./PhArrowDown.vue.1c758684.js";import"./LoadingOutlined.bcfc8c20.js";import"./DeleteOutlined.5a680b6a.js";import"./PhDownloadSimple.vue.07a1756e.js";import"./utils.537da94d.js";import"./LoadingContainer.23bc0e74.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="6bd4265c-7406-483e-9674-b41fc5dcae94",t._sentryDebugIdIdentifier="sentry-dbid-6bd4265c-7406-483e-9674-b41fc5dcae94")}catch{}})();const W={class:"threads-view"},A=w({__name:"Threads",setup(t){const a=_().authHeaders,b=new k(a),i=new R(a),u=new V(a),y=new g(d.array(d.string()),"kanban-selected-stages"),o=v("kanban");return(B,l)=>(r(),h("div",W,[s(e(x),{activeKey:o.value,"onUpdate:activeKey":l[0]||(l[0]=f=>o.value=f)},{default:T(()=>[s(e(c),{key:"kanban",tab:"Kanban View"}),s(e(c),{key:"table",tab:"Table View"}),s(e(c),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),o.value==="kanban"?(r(),p(S,{key:0,"kanban-repository":e(i),"kanban-stages-storage":e(y),"stage-run-repository":e(u)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):m("",!0),o.value==="table"?(r(),p(I,{key:1,"kanban-repository":e(i)},null,8,["kanban-repository"])):m("",!0),o.value==="workflow"?(r(),p(P,{key:2,"kanban-repository":e(i),"workflow-api":e(b)},null,8,["kanban-repository","workflow-api"])):m("",!0)]))}});const ge=K(A,[["__scopeId","data-v-d6c18c3e"]]);export{ge as default}; +//# sourceMappingURL=Threads.2e2a8fc1.js.map diff --git a/abstra_statics/dist/assets/UnsavedChangesHandler.9ea18755.js b/abstra_statics/dist/assets/UnsavedChangesHandler.d2f6de7c.js similarity index 68% rename from abstra_statics/dist/assets/UnsavedChangesHandler.9ea18755.js rename to abstra_statics/dist/assets/UnsavedChangesHandler.d2f6de7c.js index 8d3f2a24d9..f46c47c732 100644 --- a/abstra_statics/dist/assets/UnsavedChangesHandler.9ea18755.js +++ b/abstra_statics/dist/assets/UnsavedChangesHandler.d2f6de7c.js @@ -1,2 +1,2 @@ -import{d as m,D as h,f as H,o,Y as s,$ as f,S as V,e8 as y,a as r,eC as w,g as A,X as Z,ah as _,c as M,w as b,u as C,A as k,cL as L,b as B,a0 as x}from"./index.8c3f27aa.js";import{E as D}from"./ExclamationCircleOutlined.433881ab.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="241dabdd-c9c1-4403-8b30-060c8a8a18c2",t._sentryDebugIdIdentifier="sentry-dbid-241dabdd-c9c1-4403-8b30-060c8a8a18c2")}catch{}})();const E=["width","height","fill","transform"],U={key:0},I=r("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"},null,-1),P=[I],S={key:1},N=r("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"},null,-1),$=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),z=[N,$],T={key:2},Y=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),j=[Y],F={key:3},O=r("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"},null,-1),G=[O],R={key:4},W=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),X=[W],q={key:5},J=r("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"},null,-1),K=[J],Q={name:"PhFloppyDisk"},o0=m({...Q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(t){const n=t,d=h("weight","regular"),g=h("size","1em"),i=h("color","currentColor"),c=h("mirrored",!1),e=H(()=>{var a;return(a=n.weight)!=null?a:d}),u=H(()=>{var a;return(a=n.size)!=null?a:g}),l=H(()=>{var a;return(a=n.color)!=null?a:i}),v=H(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(a,a0)=>(o(),s("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:l.value,transform:v.value},a.$attrs),[f(a.$slots,"default"),e.value==="bold"?(o(),s("g",U,P)):e.value==="duotone"?(o(),s("g",S,z)):e.value==="fill"?(o(),s("g",T,j)):e.value==="light"?(o(),s("g",F,G)):e.value==="regular"?(o(),s("g",R,X)):e.value==="thin"?(o(),s("g",q,K)):V("",!0)],16,E))}}),p="You have unsaved changes. Are you sure you want to leave?",e0=m({__name:"UnsavedChangesHandler",props:{hasChanges:{type:Boolean}},setup(t){const n=t,d=e=>(e=e||window.event,e&&(e.returnValue=p),p),g=()=>{window.addEventListener("beforeunload",d)};w(async(e,u,l)=>{if(!n.hasChanges)return l();await new Promise(a=>{L.confirm({title:"You have unsaved changes.",icon:B(D),content:"Are you sure you want to discard them?",okText:"Discard Changes",okType:"danger",cancelText:"Cancel",onOk(){a(!0)},onCancel(){a(!1)}})})?l():l(!1)});const i=()=>window.removeEventListener("beforeunload",d),c=e=>e?g():i();return A(()=>n.hasChanges,c),Z(()=>c(n.hasChanges)),_(i),(e,u)=>(o(),M(C(k),{theme:{token:{colorPrimary:"#d14056"}}},{default:b(()=>[f(e.$slots,"default",{},void 0,!0)]),_:3}))}});const s0=x(e0,[["__scopeId","data-v-08510d52"]]);export{o0 as G,s0 as U}; -//# sourceMappingURL=UnsavedChangesHandler.9ea18755.js.map +import{d as p,D as h,f as H,o,Y as s,$ as m,S as V,e8 as y,a as r,eC as w,g as A,X as Z,ah as _,c as M,w as C,u as b,A as k,cL as L,b as B,a0 as x}from"./index.d0f12294.js";import{E as D}from"./ExclamationCircleOutlined.c4fbd42a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="8fa389ea-b998-413e-9ece-98c655f7a033",t._sentryDebugIdIdentifier="sentry-dbid-8fa389ea-b998-413e-9ece-98c655f7a033")}catch{}})();const E=["width","height","fill","transform"],U={key:0},I=r("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"},null,-1),P=[I],S={key:1},N=r("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"},null,-1),$=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),z=[N,$],T={key:2},Y=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),j=[Y],F={key:3},O=r("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"},null,-1),G=[O],R={key:4},W=r("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"},null,-1),X=[W],q={key:5},J=r("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"},null,-1),K=[J],Q={name:"PhFloppyDisk"},o0=p({...Q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(t){const n=t,l=h("weight","regular"),g=h("size","1em"),i=h("color","currentColor"),u=h("mirrored",!1),e=H(()=>{var a;return(a=n.weight)!=null?a:l}),c=H(()=>{var a;return(a=n.size)!=null?a:g}),d=H(()=>{var a;return(a=n.color)!=null?a:i}),v=H(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:u?"scale(-1, 1)":void 0);return(a,a0)=>(o(),s("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:d.value,transform:v.value},a.$attrs),[m(a.$slots,"default"),e.value==="bold"?(o(),s("g",U,P)):e.value==="duotone"?(o(),s("g",S,z)):e.value==="fill"?(o(),s("g",T,j)):e.value==="light"?(o(),s("g",F,G)):e.value==="regular"?(o(),s("g",R,X)):e.value==="thin"?(o(),s("g",q,K)):V("",!0)],16,E))}}),f="You have unsaved changes. Are you sure you want to leave?",e0=p({__name:"UnsavedChangesHandler",props:{hasChanges:{type:Boolean}},setup(t){const n=t,l=e=>(e=e||window.event,e&&(e.returnValue=f),f),g=()=>{window.addEventListener("beforeunload",l)};w(async(e,c,d)=>{if(!n.hasChanges)return d();await new Promise(a=>{L.confirm({title:"You have unsaved changes.",icon:B(D),content:"Are you sure you want to discard them?",okText:"Discard Changes",okType:"danger",cancelText:"Cancel",onOk(){a(!0)},onCancel(){a(!1)}})})?d():d(!1)});const i=()=>window.removeEventListener("beforeunload",l),u=e=>e?g():i();return A(()=>n.hasChanges,u),Z(()=>u(n.hasChanges)),_(i),(e,c)=>(o(),M(b(k),{theme:{token:{colorPrimary:"#d14056"}}},{default:C(()=>[m(e.$slots,"default",{},void 0,!0)]),_:3}))}});const s0=x(e0,[["__scopeId","data-v-08510d52"]]);export{o0 as G,s0 as U}; +//# sourceMappingURL=UnsavedChangesHandler.d2f6de7c.js.map diff --git a/abstra_statics/dist/assets/View.e88c557b.js b/abstra_statics/dist/assets/View.8f08686a.js similarity index 92% rename from abstra_statics/dist/assets/View.e88c557b.js rename to abstra_statics/dist/assets/View.8f08686a.js index 5a3780c0bf..dea2e0b13d 100644 --- a/abstra_statics/dist/assets/View.e88c557b.js +++ b/abstra_statics/dist/assets/View.8f08686a.js @@ -1,2 +1,2 @@ -var ye=Object.defineProperty;var fe=(s,e,a)=>e in s?ye(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var U=(s,e,a)=>(fe(s,typeof e!="symbol"?e+"":e,a),a);import{a as G}from"./asyncComputed.cfc0cdaf.js";import{d as b,e as A,o as m,c as g,w as l,u as t,b as n,cQ as M,aG as h,aB as q,cS as ge,bT as _,dh as he,E as T,cz as w,bL as N,cy as B,f as X,Y,eb as ve,d5 as _e,e9 as we,aS as H,ep as J,cE as W,ea as be,X as Ce,S as I,dd as ke,db as Pe}from"./index.8c3f27aa.js";import{A as E}from"./index.37c7ea66.js";import{_ as Ue}from"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import{A as F}from"./index.2753fdb2.js";import{C as ee}from"./CrudView.ac8aad2f.js";import{G as te}from"./PhPencil.vue.47d672ed.js";import{C as Re}from"./repository.31bede66.js";import{C as R}from"./gateway.8032b20a.js";import{E as ae}from"./record.a6861841.js";import{p as k}from"./popupNotifcation.40886a7f.js";import{a as Z}from"./ant-design.ae7d2f9f.js";import{A as K,T as Ee}from"./TabPane.2034bc94.js";import"./BookOutlined.b4191bff.js";import"./Badge.7a29ebdb.js";import"./router.f4663fd5.js";import"./url.e93ecf3f.js";import"./PhDotsThreeVertical.vue.55fe4f43.js";import"./fetch.fd4370bb.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="d8aaaf7d-b153-42fd-9887-9dc561cbcca1",s._sentryDebugIdIdentifier="sentry-dbid-d8aaaf7d-b153-42fd-9887-9dc561cbcca1")}catch{}})();const Ae=b({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(s,{emit:e}){const a=s,o=A(a.signupPolicy.strategy),r=A(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns:[]),i=A(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns.map(c=>({label:c})):[]),y=c=>{const C=c;if(r.value=C,C.length===0){o.value="inviteOnly",f("inviteOnly");return}i.value=C.map(P=>({label:P})),a.signupPolicy.emailPatterns=c,e("updated",a.signupPolicy)},p=()=>{e("save")},f=c=>{o.value=c,c!=="patternOnly"&&(c==="inviteOnly"&&a.signupPolicy.allowOnlyInvited(),e("updated",a.signupPolicy))};return(c,C)=>(m(),g(t(he),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:l(()=>[n(t(ge),{value:o.value,"onUpdate:value":f},{default:l(()=>[n(t(E),{direction:"vertical"},{default:l(()=>[n(t(M),{value:"inviteOnly"},{default:l(()=>[h("Allow listed users only")]),_:1}),n(t(E),null,{default:l(()=>[n(t(M),{value:"patternOnly"},{default:l(()=>[h("Allow everyone from this domain:")]),_:1}),n(t(q),{mode:"tags",value:c.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:"@domain.com or sub.domain.com",disabled:o.value!=="patternOnly",options:i.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":y},null,8,["value","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),n(t(_),{disabled:!c.signupPolicy.hasChanges,type:"primary",onClick:p},{default:l(()=>[h(" Save changes ")]),_:1},8,["disabled"])]),_:1}))}}),xe=b({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(s,{emit:e}){const o=s.roleOptions.map(p=>({label:p.name,value:p.name})),r=T({email:"",roles:[]});function i(){e("cancel")}function y(){!r.email||e("created",r)}return(p,f)=>(m(),g(t(F),{open:"",title:"New user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:r,layout:"vertical"},{default:l(()=>[n(t(w),{key:"email",label:"Email",required:!0},{default:l(()=>[n(t(N),{value:r.email,"onUpdate:value":f[0]||(f[0]=c=>r.email=c)},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(q),{value:r.roles,"onUpdate:value":f[1]||(f[1]=c=>r.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Oe=b({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=a.roleOptions.map(p=>({label:p.name,value:p.name})),r=T({email:a.email,roles:a.roles});function i(){e("cancel")}function y(){e("updated",r)}return(p,f)=>(m(),g(t(F),{open:"",title:"Update user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:r,layout:"vertical"},{default:l(()=>[n(t(w),{key:"email",label:"Email"},{default:l(()=>[n(t(N),{value:r.email,"onUpdate:value":f[0]||(f[0]=c=>r.email=c)},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(q),{value:r.roles,"onUpdate:value":f[1]||(f[1]=c=>r.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),$e=b({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=X(()=>{var o;return{columns:[{title:"Email"},{title:"Roles"},{title:"",align:"right"}],rows:(o=e.users.map(r=>({key:r.email,cells:[{type:"text",text:r.email},{type:"slot",key:"roles",payload:{roles:r.roles}},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(r)},{icon:J,label:"Delete",onClick:()=>e.onDelete(r)}]}]})))!=null?o:[]}});return(o,r)=>(m(),g(ee,{"entity-name":"users",title:"",loading:o.loading,description:"List all app users.","empty-title":"No users yet",table:a.value,"create-button-text":"Add users",create:o.onCreate},{roles:l(({payload:i})=>[(m(!0),Y(H,null,ve(i.roles,y=>(m(),g(t(_e),{key:y,bordered:""},{default:l(()=>[h(we(y),1)]),_:2},1024))),128))]),_:1},8,["loading","table","create"]))}}),De=b({__name:"NewRole",emits:["created","cancel"],setup(s,{emit:e}){const a=T({name:"",description:""});function o(){e("cancel")}function r(){!a.name||e("created",a)}return(i,y)=>(m(),g(t(F),{open:"",title:"New role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:o},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:o},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:r},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:a,layout:"vertical"},{default:l(()=>[n(t(w),{key:"name",label:"Name",required:!0},{default:l(()=>[n(t(N),{value:a.name,"onUpdate:value":y[0]||(y[0]=p=>a.name=p)},null,8,["value"])]),_:1}),n(t(w),{key:"description",label:"Description"},{default:l(()=>[n(t(W),{value:a.description,"onUpdate:value":y[1]||(y[1]=p=>a.description=p),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Ie=b({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=T({description:a.description});function r(){e("cancel")}function i(){e("updated",o)}return(y,p)=>(m(),g(t(F),{open:"",title:"Update role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:r},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:r},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:i},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:o,layout:"vertical"},{default:l(()=>[n(t(w),{key:"name",label:"Name"},{default:l(()=>[n(t(N),{value:a.name,disabled:""},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(W),{value:o.description,"onUpdate:value":p[0]||(p[0]=f=>o.description=f),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),je=b({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=X(()=>{var o;return{columns:[{title:"Name"},{title:"Description"},{title:"",align:"right"}],rows:(o=e.roles.map(r=>({key:r.id,cells:[{type:"text",text:r.name},{type:"text",text:r.description},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(r)},{icon:J,label:"Delete",onClick:()=>e.onDelete(r)}]}]})))!=null?o:[]}});return(o,r)=>(m(),g(ee,{"entity-name":"roles",loading:o.loading,title:"",description:"List all app roles.","empty-title":"No roles yet",table:a.value,"create-button-text":"Add roles",create:o.onCreate},null,8,["loading","table","create"]))}}),S=class{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new S(e)}toDTO(){return this.record.toDTO()}get id(){return this.record.get("id")}get projectId(){return this.record.get("projectId")}get emailPatterns(){return this.record.get("emailPatterns")}set emailPatterns(e){this.record.set("emailPatterns",e)}get hasChanges(){return this.record.hasChangesDeep("emailPatterns")}get strategy(){return this.dto.emailPatterns.length===0?"inviteOnly":"patternOnly"}get changes(){return this.record.changes}allowOnlyInvited(){this.record.set("emailPatterns",[])}static validate(e){return S.pattern.test(e)}};let x=S;U(x,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?{const d=new URLSearchParams(location.search).get("selected-panel")||"users",v=["roles","users"].includes(d)?d:"users";d&&(r.value=v)});const i=()=>{o.value.type="initial"},y=()=>{o.value.type="creatingUser"},p=u=>{o.value={type:"editingUser",payload:u}},f=()=>{o.value.type="creatingRole"},c=u=>{o.value={type:"editingRole",payload:u}},C=new Te(a),{result:P,refetch:oe}=G(()=>C.get()),re=async()=>{if(!!P.value)try{await C.update(P.value),oe()}catch(u){u instanceof Error&&k("Update Error",u.message)}},O=new Be(a),{loading:ne,result:le,refetch:$}=G(()=>O.list(100,0)),D=new Re(a),{loading:se,result:V,refetch:L}=G(()=>D.list(100,0)),ie=async u=>{try{if(o.value.type!=="creatingUser")return;await O.create(u),i(),$()}catch(d){d instanceof Error&&k("Create Error",d.message)}},ce=async u=>{try{if(o.value.type!=="editingUser")return;await O.update(o.value.payload.id,u),i(),$()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ue=async u=>{if(!!await Z("Deleting users revoke their access to your application (in case they aren't allowed by a domain rule). Are you sure you want to continue?"))try{await O.delete(u.id),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}},de=async u=>{try{if(o.value.type!=="creatingRole")return;await D.create(u),i(),L()}catch(d){d instanceof Error&&k("Create Error",d.message)}},pe=async u=>{try{if(o.value.type!=="editingRole")return;await D.update(o.value.payload.id,u),i(),L()}catch(d){d instanceof Error&&k("Update Error",d.message)}},me=async u=>{if(!!await Z("Deleteing roles may revoke access to some features in your application. Are you sure you want to continue?"))try{await D.delete(u.id),L(),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}};return(u,d)=>(m(),Y(H,null,[n(t(ke),null,{default:l(()=>[h("Access Control")]),_:1}),n(t(Pe),null,{default:l(()=>[h(" Manage how your end users interect with your application. "),n(Ue,{path:"concepts/access-control"})]),_:1}),n(t(Ee),{"active-key":r.value,"onUpdate:activeKey":d[0]||(d[0]=v=>r.value=v)},{default:l(()=>[n(t(K),{key:"users",tab:"Users"}),n(t(K),{key:"roles",tab:"Roles"})]),_:1},8,["active-key"]),r.value==="users"&&t(P)?(m(),g(Ae,{key:0,"signup-policy":t(P),onSave:re},null,8,["signup-policy"])):I("",!0),r.value==="users"?(m(),g($e,{key:1,loading:t(ne),users:t(le)||[],onCreate:y,onEdit:p,onDelete:ue},null,8,["loading","users"])):I("",!0),r.value==="roles"?(m(),g(je,{key:2,loading:t(se),roles:t(V)||[],onCreate:f,onEdit:c,onDelete:me},null,8,["loading","roles"])):I("",!0),o.value.type==="creatingUser"?(m(),g(xe,{key:3,"role-options":t(V)||[],onCancel:i,onCreated:ie},null,8,["role-options"])):o.value.type==="editingUser"?(m(),g(Oe,{key:4,email:o.value.payload.email,roles:o.value.payload.roles||[],"role-options":t(V)||[],onUpdated:ce,onCancel:i},null,8,["email","roles","role-options"])):o.value.type==="creatingRole"?(m(),g(De,{key:5,onCancel:i,onCreated:de})):o.value.type==="editingRole"?(m(),g(Ie,{key:6,name:o.value.payload.name,description:o.value.payload.description,onUpdated:pe,onCancel:i},null,8,["name","description"])):I("",!0)],64))}});export{nt as default}; -//# sourceMappingURL=View.e88c557b.js.map +var ye=Object.defineProperty;var fe=(s,e,a)=>e in s?ye(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var U=(s,e,a)=>(fe(s,typeof e!="symbol"?e+"":e,a),a);import{a as G}from"./asyncComputed.703c33fd.js";import{d as b,e as A,o as m,c as g,w as l,u as t,b as n,cQ as M,aG as h,aB as q,cS as ge,bT as _,dh as he,E as T,cz as w,bL as N,cy as B,f as X,Y,eb as ve,d5 as _e,e9 as we,aS as H,ep as J,cE as W,ea as be,X as Ce,S as I,dd as ke,db as Pe}from"./index.d0f12294.js";import{A as E}from"./index.a82e0ed1.js";import{_ as Ue}from"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import{A as F}from"./index.7c84a9f5.js";import{C as ee}from"./CrudView.423d8744.js";import{G as te}from"./PhPencil.vue.7418c4e5.js";import{C as Re}from"./repository.d3422c40.js";import{C as R}from"./gateway.ae1d6857.js";import{E as ae}from"./record.8c284c67.js";import{p as k}from"./popupNotifcation.a0a6244b.js";import{a as Z}from"./ant-design.d89b18ab.js";import{A as K,T as Ee}from"./TabPane.79f4882f.js";import"./BookOutlined.7c922f07.js";import"./Badge.f6241be2.js";import"./router.375df57e.js";import"./url.121c9984.js";import"./PhDotsThreeVertical.vue.d0b16f96.js";import"./fetch.e5ebd511.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="f9d996de-1214-4cb9-9a7c-44cc910812e5",s._sentryDebugIdIdentifier="sentry-dbid-f9d996de-1214-4cb9-9a7c-44cc910812e5")}catch{}})();const Ae=b({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(s,{emit:e}){const a=s,o=A(a.signupPolicy.strategy),r=A(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns:[]),i=A(a.signupPolicy.strategy==="patternOnly"?a.signupPolicy.emailPatterns.map(c=>({label:c})):[]),y=c=>{const C=c;if(r.value=C,C.length===0){o.value="inviteOnly",f("inviteOnly");return}i.value=C.map(P=>({label:P})),a.signupPolicy.emailPatterns=c,e("updated",a.signupPolicy)},p=()=>{e("save")},f=c=>{o.value=c,c!=="patternOnly"&&(c==="inviteOnly"&&a.signupPolicy.allowOnlyInvited(),e("updated",a.signupPolicy))};return(c,C)=>(m(),g(t(he),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:l(()=>[n(t(ge),{value:o.value,"onUpdate:value":f},{default:l(()=>[n(t(E),{direction:"vertical"},{default:l(()=>[n(t(M),{value:"inviteOnly"},{default:l(()=>[h("Allow listed users only")]),_:1}),n(t(E),null,{default:l(()=>[n(t(M),{value:"patternOnly"},{default:l(()=>[h("Allow everyone from this domain:")]),_:1}),n(t(q),{mode:"tags",value:c.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:"@domain.com or sub.domain.com",disabled:o.value!=="patternOnly",options:i.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":y},null,8,["value","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),n(t(_),{disabled:!c.signupPolicy.hasChanges,type:"primary",onClick:p},{default:l(()=>[h(" Save changes ")]),_:1},8,["disabled"])]),_:1}))}}),xe=b({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(s,{emit:e}){const o=s.roleOptions.map(p=>({label:p.name,value:p.name})),r=T({email:"",roles:[]});function i(){e("cancel")}function y(){!r.email||e("created",r)}return(p,f)=>(m(),g(t(F),{open:"",title:"New user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:r,layout:"vertical"},{default:l(()=>[n(t(w),{key:"email",label:"Email",required:!0},{default:l(()=>[n(t(N),{value:r.email,"onUpdate:value":f[0]||(f[0]=c=>r.email=c)},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(q),{value:r.roles,"onUpdate:value":f[1]||(f[1]=c=>r.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Oe=b({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=a.roleOptions.map(p=>({label:p.name,value:p.name})),r=T({email:a.email,roles:a.roles});function i(){e("cancel")}function y(){e("updated",r)}return(p,f)=>(m(),g(t(F),{open:"",title:"Update user",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:i},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:i},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:y},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:r,layout:"vertical"},{default:l(()=>[n(t(w),{key:"email",label:"Email"},{default:l(()=>[n(t(N),{value:r.email,"onUpdate:value":f[0]||(f[0]=c=>r.email=c)},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(q),{value:r.roles,"onUpdate:value":f[1]||(f[1]=c=>r.roles=c),mode:"multiple",options:t(o)},null,8,["value","options"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),$e=b({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=X(()=>{var o;return{columns:[{title:"Email"},{title:"Roles"},{title:"",align:"right"}],rows:(o=e.users.map(r=>({key:r.email,cells:[{type:"text",text:r.email},{type:"slot",key:"roles",payload:{roles:r.roles}},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(r)},{icon:J,label:"Delete",onClick:()=>e.onDelete(r)}]}]})))!=null?o:[]}});return(o,r)=>(m(),g(ee,{"entity-name":"users",title:"",loading:o.loading,description:"List all app users.","empty-title":"No users yet",table:a.value,"create-button-text":"Add users",create:o.onCreate},{roles:l(({payload:i})=>[(m(!0),Y(H,null,ve(i.roles,y=>(m(),g(t(_e),{key:y,bordered:""},{default:l(()=>[h(we(y),1)]),_:2},1024))),128))]),_:1},8,["loading","table","create"]))}}),De=b({__name:"NewRole",emits:["created","cancel"],setup(s,{emit:e}){const a=T({name:"",description:""});function o(){e("cancel")}function r(){!a.name||e("created",a)}return(i,y)=>(m(),g(t(F),{open:"",title:"New role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:o},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:o},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:r},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:a,layout:"vertical"},{default:l(()=>[n(t(w),{key:"name",label:"Name",required:!0},{default:l(()=>[n(t(N),{value:a.name,"onUpdate:value":y[0]||(y[0]=p=>a.name=p)},null,8,["value"])]),_:1}),n(t(w),{key:"description",label:"Description"},{default:l(()=>[n(t(W),{value:a.description,"onUpdate:value":y[1]||(y[1]=p=>a.description=p),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),Ie=b({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(s,{emit:e}){const a=s,o=T({description:a.description});function r(){e("cancel")}function i(){e("updated",o)}return(y,p)=>(m(),g(t(F),{open:"",title:"Update role",width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:r},{extra:l(()=>[n(t(E),null,{default:l(()=>[n(t(_),{onClick:r},{default:l(()=>[h("Cancel")]),_:1}),n(t(_),{type:"primary",onClick:i},{default:l(()=>[h("Submit")]),_:1})]),_:1})]),default:l(()=>[n(t(B),{model:o,layout:"vertical"},{default:l(()=>[n(t(w),{key:"name",label:"Name"},{default:l(()=>[n(t(N),{value:a.name,disabled:""},null,8,["value"])]),_:1}),n(t(w),{key:"role",label:"Role"},{default:l(()=>[n(t(W),{value:o.description,"onUpdate:value":p[0]||(p[0]=f=>o.description=f),placeholder:"Optional description",rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}))}}),je=b({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(s){const e=s,a=X(()=>{var o;return{columns:[{title:"Name"},{title:"Description"},{title:"",align:"right"}],rows:(o=e.roles.map(r=>({key:r.id,cells:[{type:"text",text:r.name},{type:"text",text:r.description},{type:"actions",actions:[{icon:te,label:"Edit",onClick:()=>e.onEdit(r)},{icon:J,label:"Delete",onClick:()=>e.onDelete(r)}]}]})))!=null?o:[]}});return(o,r)=>(m(),g(ee,{"entity-name":"roles",loading:o.loading,title:"",description:"List all app roles.","empty-title":"No roles yet",table:a.value,"create-button-text":"Add roles",create:o.onCreate},null,8,["loading","table","create"]))}}),S=class{constructor(e){U(this,"record");this.dto=e,this.record=ae.from(e)}static from(e){return new S(e)}toDTO(){return this.record.toDTO()}get id(){return this.record.get("id")}get projectId(){return this.record.get("projectId")}get emailPatterns(){return this.record.get("emailPatterns")}set emailPatterns(e){this.record.set("emailPatterns",e)}get hasChanges(){return this.record.hasChangesDeep("emailPatterns")}get strategy(){return this.dto.emailPatterns.length===0?"inviteOnly":"patternOnly"}get changes(){return this.record.changes}allowOnlyInvited(){this.record.set("emailPatterns",[])}static validate(e){return S.pattern.test(e)}};let x=S;U(x,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?{const d=new URLSearchParams(location.search).get("selected-panel")||"users",v=["roles","users"].includes(d)?d:"users";d&&(r.value=v)});const i=()=>{o.value.type="initial"},y=()=>{o.value.type="creatingUser"},p=u=>{o.value={type:"editingUser",payload:u}},f=()=>{o.value.type="creatingRole"},c=u=>{o.value={type:"editingRole",payload:u}},C=new Te(a),{result:P,refetch:oe}=G(()=>C.get()),re=async()=>{if(!!P.value)try{await C.update(P.value),oe()}catch(u){u instanceof Error&&k("Update Error",u.message)}},O=new Be(a),{loading:ne,result:le,refetch:$}=G(()=>O.list(100,0)),D=new Re(a),{loading:se,result:V,refetch:L}=G(()=>D.list(100,0)),ie=async u=>{try{if(o.value.type!=="creatingUser")return;await O.create(u),i(),$()}catch(d){d instanceof Error&&k("Create Error",d.message)}},ce=async u=>{try{if(o.value.type!=="editingUser")return;await O.update(o.value.payload.id,u),i(),$()}catch(d){d instanceof Error&&k("Update Error",d.message)}},ue=async u=>{if(!!await Z("Deleting users revoke their access to your application (in case they aren't allowed by a domain rule). Are you sure you want to continue?"))try{await O.delete(u.id),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}},de=async u=>{try{if(o.value.type!=="creatingRole")return;await D.create(u),i(),L()}catch(d){d instanceof Error&&k("Create Error",d.message)}},pe=async u=>{try{if(o.value.type!=="editingRole")return;await D.update(o.value.payload.id,u),i(),L()}catch(d){d instanceof Error&&k("Update Error",d.message)}},me=async u=>{if(!!await Z("Deleteing roles may revoke access to some features in your application. Are you sure you want to continue?"))try{await D.delete(u.id),L(),$()}catch(v){v instanceof Error&&k("Delete Error",v.message)}};return(u,d)=>(m(),Y(H,null,[n(t(ke),null,{default:l(()=>[h("Access Control")]),_:1}),n(t(Pe),null,{default:l(()=>[h(" Manage how your end users interect with your application. "),n(Ue,{path:"concepts/access-control"})]),_:1}),n(t(Ee),{"active-key":r.value,"onUpdate:activeKey":d[0]||(d[0]=v=>r.value=v)},{default:l(()=>[n(t(K),{key:"users",tab:"Users"}),n(t(K),{key:"roles",tab:"Roles"})]),_:1},8,["active-key"]),r.value==="users"&&t(P)?(m(),g(Ae,{key:0,"signup-policy":t(P),onSave:re},null,8,["signup-policy"])):I("",!0),r.value==="users"?(m(),g($e,{key:1,loading:t(ne),users:t(le)||[],onCreate:y,onEdit:p,onDelete:ue},null,8,["loading","users"])):I("",!0),r.value==="roles"?(m(),g(je,{key:2,loading:t(se),roles:t(V)||[],onCreate:f,onEdit:c,onDelete:me},null,8,["loading","roles"])):I("",!0),o.value.type==="creatingUser"?(m(),g(xe,{key:3,"role-options":t(V)||[],onCancel:i,onCreated:ie},null,8,["role-options"])):o.value.type==="editingUser"?(m(),g(Oe,{key:4,email:o.value.payload.email,roles:o.value.payload.roles||[],"role-options":t(V)||[],onUpdated:ce,onCancel:i},null,8,["email","roles","role-options"])):o.value.type==="creatingRole"?(m(),g(De,{key:5,onCancel:i,onCreated:de})):o.value.type==="editingRole"?(m(),g(Ie,{key:6,name:o.value.payload.name,description:o.value.payload.description,onUpdated:pe,onCancel:i},null,8,["name","description"])):I("",!0)],64))}});export{nt as default}; +//# sourceMappingURL=View.8f08686a.js.map diff --git a/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.dc951c99.js b/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.1a7d99da.js similarity index 80% rename from abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.dc951c99.js rename to abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.1a7d99da.js index 3d3db0b228..e1b30fb09c 100644 --- a/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.dc951c99.js +++ b/abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.1a7d99da.js @@ -1,2 +1,2 @@ -var A=Object.defineProperty;var _=(i,e,t)=>e in i?A(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var a=(i,e,t)=>(_(i,typeof e!="symbol"?e+"":e,t),t);import{C as k}from"./gateway.8032b20a.js";import{l as j}from"./fetch.fd4370bb.js";import{E}from"./record.a6861841.js";import{R as O,e as D,ep as F,d as S,ar as I,o as h,Y as R,u as s,c as f,eg as T,w as o,S as m,aS as L,b as u,aG as v,bT as P,e9 as C,cy as $,dc as B,cE as G,cz as N,cL as z}from"./index.8c3f27aa.js";import{S as M}from"./SaveButton.f2d9e5cc.js";import{C as W}from"./CrudView.ac8aad2f.js";import{a as Z}from"./asyncComputed.cfc0cdaf.js";import{u as H}from"./polling.98a0bd01.js";import{G as J}from"./PhPencil.vue.47d672ed.js";import{A as K}from"./index.126762e2.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="0e8e0d8a-d2b1-4ab7-9632-fbb136dda5eb",i._sentryDebugIdIdentifier="sentry-dbid-0e8e0d8a-d2b1-4ab7-9632-fbb136dda5eb")}catch{}})();class y{constructor(e){a(this,"data");a(this,"deleted");a(this,"wasDeleted",e=>this.deleted.value.includes(e));a(this,"wasUpdated",e=>this.data.hasChangesDeep(e));a(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});a(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});a(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});a(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});a(this,"commit",()=>{this.data=E.from(this.values()),this.deleted.value=[]});this.data=E.from(e),this.deleted=O([])}static from(e){const t=e.reduce((n,{name:r,value:p})=>(n[r]=p,n),{});return new y(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class Y{constructor(){a(this,"urlPath","env-vars")}async list(e){return await k.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await k.patch(`projects/${e}/${this.urlPath}`,t)}}const U=new Y;class le{constructor(e){this.projectId=e}async get(){const e=await U.list(this.projectId);return y.from(e.map(t=>({...t,value:""})))}async update(e){await U.update(this.projectId,e)}}class de{constructor(e=j){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return y.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class g{constructor(e,t,n,r){a(this,"envVarRepo");a(this,"envVars");a(this,"state",D({type:"idle"}));a(this,"mode");a(this,"fileOpener");a(this,"openEnvFile",async()=>{var e;await((e=this.fileOpener)==null?void 0:e.openFile(".env"))});a(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:r}=e;if(r.trim()!==r)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(n))throw new Error(`Invalid key: \u2018${n}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});a(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});a(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});a(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});a(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});a(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});a(this,"pollingFunction",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});a(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);a(this,"rows",()=>Object.entries(this.envVars.values()).map(([e,t])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:this.isLocalEditor?t:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:F,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:J,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));a(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});a(this,"hasChanges",()=>this.envVars.changes.length>0);a(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n,this.fileOpener=r}static async create(e,t,n){const r=await e.get();return new g(e,r,t,n)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const ue=S({__name:"View",props:{envVarRepository:{},mode:{},fileOpener:{}},setup(i){const e=i,{result:t,loading:n}=Z(async()=>{const c=await g.create(e.envVarRepository,e.mode,e.fileOpener);return r(),c}),{startPolling:r,endPolling:p}=H({task:()=>{var c;return(c=t.value)==null?void 0:c.pollingFunction()},interval:2e3});I(()=>p());const x={columns:[],rows:[]};return(c,d)=>{var w,b;return h(),R(L,null,[s(t)?(h(),f(W,{key:0,"entity-name":"Env var",loading:s(n),title:"Environment Variables",description:"Set environment variables for your project.","empty-title":"No environment variables set",table:s(t).table()||x,"create-button-text":"Add Environment Variable",create:s(t).create,fields:s(t).creationFields||[],live:s(t).isLocalEditor},T({_:2},[(w=s(t))!=null&&w.isLocalEditor?{name:"secondary",fn:o(()=>{var l;return[u(s(P),{onClick:(l=s(t))==null?void 0:l.openEnvFile},{default:o(()=>[v("Open .env")]),_:1},8,["onClick"])]}),key:"0"}:void 0,(b=s(t))!=null&&b.isLocalEditor?{name:"extra",fn:o(()=>[u(s(K),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[v(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,s(t)?{name:"more",fn:o(()=>[u(M,{model:s(t),disabled:!s(t).hasChanges()},{"with-changes":o(()=>[v(C(s(t).saveMessage),1)]),_:1},8,["model","disabled"])]),key:"2"}:void 0]),1032,["loading","table","create","fields","live"])):m("",!0),s(t)?(h(),f(s(z),{key:1,open:s(t).isUpdating,title:"Update value",onCancel:d[1]||(d[1]=l=>{var V;return(V=s(t))==null?void 0:V.cancelUpdate()}),onOk:d[2]||(d[2]=()=>{var l;return(l=s(t))==null?void 0:l.confirmUpdate()})},{default:o(()=>[s(t).state.value.type==="updating"?(h(),f(s($),{key:0,layout:"vertical"},{default:o(()=>[u(s(N),null,{default:o(()=>[u(s(B),null,{default:o(()=>[v(C(s(t).state.value.name),1)]),_:1}),u(s(G),{value:s(t).state.value.value,"onUpdate:value":d[0]||(d[0]=l=>s(t).state.value.value=l)},null,8,["value"])]),_:1})]),_:1})):m("",!0)]),_:1},8,["open"])):m("",!0)],64)}}});export{le as C,de as E,ue as _}; -//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.dc951c99.js.map +var A=Object.defineProperty;var _=(i,e,t)=>e in i?A(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var a=(i,e,t)=>(_(i,typeof e!="symbol"?e+"":e,t),t);import{C as k}from"./gateway.ae1d6857.js";import{l as j}from"./fetch.e5ebd511.js";import{E}from"./record.8c284c67.js";import{R as O,e as D,ep as F,d as S,ar as I,o as h,Y as R,u as s,c as f,eg as T,w as o,S as m,aS as L,b as c,aG as v,bT as P,e9 as C,cy as $,dc as B,cE as G,cz as N,cL as z}from"./index.d0f12294.js";import{S as M}from"./SaveButton.a02cacb0.js";import{C as W}from"./CrudView.423d8744.js";import{a as Z}from"./asyncComputed.703c33fd.js";import{u as H}from"./polling.c979afd7.js";import{G as J}from"./PhPencil.vue.7418c4e5.js";import{A as K}from"./index.289665f1.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="be103594-59f9-4b8c-9782-247be5122f7e",i._sentryDebugIdIdentifier="sentry-dbid-be103594-59f9-4b8c-9782-247be5122f7e")}catch{}})();class y{constructor(e){a(this,"data");a(this,"deleted");a(this,"wasDeleted",e=>this.deleted.value.includes(e));a(this,"wasUpdated",e=>this.data.hasChangesDeep(e));a(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});a(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});a(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});a(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});a(this,"commit",()=>{this.data=E.from(this.values()),this.deleted.value=[]});this.data=E.from(e),this.deleted=O([])}static from(e){const t=e.reduce((n,{name:r,value:p})=>(n[r]=p,n),{});return new y(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class Y{constructor(){a(this,"urlPath","env-vars")}async list(e){return await k.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await k.patch(`projects/${e}/${this.urlPath}`,t)}}const U=new Y;class le{constructor(e){this.projectId=e}async get(){const e=await U.list(this.projectId);return y.from(e.map(t=>({...t,value:""})))}async update(e){await U.update(this.projectId,e)}}class de{constructor(e=j){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return y.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class g{constructor(e,t,n,r){a(this,"envVarRepo");a(this,"envVars");a(this,"state",D({type:"idle"}));a(this,"mode");a(this,"fileOpener");a(this,"openEnvFile",async()=>{var e;await((e=this.fileOpener)==null?void 0:e.openFile(".env"))});a(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:r}=e;if(r.trim()!==r)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(n))throw new Error(`Invalid key: \u2018${n}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});a(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});a(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});a(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});a(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});a(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});a(this,"pollingFunction",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});a(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);a(this,"rows",()=>Object.entries(this.envVars.values()).map(([e,t])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:this.isLocalEditor?t:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:F,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:J,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));a(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});a(this,"hasChanges",()=>this.envVars.changes.length>0);a(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n,this.fileOpener=r}static async create(e,t,n){const r=await e.get();return new g(e,r,t,n)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const ce=S({__name:"View",props:{envVarRepository:{},mode:{},fileOpener:{}},setup(i){const e=i,{result:t,loading:n}=Z(async()=>{const u=await g.create(e.envVarRepository,e.mode,e.fileOpener);return r(),u}),{startPolling:r,endPolling:p}=H({task:()=>{var u;return(u=t.value)==null?void 0:u.pollingFunction()},interval:2e3});I(()=>p());const x={columns:[],rows:[]};return(u,d)=>{var w,b;return h(),R(L,null,[s(t)?(h(),f(W,{key:0,"entity-name":"Env var",loading:s(n),title:"Environment Variables",description:"Set environment variables for your project.","empty-title":"No environment variables set",table:s(t).table()||x,"create-button-text":"Add Environment Variable",create:s(t).create,fields:s(t).creationFields||[],live:s(t).isLocalEditor},T({_:2},[(w=s(t))!=null&&w.isLocalEditor?{name:"secondary",fn:o(()=>{var l;return[c(s(P),{onClick:(l=s(t))==null?void 0:l.openEnvFile},{default:o(()=>[v("Open .env")]),_:1},8,["onClick"])]}),key:"0"}:void 0,(b=s(t))!=null&&b.isLocalEditor?{name:"extra",fn:o(()=>[c(s(K),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[v(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,s(t)?{name:"more",fn:o(()=>[c(M,{model:s(t),disabled:!s(t).hasChanges()},{"with-changes":o(()=>[v(C(s(t).saveMessage),1)]),_:1},8,["model","disabled"])]),key:"2"}:void 0]),1032,["loading","table","create","fields","live"])):m("",!0),s(t)?(h(),f(s(z),{key:1,open:s(t).isUpdating,title:"Update value",onCancel:d[1]||(d[1]=l=>{var V;return(V=s(t))==null?void 0:V.cancelUpdate()}),onOk:d[2]||(d[2]=()=>{var l;return(l=s(t))==null?void 0:l.confirmUpdate()})},{default:o(()=>[s(t).state.value.type==="updating"?(h(),f(s($),{key:0,layout:"vertical"},{default:o(()=>[c(s(N),null,{default:o(()=>[c(s(B),null,{default:o(()=>[v(C(s(t).state.value.name),1)]),_:1}),c(s(G),{value:s(t).state.value.value,"onUpdate:value":d[0]||(d[0]=l=>s(t).state.value.value=l)},null,8,["value"])]),_:1})]),_:1})):m("",!0)]),_:1},8,["open"])):m("",!0)],64)}}});export{le as C,de as E,ce as _}; +//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.1a7d99da.js.map diff --git a/abstra_statics/dist/assets/Watermark.41d3e1ab.js b/abstra_statics/dist/assets/Watermark.32de12c9.js similarity index 91% rename from abstra_statics/dist/assets/Watermark.41d3e1ab.js rename to abstra_statics/dist/assets/Watermark.32de12c9.js index eab332d5d8..12b2e22c2d 100644 --- a/abstra_statics/dist/assets/Watermark.41d3e1ab.js +++ b/abstra_statics/dist/assets/Watermark.32de12c9.js @@ -1,2 +1,2 @@ -import{S as i}from"./workspaceStore.a6063d10.js";import{d as c,u as t,o as p,Y as l,aG as b,e9 as _,S as f,e_ as C,eV as u,a0 as h}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1c4e5688-cefd-498c-a159-d78e4108af95",e._sentryDebugIdIdentifier="sentry-dbid-1c4e5688-cefd-498c-a159-d78e4108af95")}catch{}})();const m=["href"],v=C('Abstra',2),g=c({__name:"Watermark",props:{pageId:{},locale:{}},setup(e){var s;const a=e,d=window.location.hostname.split(".")[0],r=(s=i.instance)==null?void 0:s.showWatermark,o=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:a.pageId,origin_subdomain:d});return(n,w)=>t(r)?(p(),l("a",{key:0,href:`https://www.abstra.io/forms?${t(o).toString()}`,target:"_blank",class:"watermark"},[b(_(t(u).translate("i18n_watermark_text",n.locale))+" ",1),v],8,m)):f("",!0)}});const k=h(g,[["__scopeId","data-v-4bed0b2c"]]);export{k as W}; -//# sourceMappingURL=Watermark.41d3e1ab.js.map +import{S as i}from"./workspaceStore.e47060bf.js";import{d as c,u as t,o as p,Y as l,aG as b,e9 as _,S as f,e_ as C,eV as u,a0 as h}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7a188f98-4094-44ba-a75e-e25fef228d04",e._sentryDebugIdIdentifier="sentry-dbid-7a188f98-4094-44ba-a75e-e25fef228d04")}catch{}})();const m=["href"],v=C('Abstra',2),g=c({__name:"Watermark",props:{pageId:{},locale:{}},setup(e){var s;const a=e,d=window.location.hostname.split(".")[0],r=(s=i.instance)==null?void 0:s.showWatermark,o=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:a.pageId,origin_subdomain:d});return(n,w)=>t(r)?(p(),l("a",{key:0,href:`https://www.abstra.io/forms?${t(o).toString()}`,target:"_blank",class:"watermark"},[b(_(t(u).translate("i18n_watermark_text",n.locale))+" ",1),v],8,m)):f("",!0)}});const k=h(g,[["__scopeId","data-v-4bed0b2c"]]);export{k as W}; +//# sourceMappingURL=Watermark.32de12c9.js.map diff --git a/abstra_statics/dist/assets/WebEditor.74487396.js b/abstra_statics/dist/assets/WebEditor.0a99a5a7.js similarity index 64% rename from abstra_statics/dist/assets/WebEditor.74487396.js rename to abstra_statics/dist/assets/WebEditor.0a99a5a7.js index 1b132dabbe..5b4c3bc45b 100644 --- a/abstra_statics/dist/assets/WebEditor.74487396.js +++ b/abstra_statics/dist/assets/WebEditor.0a99a5a7.js @@ -1,2 +1,2 @@ -var m=Object.defineProperty;var v=(t,e,i)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var s=(t,e,i)=>(v(t,typeof e!="symbol"?e+"":e,i),i);import{d as g,X as w,ah as y,o,c as l,w as r,b as a,u as n,dh as p,dd as I,aG as c,dc as u,cP as b,em as x,en as P,a as h,a0 as W,e as A,ea as j}from"./index.8c3f27aa.js";import{_ as T}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import{B as k}from"./BaseLayout.995c8c6b.js";import{l as f}from"./fetch.fd4370bb.js";import"./gateway.8032b20a.js";import{P as E}from"./project.cc79d30a.js";import"./tables.2ec18755.js";import"./Logo.cf3e0e74.js";import"./popupNotifcation.40886a7f.js";import"./record.a6861841.js";import"./string.0a3509c3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1896a950-28da-41c8-a77c-b3105b75f8b6",t._sentryDebugIdIdentifier="sentry-dbid-1896a950-28da-41c8-a77c-b3105b75f8b6")}catch{}})();const R=t=>(x("data-v-7a979853"),t=t(),P(),t),U=R(()=>h("div",{class:"video-container"},[h("iframe",{class:"responsive-iframe",src:"https://www.youtube.com/embed/videoseries?list=PLFPJgKA6K86ZdAHZ3aPWsrZHX_7jJ3Cc9&autoplay=1&mute=1",frameborder:"0",allow:"autoplay; picture-in-picture;",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""})],-1)),V=g({__name:"View",props:{controller:{}},setup(t){const e=t,i=e.controller.loadingPercentage();return w(()=>{e.controller.start()}),y(()=>{e.controller.cleanUp()}),(d,_)=>(o(),l(k,null,{content:r(()=>[a(n(p),{align:"center",justify:"center",style:{width:"100vw",height:"100dvh"}},{default:r(()=>[a(n(p),{gap:"large",align:"center",vertical:"",style:{width:"45%","min-width":"600px"}},{default:r(()=>[a(T,{size:"large"}),U,a(n(I),{level:3},{default:r(()=>[c("Preparing your environment")]),_:1}),n(i)<100?(o(),l(n(u),{key:0},{default:r(()=>[c("We are setting things up... This may take up to 4 minutes.")]),_:1})):(o(),l(n(u),{key:1},{default:r(()=>[c("You will be redirected soon")]),_:1})),a(n(b),{size:[10,10],"show-info":!1,percent:n(i),"stroke-color":"#EA576A"},null,8,["percent"])]),_:1})]),_:1})]),_:1}))}});const B=W(V,[["__scopeId","data-v-7a979853"]]);class C{constructor(e,i=f){s(this,"projectId");s(this,"loading");s(this,"fetch",f);s(this,"interval",null);s(this,"urls",null);s(this,"totalWaitTime");s(this,"poolingInterval");s(this,"pingResponded",!1);this.projectId=e,this.loading=A(0),this.fetch=i,this.totalWaitTime=27e4,this.poolingInterval=2500}increment(){this.loading.value+=100/(this.totalWaitTime/this.poolingInterval)}speedUp(){this.totalWaitTime=5e3,this.poolingInterval=500,this.interval&&clearInterval(this.interval),this.interval=setInterval(async()=>{this.increment(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}navigate(){this.urls&&window.location.replace(this.urls.redirect),this.cleanUp()}async ping(){if(!this.urls)return!1;if(this.pingResponded)return!0;const e=await this.fetch(this.urls.ping,{signal:AbortSignal.timeout(500)});return this.pingResponded=e.status===200,this.pingResponded}async start(){const e=await E.startWebEditor(this.projectId);this.urls=e,this.interval=setInterval(async()=>{this.increment(),this.pingResponded||await this.ping()&&this.speedUp(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}cleanUp(){this.interval&&clearInterval(this.interval)}loadingPercentage(){return this.loading}}const G=g({__name:"WebEditor",setup(t){const i=j().params.projectId,d=new C(i);return(_,D)=>(o(),l(B,{controller:n(d)},null,8,["controller"]))}});export{G as default}; -//# sourceMappingURL=WebEditor.74487396.js.map +var m=Object.defineProperty;var v=(t,e,i)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var s=(t,e,i)=>(v(t,typeof e!="symbol"?e+"":e,i),i);import{d as g,X as w,ah as y,o,c as l,w as a,b as r,u as n,dh as d,dd as I,aG as c,dc as u,cP as b,em as x,en as P,a as h,a0 as W,e as A,ea as j}from"./index.d0f12294.js";import{_ as T}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import{B as k}from"./BaseLayout.52f1acec.js";import{l as f}from"./fetch.e5ebd511.js";import"./gateway.ae1d6857.js";import{P as E}from"./project.fad91605.js";import"./tables.318f703e.js";import"./Logo.8f27935a.js";import"./popupNotifcation.a0a6244b.js";import"./record.8c284c67.js";import"./string.d9c83adf.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="84943599-a167-4f54-aef4-1a513afb9c24",t._sentryDebugIdIdentifier="sentry-dbid-84943599-a167-4f54-aef4-1a513afb9c24")}catch{}})();const R=t=>(x("data-v-7a979853"),t=t(),P(),t),U=R(()=>h("div",{class:"video-container"},[h("iframe",{class:"responsive-iframe",src:"https://www.youtube.com/embed/videoseries?list=PLFPJgKA6K86ZdAHZ3aPWsrZHX_7jJ3Cc9&autoplay=1&mute=1",frameborder:"0",allow:"autoplay; picture-in-picture;",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""})],-1)),V=g({__name:"View",props:{controller:{}},setup(t){const e=t,i=e.controller.loadingPercentage();return w(()=>{e.controller.start()}),y(()=>{e.controller.cleanUp()}),(p,_)=>(o(),l(k,null,{content:a(()=>[r(n(d),{align:"center",justify:"center",style:{width:"100vw",height:"100dvh"}},{default:a(()=>[r(n(d),{gap:"large",align:"center",vertical:"",style:{width:"45%","min-width":"600px"}},{default:a(()=>[r(T,{size:"large"}),U,r(n(I),{level:3},{default:a(()=>[c("Preparing your environment")]),_:1}),n(i)<100?(o(),l(n(u),{key:0},{default:a(()=>[c("We are setting things up... This may take up to 4 minutes.")]),_:1})):(o(),l(n(u),{key:1},{default:a(()=>[c("You will be redirected soon")]),_:1})),r(n(b),{size:[10,10],"show-info":!1,percent:n(i),"stroke-color":"#EA576A"},null,8,["percent"])]),_:1})]),_:1})]),_:1}))}});const B=W(V,[["__scopeId","data-v-7a979853"]]);class C{constructor(e,i=f){s(this,"projectId");s(this,"loading");s(this,"fetch",f);s(this,"interval",null);s(this,"urls",null);s(this,"totalWaitTime");s(this,"poolingInterval");s(this,"pingResponded",!1);this.projectId=e,this.loading=A(0),this.fetch=i,this.totalWaitTime=27e4,this.poolingInterval=2500}increment(){this.loading.value+=100/(this.totalWaitTime/this.poolingInterval)}speedUp(){this.totalWaitTime=5e3,this.poolingInterval=500,this.interval&&clearInterval(this.interval),this.interval=setInterval(async()=>{this.increment(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}navigate(){this.urls&&window.location.replace(this.urls.redirect),this.cleanUp()}async ping(){if(!this.urls)return!1;if(this.pingResponded)return!0;const e=await this.fetch(this.urls.ping,{signal:AbortSignal.timeout(500)});return this.pingResponded=e.status===200,this.pingResponded}async start(){const e=await E.startWebEditor(this.projectId);this.urls=e,this.interval=setInterval(async()=>{this.increment(),this.pingResponded||await this.ping()&&this.speedUp(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}cleanUp(){this.interval&&clearInterval(this.interval)}loadingPercentage(){return this.loading}}const G=g({__name:"WebEditor",setup(t){const i=j().params.projectId,p=new C(i);return(_,D)=>(o(),l(B,{controller:n(p)},null,8,["controller"]))}});export{G as default}; +//# sourceMappingURL=WebEditor.0a99a5a7.js.map diff --git a/abstra_statics/dist/assets/Welcome.f33e3b7a.js b/abstra_statics/dist/assets/Welcome.8fd822a7.js similarity index 63% rename from abstra_statics/dist/assets/Welcome.f33e3b7a.js rename to abstra_statics/dist/assets/Welcome.8fd822a7.js index 9cdbc87eff..892781d204 100644 --- a/abstra_statics/dist/assets/Welcome.f33e3b7a.js +++ b/abstra_statics/dist/assets/Welcome.8fd822a7.js @@ -1,2 +1,2 @@ -import{_ as y}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import{C as b}from"./ContentLayout.60e2d770.js";import{l as h}from"./fetch.fd4370bb.js";import{d as w,eo as g,ea as k,e as v,o as r,c,w as n,b as f,a as C,u as d,d9 as p,aG as _,a0 as x}from"./index.8c3f27aa.js";import{u as I,E as T}from"./editor.e7656461.js";import{C as D}from"./Card.c4293d90.js";import"./Logo.cf3e0e74.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./asyncComputed.cfc0cdaf.js";import"./TabPane.2034bc94.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a042b9b0-3cd0-4538-8a22-f11b805b4294",e._sentryDebugIdIdentifier="sentry-dbid-a042b9b0-3cd0-4538-8a22-f11b805b4294")}catch{}})();const L={class:"card-content"},N=w({__name:"Welcome",setup(e){const o=g(),{query:i}=k(),a=I();a.loadLogin();const l=v(!0),u=async()=>{l.value=!1,setInterval(()=>{var t;return window.location.replace(((t=a==null?void 0:a.links)==null?void 0:t.project)||T.consoleUrl)},5e3)};return(async()=>{const t=i.token,s=await h("/_editor/web-editor/welcome",{method:"POST",body:JSON.stringify({token:t}),headers:{"Content-Type":"application/json"}});if(!s.ok)return u();const{ok:m}=await s.json();if(!m)return u();await o.push({name:"workspace"})})(),(t,s)=>(r(),c(b,null,{default:n(()=>[f(d(D),{bordered:!1,class:"card"},{default:n(()=>[C("div",L,[f(y,{style:{"margin-bottom":"10px"}}),l.value?(r(),c(d(p),{key:0},{default:n(()=>[_("Loading...")]),_:1})):(r(),c(d(p),{key:1},{default:n(()=>[_("Authentication failed. You are been redirected...")]),_:1}))])]),_:1})]),_:1}))}});const G=x(N,[["__scopeId","data-v-a984ec04"]]);export{G as default}; -//# sourceMappingURL=Welcome.f33e3b7a.js.map +import{_ as y}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import{C as b}from"./ContentLayout.f92ff80c.js";import{l as h}from"./fetch.e5ebd511.js";import{d as w,eo as g,ea as k,e as v,o as r,c,w as n,b as f,a as C,u as d,d9 as p,aG as _,a0 as x}from"./index.d0f12294.js";import{u as I,E as T}from"./editor.95f16260.js";import{C as D}from"./Card.2a8fe028.js";import"./Logo.8f27935a.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./asyncComputed.703c33fd.js";import"./TabPane.79f4882f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="dc93846f-8453-4734-97c6-e2dbc166687c",e._sentryDebugIdIdentifier="sentry-dbid-dc93846f-8453-4734-97c6-e2dbc166687c")}catch{}})();const L={class:"card-content"},N=w({__name:"Welcome",setup(e){const o=g(),{query:i}=k(),a=I();a.loadLogin();const l=v(!0),u=async()=>{l.value=!1,setInterval(()=>{var t;return window.location.replace(((t=a==null?void 0:a.links)==null?void 0:t.project)||T.consoleUrl)},5e3)};return(async()=>{const t=i.token,s=await h("/_editor/web-editor/welcome",{method:"POST",body:JSON.stringify({token:t}),headers:{"Content-Type":"application/json"}});if(!s.ok)return u();const{ok:m}=await s.json();if(!m)return u();await o.push({name:"workspace"})})(),(t,s)=>(r(),c(b,null,{default:n(()=>[f(d(D),{bordered:!1,class:"card"},{default:n(()=>[C("div",L,[f(y,{style:{"margin-bottom":"10px"}}),l.value?(r(),c(d(p),{key:0},{default:n(()=>[_("Loading...")]),_:1})):(r(),c(d(p),{key:1},{default:n(()=>[_("Authentication failed. You are been redirected...")]),_:1}))])]),_:1})]),_:1}))}});const G=x(N,[["__scopeId","data-v-a984ec04"]]);export{G as default}; +//# sourceMappingURL=Welcome.8fd822a7.js.map diff --git a/abstra_statics/dist/assets/WidgetPreview.1fa01bd0.js b/abstra_statics/dist/assets/WidgetPreview.235f8d1e.js similarity index 83% rename from abstra_statics/dist/assets/WidgetPreview.1fa01bd0.js rename to abstra_statics/dist/assets/WidgetPreview.235f8d1e.js index 7b5ffac328..83661a8c18 100644 --- a/abstra_statics/dist/assets/WidgetPreview.1fa01bd0.js +++ b/abstra_statics/dist/assets/WidgetPreview.235f8d1e.js @@ -1,2 +1,2 @@ -import{d as k,e as B,X as h,o as n,c as u,w as f,b as A,aG as I,e9 as P,ed as C,eU as D,u as y,bT as N,eZ as q,a0 as S,ea as V,S as b,a as g,Y as c,eb as v,ec as x,aS as w,q as E,t as L}from"./index.8c3f27aa.js";import{S as $}from"./Steps.526dbd54.js";import{W as F}from"./PlayerConfigProvider.4d4af7bc.js";import"./index.f36b2f2c.js";import"./colorHelpers.0ac76147.js";import"./index.73b06b4b.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="01238f7a-37f3-4b36-9b07-90230d2ab339",o._sentryDebugIdIdentifier="sentry-dbid-01238f7a-37f3-4b36-9b07-90230d2ab339")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return h(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(y(q),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[I(P(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const M=S(K,[["__scopeId","data-v-aea27bb7"]]),O={class:"form"},z={class:"form-wrapper"},G={key:0,class:"buttons"},J=k({__name:"WidgetPreview",setup(o){const t=V(),d=B([]);function l(e){return E[e]||L[e]||null}function r(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(r).filter(Boolean):[r(e)]}function p(){return t.query.steps==="true"}function m(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const _=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u(F,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u($,{key:0,class:"steps","steps-info":{current:1,total:3}})):b("",!0),g("div",O,[g("div",z,[(n(!0),c(w,null,v(i(),(a,W)=>(n(),c("div",{key:W,class:"widget"},[(n(),u(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),m().length?(n(),c("div",G,[(n(!0),c(w,null,v(m(),a=>(n(),u(M,{key:a,"display-name":_(a).name,action:_(a)},null,8,["display-name","action"]))),128))])):b("",!0)])]),_:1}))}});const j=S(J,[["__scopeId","data-v-0c6cef1d"]]);export{j as default}; -//# sourceMappingURL=WidgetPreview.1fa01bd0.js.map +import{d as k,e as B,X as h,o as n,c as u,w as f,b as A,aG as I,e9 as P,ed as C,eU as D,u as y,bT as N,eZ as q,a0 as S,ea as V,S as b,a as g,Y as c,eb as v,ec as x,aS as w,q as E,t as L}from"./index.d0f12294.js";import{S as $}from"./Steps.b72611f7.js";import{W as F}from"./PlayerConfigProvider.e5e86f58.js";import"./index.2862b277.js";import"./colorHelpers.b079bb04.js";import"./index.c7e8afe7.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="734685ab-0b06-4456-9097-b6cd686b0fdf",o._sentryDebugIdIdentifier="sentry-dbid-734685ab-0b06-4456-9097-b6cd686b0fdf")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return h(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(y(q),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[I(P(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const M=S(K,[["__scopeId","data-v-aea27bb7"]]),O={class:"form"},z={class:"form-wrapper"},G={key:0,class:"buttons"},J=k({__name:"WidgetPreview",setup(o){const t=V(),d=B([]);function l(e){return E[e]||L[e]||null}function r(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(r).filter(Boolean):[r(e)]}function p(){return t.query.steps==="true"}function m(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const _=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u(F,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u($,{key:0,class:"steps","steps-info":{current:1,total:3}})):b("",!0),g("div",O,[g("div",z,[(n(!0),c(w,null,v(i(),(a,W)=>(n(),c("div",{key:W,class:"widget"},[(n(),u(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),m().length?(n(),c("div",G,[(n(!0),c(w,null,v(m(),a=>(n(),u(M,{key:a,"display-name":_(a).name,action:_(a)},null,8,["display-name","action"]))),128))])):b("",!0)])]),_:1}))}});const j=S(J,[["__scopeId","data-v-0c6cef1d"]]);export{j as default}; +//# sourceMappingURL=WidgetPreview.235f8d1e.js.map diff --git a/abstra_statics/dist/assets/Workflow.0ffe81e0.js b/abstra_statics/dist/assets/Workflow.1ecea04a.js similarity index 99% rename from abstra_statics/dist/assets/Workflow.0ffe81e0.js rename to abstra_statics/dist/assets/Workflow.1ecea04a.js index 95ca561903..5e05dea6a6 100644 --- a/abstra_statics/dist/assets/Workflow.0ffe81e0.js +++ b/abstra_statics/dist/assets/Workflow.1ecea04a.js @@ -1,4 +1,4 @@ -var hl=Object.defineProperty;var gl=(e,t,n)=>t in e?hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ee=(e,t,n)=>(gl(e,typeof t!="symbol"?t+"":t,n),n);import{d as he,D as Pe,f as U,o as O,Y as q,$ as Ne,S as me,e8 as mt,a as ge,b as j,ee as pl,p as $e,I as pa,y as va,g as Se,W as Tt,e as ie,bB as be,X as Oe,eq as ma,ah as Rt,w as ue,u as D,J as Un,K as rt,dF as vl,er as ya,es as Ei,Z as Ie,ed as Xe,c as fe,aS as Ae,an as Cn,E as ml,e9 as Te,F as Ni,L as yl,et as wl,eu as _e,ec as He,aG as Be,ar as wa,r as _a,eb as tn,ev as ba,ew as _l,z as Lt,ex as bl,cM as kt,R as ir,ej as bt,aL as Sl,ey as Sa,dc as So,bL as Ut,a0 as lt,aB as $l,cU as rr,dh as At,ez as xl,eA as El,aW as Nl,bT as kl,d9 as ki,x as Cl,cz as Ml,cy as Il,cL as Tl,eo as Al,em as Pl,en as Dl,eh as zl,eB as Bl}from"./index.8c3f27aa.js";import{w as Wt,s as Ci}from"./metadata.2beed20a.js";import{G as Ol}from"./PhArrowCounterClockwise.vue.e0916215.js";import{a as Rl,n as no,c as Vl,d as $a,v as xa,e as Ea}from"./validations.1f9bbc1f.js";import{u as Hl}from"./uuid.4ec4da84.js";import{t as $o}from"./index.73b06b4b.js";import{W as Fo}from"./workspaces.7bc437a6.js";import{u as Fl}from"./polling.98a0bd01.js";import"./index.c8ad961f.js";import{B as un}from"./Badge.7a29ebdb.js";import{G as ar}from"./PhArrowDown.vue.bbcdf79c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d02a0f4d-fc96-4217-918d-cb2a6fb23f82",e._sentryDebugIdIdentifier="sentry-dbid-d02a0f4d-fc96-4217-918d-cb2a6fb23f82")}catch{}})();var Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const Yl=Ll,Xl=["width","height","fill","transform"],Gl={key:0},Zl=ge("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"},null,-1),Ul=[Zl],Wl={key:1},ql=ge("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Kl=ge("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),Jl=[ql,Kl],Ql={key:2},jl=ge("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"},null,-1),eu=[jl],tu={key:3},nu=ge("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"},null,-1),ou=[nu],iu={key:4},ru=ge("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),au=[ru],su={key:5},lu=ge("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"},null,-1),uu=[lu],cu={name:"PhArrowClockwise"},du=he({...cu,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=Pe("weight","regular"),o=Pe("size","1em"),i=Pe("color","currentColor"),r=Pe("mirrored",!1),a=U(()=>{var c;return(c=t.weight)!=null?c:n}),s=U(()=>{var c;return(c=t.size)!=null?c:o}),l=U(()=>{var c;return(c=t.color)!=null?c:i}),u=U(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(c,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:u.value},c.$attrs),[Ne(c.$slots,"default"),a.value==="bold"?(O(),q("g",Gl,Ul)):a.value==="duotone"?(O(),q("g",Wl,Jl)):a.value==="fill"?(O(),q("g",Ql,eu)):a.value==="light"?(O(),q("g",tu,ou)):a.value==="regular"?(O(),q("g",iu,au)):a.value==="thin"?(O(),q("g",su,uu)):me("",!0)],16,Xl))}}),fu=["width","height","fill","transform"],hu={key:0},gu=ge("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"},null,-1),pu=[gu],vu={key:1},mu=ge("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),yu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),wu=[mu,yu],_u={key:2},bu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"},null,-1),Su=[bu],$u={key:3},xu=ge("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"},null,-1),Eu=[xu],Nu={key:4},ku=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),Cu=[ku],Mu={key:5},Iu=ge("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"},null,-1),Tu=[Iu],Au={name:"PhClock"},Pu=he({...Au,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=Pe("weight","regular"),o=Pe("size","1em"),i=Pe("color","currentColor"),r=Pe("mirrored",!1),a=U(()=>{var c;return(c=t.weight)!=null?c:n}),s=U(()=>{var c;return(c=t.size)!=null?c:o}),l=U(()=>{var c;return(c=t.color)!=null?c:i}),u=U(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(c,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:u.value},c.$attrs),[Ne(c.$slots,"default"),a.value==="bold"?(O(),q("g",hu,pu)):a.value==="duotone"?(O(),q("g",vu,wu)):a.value==="fill"?(O(),q("g",_u,Su)):a.value==="light"?(O(),q("g",$u,Eu)):a.value==="regular"?(O(),q("g",Nu,Cu)):a.value==="thin"?(O(),q("g",Mu,Tu)):me("",!0)],16,fu))}});function sr(e){for(var t=1;ttypeof e<"u",Ru=Object.prototype.toString,Vu=e=>Ru.call(e)==="[object Object]",Hu=()=>{};function Fu(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const Na=e=>e();function Lu(e=Na){const t=ie(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:bl(t),pause:n,resume:o,eventFilter:i}}function lr(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function Yu(e,t,n={}){const{eventFilter:o=Na,...i}=n;return Se(e,Fu(o,t),i)}function Ht(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:s,isActive:l}=Lu(o);return{stop:Yu(e,t,{...i,eventFilter:r}),pause:a,resume:s,isActive:l}}function Xu(e,t={}){if(!Ni(e))return yl(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=wl(()=>({get(){return e.value[o]},set(i){var r;if((r=nt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const s=[...e.value];s[o]=i,e.value=s}else{const s={...e.value,[o]:i};Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:h="sync",deep:g=!1,timeout:$,throwOnTimeout:_}={}){let b=null;const v=[new Promise(N=>{b=Se(e,k=>{d(k)!==t&&(b==null||b(),N(k))},{flush:h,deep:g,immediate:!0})})];return $!=null&&v.push(lr($,_).then(()=>nt(e)).finally(()=>b==null?void 0:b())),Promise.race(v)}function o(d,h){if(!Ni(d))return n(k=>k===d,h);const{flush:g="sync",deep:$=!1,timeout:_,throwOnTimeout:b}=h!=null?h:{};let S=null;const N=[new Promise(k=>{S=Se([e,d],([V,Y])=>{t!==(V===Y)&&(S==null||S(),k(V))},{flush:g,deep:$,immediate:!0})})];return _!=null&&N.push(lr(_,b).then(()=>nt(e)).finally(()=>(S==null||S(),nt(e)))),Promise.race(N)}function i(d){return n(h=>Boolean(h),d)}function r(d){return o(null,d)}function a(d){return o(void 0,d)}function s(d){return n(Number.isNaN,d)}function l(d,h){return n(g=>{const $=Array.from(g);return $.includes(d)||$.includes(nt(d))},h)}function u(d){return c(1,d)}function c(d=1,h){let g=-1;return n(()=>(g+=1,g>=d),h)}return Array.isArray(nt(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:s,toBeUndefined:a,changed:u,changedTimes:c,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function Gu(e){var t;const n=nt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ka=Bu?window:void 0;function Ca(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=ka):[t,n,o,i]=e,!t)return Hu;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(c=>c()),r.length=0},s=(c,d,h,g)=>(c.addEventListener(d,h,g),()=>c.removeEventListener(d,h,g)),l=Se(()=>[Gu(t),nt(i)],([c,d])=>{if(a(),!c)return;const h=Vu(d)?{...d}:d;r.push(...n.flatMap(g=>o.map($=>s(c,g,$,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return xo(u),u}function Zu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ur(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=ka,eventName:r="keydown",passive:a=!1,dedupe:s=!1}=o,l=Zu(t);return Ca(i,r,c=>{c.repeat&&nt(s)||l(c)&&n(c)},a)}function Uu(e){return JSON.parse(JSON.stringify(e))}function Lo(e,t,n,o={}){var i,r,a;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:h}=o,g=Cn(),$=n||(g==null?void 0:g.emit)||((i=g==null?void 0:g.$emit)==null?void 0:i.bind(g))||((a=(r=g==null?void 0:g.proxy)==null?void 0:r.$emit)==null?void 0:a.bind(g==null?void 0:g.proxy));let _=u;t||(t="modelValue"),_=_||`update:${t.toString()}`;const b=N=>s?typeof s=="function"?s(N):Uu(N):N,S=()=>Ou(e[t])?b(e[t]):d,v=N=>{h?h(N)&&$(_,N):$(_,N)};if(l){const N=S(),k=ie(N);let V=!1;return Se(()=>e[t],Y=>{V||(V=!0,k.value=b(Y),rt(()=>V=!1))}),Se(k,Y=>{!V&&(Y!==e[t]||c)&&v(Y)},{deep:c}),k}else return U({get(){return S()},set(N){v(N)}})}var Wu={value:()=>{}};function Eo(){for(var e=0,t=arguments.length,n={},o;e=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Wn.prototype=Eo.prototype={constructor:Wn,on:function(e,t){var n=this._,o=qu(e+"",n),i,r=-1,a=o.length;if(arguments.length<2){for(;++r0)for(var n=new Array(i),o=0,i,r;o=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),dr.hasOwnProperty(t)?{space:dr[t],local:e}:e}function Ju(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function Qu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ma(e){var t=No(e);return(t.local?Qu:Ju)(t)}function ju(){}function Ii(e){return e==null?ju:function(){return this.querySelector(e)}}function ec(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=N&&(N=v+1);!(V=b[N])&&++N<$;);k._next=V||null}}return a=new Re(a,o),a._enter=s,a._exit=l,a}function _c(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bc(){return new Re(this._exit||this._groups.map(Pa),this._parents)}function Sc(e,t,n){var o=this.enter(),i=this,r=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?r.remove():n(r),o&&i?o.merge(i).order():i}function $c(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,i=n.length,r=o.length,a=Math.min(i,r),s=new Array(i),l=0;l=0;)(a=o[i])&&(r&&a.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(a,r),r=a);return this}function Ec(e){e||(e=Nc);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,o=n.length,i=new Array(o),r=0;rt?1:e>=t?0:NaN}function kc(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Cc(){return Array.from(this)}function Mc(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Hc:typeof t=="function"?Lc:Fc)(e,t,n==null?"":n)):qt(this.node(),e)}function qt(e,t){return e.style.getPropertyValue(t)||Da(e).getComputedStyle(e,null).getPropertyValue(t)}function Xc(e){return function(){delete this[e]}}function Gc(e,t){return function(){this[e]=t}}function Zc(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Uc(e,t){return arguments.length>1?this.each((t==null?Xc:typeof t=="function"?Zc:Gc)(e,t)):this.node()[e]}function za(e){return e.trim().split(/^|\s+/)}function Ti(e){return e.classList||new Ba(e)}function Ba(e){this._node=e,this._names=za(e.getAttribute("class")||"")}Ba.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Oa(e,t){for(var n=Ti(e),o=-1,i=t.length;++o=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function bd(e){return function(){var t=this.__on;if(!!t){for(var n=0,o=-1,i=t.length,r;n()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Td(e){return!e.ctrlKey&&!e.button}function Ad(){return this.parentNode}function Pd(e,t){return t==null?{x:e.x,y:e.y}:t}function Dd(){return navigator.maxTouchPoints||"ontouchstart"in this}function zd(){var e=Td,t=Ad,n=Pd,o=Dd,i={},r=Eo("start","drag","end"),a=0,s,l,u,c,d=0;function h(k){k.on("mousedown.drag",g).filter(o).on("touchstart.drag",b).on("touchmove.drag",S,Id).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(k,V){if(!(c||!e.call(this,k,V))){var Y=N(this,t.call(this,k,V),k,V,"mouse");!Y||(Fe(k.view).on("mousemove.drag",$,mn).on("mouseup.drag",_,mn),Fa(k.view),Yo(k),u=!1,s=k.clientX,l=k.clientY,Y("start",k))}}function $(k){if(Yt(k),!u){var V=k.clientX-s,Y=k.clientY-l;u=V*V+Y*Y>d}i.mouse("drag",k)}function _(k){Fe(k.view).on("mousemove.drag mouseup.drag",null),La(k.view,u),Yt(k),i.mouse("end",k)}function b(k,V){if(!!e.call(this,k,V)){var Y=k.changedTouches,F=t.call(this,k,V),K=Y.length,Z,T;for(Z=0;Z>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Od.exec(e))?new De(t[1],t[2],t[3],1):(t=Rd.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Vd.exec(e))?zn(t[1],t[2],t[3],t[4]):(t=Hd.exec(e))?zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fd.exec(e))?yr(t[1],t[2]/100,t[3]/100,1):(t=Ld.exec(e))?yr(t[1],t[2]/100,t[3]/100,t[4]):fr.hasOwnProperty(e)?pr(fr[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function pr(e){return new De(e>>16&255,e>>8&255,e&255,1)}function zn(e,t,n,o){return o<=0&&(e=t=n=NaN),new De(e,t,n,o)}function Gd(e){return e instanceof In||(e=_n(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function ri(e,t,n,o){return arguments.length===1?Gd(e):new De(e,t,n,o==null?1:o)}function De(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ai(De,ri,Ya(In,{brighter(e){return e=e==null?io:Math.pow(io,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new De(Ct(this.r),Ct(this.g),Ct(this.b),ro(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vr,formatHex:vr,formatHex8:Zd,formatRgb:mr,toString:mr}));function vr(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}`}function Zd(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}${Et((isNaN(this.opacity)?1:this.opacity)*255)}`}function mr(){const e=ro(this.opacity);return`${e===1?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${e===1?")":`, ${e})`}`}function ro(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Et(e){return e=Ct(e),(e<16?"0":"")+e.toString(16)}function yr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Le(e,t,n,o)}function Xa(e){if(e instanceof Le)return new Le(e.h,e.s,e.l,e.opacity);if(e instanceof In||(e=_n(e)),!e)return new Le;if(e instanceof Le)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),a=NaN,s=r-i,l=(r+i)/2;return s?(t===r?a=(n-o)/s+(n0&&l<1?0:a,new Le(a,s,l,e.opacity)}function Ud(e,t,n,o){return arguments.length===1?Xa(e):new Le(e,t,n,o==null?1:o)}function Le(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ai(Le,Ud,Ya(In,{brighter(e){return e=e==null?io:Math.pow(io,e),new Le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new Le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new De(Xo(e>=240?e-240:e+120,i,o),Xo(e,i,o),Xo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Le(wr(this.h),Bn(this.s),Bn(this.l),ro(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ro(this.opacity);return`${e===1?"hsl(":"hsla("}${wr(this.h)}, ${Bn(this.s)*100}%, ${Bn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wr(e){return e=(e||0)%360,e<0?e+360:e}function Bn(e){return Math.max(0,Math.min(1,e||0))}function Xo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ga=e=>()=>e;function Wd(e,t){return function(n){return e+n*t}}function qd(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function Kd(e){return(e=+e)==1?Za:function(t,n){return n-t?qd(t,n,e):Ga(isNaN(t)?n:t)}}function Za(e,t){var n=t-e;return n?Wd(e,n):Ga(isNaN(e)?t:e)}const _r=function e(t){var n=Kd(t);function o(i,r){var a=n((i=ri(i)).r,(r=ri(r)).r),s=n(i.g,r.g),l=n(i.b,r.b),u=Za(i.opacity,r.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var ai=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Go=new RegExp(ai.source,"g");function Jd(e){return function(){return e}}function Qd(e){return function(t){return e(t)+""}}function jd(e,t){var n=ai.lastIndex=Go.lastIndex=0,o,i,r,a=-1,s=[],l=[];for(e=e+"",t=t+"";(o=ai.exec(e))&&(i=Go.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),s[a]?s[a]+=r:s[++a]=r),(o=o[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:ht(o,i)})),n=Go.lastIndex;return n180?c+=360:c-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(u,c)})):c&&d.push(i(d)+"rotate("+c+o)}function s(u,c,d,h){u!==c?h.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(u,c)}):c&&d.push(i(d)+"skewX("+c+o)}function l(u,c,d,h,g,$){if(u!==d||c!==h){var _=g.push(i(g)+"scale(",null,",",null,")");$.push({i:_-4,x:ht(u,d)},{i:_-2,x:ht(c,h)})}else(d!==1||h!==1)&&g.push(i(g)+"scale("+d+","+h+")")}return function(u,c){var d=[],h=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,h),a(u.rotate,c.rotate,d,h),s(u.skewX,c.skewX,d,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,h),u=c=null,function(g){for(var $=-1,_=h.length,b;++$<_;)d[(b=h[$]).i]=b.x(g);return d.join("")}}}var nf=Wa(ef,"px, ","px)","deg)"),of=Wa(tf,", ",")",")"),rf=1e-12;function Sr(e){return((e=Math.exp(e))+1/e)/2}function af(e){return((e=Math.exp(e))-1/e)/2}function sf(e){return((e=Math.exp(2*e))-1)/(e+1)}const lf=function e(t,n,o){function i(r,a){var s=r[0],l=r[1],u=r[2],c=a[0],d=a[1],h=a[2],g=c-s,$=d-l,_=g*g+$*$,b,S;if(_=0&&e._call.call(void 0,t),e=e._next;--Kt}function $r(){Pt=(so=bn.now())+ko,Kt=cn=0;try{cf()}finally{Kt=0,ff(),Pt=0}}function df(){var e=bn.now(),t=e-so;t>qa&&(ko-=t,so=e)}function ff(){for(var e,t=ao,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ao=n);dn=e,li(o)}function li(e){if(!Kt){cn&&(cn=clearTimeout(cn));var t=e-Pt;t>24?(e<1/0&&(cn=setTimeout($r,e-bn.now()-ko)),rn&&(rn=clearInterval(rn))):(rn||(so=bn.now(),rn=setInterval(df,qa)),Kt=1,Ka($r))}}function xr(e,t,n){var o=new lo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var hf=Eo("start","end","cancel","interrupt"),gf=[],Qa=0,Er=1,ui=2,qn=3,Nr=4,ci=5,Kn=6;function Co(e,t,n,o,i,r){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;pf(e,n,{name:t,index:o,group:i,on:hf,tween:gf,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Qa})}function Di(e,t){var n=Ge(e,t);if(n.state>Qa)throw new Error("too late; already scheduled");return n}function Je(e,t){var n=Ge(e,t);if(n.state>qn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function pf(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Ja(r,0,n.time);function r(u){n.state=Er,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,d,h,g;if(n.state!==Er)return l();for(c in o)if(g=o[c],g.name===n.name){if(g.state===qn)return xr(a);g.state===Nr?(g.state=Kn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[c]):+cui&&o.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function Gf(e,t,n){var o,i,r=Xf(t)?Di:Je;return function(){var a=r(this,e),s=a.on;s!==o&&(i=(o=s).copy()).on(t,n),a.on=i}}function Zf(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(Gf(n,e,t))}function Uf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Wf(){return this.on("end.remove",Uf(this._id))}function qf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),a=0;a()=>e;function _h(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function ot(e,t,n){this.k=e,this.x=t,this.y=n}ot.prototype={constructor:ot,scale:function(e){return e===1?this:new ot(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ot(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Jt=new ot(1,0,0);ot.prototype;function Zo(e){e.stopImmediatePropagation()}function an(e){e.preventDefault(),e.stopImmediatePropagation()}function bh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Sh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function kr(){return this.__zoom||Jt}function $h(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function xh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Eh(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),a>r?(r+a)/2:Math.min(0,r)||Math.max(0,a))}function Nh(){var e=bh,t=Sh,n=Eh,o=$h,i=xh,r=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=lf,u=Eo("start","zoom","end"),c,d,h,g=500,$=150,_=0,b=10;function S(f){f.property("__zoom",kr).on("wheel.zoom",K,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",T).filter(i).on("touchstart.zoom",w).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",Q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(f,x,y,M){var E=f.selection?f.selection():f;E.property("__zoom",kr),f!==E?V(f,x,y,M):E.interrupt().each(function(){Y(this,arguments).event(M).start().zoom(null,typeof x=="function"?x.apply(this,arguments):x).end()})},S.scaleBy=function(f,x,y,M){S.scaleTo(f,function(){var E=this.__zoom.k,I=typeof x=="function"?x.apply(this,arguments):x;return E*I},y,M)},S.scaleTo=function(f,x,y,M){S.transform(f,function(){var E=t.apply(this,arguments),I=this.__zoom,C=y==null?k(E):typeof y=="function"?y.apply(this,arguments):y,R=I.invert(C),W=typeof x=="function"?x.apply(this,arguments):x;return n(N(v(I,W),C,R),E,a)},y,M)},S.translateBy=function(f,x,y,M){S.transform(f,function(){return n(this.__zoom.translate(typeof x=="function"?x.apply(this,arguments):x,typeof y=="function"?y.apply(this,arguments):y),t.apply(this,arguments),a)},null,M)},S.translateTo=function(f,x,y,M,E){S.transform(f,function(){var I=t.apply(this,arguments),C=this.__zoom,R=M==null?k(I):typeof M=="function"?M.apply(this,arguments):M;return n(Jt.translate(R[0],R[1]).scale(C.k).translate(typeof x=="function"?-x.apply(this,arguments):-x,typeof y=="function"?-y.apply(this,arguments):-y),I,a)},M,E)};function v(f,x){return x=Math.max(r[0],Math.min(r[1],x)),x===f.k?f:new ot(x,f.x,f.y)}function N(f,x,y){var M=x[0]-y[0]*f.k,E=x[1]-y[1]*f.k;return M===f.x&&E===f.y?f:new ot(f.k,M,E)}function k(f){return[(+f[0][0]+ +f[1][0])/2,(+f[0][1]+ +f[1][1])/2]}function V(f,x,y,M){f.on("start.zoom",function(){Y(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){Y(this,arguments).event(M).end()}).tween("zoom",function(){var E=this,I=arguments,C=Y(E,I).event(M),R=t.apply(E,I),W=y==null?k(R):typeof y=="function"?y.apply(E,I):y,B=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),P=E.__zoom,L=typeof x=="function"?x.apply(E,I):x,ae=l(P.invert(W).concat(B/P.k),L.invert(W).concat(B/L.k));return function(se){if(se===1)se=L;else{var ce=ae(se),le=B/ce[2];se=new ot(le,W[0]-ce[0]*le,W[1]-ce[1]*le)}C.zoom(null,se)}})}function Y(f,x,y){return!y&&f.__zooming||new F(f,x)}function F(f,x){this.that=f,this.args=x,this.active=0,this.sourceEvent=null,this.extent=t.apply(f,x),this.taps=0}F.prototype={event:function(f){return f&&(this.sourceEvent=f),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(f,x){return this.mouse&&f!=="mouse"&&(this.mouse[1]=x.invert(this.mouse[0])),this.touch0&&f!=="touch"&&(this.touch0[1]=x.invert(this.touch0[0])),this.touch1&&f!=="touch"&&(this.touch1[1]=x.invert(this.touch1[0])),this.that.__zoom=x,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(f){var x=Fe(this.that).datum();u.call(f,this.that,new _h(f,{sourceEvent:this.sourceEvent,target:S,type:f,transform:this.that.__zoom,dispatch:u}),x)}};function K(f,...x){if(!e.apply(this,arguments))return;var y=Y(this,x).event(f),M=this.__zoom,E=Math.max(r[0],Math.min(r[1],M.k*Math.pow(2,o.apply(this,arguments)))),I=Ue(f);if(y.wheel)(y.mouse[0][0]!==I[0]||y.mouse[0][1]!==I[1])&&(y.mouse[1]=M.invert(y.mouse[0]=I)),clearTimeout(y.wheel);else{if(M.k===E)return;y.mouse=[I,M.invert(I)],Jn(this),y.start()}an(f),y.wheel=setTimeout(C,$),y.zoom("mouse",n(N(v(M,E),y.mouse[0],y.mouse[1]),y.extent,a));function C(){y.wheel=null,y.end()}}function Z(f,...x){if(h||!e.apply(this,arguments))return;var y=f.currentTarget,M=Y(this,x,!0).event(f),E=Fe(f.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",B,!0),I=Ue(f,y),C=f.clientX,R=f.clientY;Fa(f.view),Zo(f),M.mouse=[I,this.__zoom.invert(I)],Jn(this),M.start();function W(P){if(an(P),!M.moved){var L=P.clientX-C,ae=P.clientY-R;M.moved=L*L+ae*ae>_}M.event(P).zoom("mouse",n(N(M.that.__zoom,M.mouse[0]=Ue(P,y),M.mouse[1]),M.extent,a))}function B(P){E.on("mousemove.zoom mouseup.zoom",null),La(P.view,M.moved),an(P),M.event(P).end()}}function T(f,...x){if(!!e.apply(this,arguments)){var y=this.__zoom,M=Ue(f.changedTouches?f.changedTouches[0]:f,this),E=y.invert(M),I=y.k*(f.shiftKey?.5:2),C=n(N(v(y,I),M,E),t.apply(this,x),a);an(f),s>0?Fe(this).transition().duration(s).call(V,C,M,f):Fe(this).call(S.transform,C,M,f)}}function w(f,...x){if(!!e.apply(this,arguments)){var y=f.touches,M=y.length,E=Y(this,x,f.changedTouches.length===M).event(f),I,C,R,W;for(Zo(f),C=0;C(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(te||{}),Bi=(e=>(e.Partial="partial",e.Full="full",e))(Bi||{}),St=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(St||{}),Dt=(e=>(e.Strict="strict",e.Loose="loose",e))(Dt||{}),zt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(zt||{}),pn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(pn||{}),ns=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(ns||{});function di(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(o==null?void 0:o.nodeName)||i||!!r}function kh(e){return e.ctrlKey||e.metaKey||e.shiftKey}function Cr(e,t,n,o){const i=t.split("+").map(r=>r.trim().toLowerCase());return i.length===1?e.toLowerCase()===t.toLowerCase():(o?n.delete(e.toLowerCase()):n.add(e.toLowerCase()),i.every((r,a)=>n.has(r)&&Array.from(n.values())[a]===i[a]))}function Ch(e,t){return n=>{if(!n.code&&!n.key)return!1;const o=Mh(n.code,e);return Array.isArray(e)?e.some(i=>Cr(n[o],i,t,n.type==="keyup")):Cr(n[o],e,t,n.type==="keyup")}}function Mh(e,t){return typeof t=="string"?e===t?"code":"key":t.includes(e)?"code":"key"}function vn(e,t){const n=be(()=>{var c;return(c=_e(t==null?void 0:t.actInsideInputWithModifier))!=null?c:!1}),o=be(()=>{var c;return(c=_e(t==null?void 0:t.target))!=null?c:window}),i=ie(_e(e)===!0);let r=!1;const a=new Set;let s=u(_e(e));Se(()=>_e(e),(c,d)=>{typeof d=="boolean"&&typeof c!="boolean"&&l(),s=u(c)},{immediate:!0}),Oe(()=>{Ca(window,["blur","contextmenu"],l)}),ur((...c)=>s(...c),c=>{r=kh(c),!((!r||r&&!n.value)&&di(c))&&(c.preventDefault(),i.value=!0)},{eventName:"keydown",target:o}),ur((...c)=>s(...c),c=>{if(i.value){if((!r||r&&!n.value)&&di(c))return;l()}},{eventName:"keyup",target:o});function l(){r=!1,a.clear(),i.value=!1}function u(c){return c===null?(l(),()=>!1):typeof c=="boolean"?(l(),i.value=c,()=>!1):Array.isArray(c)||typeof c=="string"?Ch(c,a):c}return i}const os="vue-flow__node-desc",is="vue-flow__edge-desc",Ih="vue-flow__aria-live",rs=["Enter"," ","Escape"],Gt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function fi(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function hi(e,t){const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)}function Mo(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Bt(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function as(e,t){return{x:Bt(e.x,t[0][0],t[1][0]),y:Bt(e.y,t[0][1],t[1][1])}}function Mr(e){const t=e.getRootNode();return"elementFromPoint"in t?t:window.document}function wt(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function Mt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!wt(e)}function fn(e){return Mt(e)&&"computedPosition"in e}function Vn(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Th(e){return Vn(e.width)&&Vn(e.height)&&Vn(e.x)&&Vn(e.y)}function Ah(e,t,n){var i;const o={id:e.id.toString(),type:(i=e.type)!=null?i:"default",dimensions:Lt({width:0,height:0}),computedPosition:Lt({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{})};return Object.assign(t!=null?t:o,e,{id:e.id.toString(),parentNode:n})}function ss(e,t,n){var a,s,l,u,c,d,h;var o,i;const r={id:e.id.toString(),type:(s=(a=e.type)!=null?a:t==null?void 0:t.type)!=null?s:"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(o=e.sourceHandle)==null?void 0:o.toString(),targetHandle:(i=e.targetHandle)==null?void 0:i.toString(),updatable:(l=e.updatable)!=null?l:n==null?void 0:n.updatable,selectable:(u=e.selectable)!=null?u:n==null?void 0:n.selectable,focusable:(c=e.focusable)!=null?c:n==null?void 0:n.focusable,data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{}),label:(d=e.label)!=null?d:"",interactionWidth:(h=e.interactionWidth)!=null?h:n==null?void 0:n.interactionWidth,...n!=null?n:{}};return Object.assign(t!=null?t:r,e,{id:e.id.toString()})}function ls(e,t,n,o){const i=typeof e=="string"?e:e.id,r=new Set,a=o==="source"?"target":"source";for(const s of n)s[a]===i&&r.add(s[o]);return t.filter(s=>r.has(s.id))}function Ph(...e){if(e.length===3){const[r,a,s]=e;return ls(r,a,s,"target")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>wt(r)&&r.source===o).map(r=>n.find(a=>Mt(a)&&a.id===r.target))}function Dh(...e){if(e.length===3){const[r,a,s]=e;return ls(r,a,s,"source")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>wt(r)&&r.target===o).map(r=>n.find(a=>Mt(a)&&a.id===r.source))}function us({source:e,sourceHandle:t,target:n,targetHandle:o}){return`vueflow__edge-${e}${t!=null?t:""}-${n}${o!=null?o:""}`}function zh(e,t){return t.some(n=>wt(n)&&n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle))}function cs({x:e,y:t},{x:n,y:o,zoom:i}){return{x:e*i+n,y:t*i+o}}function uo({x:e,y:t},{x:n,y:o,zoom:i},r=!1,[a,s]=[1,1]){const l={x:(e-n)/i,y:(t-o)/i};return r?{x:a*Math.round(l.x/a),y:s*Math.round(l.y/s)}:l}function ds(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function co({x:e,y:t,width:n,height:o}){return{x:e,y:t,x2:e+n,y2:t+o}}function fs({x:e,y:t,x2:n,y2:o}){return{x:e,y:t,width:n-e,height:o-t}}function Bh(e,t){return fs(ds(co(e),co(t)))}function Io(e){let t={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let n=0;n0,k=(_!=null?_:0)*(b!=null?b:0);(v||N||S>=k||d.dragging)&&a.push(d)}return a}function $t(e,t){const n=new Set;if(typeof e=="string")n.add(e);else if(e.length>=1)for(const o of e)n.add(o.id);return t.filter(o=>n.has(o.source)||n.has(o.target))}function Ir(e,t,n,o,i,r=.1,a={x:0,y:0}){var _,b;const s=t/(e.width*(1+r)),l=n/(e.height*(1+r)),u=Math.min(s,l),c=Bt(u,o,i),d=e.x+e.width/2,h=e.y+e.height/2,g=t/2-d*c+((_=a.x)!=null?_:0),$=n/2-h*c+((b=a.y)!=null?b:0);return{x:g,y:$,zoom:c}}function Oh(e,t){return{x:t.x+e.x,y:t.y+e.y,z:(e.z>t.z?e.z:t.z)+1}}function gs(e,t){if(!e.parentNode)return!1;const n=t(e.parentNode);return n?n.selected?!0:gs(n,t):!1}function Sn(e,t){return typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`}function Tr(e,t,n){return en?-Bt(Math.abs(e-n),1,t)/t:0}function ps(e,t,n=15,o=40){const i=Tr(e.x,o,t.width-o)*n,r=Tr(e.y,o,t.height-o)*n;return[i,r]}function Uo(e,t){var n,o;if(t){const i=e.position.x+e.dimensions.width-t.dimensions.width,r=e.position.y+e.dimensions.height-t.dimensions.height;if(i>0||r>0||e.position.x<0||e.position.y<0){let a={};if(typeof t.style=="function"?a={...t.style(t)}:t.style&&(a={...t.style}),a.width=(n=a.width)!=null?n:`${t.dimensions.width}px`,a.height=(o=a.height)!=null?o:`${t.dimensions.height}px`,i>0)if(typeof a.width=="string"){const s=Number(a.width.replace("px",""));a.width=`${s+i}px`}else a.width+=i;if(r>0)if(typeof a.height=="string"){const s=Number(a.height.replace("px",""));a.height=`${s+r}px`}else a.height+=r;if(e.position.x<0){const s=Math.abs(e.position.x);if(t.position.x=t.position.x-s,typeof a.width=="string"){const l=Number(a.width.replace("px",""));a.width=`${l+s}px`}else a.width+=s;e.position.x=0}if(e.position.y<0){const s=Math.abs(e.position.y);if(t.position.y=t.position.y-s,typeof a.height=="string"){const l=Number(a.height.replace("px",""));a.height=`${l+s}px`}else a.height+=s;e.position.y=0}t.dimensions.width=Number(a.width.toString().replace("px","")),t.dimensions.height=Number(a.height.toString().replace("px","")),typeof t.style=="function"?t.style=s=>{const l=t.style;return{...l(s),...a}}:t.style={...t.style,...a}}}}function Ar(e,t){var n,o;const i=e.filter(a=>a.type==="add"||a.type==="remove");for(const a of i)if(a.type==="add")t.findIndex(l=>l.id===a.item.id)===-1&&t.push(a.item);else if(a.type==="remove"){const s=t.findIndex(l=>l.id===a.id);s!==-1&&t.splice(s,1)}const r=t.map(a=>a.id);for(const a of t)for(const s of e)if(s.id===a.id)switch(s.type){case"select":a.selected=s.selected;break;case"position":if(fn(a)&&(typeof s.position<"u"&&(a.position=s.position),typeof s.dragging<"u"&&(a.dragging=s.dragging),a.expandParent&&a.parentNode)){const l=t[r.indexOf(a.parentNode)];l&&fn(l)&&Uo(a,l)}break;case"dimensions":if(fn(a)&&(typeof s.dimensions<"u"&&(a.dimensions=s.dimensions),typeof s.updateStyle<"u"&&(a.style={...a.style||{},width:`${(n=s.dimensions)==null?void 0:n.width}px`,height:`${(o=s.dimensions)==null?void 0:o.height}px`}),typeof s.resizing<"u"&&(a.resizing=s.resizing),a.expandParent&&a.parentNode)){const l=t[r.indexOf(a.parentNode)];l&&fn(l)&&(!!l.dimensions.width&&!!l.dimensions.height?Uo(a,l):rt(()=>{Uo(a,l)}))}break}return t}function dt(e,t){return{id:e,type:"select",selected:t}}function Pr(e){return{item:e,type:"add"}}function Dr(e){return{id:e,type:"remove"}}function zr(e,t,n,o,i){return{id:e,source:t,target:n,sourceHandle:o||null,targetHandle:i||null,type:"remove"}}function gt(e,t=new Set,n=!1){const o=[];for(const[i,r]of e){const a=t.has(i);!(r.selected===void 0&&!a)&&r.selected!==a&&(n&&(r.selected=a),o.push(dt(r.id,a)))}return o}function J(e){const t=new Set;let n=!1;const o=()=>t.size>0;e&&(n=!0,t.add(e));const i=s=>{t.delete(s)};return{on:s=>{e&&n&&t.delete(e),t.add(s);const l=()=>{i(s),e&&n&&t.add(e)};return xo(l),{off:l}},off:i,trigger:s=>Promise.all(Array.from(t).map(l=>l(s))),hasListeners:o,fns:t}}function Br(e,t,n){let o=e;do{if(o&&o.matches(t))return!0;if(o===n)return!1;o=o.parentElement}while(o);return!1}function Rh(e,t,n,o,i){var r,a;const s=[];for(const l of e)(l.selected||l.id===i)&&(!l.parentNode||!gs(l,o))&&(l.draggable||t&&typeof l.draggable>"u")&&s.push(Lt({id:l.id,position:l.position||{x:0,y:0},distance:{x:n.x-((r=l.computedPosition)==null?void 0:r.x)||0,y:n.y-((a=l.computedPosition)==null?void 0:a.y)||0},from:l.computedPosition,extent:l.extent,parentNode:l.parentNode,dimensions:l.dimensions,expandParent:l.expandParent}));return s}function Wo({id:e,dragItems:t,findNode:n}){const o=[];for(const i of t){const r=n(i.id);r&&o.push(r)}return[e?o.find(i=>i.id===e):o[0],o]}function vs(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function Vh(e,t,n){const[o,i,r,a]=typeof e!="string"?vs(e.padding):[0,0,0,0];return n&&typeof n.computedPosition.x<"u"&&typeof n.computedPosition.y<"u"&&typeof n.dimensions.width<"u"&&typeof n.dimensions.height<"u"?[[n.computedPosition.x+a,n.computedPosition.y+o],[n.computedPosition.x+n.dimensions.width-i,n.computedPosition.y+n.dimensions.height-r]]:!1}function Hh(e,t,n,o){let i=e.extent||n;if((i==="parent"||!Array.isArray(i)&&(i==null?void 0:i.range)==="parent")&&!e.expandParent)if(e.parentNode&&o&&e.dimensions.width&&e.dimensions.height){const r=Vh(i,e,o);r&&(i=r)}else t(new Me(Ce.NODE_EXTENT_INVALID,e.id)),i=n;else if(Array.isArray(i)){const r=(o==null?void 0:o.computedPosition.x)||0,a=(o==null?void 0:o.computedPosition.y)||0;i=[[i[0][0]+r,i[0][1]+a],[i[1][0]+r,i[1][1]+a]]}else if(i!=="parent"&&(i==null?void 0:i.range)&&Array.isArray(i.range)){const[r,a,s,l]=vs(i.padding),u=(o==null?void 0:o.computedPosition.x)||0,c=(o==null?void 0:o.computedPosition.y)||0;i=[[i.range[0][0]+u+l,i.range[0][1]+c+r],[i.range[1][0]+u-a,i.range[1][1]+c-s]]}return i==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:i}function Fh({width:e,height:t},n){return[n[0],[n[1][0]-(e||0),n[1][1]-(t||0)]]}function Oi(e,t,n,o,i){const r=Fh(e.dimensions,Hh(e,n,o,i)),a=as(t,r);return{position:{x:a.x-((i==null?void 0:i.computedPosition.x)||0),y:a.y-((i==null?void 0:i.computedPosition.y)||0)},computedPosition:a}}function fo(e,t,n=te.Left){var l,u,c;const o=((l=t==null?void 0:t.x)!=null?l:0)+e.computedPosition.x,i=((u=t==null?void 0:t.y)!=null?u:0)+e.computedPosition.y,{width:r,height:a}=t!=null?t:Xh(e);switch((c=t==null?void 0:t.position)!=null?c:n){case te.Top:return{x:o+r/2,y:i};case te.Right:return{x:o+r,y:i+a/2};case te.Bottom:return{x:o+r/2,y:i+a};case te.Left:return{x:o,y:i+a/2}}}function Or(e=[],t){return e.length&&(t?e.find(n=>n.id===t):e[0])||null}function Lh({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:o,targetWidth:i,targetHeight:r,width:a,height:s,viewport:l}){const u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+o,t.y+r)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=co({x:(0-l.x)/l.zoom,y:(0-l.y)/l.zoom,width:a/l.zoom,height:s/l.zoom}),d=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),h=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(d*h)>0}function Yh(e,t,n=!1){const o=typeof e.zIndex=="number";let i=o?e.zIndex:0;const r=t(e.source),a=t(e.target);return!r||!a?0:(n&&(i=o?e.zIndex:Math.max(r.computedPosition.z||0,a.computedPosition.z||0)),i)}var Ce=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(Ce||{});const Rr={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid +var hl=Object.defineProperty;var gl=(e,t,n)=>t in e?hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ee=(e,t,n)=>(gl(e,typeof t!="symbol"?t+"":t,n),n);import{d as he,D as Pe,f as U,o as O,Y as q,$ as Ne,S as me,e8 as mt,a as ge,b as j,ee as pl,p as $e,I as pa,y as va,g as Se,W as Tt,e as ie,bB as be,X as Oe,eq as ma,ah as Rt,w as ue,u as D,J as Un,K as rt,dF as vl,er as ya,es as Ei,Z as Ie,ed as Xe,c as fe,aS as Ae,an as Cn,E as ml,e9 as Te,F as Ni,L as yl,et as wl,eu as _e,ec as He,aG as Be,ar as wa,r as _a,eb as tn,ev as ba,ew as _l,z as Lt,ex as bl,cM as kt,R as ir,ej as bt,aL as Sl,ey as Sa,dc as So,bL as Ut,a0 as lt,aB as $l,cU as rr,dh as At,ez as xl,eA as El,aW as Nl,bT as kl,d9 as ki,x as Cl,cz as Ml,cy as Il,cL as Tl,eo as Al,em as Pl,en as Dl,eh as zl,eB as Bl}from"./index.d0f12294.js";import{w as Wt,s as Ci}from"./metadata.bc77f4b9.js";import{G as Ol}from"./PhArrowCounterClockwise.vue.70f7f135.js";import{a as Rl,n as no,c as Vl,d as $a,v as xa,e as Ea}from"./validations.2475f715.js";import{u as Hl}from"./uuid.f9389d59.js";import{t as $o}from"./index.c7e8afe7.js";import{W as Fo}from"./workspaces.e43325e2.js";import{u as Fl}from"./polling.c979afd7.js";import"./index.61f90e53.js";import{B as un}from"./Badge.f6241be2.js";import{G as ar}from"./PhArrowDown.vue.1c758684.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a8453b2c-59a5-48ce-8b25-dc57764319ce",e._sentryDebugIdIdentifier="sentry-dbid-a8453b2c-59a5-48ce-8b25-dc57764319ce")}catch{}})();var Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const Yl=Ll,Xl=["width","height","fill","transform"],Gl={key:0},Zl=ge("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"},null,-1),Ul=[Zl],Wl={key:1},ql=ge("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),Kl=ge("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),Jl=[ql,Kl],Ql={key:2},jl=ge("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"},null,-1),eu=[jl],tu={key:3},nu=ge("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"},null,-1),ou=[nu],iu={key:4},ru=ge("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"},null,-1),au=[ru],su={key:5},lu=ge("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"},null,-1),uu=[lu],cu={name:"PhArrowClockwise"},du=he({...cu,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=Pe("weight","regular"),o=Pe("size","1em"),i=Pe("color","currentColor"),r=Pe("mirrored",!1),a=U(()=>{var c;return(c=t.weight)!=null?c:n}),s=U(()=>{var c;return(c=t.size)!=null?c:o}),l=U(()=>{var c;return(c=t.color)!=null?c:i}),u=U(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(c,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:u.value},c.$attrs),[Ne(c.$slots,"default"),a.value==="bold"?(O(),q("g",Gl,Ul)):a.value==="duotone"?(O(),q("g",Wl,Jl)):a.value==="fill"?(O(),q("g",Ql,eu)):a.value==="light"?(O(),q("g",tu,ou)):a.value==="regular"?(O(),q("g",iu,au)):a.value==="thin"?(O(),q("g",su,uu)):me("",!0)],16,Xl))}}),fu=["width","height","fill","transform"],hu={key:0},gu=ge("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"},null,-1),pu=[gu],vu={key:1},mu=ge("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),yu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),wu=[mu,yu],_u={key:2},bu=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"},null,-1),Su=[bu],$u={key:3},xu=ge("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"},null,-1),Eu=[xu],Nu={key:4},ku=ge("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},null,-1),Cu=[ku],Mu={key:5},Iu=ge("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"},null,-1),Tu=[Iu],Au={name:"PhClock"},Pu=he({...Au,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=Pe("weight","regular"),o=Pe("size","1em"),i=Pe("color","currentColor"),r=Pe("mirrored",!1),a=U(()=>{var c;return(c=t.weight)!=null?c:n}),s=U(()=>{var c;return(c=t.size)!=null?c:o}),l=U(()=>{var c;return(c=t.color)!=null?c:i}),u=U(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(c,d)=>(O(),q("svg",mt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:l.value,transform:u.value},c.$attrs),[Ne(c.$slots,"default"),a.value==="bold"?(O(),q("g",hu,pu)):a.value==="duotone"?(O(),q("g",vu,wu)):a.value==="fill"?(O(),q("g",_u,Su)):a.value==="light"?(O(),q("g",$u,Eu)):a.value==="regular"?(O(),q("g",Nu,Cu)):a.value==="thin"?(O(),q("g",Mu,Tu)):me("",!0)],16,fu))}});function sr(e){for(var t=1;ttypeof e<"u",Ru=Object.prototype.toString,Vu=e=>Ru.call(e)==="[object Object]",Hu=()=>{};function Fu(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const Na=e=>e();function Lu(e=Na){const t=ie(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:bl(t),pause:n,resume:o,eventFilter:i}}function lr(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function Yu(e,t,n={}){const{eventFilter:o=Na,...i}=n;return Se(e,Fu(o,t),i)}function Ht(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:s,isActive:l}=Lu(o);return{stop:Yu(e,t,{...i,eventFilter:r}),pause:a,resume:s,isActive:l}}function Xu(e,t={}){if(!Ni(e))return yl(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=wl(()=>({get(){return e.value[o]},set(i){var r;if((r=nt(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const s=[...e.value];s[o]=i,e.value=s}else{const s={...e.value,[o]:i};Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[o]=i}}));return n}function ti(e,t=!1){function n(d,{flush:h="sync",deep:g=!1,timeout:$,throwOnTimeout:_}={}){let b=null;const v=[new Promise(N=>{b=Se(e,k=>{d(k)!==t&&(b==null||b(),N(k))},{flush:h,deep:g,immediate:!0})})];return $!=null&&v.push(lr($,_).then(()=>nt(e)).finally(()=>b==null?void 0:b())),Promise.race(v)}function o(d,h){if(!Ni(d))return n(k=>k===d,h);const{flush:g="sync",deep:$=!1,timeout:_,throwOnTimeout:b}=h!=null?h:{};let S=null;const N=[new Promise(k=>{S=Se([e,d],([V,Y])=>{t!==(V===Y)&&(S==null||S(),k(V))},{flush:g,deep:$,immediate:!0})})];return _!=null&&N.push(lr(_,b).then(()=>nt(e)).finally(()=>(S==null||S(),nt(e)))),Promise.race(N)}function i(d){return n(h=>Boolean(h),d)}function r(d){return o(null,d)}function a(d){return o(void 0,d)}function s(d){return n(Number.isNaN,d)}function l(d,h){return n(g=>{const $=Array.from(g);return $.includes(d)||$.includes(nt(d))},h)}function u(d){return c(1,d)}function c(d=1,h){let g=-1;return n(()=>(g+=1,g>=d),h)}return Array.isArray(nt(e))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return ti(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:s,toBeUndefined:a,changed:u,changedTimes:c,get not(){return ti(e,!t)}}}function ni(e){return ti(e)}function Gu(e){var t;const n=nt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ka=Bu?window:void 0;function Ca(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=ka):[t,n,o,i]=e,!t)return Hu;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(c=>c()),r.length=0},s=(c,d,h,g)=>(c.addEventListener(d,h,g),()=>c.removeEventListener(d,h,g)),l=Se(()=>[Gu(t),nt(i)],([c,d])=>{if(a(),!c)return;const h=Vu(d)?{...d}:d;r.push(...n.flatMap(g=>o.map($=>s(c,g,$,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return xo(u),u}function Zu(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ur(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=ka,eventName:r="keydown",passive:a=!1,dedupe:s=!1}=o,l=Zu(t);return Ca(i,r,c=>{c.repeat&&nt(s)||l(c)&&n(c)},a)}function Uu(e){return JSON.parse(JSON.stringify(e))}function Lo(e,t,n,o={}){var i,r,a;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:h}=o,g=Cn(),$=n||(g==null?void 0:g.emit)||((i=g==null?void 0:g.$emit)==null?void 0:i.bind(g))||((a=(r=g==null?void 0:g.proxy)==null?void 0:r.$emit)==null?void 0:a.bind(g==null?void 0:g.proxy));let _=u;t||(t="modelValue"),_=_||`update:${t.toString()}`;const b=N=>s?typeof s=="function"?s(N):Uu(N):N,S=()=>Ou(e[t])?b(e[t]):d,v=N=>{h?h(N)&&$(_,N):$(_,N)};if(l){const N=S(),k=ie(N);let V=!1;return Se(()=>e[t],Y=>{V||(V=!0,k.value=b(Y),rt(()=>V=!1))}),Se(k,Y=>{!V&&(Y!==e[t]||c)&&v(Y)},{deep:c}),k}else return U({get(){return S()},set(N){v(N)}})}var Wu={value:()=>{}};function Eo(){for(var e=0,t=arguments.length,n={},o;e=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Wn.prototype=Eo.prototype={constructor:Wn,on:function(e,t){var n=this._,o=qu(e+"",n),i,r=-1,a=o.length;if(arguments.length<2){for(;++r0)for(var n=new Array(i),o=0,i,r;o=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),dr.hasOwnProperty(t)?{space:dr[t],local:e}:e}function Ju(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===oi&&t.documentElement.namespaceURI===oi?t.createElement(e):t.createElementNS(n,e)}}function Qu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ma(e){var t=No(e);return(t.local?Qu:Ju)(t)}function ju(){}function Ii(e){return e==null?ju:function(){return this.querySelector(e)}}function ec(e){typeof e!="function"&&(e=Ii(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=N&&(N=v+1);!(V=b[N])&&++N<$;);k._next=V||null}}return a=new Re(a,o),a._enter=s,a._exit=l,a}function _c(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bc(){return new Re(this._exit||this._groups.map(Pa),this._parents)}function Sc(e,t,n){var o=this.enter(),i=this,r=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?r.remove():n(r),o&&i?o.merge(i).order():i}function $c(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,i=n.length,r=o.length,a=Math.min(i,r),s=new Array(i),l=0;l=0;)(a=o[i])&&(r&&a.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(a,r),r=a);return this}function Ec(e){e||(e=Nc);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,o=n.length,i=new Array(o),r=0;rt?1:e>=t?0:NaN}function kc(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Cc(){return Array.from(this)}function Mc(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Hc:typeof t=="function"?Lc:Fc)(e,t,n==null?"":n)):qt(this.node(),e)}function qt(e,t){return e.style.getPropertyValue(t)||Da(e).getComputedStyle(e,null).getPropertyValue(t)}function Xc(e){return function(){delete this[e]}}function Gc(e,t){return function(){this[e]=t}}function Zc(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Uc(e,t){return arguments.length>1?this.each((t==null?Xc:typeof t=="function"?Zc:Gc)(e,t)):this.node()[e]}function za(e){return e.trim().split(/^|\s+/)}function Ti(e){return e.classList||new Ba(e)}function Ba(e){this._node=e,this._names=za(e.getAttribute("class")||"")}Ba.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Oa(e,t){for(var n=Ti(e),o=-1,i=t.length;++o=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function bd(e){return function(){var t=this.__on;if(!!t){for(var n=0,o=-1,i=t.length,r;n()=>e;function ii(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}ii.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Td(e){return!e.ctrlKey&&!e.button}function Ad(){return this.parentNode}function Pd(e,t){return t==null?{x:e.x,y:e.y}:t}function Dd(){return navigator.maxTouchPoints||"ontouchstart"in this}function zd(){var e=Td,t=Ad,n=Pd,o=Dd,i={},r=Eo("start","drag","end"),a=0,s,l,u,c,d=0;function h(k){k.on("mousedown.drag",g).filter(o).on("touchstart.drag",b).on("touchmove.drag",S,Id).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(k,V){if(!(c||!e.call(this,k,V))){var Y=N(this,t.call(this,k,V),k,V,"mouse");!Y||(Fe(k.view).on("mousemove.drag",$,mn).on("mouseup.drag",_,mn),Fa(k.view),Yo(k),u=!1,s=k.clientX,l=k.clientY,Y("start",k))}}function $(k){if(Yt(k),!u){var V=k.clientX-s,Y=k.clientY-l;u=V*V+Y*Y>d}i.mouse("drag",k)}function _(k){Fe(k.view).on("mousemove.drag mouseup.drag",null),La(k.view,u),Yt(k),i.mouse("end",k)}function b(k,V){if(!!e.call(this,k,V)){var Y=k.changedTouches,F=t.call(this,k,V),K=Y.length,Z,T;for(Z=0;Z>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Od.exec(e))?new De(t[1],t[2],t[3],1):(t=Rd.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Vd.exec(e))?zn(t[1],t[2],t[3],t[4]):(t=Hd.exec(e))?zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fd.exec(e))?yr(t[1],t[2]/100,t[3]/100,1):(t=Ld.exec(e))?yr(t[1],t[2]/100,t[3]/100,t[4]):fr.hasOwnProperty(e)?pr(fr[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function pr(e){return new De(e>>16&255,e>>8&255,e&255,1)}function zn(e,t,n,o){return o<=0&&(e=t=n=NaN),new De(e,t,n,o)}function Gd(e){return e instanceof In||(e=_n(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function ri(e,t,n,o){return arguments.length===1?Gd(e):new De(e,t,n,o==null?1:o)}function De(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}Ai(De,ri,Ya(In,{brighter(e){return e=e==null?io:Math.pow(io,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new De(Ct(this.r),Ct(this.g),Ct(this.b),ro(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vr,formatHex:vr,formatHex8:Zd,formatRgb:mr,toString:mr}));function vr(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}`}function Zd(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}${Et((isNaN(this.opacity)?1:this.opacity)*255)}`}function mr(){const e=ro(this.opacity);return`${e===1?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${e===1?")":`, ${e})`}`}function ro(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Et(e){return e=Ct(e),(e<16?"0":"")+e.toString(16)}function yr(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Le(e,t,n,o)}function Xa(e){if(e instanceof Le)return new Le(e.h,e.s,e.l,e.opacity);if(e instanceof In||(e=_n(e)),!e)return new Le;if(e instanceof Le)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),a=NaN,s=r-i,l=(r+i)/2;return s?(t===r?a=(n-o)/s+(n0&&l<1?0:a,new Le(a,s,l,e.opacity)}function Ud(e,t,n,o){return arguments.length===1?Xa(e):new Le(e,t,n,o==null?1:o)}function Le(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}Ai(Le,Ud,Ya(In,{brighter(e){return e=e==null?io:Math.pow(io,e),new Le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new Le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new De(Xo(e>=240?e-240:e+120,i,o),Xo(e,i,o),Xo(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Le(wr(this.h),Bn(this.s),Bn(this.l),ro(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ro(this.opacity);return`${e===1?"hsl(":"hsla("}${wr(this.h)}, ${Bn(this.s)*100}%, ${Bn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wr(e){return e=(e||0)%360,e<0?e+360:e}function Bn(e){return Math.max(0,Math.min(1,e||0))}function Xo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ga=e=>()=>e;function Wd(e,t){return function(n){return e+n*t}}function qd(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function Kd(e){return(e=+e)==1?Za:function(t,n){return n-t?qd(t,n,e):Ga(isNaN(t)?n:t)}}function Za(e,t){var n=t-e;return n?Wd(e,n):Ga(isNaN(e)?t:e)}const _r=function e(t){var n=Kd(t);function o(i,r){var a=n((i=ri(i)).r,(r=ri(r)).r),s=n(i.g,r.g),l=n(i.b,r.b),u=Za(i.opacity,r.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function ht(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var ai=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Go=new RegExp(ai.source,"g");function Jd(e){return function(){return e}}function Qd(e){return function(t){return e(t)+""}}function jd(e,t){var n=ai.lastIndex=Go.lastIndex=0,o,i,r,a=-1,s=[],l=[];for(e=e+"",t=t+"";(o=ai.exec(e))&&(i=Go.exec(t));)(r=i.index)>n&&(r=t.slice(n,r),s[a]?s[a]+=r:s[++a]=r),(o=o[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:ht(o,i)})),n=Go.lastIndex;return n180?c+=360:c-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,o)-2,x:ht(u,c)})):c&&d.push(i(d)+"rotate("+c+o)}function s(u,c,d,h){u!==c?h.push({i:d.push(i(d)+"skewX(",null,o)-2,x:ht(u,c)}):c&&d.push(i(d)+"skewX("+c+o)}function l(u,c,d,h,g,$){if(u!==d||c!==h){var _=g.push(i(g)+"scale(",null,",",null,")");$.push({i:_-4,x:ht(u,d)},{i:_-2,x:ht(c,h)})}else(d!==1||h!==1)&&g.push(i(g)+"scale("+d+","+h+")")}return function(u,c){var d=[],h=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,d,h),a(u.rotate,c.rotate,d,h),s(u.skewX,c.skewX,d,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,h),u=c=null,function(g){for(var $=-1,_=h.length,b;++$<_;)d[(b=h[$]).i]=b.x(g);return d.join("")}}}var nf=Wa(ef,"px, ","px)","deg)"),of=Wa(tf,", ",")",")"),rf=1e-12;function Sr(e){return((e=Math.exp(e))+1/e)/2}function af(e){return((e=Math.exp(e))-1/e)/2}function sf(e){return((e=Math.exp(2*e))-1)/(e+1)}const lf=function e(t,n,o){function i(r,a){var s=r[0],l=r[1],u=r[2],c=a[0],d=a[1],h=a[2],g=c-s,$=d-l,_=g*g+$*$,b,S;if(_=0&&e._call.call(void 0,t),e=e._next;--Kt}function $r(){Pt=(so=bn.now())+ko,Kt=cn=0;try{cf()}finally{Kt=0,ff(),Pt=0}}function df(){var e=bn.now(),t=e-so;t>qa&&(ko-=t,so=e)}function ff(){for(var e,t=ao,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ao=n);dn=e,li(o)}function li(e){if(!Kt){cn&&(cn=clearTimeout(cn));var t=e-Pt;t>24?(e<1/0&&(cn=setTimeout($r,e-bn.now()-ko)),rn&&(rn=clearInterval(rn))):(rn||(so=bn.now(),rn=setInterval(df,qa)),Kt=1,Ka($r))}}function xr(e,t,n){var o=new lo;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var hf=Eo("start","end","cancel","interrupt"),gf=[],Qa=0,Er=1,ui=2,qn=3,Nr=4,ci=5,Kn=6;function Co(e,t,n,o,i,r){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;pf(e,n,{name:t,index:o,group:i,on:hf,tween:gf,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Qa})}function Di(e,t){var n=Ge(e,t);if(n.state>Qa)throw new Error("too late; already scheduled");return n}function Je(e,t){var n=Ge(e,t);if(n.state>qn)throw new Error("too late; already running");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function pf(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=Ja(r,0,n.time);function r(u){n.state=Er,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,d,h,g;if(n.state!==Er)return l();for(c in o)if(g=o[c],g.name===n.name){if(g.state===qn)return xr(a);g.state===Nr?(g.state=Kn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[c]):+cui&&o.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function Gf(e,t,n){var o,i,r=Xf(t)?Di:Je;return function(){var a=r(this,e),s=a.on;s!==o&&(i=(o=s).copy()).on(t,n),a.on=i}}function Zf(e,t){var n=this._id;return arguments.length<2?Ge(this.node(),n).on.on(e):this.each(Gf(n,e,t))}function Uf(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Wf(){return this.on("end.remove",Uf(this._id))}function qf(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ii(e));for(var o=this._groups,i=o.length,r=new Array(i),a=0;a()=>e;function _h(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function ot(e,t,n){this.k=e,this.x=t,this.y=n}ot.prototype={constructor:ot,scale:function(e){return e===1?this:new ot(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ot(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Jt=new ot(1,0,0);ot.prototype;function Zo(e){e.stopImmediatePropagation()}function an(e){e.preventDefault(),e.stopImmediatePropagation()}function bh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Sh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function kr(){return this.__zoom||Jt}function $h(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function xh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Eh(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),a>r?(r+a)/2:Math.min(0,r)||Math.max(0,a))}function Nh(){var e=bh,t=Sh,n=Eh,o=$h,i=xh,r=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=lf,u=Eo("start","zoom","end"),c,d,h,g=500,$=150,_=0,b=10;function S(f){f.property("__zoom",kr).on("wheel.zoom",K,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",T).filter(i).on("touchstart.zoom",w).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",Q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(f,x,y,M){var E=f.selection?f.selection():f;E.property("__zoom",kr),f!==E?V(f,x,y,M):E.interrupt().each(function(){Y(this,arguments).event(M).start().zoom(null,typeof x=="function"?x.apply(this,arguments):x).end()})},S.scaleBy=function(f,x,y,M){S.scaleTo(f,function(){var E=this.__zoom.k,I=typeof x=="function"?x.apply(this,arguments):x;return E*I},y,M)},S.scaleTo=function(f,x,y,M){S.transform(f,function(){var E=t.apply(this,arguments),I=this.__zoom,C=y==null?k(E):typeof y=="function"?y.apply(this,arguments):y,R=I.invert(C),W=typeof x=="function"?x.apply(this,arguments):x;return n(N(v(I,W),C,R),E,a)},y,M)},S.translateBy=function(f,x,y,M){S.transform(f,function(){return n(this.__zoom.translate(typeof x=="function"?x.apply(this,arguments):x,typeof y=="function"?y.apply(this,arguments):y),t.apply(this,arguments),a)},null,M)},S.translateTo=function(f,x,y,M,E){S.transform(f,function(){var I=t.apply(this,arguments),C=this.__zoom,R=M==null?k(I):typeof M=="function"?M.apply(this,arguments):M;return n(Jt.translate(R[0],R[1]).scale(C.k).translate(typeof x=="function"?-x.apply(this,arguments):-x,typeof y=="function"?-y.apply(this,arguments):-y),I,a)},M,E)};function v(f,x){return x=Math.max(r[0],Math.min(r[1],x)),x===f.k?f:new ot(x,f.x,f.y)}function N(f,x,y){var M=x[0]-y[0]*f.k,E=x[1]-y[1]*f.k;return M===f.x&&E===f.y?f:new ot(f.k,M,E)}function k(f){return[(+f[0][0]+ +f[1][0])/2,(+f[0][1]+ +f[1][1])/2]}function V(f,x,y,M){f.on("start.zoom",function(){Y(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){Y(this,arguments).event(M).end()}).tween("zoom",function(){var E=this,I=arguments,C=Y(E,I).event(M),R=t.apply(E,I),W=y==null?k(R):typeof y=="function"?y.apply(E,I):y,B=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),P=E.__zoom,L=typeof x=="function"?x.apply(E,I):x,ae=l(P.invert(W).concat(B/P.k),L.invert(W).concat(B/L.k));return function(se){if(se===1)se=L;else{var ce=ae(se),le=B/ce[2];se=new ot(le,W[0]-ce[0]*le,W[1]-ce[1]*le)}C.zoom(null,se)}})}function Y(f,x,y){return!y&&f.__zooming||new F(f,x)}function F(f,x){this.that=f,this.args=x,this.active=0,this.sourceEvent=null,this.extent=t.apply(f,x),this.taps=0}F.prototype={event:function(f){return f&&(this.sourceEvent=f),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(f,x){return this.mouse&&f!=="mouse"&&(this.mouse[1]=x.invert(this.mouse[0])),this.touch0&&f!=="touch"&&(this.touch0[1]=x.invert(this.touch0[0])),this.touch1&&f!=="touch"&&(this.touch1[1]=x.invert(this.touch1[0])),this.that.__zoom=x,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(f){var x=Fe(this.that).datum();u.call(f,this.that,new _h(f,{sourceEvent:this.sourceEvent,target:S,type:f,transform:this.that.__zoom,dispatch:u}),x)}};function K(f,...x){if(!e.apply(this,arguments))return;var y=Y(this,x).event(f),M=this.__zoom,E=Math.max(r[0],Math.min(r[1],M.k*Math.pow(2,o.apply(this,arguments)))),I=Ue(f);if(y.wheel)(y.mouse[0][0]!==I[0]||y.mouse[0][1]!==I[1])&&(y.mouse[1]=M.invert(y.mouse[0]=I)),clearTimeout(y.wheel);else{if(M.k===E)return;y.mouse=[I,M.invert(I)],Jn(this),y.start()}an(f),y.wheel=setTimeout(C,$),y.zoom("mouse",n(N(v(M,E),y.mouse[0],y.mouse[1]),y.extent,a));function C(){y.wheel=null,y.end()}}function Z(f,...x){if(h||!e.apply(this,arguments))return;var y=f.currentTarget,M=Y(this,x,!0).event(f),E=Fe(f.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",B,!0),I=Ue(f,y),C=f.clientX,R=f.clientY;Fa(f.view),Zo(f),M.mouse=[I,this.__zoom.invert(I)],Jn(this),M.start();function W(P){if(an(P),!M.moved){var L=P.clientX-C,ae=P.clientY-R;M.moved=L*L+ae*ae>_}M.event(P).zoom("mouse",n(N(M.that.__zoom,M.mouse[0]=Ue(P,y),M.mouse[1]),M.extent,a))}function B(P){E.on("mousemove.zoom mouseup.zoom",null),La(P.view,M.moved),an(P),M.event(P).end()}}function T(f,...x){if(!!e.apply(this,arguments)){var y=this.__zoom,M=Ue(f.changedTouches?f.changedTouches[0]:f,this),E=y.invert(M),I=y.k*(f.shiftKey?.5:2),C=n(N(v(y,I),M,E),t.apply(this,x),a);an(f),s>0?Fe(this).transition().duration(s).call(V,C,M,f):Fe(this).call(S.transform,C,M,f)}}function w(f,...x){if(!!e.apply(this,arguments)){var y=f.touches,M=y.length,E=Y(this,x,f.changedTouches.length===M).event(f),I,C,R,W;for(Zo(f),C=0;C(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(te||{}),Bi=(e=>(e.Partial="partial",e.Full="full",e))(Bi||{}),St=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(St||{}),Dt=(e=>(e.Strict="strict",e.Loose="loose",e))(Dt||{}),zt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(zt||{}),pn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(pn||{}),ns=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(ns||{});function di(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof(o==null?void 0:o.hasAttribute)=="function"?o.hasAttribute("contenteditable"):!1,r=typeof(o==null?void 0:o.closest)=="function"?o.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(o==null?void 0:o.nodeName)||i||!!r}function kh(e){return e.ctrlKey||e.metaKey||e.shiftKey}function Cr(e,t,n,o){const i=t.split("+").map(r=>r.trim().toLowerCase());return i.length===1?e.toLowerCase()===t.toLowerCase():(o?n.delete(e.toLowerCase()):n.add(e.toLowerCase()),i.every((r,a)=>n.has(r)&&Array.from(n.values())[a]===i[a]))}function Ch(e,t){return n=>{if(!n.code&&!n.key)return!1;const o=Mh(n.code,e);return Array.isArray(e)?e.some(i=>Cr(n[o],i,t,n.type==="keyup")):Cr(n[o],e,t,n.type==="keyup")}}function Mh(e,t){return typeof t=="string"?e===t?"code":"key":t.includes(e)?"code":"key"}function vn(e,t){const n=be(()=>{var c;return(c=_e(t==null?void 0:t.actInsideInputWithModifier))!=null?c:!1}),o=be(()=>{var c;return(c=_e(t==null?void 0:t.target))!=null?c:window}),i=ie(_e(e)===!0);let r=!1;const a=new Set;let s=u(_e(e));Se(()=>_e(e),(c,d)=>{typeof d=="boolean"&&typeof c!="boolean"&&l(),s=u(c)},{immediate:!0}),Oe(()=>{Ca(window,["blur","contextmenu"],l)}),ur((...c)=>s(...c),c=>{r=kh(c),!((!r||r&&!n.value)&&di(c))&&(c.preventDefault(),i.value=!0)},{eventName:"keydown",target:o}),ur((...c)=>s(...c),c=>{if(i.value){if((!r||r&&!n.value)&&di(c))return;l()}},{eventName:"keyup",target:o});function l(){r=!1,a.clear(),i.value=!1}function u(c){return c===null?(l(),()=>!1):typeof c=="boolean"?(l(),i.value=c,()=>!1):Array.isArray(c)||typeof c=="string"?Ch(c,a):c}return i}const os="vue-flow__node-desc",is="vue-flow__edge-desc",Ih="vue-flow__aria-live",rs=["Enter"," ","Escape"],Gt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function fi(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function hi(e,t){const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)}function Mo(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Bt(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function as(e,t){return{x:Bt(e.x,t[0][0],t[1][0]),y:Bt(e.y,t[0][1],t[1][1])}}function Mr(e){const t=e.getRootNode();return"elementFromPoint"in t?t:window.document}function wt(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function Mt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!wt(e)}function fn(e){return Mt(e)&&"computedPosition"in e}function Vn(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Th(e){return Vn(e.width)&&Vn(e.height)&&Vn(e.x)&&Vn(e.y)}function Ah(e,t,n){var i;const o={id:e.id.toString(),type:(i=e.type)!=null?i:"default",dimensions:Lt({width:0,height:0}),computedPosition:Lt({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{})};return Object.assign(t!=null?t:o,e,{id:e.id.toString(),parentNode:n})}function ss(e,t,n){var a,s,l,u,c,d,h;var o,i;const r={id:e.id.toString(),type:(s=(a=e.type)!=null?a:t==null?void 0:t.type)!=null?s:"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(o=e.sourceHandle)==null?void 0:o.toString(),targetHandle:(i=e.targetHandle)==null?void 0:i.toString(),updatable:(l=e.updatable)!=null?l:n==null?void 0:n.updatable,selectable:(u=e.selectable)!=null?u:n==null?void 0:n.selectable,focusable:(c=e.focusable)!=null?c:n==null?void 0:n.focusable,data:ke(e.data)?e.data:{},events:Lt(ke(e.events)?e.events:{}),label:(d=e.label)!=null?d:"",interactionWidth:(h=e.interactionWidth)!=null?h:n==null?void 0:n.interactionWidth,...n!=null?n:{}};return Object.assign(t!=null?t:r,e,{id:e.id.toString()})}function ls(e,t,n,o){const i=typeof e=="string"?e:e.id,r=new Set,a=o==="source"?"target":"source";for(const s of n)s[a]===i&&r.add(s[o]);return t.filter(s=>r.has(s.id))}function Ph(...e){if(e.length===3){const[r,a,s]=e;return ls(r,a,s,"target")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>wt(r)&&r.source===o).map(r=>n.find(a=>Mt(a)&&a.id===r.target))}function Dh(...e){if(e.length===3){const[r,a,s]=e;return ls(r,a,s,"source")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>wt(r)&&r.target===o).map(r=>n.find(a=>Mt(a)&&a.id===r.source))}function us({source:e,sourceHandle:t,target:n,targetHandle:o}){return`vueflow__edge-${e}${t!=null?t:""}-${n}${o!=null?o:""}`}function zh(e,t){return t.some(n=>wt(n)&&n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle))}function cs({x:e,y:t},{x:n,y:o,zoom:i}){return{x:e*i+n,y:t*i+o}}function uo({x:e,y:t},{x:n,y:o,zoom:i},r=!1,[a,s]=[1,1]){const l={x:(e-n)/i,y:(t-o)/i};return r?{x:a*Math.round(l.x/a),y:s*Math.round(l.y/s)}:l}function ds(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function co({x:e,y:t,width:n,height:o}){return{x:e,y:t,x2:e+n,y2:t+o}}function fs({x:e,y:t,x2:n,y2:o}){return{x:e,y:t,width:n-e,height:o-t}}function Bh(e,t){return fs(ds(co(e),co(t)))}function Io(e){let t={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let n=0;n0,k=(_!=null?_:0)*(b!=null?b:0);(v||N||S>=k||d.dragging)&&a.push(d)}return a}function $t(e,t){const n=new Set;if(typeof e=="string")n.add(e);else if(e.length>=1)for(const o of e)n.add(o.id);return t.filter(o=>n.has(o.source)||n.has(o.target))}function Ir(e,t,n,o,i,r=.1,a={x:0,y:0}){var _,b;const s=t/(e.width*(1+r)),l=n/(e.height*(1+r)),u=Math.min(s,l),c=Bt(u,o,i),d=e.x+e.width/2,h=e.y+e.height/2,g=t/2-d*c+((_=a.x)!=null?_:0),$=n/2-h*c+((b=a.y)!=null?b:0);return{x:g,y:$,zoom:c}}function Oh(e,t){return{x:t.x+e.x,y:t.y+e.y,z:(e.z>t.z?e.z:t.z)+1}}function gs(e,t){if(!e.parentNode)return!1;const n=t(e.parentNode);return n?n.selected?!0:gs(n,t):!1}function Sn(e,t){return typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`}function Tr(e,t,n){return en?-Bt(Math.abs(e-n),1,t)/t:0}function ps(e,t,n=15,o=40){const i=Tr(e.x,o,t.width-o)*n,r=Tr(e.y,o,t.height-o)*n;return[i,r]}function Uo(e,t){var n,o;if(t){const i=e.position.x+e.dimensions.width-t.dimensions.width,r=e.position.y+e.dimensions.height-t.dimensions.height;if(i>0||r>0||e.position.x<0||e.position.y<0){let a={};if(typeof t.style=="function"?a={...t.style(t)}:t.style&&(a={...t.style}),a.width=(n=a.width)!=null?n:`${t.dimensions.width}px`,a.height=(o=a.height)!=null?o:`${t.dimensions.height}px`,i>0)if(typeof a.width=="string"){const s=Number(a.width.replace("px",""));a.width=`${s+i}px`}else a.width+=i;if(r>0)if(typeof a.height=="string"){const s=Number(a.height.replace("px",""));a.height=`${s+r}px`}else a.height+=r;if(e.position.x<0){const s=Math.abs(e.position.x);if(t.position.x=t.position.x-s,typeof a.width=="string"){const l=Number(a.width.replace("px",""));a.width=`${l+s}px`}else a.width+=s;e.position.x=0}if(e.position.y<0){const s=Math.abs(e.position.y);if(t.position.y=t.position.y-s,typeof a.height=="string"){const l=Number(a.height.replace("px",""));a.height=`${l+s}px`}else a.height+=s;e.position.y=0}t.dimensions.width=Number(a.width.toString().replace("px","")),t.dimensions.height=Number(a.height.toString().replace("px","")),typeof t.style=="function"?t.style=s=>{const l=t.style;return{...l(s),...a}}:t.style={...t.style,...a}}}}function Ar(e,t){var n,o;const i=e.filter(a=>a.type==="add"||a.type==="remove");for(const a of i)if(a.type==="add")t.findIndex(l=>l.id===a.item.id)===-1&&t.push(a.item);else if(a.type==="remove"){const s=t.findIndex(l=>l.id===a.id);s!==-1&&t.splice(s,1)}const r=t.map(a=>a.id);for(const a of t)for(const s of e)if(s.id===a.id)switch(s.type){case"select":a.selected=s.selected;break;case"position":if(fn(a)&&(typeof s.position<"u"&&(a.position=s.position),typeof s.dragging<"u"&&(a.dragging=s.dragging),a.expandParent&&a.parentNode)){const l=t[r.indexOf(a.parentNode)];l&&fn(l)&&Uo(a,l)}break;case"dimensions":if(fn(a)&&(typeof s.dimensions<"u"&&(a.dimensions=s.dimensions),typeof s.updateStyle<"u"&&(a.style={...a.style||{},width:`${(n=s.dimensions)==null?void 0:n.width}px`,height:`${(o=s.dimensions)==null?void 0:o.height}px`}),typeof s.resizing<"u"&&(a.resizing=s.resizing),a.expandParent&&a.parentNode)){const l=t[r.indexOf(a.parentNode)];l&&fn(l)&&(!!l.dimensions.width&&!!l.dimensions.height?Uo(a,l):rt(()=>{Uo(a,l)}))}break}return t}function dt(e,t){return{id:e,type:"select",selected:t}}function Pr(e){return{item:e,type:"add"}}function Dr(e){return{id:e,type:"remove"}}function zr(e,t,n,o,i){return{id:e,source:t,target:n,sourceHandle:o||null,targetHandle:i||null,type:"remove"}}function gt(e,t=new Set,n=!1){const o=[];for(const[i,r]of e){const a=t.has(i);!(r.selected===void 0&&!a)&&r.selected!==a&&(n&&(r.selected=a),o.push(dt(r.id,a)))}return o}function J(e){const t=new Set;let n=!1;const o=()=>t.size>0;e&&(n=!0,t.add(e));const i=s=>{t.delete(s)};return{on:s=>{e&&n&&t.delete(e),t.add(s);const l=()=>{i(s),e&&n&&t.add(e)};return xo(l),{off:l}},off:i,trigger:s=>Promise.all(Array.from(t).map(l=>l(s))),hasListeners:o,fns:t}}function Br(e,t,n){let o=e;do{if(o&&o.matches(t))return!0;if(o===n)return!1;o=o.parentElement}while(o);return!1}function Rh(e,t,n,o,i){var r,a;const s=[];for(const l of e)(l.selected||l.id===i)&&(!l.parentNode||!gs(l,o))&&(l.draggable||t&&typeof l.draggable>"u")&&s.push(Lt({id:l.id,position:l.position||{x:0,y:0},distance:{x:n.x-((r=l.computedPosition)==null?void 0:r.x)||0,y:n.y-((a=l.computedPosition)==null?void 0:a.y)||0},from:l.computedPosition,extent:l.extent,parentNode:l.parentNode,dimensions:l.dimensions,expandParent:l.expandParent}));return s}function Wo({id:e,dragItems:t,findNode:n}){const o=[];for(const i of t){const r=n(i.id);r&&o.push(r)}return[e?o.find(i=>i.id===e):o[0],o]}function vs(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function Vh(e,t,n){const[o,i,r,a]=typeof e!="string"?vs(e.padding):[0,0,0,0];return n&&typeof n.computedPosition.x<"u"&&typeof n.computedPosition.y<"u"&&typeof n.dimensions.width<"u"&&typeof n.dimensions.height<"u"?[[n.computedPosition.x+a,n.computedPosition.y+o],[n.computedPosition.x+n.dimensions.width-i,n.computedPosition.y+n.dimensions.height-r]]:!1}function Hh(e,t,n,o){let i=e.extent||n;if((i==="parent"||!Array.isArray(i)&&(i==null?void 0:i.range)==="parent")&&!e.expandParent)if(e.parentNode&&o&&e.dimensions.width&&e.dimensions.height){const r=Vh(i,e,o);r&&(i=r)}else t(new Me(Ce.NODE_EXTENT_INVALID,e.id)),i=n;else if(Array.isArray(i)){const r=(o==null?void 0:o.computedPosition.x)||0,a=(o==null?void 0:o.computedPosition.y)||0;i=[[i[0][0]+r,i[0][1]+a],[i[1][0]+r,i[1][1]+a]]}else if(i!=="parent"&&(i==null?void 0:i.range)&&Array.isArray(i.range)){const[r,a,s,l]=vs(i.padding),u=(o==null?void 0:o.computedPosition.x)||0,c=(o==null?void 0:o.computedPosition.y)||0;i=[[i.range[0][0]+u+l,i.range[0][1]+c+r],[i.range[1][0]+u-a,i.range[1][1]+c-s]]}return i==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:i}function Fh({width:e,height:t},n){return[n[0],[n[1][0]-(e||0),n[1][1]-(t||0)]]}function Oi(e,t,n,o,i){const r=Fh(e.dimensions,Hh(e,n,o,i)),a=as(t,r);return{position:{x:a.x-((i==null?void 0:i.computedPosition.x)||0),y:a.y-((i==null?void 0:i.computedPosition.y)||0)},computedPosition:a}}function fo(e,t,n=te.Left){var l,u,c;const o=((l=t==null?void 0:t.x)!=null?l:0)+e.computedPosition.x,i=((u=t==null?void 0:t.y)!=null?u:0)+e.computedPosition.y,{width:r,height:a}=t!=null?t:Xh(e);switch((c=t==null?void 0:t.position)!=null?c:n){case te.Top:return{x:o+r/2,y:i};case te.Right:return{x:o+r,y:i+a/2};case te.Bottom:return{x:o+r/2,y:i+a};case te.Left:return{x:o,y:i+a/2}}}function Or(e=[],t){return e.length&&(t?e.find(n=>n.id===t):e[0])||null}function Lh({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:o,targetWidth:i,targetHeight:r,width:a,height:s,viewport:l}){const u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+o,t.y+r)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=co({x:(0-l.x)/l.zoom,y:(0-l.y)/l.zoom,width:a/l.zoom,height:s/l.zoom}),d=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),h=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(d*h)>0}function Yh(e,t,n=!1){const o=typeof e.zIndex=="number";let i=o?e.zIndex:0;const r=t(e.source),a=t(e.target);return!r||!a?0:(n&&(i=o?e.zIndex:Math.max(r.computedPosition.z||0,a.computedPosition.z||0)),i)}var Ce=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(Ce||{});const Rr={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid Node: ${e}`,NODE_NOT_FOUND:e=>`Node not found Node: ${e}`,NODE_MISSING_PARENT:(e,t)=>`Node is missing a parent Node: ${e} @@ -32,4 +32,4 @@ Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},-${e.maskBorderRadius} v${-(F.value.height-2*e.maskBorderRadius)} a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},-${e.maskBorderRadius}z`);Sl(E=>{if(_.value){const I=vt(_.value),C=B=>{if(B.sourceEvent.type!=="wheel"||!h.value||!g.value)return;const P=-B.sourceEvent.deltaY*(B.sourceEvent.deltaMode===1?.05:B.sourceEvent.deltaMode?1:.002)*e.zoomStep,L=l.value.zoom*2**P;g.value.scaleTo(h.value,L)},R=B=>{if(B.sourceEvent.type!=="mousemove"||!h.value||!g.value)return;const P=Z.value*Math.max(1,l.value.zoom)*(e.inversePan?-1:1),L={x:l.value.x-B.sourceEvent.movementX*P,y:l.value.y-B.sourceEvent.movementY*P},ae=[[0,0],[c.value.width,c.value.height]],se=nr.translate(L.x,L.y).scale(l.value.zoom),ce=g.value.constrain()(se,ae,u.value);g.value.transform(h.value,ce)},W=wy().on("zoom",e.pannable?R:()=>{}).on("zoom.wheel",e.zoomable?C:()=>{});I.call(W),E(()=>{I.on("zoom",null)})}},{flush:"post"});function X(E){const[I,C]=ft(E);t("click",{event:E,position:{x:I,y:C}})}function Q(E,I){const C={event:E,node:I,connectedEdges:$t([I],s.value)};d.miniMapNodeClick(C),t("nodeClick",C)}function f(E,I){const C={event:E,node:I,connectedEdges:$t([I],s.value)};d.miniMapNodeDoubleClick(C),t("nodeDblclick",C)}function x(E,I){const C={event:E,node:I,connectedEdges:$t([I],s.value)};d.miniMapNodeMouseEnter(C),t("nodeMouseenter",C)}function y(E,I){const C={event:E,node:I,connectedEdges:$t([I],s.value)};d.miniMapNodeMouseMove(C),t("nodeMousemove",C)}function M(E,I){const C={event:E,node:I,connectedEdges:$t([I],s.value)};d.miniMapNodeMouseLeave(C),t("nodeMouseleave",C)}return(E,I)=>(O(),fe(D(Is),{position:E.position,class:Xe(["vue-flow__minimap",{pannable:E.pannable,zoomable:E.zoomable}])},{default:ue(()=>[(O(),q("svg",{ref_key:"el",ref:_,width:b.value,height:S.value,viewBox:[T.value.x,T.value.y,T.value.width,T.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${D(a)}`,onClick:X},[E.ariaLabel?(O(),q("title",{key:0,id:`vue-flow__minimap-${D(a)}`},Te(E.ariaLabel),9,xy)):me("",!0),(O(!0),q(Ae,null,tn(D($),C=>(O(),fe(Sy,{id:C.id,key:C.id,position:C.computedPosition,dimensions:C.dimensions,selected:C.selected,dragging:C.dragging,style:Ie(C.style),class:Xe(V.value(C)),color:N.value(C),"border-radius":E.nodeBorderRadius,"stroke-color":k.value(C),"stroke-width":E.nodeStrokeWidth,"shape-rendering":D(v),type:C.type,onClick:R=>Q(R,C),onDblclick:R=>f(R,C),onMouseenter:R=>x(R,C),onMousemove:R=>y(R,C),onMouseleave:R=>M(R,C)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),ge("path",{class:"vue-flow__minimap-mask",d:w.value,fill:E.maskColor,stroke:E.maskStrokeColor,"stroke-width":E.maskStrokeWidth,"fill-rule":"evenodd"},null,8,Ey)],8,$y))]),_:1},8,["position","class"]))}}),Cy={name:"ControlButton",compatConfig:{MODE:3}},My=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Iy={class:"vue-flow__controls-button"};function Ty(e,t,n,o,i,r){return O(),q("button",Iy,[Ne(e.$slots,"default")])}const Ft=My(Cy,[["render",Ty]]),Ay={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Py=ge("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1),Dy=[Py];function zy(e,t){return O(),q("svg",Ay,Dy)}const By={render:zy},Oy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Ry=ge("path",{d:"M0 0h32v4.2H0z"},null,-1),Vy=[Ry];function Hy(e,t){return O(),q("svg",Oy,Vy)}const Fy={render:Hy},Ly={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},Yy=ge("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1),Xy=[Yy];function Gy(e,t){return O(),q("svg",Ly,Xy)}const Zy={render:Gy},Uy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},Wy=ge("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1),qy=[Wy];function Ky(e,t){return O(),q("svg",Uy,qy)}const Jy={render:Ky},Qy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},jy=ge("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1),e1=[jy];function t1(e,t){return O(),q("svg",Qy,e1)}const n1={render:t1},o1={name:"Controls",compatConfig:{MODE:3}},i1=he({...o1,props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>ns.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:t}){const{nodesDraggable:n,nodesConnectable:o,elementsSelectable:i,setInteractive:r,zoomIn:a,zoomOut:s,fitView:l,viewport:u,minZoom:c,maxZoom:d}=ye(),h=be(()=>n.value||o.value||i.value),g=be(()=>u.value.zoom<=c.value),$=be(()=>u.value.zoom>=d.value);function _(){a(),t("zoomIn")}function b(){s(),t("zoomOut")}function S(){l(e.fitViewParams),t("fitView")}function v(){r(!h.value),t("interactionChange",!h.value)}return(N,k)=>(O(),fe(D(Is),{class:"vue-flow__controls",position:N.position},{default:ue(()=>[Ne(N.$slots,"top"),N.showZoom?(O(),q(Ae,{key:0},[Ne(N.$slots,"control-zoom-in",{},()=>[j(Ft,{class:"vue-flow__controls-zoomin",disabled:$.value,onClick:_},{default:ue(()=>[Ne(N.$slots,"icon-zoom-in",{},()=>[(O(),fe(He(D(By))))])]),_:3},8,["disabled"])]),Ne(N.$slots,"control-zoom-out",{},()=>[j(Ft,{class:"vue-flow__controls-zoomout",disabled:g.value,onClick:b},{default:ue(()=>[Ne(N.$slots,"icon-zoom-out",{},()=>[(O(),fe(He(D(Fy))))])]),_:3},8,["disabled"])])],64)):me("",!0),N.showFitView?Ne(N.$slots,"control-fit-view",{key:1},()=>[j(Ft,{class:"vue-flow__controls-fitview",onClick:S},{default:ue(()=>[Ne(N.$slots,"icon-fit-view",{},()=>[(O(),fe(He(D(Zy))))])]),_:3})]):me("",!0),N.showInteractive?Ne(N.$slots,"control-interactive",{key:2},()=>[N.showInteractive?(O(),fe(Ft,{key:0,class:"vue-flow__controls-interactive",onClick:v},{default:ue(()=>[h.value?Ne(N.$slots,"icon-unlock",{key:0},()=>[(O(),fe(He(D(n1))))]):me("",!0),h.value?me("",!0):Ne(N.$slots,"icon-lock",{key:1},()=>[(O(),fe(He(D(Jy))))])]),_:3})):me("",!0)]):me("",!0),Ne(N.$slots,"default")]),_:3},8,["position"]))}}),r1=he({__name:"ControlButtons",props:{workflow:{}},setup(e){return(t,n)=>(O(),fe(D(i1),{position:"top-left","show-interactive":!1},{default:ue(()=>[j(D(Ft),{title:"Undo",disabled:!t.workflow.history.canUndo(),onClick:n[0]||(n[0]=o=>t.workflow.history.undo())},{default:ue(()=>[j(D(Ol))]),_:1},8,["disabled"]),j(D(Ft),{title:"Redo",disabled:!t.workflow.history.canRedo(),onClick:n[1]||(n[1]=o=>t.workflow.history.redo())},{default:ue(()=>[j(D(du))]),_:1},8,["disabled"])]),_:1}))}});class a1{constructor(t,n){Ee(this,"dx");Ee(this,"dy");this.dx=n.x-t.x,this.dy=n.y-t.y}get x(){return this.dx}get y(){return this.dy}get length(){return Math.sqrt(this.dx*this.dx+this.dy*this.dy)}get m(){return this.dy/this.dx}}function s1(e,t,n=0){const{x:o,y:i}=t.center,{width:r,height:a}=t,s=new a1(e,t.center),l=n*(s.x/s.length),u=n*(s.y/s.length),c=a/r;let d,h;if(Math.abs(s.m)>Math.abs(c)){const g=a/2*(1/s.m);d=o-(s.y>0?g:-g),h=i+(s.y>0?-a/2:a/2)}else{const g=r/2*s.m;d=o+(s.x>0?-r/2:r/2),h=i-(s.x>0?g:-g)}return{x:d+l,y:h+u}}const bo=(e,t=0,n=0)=>{const o=Math.atan2(e.ty-e.sy,e.tx-e.sx),i=t*Math.sin(o),r=t*Math.cos(o),a=n*Math.cos(o),s=n*Math.sin(o);return{sourceX:e.sx-i+a,sourceY:e.sy+r+s,targetX:e.tx-i-a,targetY:e.ty+r-s}};function kn(e,t,n=0){const o={x:e.computedPosition.x+e.dimensions.width/2,y:e.computedPosition.y+e.dimensions.height/2},r={center:{x:t.computedPosition.x+t.dimensions.width/2,y:t.computedPosition.y+t.dimensions.height/2},width:t.dimensions.width,height:t.dimensions.height};return s1(o,r,n)}function Ho(e,t){const n=kn(e,t,-10),o=kn(t,e,-10);return{sx:o.x,sy:o.y,tx:n.x,ty:n.y}}const l1={key:0},u1=he({__name:"ConditionEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},controller:{}},setup(e){const t=e,n=ie(t.data.props.conditionValue||""),o=ie(!1),i=U(()=>n.value.length+t.sourceNode.data.props.variableName.length>30),r=()=>{!o.value||(n.value!==t.data.props.conditionValue&&t.controller.updateTransitionProps(t.data.id,{conditionValue:n.value}),o.value=!1)},{onEdgeClick:a,onPaneClick:s}=ye();a(d=>{d.edge.id===t.id&&!o.value&&(o.value=!0)}),s(()=>r());const l=U(()=>Ho(t.sourceNode,t.targetNode)),u=U(()=>Qt(bo(l.value))),c=d=>{d.key==="Enter"&&r()};return Oe(()=>window.addEventListener("keydown",c)),Rt(()=>window.removeEventListener("keydown",c)),(d,h)=>(O(),q(Ae,null,[j(D(_t),{path:u.value[0],"marker-end":d.markerEnd,style:{"stroke-dasharray":"5, 5"}},null,8,["path","marker-end"]),j(D(Li),null,{default:ue(()=>[o.value?(O(),q("div",{key:1,style:Ie({transform:`translate(-50%, -50%) translate(${u.value[1]}px,${u.value[2]}px)`}),class:"nodrag nopan edge-input-container"},[j(D(Ut),{value:n.value,"onUpdate:value":h[1]||(h[1]=g=>n.value=g),"addon-before":"="},null,8,["value"])],4)):(O(),q("div",{key:0,style:Ie({transform:`translate(-50%, -50%) translate(${u.value[1]}px,${u.value[2]}px)`}),class:"nodrag nopan edge-label"},[j(D(So),{code:"",style:{opacity:"1",display:"flex"},onClick:h[0]||(h[0]=g=>o.value=!0)},{default:ue(()=>[Be(" if "+Te(d.sourceNode.data.props.variableName)+" = ",1),i.value?(O(),q("br",l1)):me("",!0),Be("'"+Te(n.value)+"' ",1)]),_:1})],4))]),_:1})],64))}});const c1=lt(u1,[["__scopeId","data-v-02f01e0e"]]),d1=he({__name:"FinishEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},controller:{}},setup(e){const t=e,n=ie(!1),o=ie(`${t.sourceNode.data.type}:finished`),i=()=>{n.value&&o.value!==t.data.type&&t.controller.updateTransitionType(t.id,o.value),n.value=!1},{onEdgeClick:r,onPaneClick:a}=ye();r(d=>{d.edge.id===t.id&&!n.value&&(n.value=!0)}),a(()=>i());const s=U(()=>Ho(t.sourceNode,t.targetNode)),l=U(()=>Qt(bo(s.value))),u=U(()=>t.data.type.split(":")[1]==="finished"?"On Success":"On Failure"),c=d=>{d.key==="Enter"&&i()};return Oe(()=>window.addEventListener("keydown",c)),Rt(()=>window.removeEventListener("keydown",c)),(d,h)=>(O(),q(Ae,null,[j(D(_t),{path:l.value[0],"marker-end":d.markerEnd},null,8,["path","marker-end"]),j(D(Li),null,{default:ue(()=>[n.value?(O(),q("div",{key:1,style:Ie({transform:`translate(-50%, -50%) translate(${l.value[1]}px,${l.value[2]}px)`}),class:"nodrag nopan edge-select-container"},[j(D($l),{value:o.value,"onUpdate:value":h[0]||(h[0]=g=>o.value=g)},{default:ue(()=>[j(D(rr),{value:`${t.sourceNode.data.type}:finished`},{default:ue(()=>[j(D(At),{gap:"small",align:"center"},{default:ue(()=>[j(D(xl),{size:12}),Be("On Success ")]),_:1})]),_:1},8,["value"]),j(D(rr),{value:`${t.sourceNode.data.type}:failed`},{default:ue(()=>[j(D(At),{gap:"small",align:"center"},{default:ue(()=>[j(D(El),{size:12}),Be("On Failure ")]),_:1})]),_:1},8,["value"])]),_:1},8,["value"])],4)):(O(),q("div",{key:0,style:Ie({transform:`translate(-50%, -50%) translate(${l.value[1]}px,${l.value[2]}px)`}),class:"nodrag nopan edge-label"},[j(D(So),{style:{color:"#606060"}},{default:ue(()=>[Be(Te(u.value),1)]),_:1})],4))]),_:1})],64))}});const f1=lt(d1,[["__scopeId","data-v-83bdbf52"]]),h1=he({__name:"IteratorEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(e){const t=e,n=U(()=>Ho(t.sourceNode,t.targetNode)),o=U(()=>Qt(bo(n.value,2.5))),i=U(()=>Qt(bo(n.value,-2.5,8)));return(r,a)=>(O(),q(Ae,null,[j(D(_t),{path:o.value[0],"marker-end":r.markerEnd},null,8,["path","marker-end"]),j(D(_t),{path:i.value[0],"marker-end":r.markerEnd,style:{opacity:"0.5"}},null,8,["path","marker-end"]),j(D(Li),null,{default:ue(()=>[ge("div",{style:Ie({transform:`translate(-50%, -50%) translate(${o.value[1]}px,${o.value[2]}px)`}),class:"nodrag nopan edge-label"},[j(D(So),{code:""},{default:ue(()=>[Be(" for "+Te(r.sourceNode.data.props.itemName)+" in "+Te(r.sourceNode.data.props.variableName),1)]),_:1})],4)]),_:1})],64))}});const g1=lt(h1,[["__scopeId","data-v-8c8a210f"]]),p1={key:0},v1=ge("defs",null,[ge("marker",{id:"arrowhead",markerWidth:"8",markerHeight:"8",refX:"0",refY:"4",orient:"auto",markerUnits:"strokeWidth"},[ge("path",{d:"M0,0 L8,4 L0,8",fill:"none",stroke:"#222","stroke-width":"1"})])],-1),m1=["d"],y1=he({__name:"LineFloating",props:{targetX:{},targetY:{},sourcePosition:{},targetPosition:{},sourceNode:{}},setup(e){const t=e,n=ie(!0),{onNodeMouseEnter:o,onNodeMouseLeave:i}=ye();o(l=>{l.node.id===t.sourceNode.id&&(n.value=!1)}),i(l=>{l.node.id===t.sourceNode.id&&(n.value=!0)});const r=U(()=>({id:"connection-target",computedPosition:{x:t.targetX,y:t.targetY},dimensions:{width:1,height:1}})),a=U(()=>Ho(t.sourceNode,r.value)),s=U(()=>Qt({sourceX:a.value.sx,sourceY:a.value.sy,targetX:a.value.tx,targetY:a.value.ty}));return(l,u)=>n.value?(O(),q("g",p1,[v1,ge("path",{fill:"none",stroke:"#222","stroke-width":1,class:"animated",d:s.value[0],"marker-end":"url(#arrowhead)"},null,8,m1)])):me("",!0)}}),w1={name:"NodeToolbar",compatConfig:{MODE:3},inheritAttrs:!1},_1=he({...w1,props:{nodeId:null,isVisible:{type:Boolean},position:{default:te.Top},offset:{default:10},align:{default:"center"}},setup(e){const t=e,n=Pe(Hi,null),{viewportRef:o,viewport:i,getSelectedNodes:r,findNode:a}=ye();function s(g,$,_,b,S){let v=.5;S==="start"?v=0:S==="end"&&(v=1);let N=[(g.x+g.width*v)*$.zoom+$.x,g.y*$.zoom+$.y-b],k=[-100*v,-100];switch(_){case te.Right:N=[(g.x+g.width)*$.zoom+$.x+b,(g.y+g.height*v)*$.zoom+$.y],k=[0,-100*v];break;case te.Bottom:N[1]=(g.y+g.height)*$.zoom+$.y+b,k[1]=0;break;case te.Left:N=[g.x*$.zoom+$.x-b,(g.y+g.height*v)*$.zoom+$.y],k=[-100,-100*v];break}return`translate(${N[0]}px, ${N[1]}px) translate(${k[0]}%, ${k[1]}%)`}const l=U(()=>(Array.isArray(t.nodeId)?t.nodeId:[t.nodeId||n||""]).reduce((g,$)=>{const _=a($);return _&&g.push(_),g},[])),u=U(()=>typeof t.isVisible=="boolean"?t.isVisible:l.value.length===1&&l.value[0].selected&&r.value.length===1),c=U(()=>Io(l.value)),d=U(()=>Math.max(...l.value.map(g=>(g.computedPosition.z||1)+1))),h=U(()=>({position:"absolute",transform:s(c.value,i.value,t.position,t.offset,t.align),zIndex:d.value}));return(g,$)=>(O(),fe(ba,{to:D(o),disabled:!D(o)},[D(u)&&D(l).length?(O(),q("div",mt({key:0},g.$attrs,{style:D(h),class:"vue-flow__node-toolbar"}),[Ne(g.$slots,"default")],16)):me("",!0)],8,["to","disabled"]))}}),or=he({__name:"NodeMenu",props:{isConnecting:{type:Boolean},isEditing:{type:Boolean},menuOptions:{}},setup(e){return(t,n)=>(O(),fe(D(_1),{"is-visible":t.isConnecting||t.isEditing?!1:void 0,position:D(te).Right},{default:ue(()=>[j(D(At),{vertical:"",gap:"small",style:Ie({marginBottom:`-${16*t.menuOptions.length}%`})},{default:ue(()=>[(O(!0),q(Ae,null,tn(t.menuOptions,o=>(O(),fe(D(Nl),{key:o.label,title:o.tooltip,placement:"right"},{default:ue(()=>[j(D(kl),{class:Xe([{"warning-button":o.warning}]),disabled:o.disabled,style:Ie({backgroundColor:o.disabled?"#f5f5f5":void 0}),onClick:i=>o.click(i)},{default:ue(()=>[j(D(At),{gap:"small",style:{width:"100%"},justify:"space-between",align:"center"},{default:ue(()=>[Be(Te(o.label)+" ",1),o.key?(O(),fe(D(So),{key:0,keyboard:"",disabled:o.disabled},{default:ue(()=>[Be(Te(o.key),1)]),_:2},1032,["disabled"])):me("",!0)]),_:2},1024)]),_:2},1032,["class","disabled","style","onClick"])]),_:2},1032,["title"]))),128))]),_:1},8,["style"])]),_:1},8,["is-visible","position"]))}});const b1=he({__name:"ConditionNode",props:{stage:{},node:{},controller:{}},setup(e){const t=e,{useToken:n}=$o,{token:o}=n(),i=o.value.colorText,r=[{label:"Add transition",key:"T",click:T=>Y(T)},{label:"Edit variable",key:"R",click:()=>N.value=!0},{label:"Delete",key:"Del",click:()=>d(t.stage)}],{startConnection:a,updateConnection:s,onNodeClick:l,addEdges:u,endConnection:c,removeNodes:d,onPaneClick:h,getSelectedNodes:g,flowToScreenCoordinate:$,onNodeMouseEnter:_,getNodes:b,onNodeMouseLeave:S}=ye(),v=ie(!1),N=ie(!1),k=ie(!1),V=ie(t.stage.props.variableName||""),Y=(T,w=!0)=>{a({nodeId:t.stage.id,type:"source",handleId:t.stage.id},{x:w?T.pageX-180:T.pageX-90,y:w?T.pageY-50:T.pageY-20}),document.addEventListener("mousemove",F),v.value=!0},F=T=>{v.value&&!k.value&&s({x:T.pageX-180,y:T.pageY-52})};_(T=>{if(v.value&&T.node.id!==t.stage.id){k.value=!0;const w=b.value.find(Q=>Q.id===t.stage.id);if(!w)return;const X=kn(w,T.node,-10);s($({x:X.x-180,y:X.y-52}))}}),S(()=>{k.value=!1}),l(T=>{if(v.value&&T.node.id!==t.stage.id){const w={sourceStageId:t.stage.id,targetStageId:T.node.id,type:"conditions:patternMatched",id:Bo()};try{t.controller.connect([w]),document.removeEventListener("mousemove",F),u({source:t.stage.id,target:T.node.id,type:"conditions",markerEnd:{type:zt.Arrow,width:24,height:24},data:{...w,props:{conditionValue:null}}}),c(),v.value=!1}catch(X){console.error(X)}}});const K=()=>{try{V.value=no(V.value)}catch(T){kt.error({message:"Invalid variable name",description:T instanceof Error?T.message:"Try a different name"});return}N.value&&t.stage.props.variableName!==V.value&&t.controller.updateStageProps(t.stage.id,{variableName:V.value,path:null,filename:null,itemName:null}),N.value=!1};h(()=>{K(),v.value=!1,c()});const Z=T=>{if(!!g.value.map(w=>w.id).includes(t.stage.id)&&(T.key==="Enter"&&K(),!N.value)){if(T.key==="t"||T.key==="T"){const w=$(t.stage.position);Y({pageX:w.x,pageY:w.y},!1)}(T.key==="r"||T.key==="R")&&(N.value=!0)}};return Oe(()=>{window.addEventListener("keydown",Z)}),Rt(()=>{window.removeEventListener("keydown",Z)}),(T,w)=>(O(),q(Ae,null,[j(or,{"is-connecting":v.value,"is-editing":N.value,"menu-options":r},null,8,["is-connecting","is-editing"]),(O(),fe(He(D(Ci)(T.stage.type)),{size:18,style:{position:"absolute","z-index":"1"},color:D(i)},null,8,["color"])),N.value?(O(),fe(D(Ut),{key:1,value:V.value,"onUpdate:value":w[0]||(w[0]=X=>V.value=X),size:"small",class:"nodrag nopan input"},null,8,["value"])):(O(),fe(D(ki),{key:0,class:"label"},{default:ue(()=>[Be(Te(T.stage.title),1)]),_:1}))],64))}});const S1=lt(b1,[["__scopeId","data-v-5f73e598"]]),$1=he({__name:"IteratorNode",props:{stage:{},node:{},controller:{}},setup(e){const t=e,{useToken:n}=$o,{token:o}=n(),i=o.value.colorText,r=[{label:"Add transition",key:"T",click:w=>F(w)},{label:"Edit variables",key:"R",click:()=>N.value=!0},{label:"Delete",key:"Del",click:()=>d(t.stage)}],{startConnection:a,updateConnection:s,onNodeClick:l,addEdges:u,endConnection:c,removeNodes:d,onPaneClick:h,getSelectedNodes:g,flowToScreenCoordinate:$,getNodes:_,onNodeMouseEnter:b,onNodeMouseLeave:S}=ye(),v=ie(!1),N=ie(!1),k=ie(!1),V=ie(t.stage.props.variableName||""),Y=ie(t.stage.props.itemName||""),F=(w,X=!0)=>{a({nodeId:t.stage.id,type:"source",handleId:t.stage.id},{x:X?w.pageX-180:w.pageX-90,y:X?w.pageY-50:w.pageY-20}),document.addEventListener("mousemove",K),v.value=!0},K=w=>{v.value&&!k.value&&s({x:w.pageX-180,y:w.pageY-52})};b(w=>{if(v.value&&w.node.id!==t.stage.id){k.value=!0;const X=_.value.find(f=>f.id===t.stage.id);if(!X)return;const Q=kn(X,w.node,-10);s($({x:Q.x-180,y:Q.y-52}))}}),S(()=>{k.value=!1}),l(w=>{if(v.value&&w.node.id!==t.stage.id){const X={sourceStageId:t.stage.id,targetStageId:w.node.id,type:"iterators:each",id:Bo()};try{t.controller.connect([X]),document.removeEventListener("mousemove",K),u({source:t.stage.id,target:w.node.id,type:"iterators",markerEnd:{type:zt.Arrow,width:24,height:24},data:X}),c(),v.value=!1}catch(Q){console.error(Q)}}});const Z=()=>{try{V.value=no(V.value),Y.value=no(Y.value)}catch(w){kt.error({message:"Invalid variable name",description:w instanceof Error?w.message:"Try a different name"});return}N.value&&(t.stage.props.variableName!==V.value||t.stage.props.itemName!==Y.value)&&t.controller.updateStageProps(t.stage.id,{variableName:V.value,path:null,filename:null,itemName:Y.value}),N.value=!1};h(()=>{Z(),v.value=!1,c()});const T=w=>{if(!!g.value.map(X=>X.id).includes(t.stage.id)&&(w.key==="Enter"&&Z(),!N.value)){if(w.key==="t"||w.key==="T"){const X=$(t.stage.position);F({pageX:X.x,pageY:X.y},!1)}(w.key==="r"||w.key==="R")&&(N.value=!0)}};return Oe(()=>{window.addEventListener("keydown",T)}),Rt(()=>{window.removeEventListener("keydown",T)}),(w,X)=>(O(),q(Ae,null,[j(or,{"is-connecting":v.value,"is-editing":N.value,"menu-options":r},null,8,["is-connecting","is-editing"]),(O(),fe(He(D(Ci)(w.stage.type)),{size:18,color:D(i),style:{position:"absolute"}},null,8,["color"])),N.value?(O(),fe(D(At),{key:1,vertical:"",class:"nodrag nopan input",gap:"4",align:"center"},{default:ue(()=>[j(D(Ut),{value:Y.value,"onUpdate:value":X[0]||(X[0]=Q=>Y.value=Q),size:"small","addon-before":"for"},null,8,["value"]),j(D(Ut),{value:V.value,"onUpdate:value":X[1]||(X[1]=Q=>V.value=Q),size:"small","addon-before":"in"},null,8,["value"])]),_:1})):(O(),fe(D(ki),{key:0,class:"label"},{default:ue(()=>[Be(Te(w.stage.title),1)]),_:1}))],64))}});const x1=lt($1,[["__scopeId","data-v-a881e4ab"]]),E1=["finished","failed","waiting","running"],ow=({kanbanRepository:e})=>{const t=ie([]),n=ie([]),o=async()=>{try{return await e.countByStatus()}catch(l){return Cl(l),console.error(l),t.value}},i=async()=>{n.value=await e.getStages(),r()},{startPolling:r,endPolling:a}=Fl({task:async()=>{t.value=await o()}});return{stageRunsCount:t,setup:i,tearDown:()=>a()}},N1=["title"],k1=["title"],C1=he({__name:"Badges",props:{counter:{}},setup(e){return(t,n)=>(O(),fe(D(At),{gap:"small",style:{"margin-top":"4px","margin-bottom":"2px"}},{default:ue(()=>[t.counter.finished>0?(O(),fe(D(un),{key:0,count:t.counter.finished,"number-style":{backgroundColor:"#33b891"}},null,8,["count"])):me("",!0),t.counter.failed>0?(O(),fe(D(un),{key:1,count:t.counter.failed,"number-style":{backgroundColor:"#fa675c"}},null,8,["count"])):me("",!0),t.counter.waiting>0?(O(),fe(D(un),{key:2},{count:ue(()=>[ge("div",{class:"base-badge",title:t.counter.waiting.toFixed(0)},[Be(Te(t.counter.waiting>99?"99+":t.counter.waiting)+" ",1),j(D(Pu),{size:12})],8,N1)]),_:1})):me("",!0),t.counter.running>0?(O(),fe(D(un),{key:3},{count:ue(()=>[ge("div",{class:"base-badge",title:t.counter.running.toFixed(0),style:{"background-color":"#2db7f5",color:"#fff","box-shadow":"0 0 0 1px #ffffff"}},[Be(Te(t.counter.running>99?"99+":t.counter.running)+" ",1),j(D(zu),{spin:!0,style:{"font-size":"10px"}})],8,k1)]),_:1})):me("",!0)]),_:1}))}});const M1=lt(C1,[["__scopeId","data-v-bfef44db"]]),I1=he({__name:"CreateStageFile",props:{filename:{},creatingFileStatus:{},fileExists:{type:Boolean}},emits:["create-file","cancel","update-filename"],setup(e,{emit:t}){const n=e,o=U(()=>{const i=xa(n.filename);return i.valid?n.fileExists?{valid:!0,help:"This file already exists, stage will point to it."}:{valid:!0,help:"File doesn't exist yet. It will be created."}:i});return(i,r)=>(O(),fe(D(Tl),{open:i.creatingFileStatus==="prompting"||i.creatingFileStatus==="creating",closable:!1,"confirm-loading":i.creatingFileStatus==="creating",onOk:r[1]||(r[1]=a=>t("create-file",i.filename)),onCancel:r[2]||(r[2]=a=>t("cancel"))},{default:ue(()=>[j(D(Il),{layout:"vertical",disabled:i.creatingFileStatus=="creating"},{default:ue(()=>[j(D(Ml),{label:"You're creating a new file. What should it be called?","validate-status":o.value.valid?"success":"error",help:o.value.valid?o.value.help:o.value.reason},{default:ue(()=>[j(D(Ut),{value:i.filename,onChange:r[0]||(r[0]=a=>t("update-filename",a.target.value||""))},null,8,["value"])]),_:1},8,["validate-status","help"])]),_:1},8,["disabled"])]),_:1},8,["open","confirm-loading"]))}}),T1=he({__name:"StageNode",props:{stage:{},node:{},initialFileCheck:{type:Boolean},controller:{},stageRunCount:{}},setup(e){var W;const t=e,{useToken:n}=$o,{token:o}=n(),i=o.value.colorText,r=[{label:"Add transition",key:"T",click:B=>E(B)},{label:"Rename",key:"R",click:()=>f.value=!0},{label:"Go to editor",key:"Enter",click:()=>M()},{label:"Delete",key:"Del",click:()=>N(t.stage)}],a=U(()=>{let B=[...r];return l.value||B.unshift({label:"Create missing file",warning:!0,click:()=>g()}),t.controller.hasChanges()&&(B=B.map(P=>P.label==="Go to editor"?{...P,disabled:!0,tooltip:"Save it to allow editing"}:P)),B}),s=U(()=>{let B={};return E1.map(P=>{var ae,se,ce;const L=(ce=(se=(ae=t.stageRunCount)==null?void 0:ae.find(le=>le.status===P))==null?void 0:se.count)!=null?ce:0;B[P]=L}),B}),l=ie(t.initialFileCheck);Se(()=>t.initialFileCheck,B=>{l.value=B});const u=bt.exports.debounce(async()=>{const B=t.stage.props.filename;if(!B){l.value=!0;return}Fo.checkFile(B).then(P=>{l.value=P.exists})},500),c=ie((W=t.stage.props.filename)!=null?W:""),d=ie("idle"),h=async()=>{d.value="creating",await Fo.initFile(c.value,t.stage.type),l.value=!0;const B=await Fo.checkFile(c.value);l.value=B.exists,d.value="idle",t.controller.updateStageProps(t.stage.id,{variableName:null,path:t.stage.props.path,filename:c.value,itemName:null})},g=()=>{d.value="prompting"},{startConnection:$,updateConnection:_,onNodeClick:b,addEdges:S,endConnection:v,removeNodes:N,onPaneClick:k,getSelectedNodes:V,flowToScreenCoordinate:Y,onNodeMouseEnter:F,onNodeMouseLeave:K,getNodes:Z,onNodesChange:T,applyNodeChanges:w}=ye(),X=Al(),Q=ie(!1),f=ie(!1),x=ie(t.stage.title),y=ie(!1);T(async B=>{var L;const P=[];for(const ae of B)ae.type==="remove"?f.value||((L=t.controller)==null||L.delete([ae.id]),P.push(ae)):P.push(ae);w(P)});const M=()=>{X.push({path:`/_editor/${t.stage.type.slice(0,-1)}/${t.stage.id}`})},E=(B,P=!0)=>{$({nodeId:t.stage.id,type:"source",handleId:t.stage.id},{x:P?B.pageX-180:B.pageX-90,y:P?B.pageY-50:B.pageY-20}),document.addEventListener("mousemove",I),Q.value=!0},I=B=>{Q.value&&!y.value&&_({x:B.pageX-180,y:B.pageY-52})};b(B=>{if(B.node.id===t.stage.id&&u(),Q.value&&B.node.id!==t.stage.id){const P={sourceStageId:t.stage.id,targetStageId:B.node.id,type:`${t.stage.type}:finished`,id:Bo()};try{t.controller.connect([P]),document.removeEventListener("mousemove",I),S({source:t.stage.id,target:B.node.id,type:"finished",markerEnd:{type:zt.Arrow,width:24,height:24},data:P}),v(),Q.value=!1}catch(L){console.error(L)}}}),F(B=>{if(Q.value&&B.node.id!==t.stage.id){y.value=!0;const P=Z.value.find(ae=>ae.id===t.stage.id);if(!P)return;const L=kn(P,B.node,-10);_(Y({x:L.x-180,y:L.y-52}))}}),K(()=>{y.value=!1});const C=()=>{if(!l.value){const B=Ea(x.value+".py");c.value=B;let P={filename:B,variableName:null,path:null,itemName:null};if(["forms","hooks"].includes(t.stage.type)){const L=$a(x.value);P={...P,path:L}}t.controller.updateStageProps(t.stage.id,P)}};k(()=>{f.value=!1,t.stage.title!==x.value&&(t.controller.updateStageTitle(t.stage.id,x.value),C()),Q.value=!1,v()});const R=B=>{if(!!V.value.map(P=>P.id).includes(t.stage.id)&&d.value==="idle"){if(B.key==="Enter")if(f.value)f.value=!1,t.controller.updateStageTitle(t.stage.id,x.value),C();else{if(t.controller.hasChanges())return;M()}if(!f.value){if(B.key==="t"||B.key==="T"){const P=Y(t.stage.position);E({pageX:P.x,pageY:P.y},!1)}(B.key==="r"||B.key==="R")&&(f.value=!0)}}};return Oe(()=>{window.addEventListener("keydown",R)}),Rt(()=>{window.removeEventListener("keydown",R)}),(B,P)=>(O(),q(Ae,null,[j(or,{"is-connecting":Q.value,"is-editing":f.value,"menu-options":a.value},null,8,["is-connecting","is-editing","menu-options"]),ge("div",{class:"stage",onDblclick:P[1]||(P[1]=L=>f.value=!0)},[j(D(At),{class:"point",gap:"small",align:"center",style:{padding:"4px 0"}},{default:ue(()=>[(O(),fe(He(D(Ci)(B.stage.type)),{size:18,color:D(i)},null,8,["color"])),f.value?(O(),fe(D(Ut),{key:1,value:x.value,"onUpdate:value":P[0]||(P[0]=L=>x.value=L),class:"input nodrag nopan",autofocus:""},null,8,["value"])):(O(),fe(D(ki),{key:0,class:"title"},{default:ue(()=>[Be(Te(B.stage.title),1)]),_:1}))]),_:1})],32),l.value?me("",!0):(O(),fe(D(un),{key:0,count:"!",color:"gold",style:{position:"absolute",top:"-4px",right:"-4px","z-index":"1"}})),j(M1,{counter:s.value},null,8,["counter"]),d.value==="prompting"||d.value==="creating"?(O(),fe(I1,{key:1,filename:c.value,"file-exists":l.value,"creating-file-status":d.value,onCreateFile:h,onCancel:P[2]||(P[2]=L=>d.value="idle"),onUpdateFilename:P[3]||(P[3]=L=>c.value=L)},null,8,["filename","file-exists","creating-file-status"])):me("",!0)],64))}});const Zn=lt(T1,[["__scopeId","data-v-3e6bdee1"]]),ul=e=>(Pl("data-v-330cb041"),e=e(),Dl(),e),A1={class:"empty-hint"},P1={key:0,class:"drag-hint"},D1=ul(()=>ge("div",{class:"title"},"Start here",-1)),z1={key:1,class:"drop-hint"},B1=ul(()=>ge("div",{class:"title"},"Drop here",-1)),O1={key:2,class:"stages-hint"},R1={class:"header"},V1={class:"title"},H1={class:"description"},F1=he({__name:"EmptyHint",props:{showDragHint:{type:Boolean}},setup(e){return(t,n)=>(O(),q("div",A1,[t.showDragHint?(O(),q("div",P1,[D1,j(D(ar),{size:32,class:"arrow"})])):me("",!0),t.showDragHint?me("",!0):(O(),q("div",z1,[B1,j(D(ar),{size:32,class:"arrow"})])),t.showDragHint?(O(),q("div",O1,[(O(!0),q(Ae,null,tn(D(Wt).stages,o=>(O(),q("div",{key:o.key,class:"stage-hint"},[ge("div",R1,[(O(),fe(He(o.icon))),ge("span",V1,Te(o.title),1)]),ge("div",H1,Te(o.description),1)]))),128))])):me("",!0)]))}});const L1=lt(F1,[["__scopeId","data-v-330cb041"]]);function Y1(){let e;const t={draggedType:ie(null),isDragOver:ie(!1),isAdding:ie(!1),isDragging:ie(!1),mousePosition:ie(null)},{draggedType:n,isDragOver:o,isDragging:i,isAdding:r}=t,a=b=>{e=b,document.addEventListener("mousemove",h)},{screenToFlowCoordinate:s}=ye();Se(r,b=>{document.body.style.userSelect=b?"none":""});function l(b,S){r.value=!0,b?(b.setData("application/vueflow",S),b.effectAllowed="move",n.value=S,i.value=!0,document.addEventListener("drop",d)):(n.value=S,document.addEventListener("click",$))}function u(b){b.preventDefault(),n.value&&(o.value=!0,b.dataTransfer&&(b.dataTransfer.dropEffect="move"))}function c(){o.value=!1}function d(){r.value=!1,i.value=!1,o.value=!1,n.value=null,document.removeEventListener("drop",d)}function h(b){const S={x:b.pageX-200,y:b.pageY-80};t.mousePosition.value=S}function g(b){if(!n.value)throw new Error("No dragged type");return["conditions","iterators"].includes(n.value)?s({x:b.clientX-25,y:b.clientY-25}):s({x:b.clientX-70,y:b.clientY-25})}function $(b){if(!e)return;if(!n.value)throw new Error("No dragged type");const S=g(b);e.addStages([{type:n.value,position:S}]),d()}function _(){document.removeEventListener("mousemove",h)}return{init:a,tearDown:_,draggedType:n,isDragOver:o,isAdding:r,isDragging:i,mousePosition:t.mousePosition,onDragStart:l,onDragLeave:c,onDragOver:u,onDrop:$}}const X1=he({__name:"Workflow",props:{workflow:{},editable:{type:Boolean},showDragHint:{type:Boolean},stageRunsCount:{},checkFileStatus:{type:Boolean},initialFileCheckStatus:{}},setup(e){const t=e;zl(u=>({"917aaae8":D(a),"2b856031":D(r)}));const n=Y1(),{useToken:o}=$o,{token:i}=o(),r=i.value.colorPrimaryBorder,a=i.value.colorBgElevated,{onInit:s}=ye();s(u=>{u.fitView()});const l=u=>{var c,d;return t.checkFileStatus?u&&(d=(c=t.initialFileCheckStatus)==null?void 0:c[u])!=null?d:!1:!0};return(u,c)=>u.workflow?(O(),fe(D(Tp),{key:0,nodes:u.workflow.vueFlowNodes.value,edges:u.workflow.vueFlowEdges.value,"max-zoom":1.25,class:"vue-flow-root","select-nodes-on-drag":!1,"zoom-on-double-click":!1,multi:"","multi-selection-key-code":"Shift","nodes-draggable":u.editable,"pan-on-scroll":D(Rp).isMac,"elements-selectable":u.editable,"snap-to-grid":"","apply-default":!1,onDragover:D(n).onDragOver,onDragleave:D(n).onDragLeave},{"connection-line":ue(d=>[j(y1,Sa(Bl(d)),null,16)]),"edge-finished":ue(d=>[j(f1,mt(d,{controller:u.workflow}),null,16,["controller"])]),"edge-conditions":ue(d=>[j(c1,mt(d,{controller:u.workflow}),null,16,["controller"])]),"edge-iterators":ue(d=>[j(g1,mt(d,{controller:u.workflow}),null,16,["controller"])]),"node-forms":ue(d=>{var h;return[j(Zn,{stage:d.data,node:d,controller:u.workflow,"stage-run-count":(h=u.stageRunsCount)==null?void 0:h.filter(g=>g.stage===d.id),"initial-file-check":l(d.data.props.filename)},null,8,["stage","node","controller","stage-run-count","initial-file-check"])]}),"node-hooks":ue(d=>{var h;return[j(Zn,{stage:d.data,node:d,controller:u.workflow,"stage-run-count":(h=u.stageRunsCount)==null?void 0:h.filter(g=>g.stage===d.id),"initial-file-check":l(d.data.props.filename)},null,8,["stage","node","controller","stage-run-count","initial-file-check"])]}),"node-scripts":ue(d=>{var h;return[j(Zn,{stage:d.data,node:d,controller:u.workflow,"stage-run-count":(h=u.stageRunsCount)==null?void 0:h.filter(g=>g.stage===d.id),"initial-file-check":l(d.data.props.filename)},null,8,["stage","node","controller","stage-run-count","initial-file-check"])]}),"node-jobs":ue(d=>{var h;return[j(Zn,{stage:d.data,node:d,controller:u.workflow,"stage-run-count":(h=u.stageRunsCount)==null?void 0:h.filter(g=>g.stage===d.id),"initial-file-check":l(d.data.props.filename)},null,8,["stage","node","controller","stage-run-count","initial-file-check"])]}),"node-conditions":ue(d=>{var h;return[j(S1,{stage:d.data,node:d,controller:u.workflow,"stage-run-count":(h=u.stageRunsCount)==null?void 0:h.filter(g=>g.stage===d.id)},null,8,["stage","node","controller","stage-run-count"])]}),"node-iterators":ue(d=>{var h;return[j(x1,{stage:d.data,node:d,controller:u.workflow,"stage-run-count":(h=u.stageRunsCount)==null?void 0:h.filter(g=>g.stage===d.id)},null,8,["stage","node","controller","stage-run-count"])]}),default:ue(()=>[j(D(Gp)),u.editable&&!u.workflow.vueFlowNodes.value.length?(O(),fe(L1,{key:0,"show-drag-hint":u.showDragHint},null,8,["show-drag-hint"])):me("",!0),j(D(ky),{pannable:"",zoomable:""}),u.editable?(O(),fe(r1,{key:1,workflow:u.workflow},null,8,["workflow"])):me("",!0)]),_:1},8,["nodes","edges","nodes-draggable","pan-on-scroll","elements-selectable","onDragover","onDragleave"])):me("",!0)}});const iw=lt(X1,[["__scopeId","data-v-0cfef01e"]]);export{Pu as I,Rp as O,zu as S,iw as W,ye as a,Ds as b,ow as c,Y1 as u}; -//# sourceMappingURL=Workflow.0ffe81e0.js.map +//# sourceMappingURL=Workflow.1ecea04a.js.map diff --git a/abstra_statics/dist/assets/WorkflowEditor.61d6891c.js b/abstra_statics/dist/assets/WorkflowEditor.009f92fe.js similarity index 78% rename from abstra_statics/dist/assets/WorkflowEditor.61d6891c.js rename to abstra_statics/dist/assets/WorkflowEditor.009f92fe.js index ed50525e63..ec02cafe27 100644 --- a/abstra_statics/dist/assets/WorkflowEditor.61d6891c.js +++ b/abstra_statics/dist/assets/WorkflowEditor.009f92fe.js @@ -1,2 +1,2 @@ -var X=Object.defineProperty;var J=(e,s,r)=>s in e?X(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r;var w=(e,s,r)=>(J(e,typeof s!="symbol"?s+"":s,r),r);import{w as Y}from"./api.ebb7a8be.js";import{O as x,u as q,a as Q,W as ee,b as oe}from"./Workflow.0ffe81e0.js";import{a as te}from"./asyncComputed.cfc0cdaf.js";import{d as P,o as u,Y as m,b as c,w as p,u as t,aS as D,eb as N,c as v,dh as h,dc as B,aG as k,e9 as _,a as se,ec as T,cO as re,bT as ae,a0 as z,e as ne,g as ie,X as le,ah as de,ed as ce,S as I,Z as pe}from"./index.8c3f27aa.js";import"./editor.e7656461.js";import{W as ue}from"./workspaces.7bc437a6.js";import{U as fe,G as ye}from"./UnsavedChangesHandler.9ea18755.js";import{w as F}from"./metadata.2beed20a.js";import{A as me}from"./index.d18d35d7.js";import"./fetch.fd4370bb.js";import"./PhArrowCounterClockwise.vue.e0916215.js";import"./validations.1f9bbc1f.js";import"./string.0a3509c3.js";import"./uuid.4ec4da84.js";import"./index.73b06b4b.js";import"./polling.98a0bd01.js";import"./index.c8ad961f.js";import"./Badge.7a29ebdb.js";import"./PhArrowDown.vue.bbcdf79c.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./record.a6861841.js";import"./ExclamationCircleOutlined.433881ab.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="998cdb98-eeaf-444a-b4af-c8d095751911",e._sentryDebugIdIdentifier="sentry-dbid-998cdb98-eeaf-444a-b4af-c8d095751911")}catch{}})();const f=e=>x.isMac?e.metaKey:e.ctrlKey,ge=e=>e.altKey,W=e=>e.shiftKey,b={alt:ge,"arrow-up":e=>e.code==="ArrowUp","arrow-down":e=>e.code==="ArrowDown","arrow-left":e=>e.code==="ArrowLeft","arrow-right":e=>e.code==="ArrowRight",ctrl:f,delete:e=>x.isMac?e.code==="Backspace":e.code==="Delete",enter:e=>e.code==="Enter",escape:e=>e.code==="Escape",shift:W,space:e=>e.code==="Space",a:e=>e.code==="KeyA",b:e=>e.code==="KeyB",c:e=>e.code==="KeyC",d:e=>e.code==="KeyD",f:e=>e.code==="KeyF",g:e=>e.code==="KeyG",h:e=>e.code==="KeyH",k:e=>e.code==="KeyK",p:e=>e.code==="KeyP",v:e=>e.code==="KeyV",x:e=>e.code==="KeyX",z:e=>e.code==="KeyZ",0:e=>e.code==="Digit0","[":e=>e.code==="BracketLeft","]":e=>e.code==="BracketRight"};class ke{constructor(s){w(this,"pressedKeys");w(this,"evt");this.evt=s,this.pressedKeys={};const r=l=>d=>{Object.keys(b).forEach(y=>{b[y](d)&&this.setPressed(y,l)})};this.evt||(window.addEventListener("keydown",r(!0)),window.addEventListener("keyup",r(!1)))}setPressed(s,r){this.pressedKeys[s]=r}isPressed(s){var r;return this.evt?b[s](this.evt):(r=this.pressedKeys[s])!=null?r:!1}}new ke;const we=["onDragstart"],he=P({__name:"BottomToolbar",props:{controller:{}},emits:["drag-start"],setup(e,{emit:s}){return(r,l)=>(u(),m(D,null,[c(t(h),{class:"toolbar",align:"center"},{default:p(()=>[(u(!0),m(D,null,N(t(F).stages,d=>(u(),v(t(re),{key:d.key,placement:"top"},{title:p(()=>[c(t(h),{gap:"small"},{default:p(()=>[c(t(B),null,{default:p(()=>[k(_(d.title),1)]),_:2},1024),c(t(B),{keyboard:""},{default:p(()=>[k(_(d.key),1)]),_:2},1024)]),_:2},1024)]),content:p(()=>[k(_(d.description),1)]),default:p(()=>[se("div",{draggable:!0,class:"toolbar__item",onDragstart:y=>s("drag-start",y.dataTransfer,d.typeName)},[(u(),v(T(d.icon),{size:18}))],40,we)]),_:2},1024))),128)),c(t(me),{type:"vertical"}),c(t(ae),{disabled:!r.controller.hasChanges(),onClick:l[0]||(l[0]=d=>r.controller.save())},{default:p(()=>[c(t(h),{align:"center",gap:"small"},{default:p(()=>[c(t(ye),{size:16}),k(" Save ")]),_:1})]),_:1},8,["disabled"])]),_:1}),c(fe,{"has-changes":r.controller.hasChanges()},null,8,["has-changes"])],64))}});const _e=z(he,[["__scopeId","data-v-0b520c49"]]),be=P({__name:"WorkflowEditor",setup(e){const{init:s,tearDown:r,onDragStart:l,onDrop:d,isDragging:y,isAdding:g,draggedType:L,mousePosition:K}=q(),{result:i}=te(()=>oe.init(Y,!0)),C=ne({}),V=async()=>{if(!i.value)return;const o=i.value.vueFlowNodes.value.map(n=>{var a;return(a=n.data)==null?void 0:a.props.filename});C.value=await ue.checkFiles(o.filter(n=>typeof n=="string"))};ie(()=>i.value,()=>{i.value&&(s(i.value),V())});const{onNodeDragStop:M,onEdgesChange:O,getSelectedElements:H,getNodes:U,addSelectedNodes:$,zoomIn:j,fitView:G,zoomOut:Z,applyEdgeChanges:R}=Q();M(o=>{var n;(n=i.value)==null||n.move(o.nodes.map(a=>({id:a.id,position:a.position})))}),O(o=>{var n;for(const a of o)a.type==="remove"&&((n=i.value)==null||n.delete([a.id]));R(o)});const S=o=>{var n,a;!i.value||((o.key==="z"||o.key==="Z")&&f(o)&&(W(o)?i.value.history.redo():(n=i.value)==null||n.history.undo(),o.preventDefault()),!H.value.length&&(o.key==="f"||o.key==="F"?l(null,"forms"):o.key==="h"||o.key==="H"?l(null,"hooks"):o.key==="j"||o.key==="J"?l(null,"jobs"):o.key==="c"||o.key==="C"?l(null,"conditions"):o.key==="i"||o.key==="I"?l(null,"iterators"):o.key==="s"||o.key==="S"?f(o)?((a=i.value)==null||a.save(),o.preventDefault()):l(null,"scripts"):(o.key==="a"||o.key==="A")&&f(o)?($(U.value),o.preventDefault()):o.key==="0"&&f(o)?(G(),o.preventDefault()):(o.key==="="||o.key==="+")&&f(o)?(o.preventDefault(),j()):o.key==="-"&&f(o)&&(o.preventDefault(),Z())))};return le(()=>{window.addEventListener("keydown",S)}),de(()=>{window.removeEventListener("keydown",S),r()}),(o,n)=>t(i)?(u(),m("div",{key:0,class:ce(["workflow-container",{dragging:t(g)}]),onDrop:n[0]||(n[0]=(...a)=>t(d)&&t(d)(...a))},[c(ee,{workflow:t(i),editable:"","show-drag-hint":!t(g),"check-file-status":!0,"initial-file-check-status":C.value},null,8,["workflow","show-drag-hint","initial-file-check-status"]),c(_e,{controller:t(i),onDragStart:t(l)},null,8,["controller","onDragStart"]),(u(!0),m(D,null,N(t(F).stages,a=>{var E,A;return u(),m("div",{key:a.key},[t(g)&&!t(y)&&a.typeName===t(L)?(u(),m("div",{key:0,class:"dragging-node",style:pe({left:`${(E=t(K))==null?void 0:E.x}px`,top:`${(A=t(K))==null?void 0:A.y}px`,position:"absolute",cursor:t(g)?"grabbing":"grab"})},[(u(),v(T(a.icon),{size:18}))],4)):I("",!0)])}),128))],34)):I("",!0)}});const Ye=z(be,[["__scopeId","data-v-4b892353"]]);export{Ye as default}; -//# sourceMappingURL=WorkflowEditor.61d6891c.js.map +var X=Object.defineProperty;var J=(e,s,r)=>s in e?X(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r;var w=(e,s,r)=>(J(e,typeof s!="symbol"?s+"":s,r),r);import{w as Y}from"./api.8656aeba.js";import{O as x,u as q,a as Q,W as ee,b as oe}from"./Workflow.1ecea04a.js";import{a as te}from"./asyncComputed.703c33fd.js";import{d as P,o as u,Y as m,b as c,w as p,u as t,aS as D,eb as N,c as v,dh as h,dc as B,aG as k,e9 as _,a as se,ec as T,cO as re,bT as ae,a0 as z,e as ne,g as ie,X as le,ah as de,ed as ce,S as I,Z as pe}from"./index.d0f12294.js";import"./editor.95f16260.js";import{W as ue}from"./workspaces.e43325e2.js";import{U as fe,G as ye}from"./UnsavedChangesHandler.d2f6de7c.js";import{w as F}from"./metadata.bc77f4b9.js";import{A as me}from"./index.a552d580.js";import"./fetch.e5ebd511.js";import"./PhArrowCounterClockwise.vue.70f7f135.js";import"./validations.2475f715.js";import"./string.d9c83adf.js";import"./uuid.f9389d59.js";import"./index.c7e8afe7.js";import"./polling.c979afd7.js";import"./index.61f90e53.js";import"./Badge.f6241be2.js";import"./PhArrowDown.vue.1c758684.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./record.8c284c67.js";import"./ExclamationCircleOutlined.c4fbd42a.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5e501653-3674-479c-a1d7-1d3c0663af60",e._sentryDebugIdIdentifier="sentry-dbid-5e501653-3674-479c-a1d7-1d3c0663af60")}catch{}})();const f=e=>x.isMac?e.metaKey:e.ctrlKey,ge=e=>e.altKey,W=e=>e.shiftKey,b={alt:ge,"arrow-up":e=>e.code==="ArrowUp","arrow-down":e=>e.code==="ArrowDown","arrow-left":e=>e.code==="ArrowLeft","arrow-right":e=>e.code==="ArrowRight",ctrl:f,delete:e=>x.isMac?e.code==="Backspace":e.code==="Delete",enter:e=>e.code==="Enter",escape:e=>e.code==="Escape",shift:W,space:e=>e.code==="Space",a:e=>e.code==="KeyA",b:e=>e.code==="KeyB",c:e=>e.code==="KeyC",d:e=>e.code==="KeyD",f:e=>e.code==="KeyF",g:e=>e.code==="KeyG",h:e=>e.code==="KeyH",k:e=>e.code==="KeyK",p:e=>e.code==="KeyP",v:e=>e.code==="KeyV",x:e=>e.code==="KeyX",z:e=>e.code==="KeyZ",0:e=>e.code==="Digit0","[":e=>e.code==="BracketLeft","]":e=>e.code==="BracketRight"};class ke{constructor(s){w(this,"pressedKeys");w(this,"evt");this.evt=s,this.pressedKeys={};const r=l=>d=>{Object.keys(b).forEach(y=>{b[y](d)&&this.setPressed(y,l)})};this.evt||(window.addEventListener("keydown",r(!0)),window.addEventListener("keyup",r(!1)))}setPressed(s,r){this.pressedKeys[s]=r}isPressed(s){var r;return this.evt?b[s](this.evt):(r=this.pressedKeys[s])!=null?r:!1}}new ke;const we=["onDragstart"],he=P({__name:"BottomToolbar",props:{controller:{}},emits:["drag-start"],setup(e,{emit:s}){return(r,l)=>(u(),m(D,null,[c(t(h),{class:"toolbar",align:"center"},{default:p(()=>[(u(!0),m(D,null,N(t(F).stages,d=>(u(),v(t(re),{key:d.key,placement:"top"},{title:p(()=>[c(t(h),{gap:"small"},{default:p(()=>[c(t(B),null,{default:p(()=>[k(_(d.title),1)]),_:2},1024),c(t(B),{keyboard:""},{default:p(()=>[k(_(d.key),1)]),_:2},1024)]),_:2},1024)]),content:p(()=>[k(_(d.description),1)]),default:p(()=>[se("div",{draggable:!0,class:"toolbar__item",onDragstart:y=>s("drag-start",y.dataTransfer,d.typeName)},[(u(),v(T(d.icon),{size:18}))],40,we)]),_:2},1024))),128)),c(t(me),{type:"vertical"}),c(t(ae),{disabled:!r.controller.hasChanges(),onClick:l[0]||(l[0]=d=>r.controller.save())},{default:p(()=>[c(t(h),{align:"center",gap:"small"},{default:p(()=>[c(t(ye),{size:16}),k(" Save ")]),_:1})]),_:1},8,["disabled"])]),_:1}),c(fe,{"has-changes":r.controller.hasChanges()},null,8,["has-changes"])],64))}});const _e=z(he,[["__scopeId","data-v-0b520c49"]]),be=P({__name:"WorkflowEditor",setup(e){const{init:s,tearDown:r,onDragStart:l,onDrop:d,isDragging:y,isAdding:g,draggedType:L,mousePosition:K}=q(),{result:i}=te(()=>oe.init(Y,!0)),C=ne({}),V=async()=>{if(!i.value)return;const o=i.value.vueFlowNodes.value.map(n=>{var a;return(a=n.data)==null?void 0:a.props.filename});C.value=await ue.checkFiles(o.filter(n=>typeof n=="string"))};ie(()=>i.value,()=>{i.value&&(s(i.value),V())});const{onNodeDragStop:M,onEdgesChange:O,getSelectedElements:H,getNodes:U,addSelectedNodes:$,zoomIn:j,fitView:G,zoomOut:Z,applyEdgeChanges:R}=Q();M(o=>{var n;(n=i.value)==null||n.move(o.nodes.map(a=>({id:a.id,position:a.position})))}),O(o=>{var n;for(const a of o)a.type==="remove"&&((n=i.value)==null||n.delete([a.id]));R(o)});const S=o=>{var n,a;!i.value||((o.key==="z"||o.key==="Z")&&f(o)&&(W(o)?i.value.history.redo():(n=i.value)==null||n.history.undo(),o.preventDefault()),!H.value.length&&(o.key==="f"||o.key==="F"?l(null,"forms"):o.key==="h"||o.key==="H"?l(null,"hooks"):o.key==="j"||o.key==="J"?l(null,"jobs"):o.key==="c"||o.key==="C"?l(null,"conditions"):o.key==="i"||o.key==="I"?l(null,"iterators"):o.key==="s"||o.key==="S"?f(o)?((a=i.value)==null||a.save(),o.preventDefault()):l(null,"scripts"):(o.key==="a"||o.key==="A")&&f(o)?($(U.value),o.preventDefault()):o.key==="0"&&f(o)?(G(),o.preventDefault()):(o.key==="="||o.key==="+")&&f(o)?(o.preventDefault(),j()):o.key==="-"&&f(o)&&(o.preventDefault(),Z())))};return le(()=>{window.addEventListener("keydown",S)}),de(()=>{window.removeEventListener("keydown",S),r()}),(o,n)=>t(i)?(u(),m("div",{key:0,class:ce(["workflow-container",{dragging:t(g)}]),onDrop:n[0]||(n[0]=(...a)=>t(d)&&t(d)(...a))},[c(ee,{workflow:t(i),editable:"","show-drag-hint":!t(g),"check-file-status":!0,"initial-file-check-status":C.value},null,8,["workflow","show-drag-hint","initial-file-check-status"]),c(_e,{controller:t(i),onDragStart:t(l)},null,8,["controller","onDragStart"]),(u(!0),m(D,null,N(t(F).stages,a=>{var E,A;return u(),m("div",{key:a.key},[t(g)&&!t(y)&&a.typeName===t(L)?(u(),m("div",{key:0,class:"dragging-node",style:pe({left:`${(E=t(K))==null?void 0:E.x}px`,top:`${(A=t(K))==null?void 0:A.y}px`,position:"absolute",cursor:t(g)?"grabbing":"grab"})},[(u(),v(T(a.icon),{size:18}))],4)):I("",!0)])}),128))],34)):I("",!0)}});const Ye=z(be,[["__scopeId","data-v-4b892353"]]);export{Ye as default}; +//# sourceMappingURL=WorkflowEditor.009f92fe.js.map diff --git a/abstra_statics/dist/assets/WorkflowThreads.55396698.js b/abstra_statics/dist/assets/WorkflowThreads.55396698.js new file mode 100644 index 0000000000..829e789524 --- /dev/null +++ b/abstra_statics/dist/assets/WorkflowThreads.55396698.js @@ -0,0 +1,2 @@ +import{E as y}from"./api.8656aeba.js";import{C as c}from"./ContentLayout.f92ff80c.js";import{d as w,N as g,O as b,e as _,o as a,c as i,w as u,b as n,u as o,S as s}from"./index.d0f12294.js";import{K as v,_ as K,W as E,E as R,a as T}from"./WorkflowView.0114ce29.js";import{A as p,T as V}from"./TabPane.79f4882f.js";import"./fetch.e5ebd511.js";import"./metadata.bc77f4b9.js";import"./PhBug.vue.33662d9e.js";import"./PhCheckCircle.vue.e567d5b0.js";import"./PhKanban.vue.fc0591cb.js";import"./PhWebhooksLogo.vue.15a28437.js";import"./polling.c979afd7.js";import"./asyncComputed.703c33fd.js";import"./PhQuestion.vue.f82af3dd.js";import"./ant-design.d89b18ab.js";import"./index.a82e0ed1.js";import"./index.3814eba6.js";import"./index.05dd3c22.js";import"./CollapsePanel.40b6e69e.js";import"./index.a552d580.js";import"./index.7c84a9f5.js";import"./Badge.f6241be2.js";import"./PhArrowCounterClockwise.vue.70f7f135.js";import"./Workflow.1ecea04a.js";import"./validations.2475f715.js";import"./string.d9c83adf.js";import"./uuid.f9389d59.js";import"./index.c7e8afe7.js";import"./workspaces.e43325e2.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./record.8c284c67.js";import"./index.61f90e53.js";import"./PhArrowDown.vue.1c758684.js";import"./Card.2a8fe028.js";import"./LoadingOutlined.bcfc8c20.js";import"./DeleteOutlined.5a680b6a.js";import"./PhDownloadSimple.vue.07a1756e.js";import"./utils.537da94d.js";import"./LoadingContainer.23bc0e74.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ec8448a5-4983-47d5-968e-45695c8ac46e",e._sentryDebugIdIdentifier="sentry-dbid-ec8448a5-4983-47d5-968e-45695c8ac46e")}catch{}})();const yo=w({__name:"WorkflowThreads",setup(e){const t=new R,m=new T,f=new g(b.array(b.string()),"kanban-selected-stages"),k=new y,r=_("kanban");return(W,l)=>(a(),i(c,{"full-width":""},{default:u(()=>[n(o(V),{activeKey:r.value,"onUpdate:activeKey":l[0]||(l[0]=d=>r.value=d)},{default:u(()=>[n(o(p),{key:"kanban",tab:"Kanban View"}),n(o(p),{key:"table",tab:"Table View"}),n(o(p),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),r.value==="kanban"?(a(),i(v,{key:0,"kanban-repository":o(t),"kanban-stages-storage":o(f),"stage-run-repository":o(m)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):s("",!0),r.value==="table"?(a(),i(K,{key:1,"kanban-repository":o(t)},null,8,["kanban-repository"])):s("",!0),r.value==="workflow"?(a(),i(E,{key:2,"kanban-repository":o(t),"workflow-api":o(k)},null,8,["kanban-repository","workflow-api"])):s("",!0)]),_:1}))}});export{yo as default}; +//# sourceMappingURL=WorkflowThreads.55396698.js.map diff --git a/abstra_statics/dist/assets/WorkflowThreads.7e66085c.js b/abstra_statics/dist/assets/WorkflowThreads.7e66085c.js deleted file mode 100644 index 6030e39b78..0000000000 --- a/abstra_statics/dist/assets/WorkflowThreads.7e66085c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{E as y}from"./api.ebb7a8be.js";import{C as c}from"./ContentLayout.60e2d770.js";import{d as w,N as g,O as l,e as _,o as e,c as i,w as f,b as n,u as o,S as s}from"./index.8c3f27aa.js";import{K as v,_ as K,W as E,E as R,a as T}from"./WorkflowView.a56d2fab.js";import{A as p,T as V}from"./TabPane.2034bc94.js";import"./fetch.fd4370bb.js";import"./metadata.2beed20a.js";import"./PhBug.vue.96a42e8e.js";import"./PhCheckCircle.vue.9df5f131.js";import"./PhKanban.vue.444564da.js";import"./PhWebhooksLogo.vue.e865dba6.js";import"./polling.98a0bd01.js";import"./asyncComputed.cfc0cdaf.js";import"./PhQuestion.vue.5030f781.js";import"./ant-design.ae7d2f9f.js";import"./index.37c7ea66.js";import"./index.eefd8753.js";import"./index.90acc740.js";import"./CollapsePanel.14b56554.js";import"./index.d18d35d7.js";import"./index.2753fdb2.js";import"./Badge.7a29ebdb.js";import"./PhArrowCounterClockwise.vue.e0916215.js";import"./Workflow.0ffe81e0.js";import"./validations.1f9bbc1f.js";import"./string.0a3509c3.js";import"./uuid.4ec4da84.js";import"./index.73b06b4b.js";import"./workspaces.7bc437a6.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./record.a6861841.js";import"./index.c8ad961f.js";import"./PhArrowDown.vue.bbcdf79c.js";import"./Card.c4293d90.js";import"./LoadingOutlined.7a2941f5.js";import"./DeleteOutlined.0e27ef4f.js";import"./PhDownloadSimple.vue.53949cd1.js";import"./utils.c92e833b.js";import"./LoadingContainer.e327afe8.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="8d083c43-0b57-4f12-add7-cc28190002fd",r._sentryDebugIdIdentifier="sentry-dbid-8d083c43-0b57-4f12-add7-cc28190002fd")}catch{}})();const yo=w({__name:"WorkflowThreads",setup(r){const t=new R,m=new T,b=new g(l.array(l.string()),"kanban-selected-stages"),u=new y,a=_("kanban");return(W,d)=>(e(),i(c,{"full-width":""},{default:f(()=>[n(o(V),{activeKey:a.value,"onUpdate:activeKey":d[0]||(d[0]=k=>a.value=k)},{default:f(()=>[n(o(p),{key:"kanban",tab:"Kanban View"}),n(o(p),{key:"table",tab:"Table View"}),n(o(p),{key:"workflow",tab:"Workflow View"})]),_:1},8,["activeKey"]),a.value==="kanban"?(e(),i(v,{key:0,"kanban-repository":o(t),"kanban-stages-storage":o(b),"stage-run-repository":o(m)},null,8,["kanban-repository","kanban-stages-storage","stage-run-repository"])):s("",!0),a.value==="table"?(e(),i(K,{key:1,"kanban-repository":o(t)},null,8,["kanban-repository"])):s("",!0),a.value==="workflow"?(e(),i(E,{key:2,"kanban-repository":o(t),"workflow-api":o(u)},null,8,["kanban-repository","workflow-api"])):s("",!0)]),_:1}))}});export{yo as default}; -//# sourceMappingURL=WorkflowThreads.7e66085c.js.map diff --git a/abstra_statics/dist/assets/WorkflowView.a56d2fab.js b/abstra_statics/dist/assets/WorkflowView.0114ce29.js similarity index 98% rename from abstra_statics/dist/assets/WorkflowView.a56d2fab.js rename to abstra_statics/dist/assets/WorkflowView.0114ce29.js index cb1ac51318..bf22c249b5 100644 --- a/abstra_statics/dist/assets/WorkflowView.a56d2fab.js +++ b/abstra_statics/dist/assets/WorkflowView.0114ce29.js @@ -1,4 +1,4 @@ -import{l as Cn}from"./fetch.fd4370bb.js";import{d as $t,D as rn,f as Yt,o as N,Y as st,$ as Tr,S as dt,e8 as vo,a as Wt,b as G,ee as ho,O as v,eE as yo,eF as So,eG as bo,eH as Eo,e as Rt,cM as xo,x as Co,c as Y,w,eb as se,aG as lt,e9 as Tt,u as E,dc as Pe,d2 as Oo,aS as _t,a0 as Ee,dh as xt,d5 as qe,db as lr,dd as on,by as Ao,ec as On,aW as Bn,cx as Pr,em as Io,en as To,bT as ne,eI as Po,eJ as Ro,bL as Kn,cU as Zn,aB as Jn,cB as Do,g as Rr,L as Lo,cy as wo,cz as cr,eo as jo,X as Qn,ah as kn,ej as Mo,eK as No,cY as ur}from"./index.8c3f27aa.js";import{A as Fo}from"./api.ebb7a8be.js";import{u as Dr}from"./polling.98a0bd01.js";import{s as An}from"./metadata.2beed20a.js";import{a as qn}from"./asyncComputed.cfc0cdaf.js";import{H as Uo}from"./PhQuestion.vue.5030f781.js";import{t as $o,a as Lr}from"./ant-design.ae7d2f9f.js";import{A as pe}from"./index.37c7ea66.js";import{f as Go}from"./index.eefd8753.js";import{T as Bo,A as Ko}from"./index.90acc740.js";import{A as wr,C as jr}from"./CollapsePanel.14b56554.js";import{A as Wo}from"./index.d18d35d7.js";import{A as zo}from"./index.2753fdb2.js";import{G as Ho}from"./PhArrowCounterClockwise.vue.e0916215.js";import{I as Vo,S as Mr,c as Xo,W as Yo,b as Zo}from"./Workflow.0ffe81e0.js";import{C as Nr,A as Jo}from"./Card.c4293d90.js";import{L as Fr}from"./LoadingOutlined.7a2941f5.js";import{D as Ur}from"./DeleteOutlined.0e27ef4f.js";import{P as Qo}from"./TabPane.2034bc94.js";import{c as ko}from"./string.0a3509c3.js";import{G as qo}from"./PhDownloadSimple.vue.53949cd1.js";import{d as _o}from"./utils.c92e833b.js";import{L as ta}from"./LoadingContainer.e327afe8.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="f96f7d96-fb8b-4cd6-8d5b-e0b3bce25dc4",i._sentryDebugIdIdentifier="sentry-dbid-f96f7d96-fb8b-4cd6-8d5b-e0b3bce25dc4")}catch{}})();const ea=["width","height","fill","transform"],na={key:0},ra=Wt("path",{d:"M176,128a12,12,0,0,1-5.17,9.87l-52,36A12,12,0,0,1,100,164V92a12,12,0,0,1,18.83-9.87l52,36A12,12,0,0,1,176,128Zm60,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),oa=[ra],aa={key:1},ia=Wt("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32ZM108,168V88l64,40Z",opacity:"0.2"},null,-1),sa=Wt("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),la=[ia,sa],ca={key:2},ua=Wt("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40.55,110.58-52,36A8,8,0,0,1,104,164V92a8,8,0,0,1,12.55-6.58l52,36a8,8,0,0,1,0,13.16Z"},null,-1),da=[ua],fa={key:3},pa=Wt("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm47.18-95.09-64-40A6,6,0,0,0,102,88v80a6,6,0,0,0,9.18,5.09l64-40a6,6,0,0,0,0-10.18ZM114,157.17V98.83L160.68,128Z"},null,-1),ga=[pa],ma={key:4},va=Wt("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),ha=[va],ya={key:5},Sa=Wt("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm46.12-95.39-64-40A4,4,0,0,0,104,88v80a4,4,0,0,0,2.06,3.5,4.06,4.06,0,0,0,1.94.5,4,4,0,0,0,2.12-.61l64-40a4,4,0,0,0,0-6.78ZM112,160.78V95.22L164.45,128Z"},null,-1),ba=[Sa],Ea={name:"PhPlayCircle"},xa=$t({...Ea,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const n=i,e=rn("weight","regular"),o=rn("size","1em"),r=rn("color","currentColor"),c=rn("mirrored",!1),t=Yt(()=>{var u;return(u=n.weight)!=null?u:e}),a=Yt(()=>{var u;return(u=n.size)!=null?u:o}),s=Yt(()=>{var u;return(u=n.color)!=null?u:r}),l=Yt(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(u,d)=>(N(),st("svg",vo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:s.value,transform:l.value},u.$attrs),[Tr(u.$slots,"default"),t.value==="bold"?(N(),st("g",na,oa)):t.value==="duotone"?(N(),st("g",aa,la)):t.value==="fill"?(N(),st("g",ca,da)):t.value==="light"?(N(),st("g",fa,ga)):t.value==="regular"?(N(),st("g",ma,ha)):t.value==="thin"?(N(),st("g",ya,ba)):dt("",!0)],16,ea))}});function dr(i){for(var n=1;nGr).optional()}),$r=["AND","OR"],Ta=v.object({operator:v.union([v.literal("AND"),v.literal("OR")]),conditions:v.array(v.lazy(()=>Gr))}),Pa=v.union([Ia,Ta]),Gr=v.optional(v.union([Aa,Pa]));class Ou{constructor(n=Cn){this.fetch=n}async getStages(){return(await this.fetch("/_editor/api/kanban/stages")).json()}async getData(n){return(await this.fetch("/_editor/api/kanban",{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})).json()}async countByStatus(){return(await this.fetch("/_editor/api/kanban/count",{method:"POST"})).json()}async getPath(n){return(await this.fetch(`/_editor/api/kanban/path?n=${n}`)).json()}async getLogs(n){return(await this.fetch(`/_editor/api/kanban/logs/${n}`)).json()}async startJob(n){await this.fetch(`/_editor/api/kanban/jobs/${n}/start`,{method:"POST"})}}class Au{constructor(n,e=Cn){this.authHeaders=n,this.fetch=e}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async getStages(){return(await this.fetch("/_kanban/stages",{headers:this.headers})).json()}async getData(n){return(await this.fetch("/_kanban/",{method:"POST",body:JSON.stringify(n),headers:this.headers})).json()}async countByStatus(){return(await this.fetch("/_kanban/count",{method:"POST",headers:this.headers})).json()}async getPath(n){return(await this.fetch(`/_kanban/path?n=${n}`,{headers:this.headers})).json()}async getLogs(n){return(await this.fetch(`/_kanban/logs/${n}`,{headers:this.headers})).json()}async startJob(n){await this.fetch(`/_kanban/jobs/${n}/start`,{method:"POST",headers:this.headers})}}class Iu{constructor(n=Cn){this.fetch=n}async retry(n){const e=await this.fetch("/_editor/api/stage_runs/retry",{method:"POST",body:JSON.stringify({stage_run_id:n}),headers:{"Content-Type":"application/json"}});if(!e.ok){const o=await e.text();throw new Error(o)}return e.json()}}class Tu{constructor(n,e=Cn){this.authHeaders=n,this.fetch=e}async retry(n){return(await this.fetch("/_stage-runs/retry",{body:JSON.stringify({stage_run_id:n}),headers:this.headers,method:"POST"})).json()}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}}const Ra=!0;var Br={exports:{}};/**! +import{l as Cn}from"./fetch.e5ebd511.js";import{d as $t,D as rn,f as Yt,o as N,Y as st,$ as Tr,S as dt,e8 as vo,a as Wt,b as G,ee as ho,O as v,eE as yo,eF as So,eG as bo,eH as Eo,e as Rt,cM as xo,x as Co,c as Y,w,eb as se,aG as lt,e9 as Tt,u as E,dc as Pe,d2 as Oo,aS as _t,a0 as Ee,dh as xt,d5 as qe,db as lr,dd as on,by as Ao,ec as On,aW as Bn,cx as Pr,em as Io,en as To,bT as ne,eI as Po,eJ as Ro,bL as Kn,cU as Zn,aB as Jn,cB as Do,g as Rr,L as Lo,cy as wo,cz as cr,eo as jo,X as Qn,ah as kn,ej as Mo,eK as No,cY as ur}from"./index.d0f12294.js";import{A as Fo}from"./api.8656aeba.js";import{u as Dr}from"./polling.c979afd7.js";import{s as An}from"./metadata.bc77f4b9.js";import{a as qn}from"./asyncComputed.703c33fd.js";import{H as Uo}from"./PhQuestion.vue.f82af3dd.js";import{t as $o,a as Lr}from"./ant-design.d89b18ab.js";import{A as pe}from"./index.a82e0ed1.js";import{f as Go}from"./index.3814eba6.js";import{T as Bo,A as Ko}from"./index.05dd3c22.js";import{A as wr,C as jr}from"./CollapsePanel.40b6e69e.js";import{A as Wo}from"./index.a552d580.js";import{A as zo}from"./index.7c84a9f5.js";import{G as Ho}from"./PhArrowCounterClockwise.vue.70f7f135.js";import{I as Vo,S as Mr,c as Xo,W as Yo,b as Zo}from"./Workflow.1ecea04a.js";import{C as Nr,A as Jo}from"./Card.2a8fe028.js";import{L as Fr}from"./LoadingOutlined.bcfc8c20.js";import{D as Ur}from"./DeleteOutlined.5a680b6a.js";import{P as Qo}from"./TabPane.79f4882f.js";import{c as ko}from"./string.d9c83adf.js";import{G as qo}from"./PhDownloadSimple.vue.07a1756e.js";import{d as _o}from"./utils.537da94d.js";import{L as ta}from"./LoadingContainer.23bc0e74.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="2759395a-f8a1-432b-b04b-640e5f5b8492",i._sentryDebugIdIdentifier="sentry-dbid-2759395a-f8a1-432b-b04b-640e5f5b8492")}catch{}})();const ea=["width","height","fill","transform"],na={key:0},ra=Wt("path",{d:"M176,128a12,12,0,0,1-5.17,9.87l-52,36A12,12,0,0,1,100,164V92a12,12,0,0,1,18.83-9.87l52,36A12,12,0,0,1,176,128Zm60,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),oa=[ra],aa={key:1},ia=Wt("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32ZM108,168V88l64,40Z",opacity:"0.2"},null,-1),sa=Wt("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),la=[ia,sa],ca={key:2},ua=Wt("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40.55,110.58-52,36A8,8,0,0,1,104,164V92a8,8,0,0,1,12.55-6.58l52,36a8,8,0,0,1,0,13.16Z"},null,-1),da=[ua],fa={key:3},pa=Wt("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm47.18-95.09-64-40A6,6,0,0,0,102,88v80a6,6,0,0,0,9.18,5.09l64-40a6,6,0,0,0,0-10.18ZM114,157.17V98.83L160.68,128Z"},null,-1),ga=[pa],ma={key:4},va=Wt("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"},null,-1),ha=[va],ya={key:5},Sa=Wt("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm46.12-95.39-64-40A4,4,0,0,0,104,88v80a4,4,0,0,0,2.06,3.5,4.06,4.06,0,0,0,1.94.5,4,4,0,0,0,2.12-.61l64-40a4,4,0,0,0,0-6.78ZM112,160.78V95.22L164.45,128Z"},null,-1),ba=[Sa],Ea={name:"PhPlayCircle"},xa=$t({...Ea,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const n=i,e=rn("weight","regular"),o=rn("size","1em"),r=rn("color","currentColor"),c=rn("mirrored",!1),t=Yt(()=>{var u;return(u=n.weight)!=null?u:e}),a=Yt(()=>{var u;return(u=n.size)!=null?u:o}),s=Yt(()=>{var u;return(u=n.color)!=null?u:r}),l=Yt(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(u,d)=>(N(),st("svg",vo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:s.value,transform:l.value},u.$attrs),[Tr(u.$slots,"default"),t.value==="bold"?(N(),st("g",na,oa)):t.value==="duotone"?(N(),st("g",aa,la)):t.value==="fill"?(N(),st("g",ca,da)):t.value==="light"?(N(),st("g",fa,ga)):t.value==="regular"?(N(),st("g",ma,ha)):t.value==="thin"?(N(),st("g",ya,ba)):dt("",!0)],16,ea))}});function dr(i){for(var n=1;nGr).optional()}),$r=["AND","OR"],Ta=v.object({operator:v.union([v.literal("AND"),v.literal("OR")]),conditions:v.array(v.lazy(()=>Gr))}),Pa=v.union([Ia,Ta]),Gr=v.optional(v.union([Aa,Pa]));class Ou{constructor(n=Cn){this.fetch=n}async getStages(){return(await this.fetch("/_editor/api/kanban/stages")).json()}async getData(n){return(await this.fetch("/_editor/api/kanban",{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})).json()}async countByStatus(){return(await this.fetch("/_editor/api/kanban/count",{method:"POST"})).json()}async getPath(n){return(await this.fetch(`/_editor/api/kanban/path?n=${n}`)).json()}async getLogs(n){return(await this.fetch(`/_editor/api/kanban/logs/${n}`)).json()}async startJob(n){await this.fetch(`/_editor/api/kanban/jobs/${n}/start`,{method:"POST"})}}class Au{constructor(n,e=Cn){this.authHeaders=n,this.fetch=e}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async getStages(){return(await this.fetch("/_kanban/stages",{headers:this.headers})).json()}async getData(n){return(await this.fetch("/_kanban/",{method:"POST",body:JSON.stringify(n),headers:this.headers})).json()}async countByStatus(){return(await this.fetch("/_kanban/count",{method:"POST",headers:this.headers})).json()}async getPath(n){return(await this.fetch(`/_kanban/path?n=${n}`,{headers:this.headers})).json()}async getLogs(n){return(await this.fetch(`/_kanban/logs/${n}`,{headers:this.headers})).json()}async startJob(n){await this.fetch(`/_kanban/jobs/${n}/start`,{method:"POST",headers:this.headers})}}class Iu{constructor(n=Cn){this.fetch=n}async retry(n){const e=await this.fetch("/_editor/api/stage_runs/retry",{method:"POST",body:JSON.stringify({stage_run_id:n}),headers:{"Content-Type":"application/json"}});if(!e.ok){const o=await e.text();throw new Error(o)}return e.json()}}class Tu{constructor(n,e=Cn){this.authHeaders=n,this.fetch=e}async retry(n){return(await this.fetch("/_stage-runs/retry",{body:JSON.stringify({stage_run_id:n}),headers:this.headers,method:"POST"})).json()}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}}const Ra=!0;var Br={exports:{}};/**! * Sortable 1.14.0 * @author RubaXa * @author owenm @@ -8,4 +8,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)&&(A="(?: "+A+")",B=" "+B,M++),O=new RegExp("^(?:"+A+")",D)),g&&(O=new RegExp("^"+A+"$(?!\\s)",D)),f&&(T=y.lastIndex),P=l.call(R?O:y,B),R?P?(P.input=P.input.slice(M),P[0]=P[0].slice(M),P.index=y.lastIndex,y.lastIndex+=P[0].length):y.lastIndex=0:f&&P&&(y.lastIndex=y.global?P.index+P[0].length:T),g&&P&&P.length>1&&u.call(P[0],O,function(){for(S=1;S=51||!s(function(){var A=[];return A[y]=!1,A.concat()[0]!==A}),S=m("concat"),R=function(A){if(!u(A))return!1;var M=A[y];return M!==void 0?!!M:l(A)},D=!P||!S;a({target:"Array",proto:!0,forced:D},{concat:function(M){var B=d(this),V=g(B,0),j=0,U,X,$,z,ot;for(U=-1,$=arguments.length;U<$;U++)if(ot=U===-1?B:arguments[U],R(ot)){if(z=f(ot.length),j+z>T)throw TypeError(O);for(X=0;X=T)throw TypeError(O);p(V,j++,ot)}return V.length=j,V}})},"9bdd":function(r,c,t){var a=t("825a");r.exports=function(s,l,u,d){try{return d?l(a(u)[0],u[1]):l(u)}catch(p){var f=s.return;throw f!==void 0&&a(f.call(s)),p}}},"9bf2":function(r,c,t){var a=t("83ab"),s=t("0cfb"),l=t("825a"),u=t("c04e"),d=Object.defineProperty;c.f=a?d:function(p,g,m){if(l(p),g=u(g,!0),l(m),s)try{return d(p,g,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(p[g]=m.value),p}},"9ed3":function(r,c,t){var a=t("ae93").IteratorPrototype,s=t("7c73"),l=t("5c6c"),u=t("d44e"),d=t("3f8c"),f=function(){return this};r.exports=function(p,g,m){var h=g+" Iterator";return p.prototype=s(a,{next:l(1,m)}),u(p,h,!1,!0),d[h]=f,p}},"9f7f":function(r,c,t){var a=t("d039");function s(l,u){return RegExp(l,u)}c.UNSUPPORTED_Y=a(function(){var l=s("a","y");return l.lastIndex=2,l.exec("abcd")!=null}),c.BROKEN_CARET=a(function(){var l=s("^r","gy");return l.lastIndex=2,l.exec("str")!=null})},a2bf:function(r,c,t){var a=t("e8b5"),s=t("50c4"),l=t("0366"),u=function(d,f,p,g,m,h,b,y){for(var T=m,O=0,P=b?l(b,y,3):!1,S;O0&&a(S))T=u(d,f,S,s(S.length),T,h-1)-1;else{if(T>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[T]=S}T++}O++}return T};r.exports=u},a352:function(r,c){r.exports=o},a434:function(r,c,t){var a=t("23e7"),s=t("23cb"),l=t("a691"),u=t("50c4"),d=t("7b0b"),f=t("65f0"),p=t("8418"),g=t("1dde"),m=t("ae40"),h=g("splice"),b=m("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,T=Math.min,O=9007199254740991,P="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!h||!b},{splice:function(R,D){var A=d(this),M=u(A.length),B=s(R,M),V=arguments.length,j,U,X,$,z,ot;if(V===0?j=U=0:V===1?(j=0,U=M-B):(j=V-2,U=T(y(l(D),0),M-B)),M+j-U>O)throw TypeError(P);for(X=f(A,U),$=0;$M-U+j;$--)delete A[$-1]}else if(j>U)for($=M-U;$>B;$--)z=$+U-1,ot=$+j-1,z in A?A[ot]=A[z]:delete A[ot];for($=0;$Gt;)at.push(arguments[Gt++]);if(Rn=Z,!(!b(Z)&&H===void 0||C(H)))return h(Z)||(Z=function(mo,nn){if(typeof Rn=="function"&&(nn=Rn.call(this,mo,nn)),!C(nn))return nn}),at[1]=Z,ve.apply(null,at)}})}wt[Ft][ae]||X(wt[Ft],ae,wt[Ft].valueOf),Dt(wt,zt),ct[vt]=!0},a630:function(r,c,t){var a=t("23e7"),s=t("4df4"),l=t("1c7e"),u=!l(function(d){Array.from(d)});a({target:"Array",stat:!0,forced:u},{from:s})},a640:function(r,c,t){var a=t("d039");r.exports=function(s,l){var u=[][s];return!!u&&a(function(){u.call(null,l||function(){throw 1},1)})}},a691:function(r,c){var t=Math.ceil,a=Math.floor;r.exports=function(s){return isNaN(s=+s)?0:(s>0?a:t)(s)}},ab13:function(r,c,t){var a=t("b622"),s=a("match");r.exports=function(l){var u=/./;try{"/./"[l](u)}catch{try{return u[s]=!1,"/./"[l](u)}catch{}}return!1}},ac1f:function(r,c,t){var a=t("23e7"),s=t("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad6d:function(r,c,t){var a=t("825a");r.exports=function(){var s=a(this),l="";return s.global&&(l+="g"),s.ignoreCase&&(l+="i"),s.multiline&&(l+="m"),s.dotAll&&(l+="s"),s.unicode&&(l+="u"),s.sticky&&(l+="y"),l}},ae40:function(r,c,t){var a=t("83ab"),s=t("d039"),l=t("5135"),u=Object.defineProperty,d={},f=function(p){throw p};r.exports=function(p,g){if(l(d,p))return d[p];g||(g={});var m=[][p],h=l(g,"ACCESSORS")?g.ACCESSORS:!1,b=l(g,0)?g[0]:f,y=l(g,1)?g[1]:void 0;return d[p]=!!m&&!s(function(){if(h&&!a)return!0;var T={length:-1};h?u(T,1,{enumerable:!0,get:f}):T[1]=1,m.call(T,b,y)})}},ae93:function(r,c,t){var a=t("e163"),s=t("9112"),l=t("5135"),u=t("b622"),d=t("c430"),f=u("iterator"),p=!1,g=function(){return this},m,h,b;[].keys&&(b=[].keys(),"next"in b?(h=a(a(b)),h!==Object.prototype&&(m=h)):p=!0),m==null&&(m={}),!d&&!l(m,f)&&s(m,f,g),r.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:p}},b041:function(r,c,t){var a=t("00ee"),s=t("f5df");r.exports=a?{}.toString:function(){return"[object "+s(this)+"]"}},b0c0:function(r,c,t){var a=t("83ab"),s=t("9bf2").f,l=Function.prototype,u=l.toString,d=/^\s*function ([^ (]*)/,f="name";a&&!(f in l)&&s(l,f,{configurable:!0,get:function(){try{return u.call(this).match(d)[1]}catch{return""}}})},b622:function(r,c,t){var a=t("da84"),s=t("5692"),l=t("5135"),u=t("90e3"),d=t("4930"),f=t("fdbf"),p=s("wks"),g=a.Symbol,m=f?g:g&&g.withoutSetter||u;r.exports=function(h){return l(p,h)||(d&&l(g,h)?p[h]=g[h]:p[h]=m("Symbol."+h)),p[h]}},b64b:function(r,c,t){var a=t("23e7"),s=t("7b0b"),l=t("df75"),u=t("d039"),d=u(function(){l(1)});a({target:"Object",stat:!0,forced:d},{keys:function(p){return l(s(p))}})},b727:function(r,c,t){var a=t("0366"),s=t("44ad"),l=t("7b0b"),u=t("50c4"),d=t("65f0"),f=[].push,p=function(g){var m=g==1,h=g==2,b=g==3,y=g==4,T=g==6,O=g==5||T;return function(P,S,R,D){for(var A=l(P),M=s(A),B=a(S,R,3),V=u(M.length),j=0,U=D||d,X=m?U(P,V):h?U(P,0):void 0,$,z;V>j;j++)if((O||j in M)&&($=M[j],z=B($,j,A),g)){if(m)X[j]=z;else if(z)switch(g){case 3:return!0;case 5:return $;case 6:return j;case 2:f.call(X,$)}else if(y)return!1}return T?-1:b||y?y:X}};r.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(r,c,t){var a=t("861d");r.exports=function(s,l){if(!a(s))return s;var u,d;if(l&&typeof(u=s.toString)=="function"&&!a(d=u.call(s))||typeof(u=s.valueOf)=="function"&&!a(d=u.call(s))||!l&&typeof(u=s.toString)=="function"&&!a(d=u.call(s)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(r,c){r.exports=!1},c6b6:function(r,c){var t={}.toString;r.exports=function(a){return t.call(a).slice(8,-1)}},c6cd:function(r,c,t){var a=t("da84"),s=t("ce4e"),l="__core-js_shared__",u=a[l]||s(l,{});r.exports=u},c740:function(r,c,t){var a=t("23e7"),s=t("b727").findIndex,l=t("44d2"),u=t("ae40"),d="findIndex",f=!0,p=u(d);d in[]&&Array(1)[d](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!p},{findIndex:function(m){return s(this,m,arguments.length>1?arguments[1]:void 0)}}),l(d)},c8ba:function(r,c){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}r.exports=t},c975:function(r,c,t){var a=t("23e7"),s=t("4d64").indexOf,l=t("a640"),u=t("ae40"),d=[].indexOf,f=!!d&&1/[1].indexOf(1,-0)<0,p=l("indexOf"),g=u("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!p||!g},{indexOf:function(h){return f?d.apply(this,arguments)||0:s(this,h,arguments.length>1?arguments[1]:void 0)}})},ca84:function(r,c,t){var a=t("5135"),s=t("fc6a"),l=t("4d64").indexOf,u=t("d012");r.exports=function(d,f){var p=s(d),g=0,m=[],h;for(h in p)!a(u,h)&&a(p,h)&&m.push(h);for(;f.length>g;)a(p,h=f[g++])&&(~l(m,h)||m.push(h));return m}},caad:function(r,c,t){var a=t("23e7"),s=t("4d64").includes,l=t("44d2"),u=t("ae40"),d=u("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!d},{includes:function(p){return s(this,p,arguments.length>1?arguments[1]:void 0)}}),l("includes")},cc12:function(r,c,t){var a=t("da84"),s=t("861d"),l=a.document,u=s(l)&&s(l.createElement);r.exports=function(d){return u?l.createElement(d):{}}},ce4e:function(r,c,t){var a=t("da84"),s=t("9112");r.exports=function(l,u){try{s(a,l,u)}catch{a[l]=u}return u}},d012:function(r,c){r.exports={}},d039:function(r,c){r.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(r,c,t){var a=t("428f"),s=t("da84"),l=function(u){return typeof u=="function"?u:void 0};r.exports=function(u,d){return arguments.length<2?l(a[u])||l(s[u]):a[u]&&a[u][d]||s[u]&&s[u][d]}},d1e7:function(r,c,t){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l=s&&!a.call({1:2},1);c.f=l?function(d){var f=s(this,d);return!!f&&f.enumerable}:a},d28b:function(r,c,t){var a=t("746f");a("iterator")},d2bb:function(r,c,t){var a=t("825a"),s=t("3bbe");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,u={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(u,[]),l=u instanceof Array}catch{}return function(p,g){return a(p),s(g),l?d.call(p,g):p.__proto__=g,p}}():void 0)},d3b7:function(r,c,t){var a=t("00ee"),s=t("6eeb"),l=t("b041");a||s(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(r,c,t){var a=t("9bf2").f,s=t("5135"),l=t("b622"),u=l("toStringTag");r.exports=function(d,f,p){d&&!s(d=p?d:d.prototype,u)&&a(d,u,{configurable:!0,value:f})}},d58f:function(r,c,t){var a=t("1c0b"),s=t("7b0b"),l=t("44ad"),u=t("50c4"),d=function(f){return function(p,g,m,h){a(g);var b=s(p),y=l(b),T=u(b.length),O=f?T-1:0,P=f?-1:1;if(m<2)for(;;){if(O in y){h=y[O],O+=P;break}if(O+=P,f?O<0:T<=O)throw TypeError("Reduce of empty array with no initial value")}for(;f?O>=0:T>O;O+=P)O in y&&(h=g(h,y[O],O,b));return h}};r.exports={left:d(!1),right:d(!0)}},d784:function(r,c,t){t("ac1f");var a=t("6eeb"),s=t("d039"),l=t("b622"),u=t("9263"),d=t("9112"),f=l("species"),p=!s(function(){var y=/./;return y.exec=function(){var T=[];return T.groups={a:"7"},T},"".replace(y,"$")!=="7"}),g=function(){return"a".replace(/./,"$0")==="$0"}(),m=l("replace"),h=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),b=!s(function(){var y=/(?:)/,T=y.exec;y.exec=function(){return T.apply(this,arguments)};var O="ab".split(y);return O.length!==2||O[0]!=="a"||O[1]!=="b"});r.exports=function(y,T,O,P){var S=l(y),R=!s(function(){var j={};return j[S]=function(){return 7},""[y](j)!=7}),D=R&&!s(function(){var j=!1,U=/a/;return y==="split"&&(U={},U.constructor={},U.constructor[f]=function(){return U},U.flags="",U[S]=/./[S]),U.exec=function(){return j=!0,null},U[S](""),!j});if(!R||!D||y==="replace"&&!(p&&g&&!h)||y==="split"&&!b){var A=/./[S],M=O(S,""[y],function(j,U,X,$,z){return U.exec===u?R&&!z?{done:!0,value:A.call(U,X,$)}:{done:!0,value:j.call(X,U,$)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),B=M[0],V=M[1];a(String.prototype,y,B),a(RegExp.prototype,S,T==2?function(j,U){return V.call(j,this,U)}:function(j){return V.call(j,this)})}P&&d(RegExp.prototype[S],"sham",!0)}},d81d:function(r,c,t){var a=t("23e7"),s=t("b727").map,l=t("1dde"),u=t("ae40"),d=l("map"),f=u("map");a({target:"Array",proto:!0,forced:!d||!f},{map:function(g){return s(this,g,arguments.length>1?arguments[1]:void 0)}})},da84:function(r,c,t){(function(a){var s=function(l){return l&&l.Math==Math&&l};r.exports=s(typeof globalThis=="object"&&globalThis)||s(typeof window=="object"&&window)||s(typeof self=="object"&&self)||s(typeof a=="object"&&a)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(r,c,t){var a=t("23e7"),s=t("83ab"),l=t("56ef"),u=t("fc6a"),d=t("06cf"),f=t("8418");a({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(g){for(var m=u(g),h=d.f,b=l(m),y={},T=0,O,P;b.length>T;)P=h(m,O=b[T++]),P!==void 0&&f(y,O,P);return y}})},dbf1:function(r,c,t){(function(a){t.d(c,"a",function(){return l});function s(){return typeof window<"u"?window.console:a.console}var l=s()}).call(this,t("c8ba"))},ddb0:function(r,c,t){var a=t("da84"),s=t("fdbc"),l=t("e260"),u=t("9112"),d=t("b622"),f=d("iterator"),p=d("toStringTag"),g=l.values;for(var m in s){var h=a[m],b=h&&h.prototype;if(b){if(b[f]!==g)try{u(b,f,g)}catch{b[f]=g}if(b[p]||u(b,p,m),s[m]){for(var y in l)if(b[y]!==l[y])try{u(b,y,l[y])}catch{b[y]=l[y]}}}}},df75:function(r,c,t){var a=t("ca84"),s=t("7839");r.exports=Object.keys||function(u){return a(u,s)}},e01a:function(r,c,t){var a=t("23e7"),s=t("83ab"),l=t("da84"),u=t("5135"),d=t("861d"),f=t("9bf2").f,p=t("e893"),g=l.Symbol;if(s&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var m={},h=function(){var S=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),R=this instanceof h?new g(S):S===void 0?g():g(S);return S===""&&(m[R]=!0),R};p(h,g);var b=h.prototype=g.prototype;b.constructor=h;var y=b.toString,T=String(g("test"))=="Symbol(test)",O=/^Symbol\((.*)\)[^)]+$/;f(b,"description",{configurable:!0,get:function(){var S=d(this)?this.valueOf():this,R=y.call(S);if(u(m,S))return"";var D=T?R.slice(7,-1):R.replace(O,"$1");return D===""?void 0:D}}),a({global:!0,forced:!0},{Symbol:h})}},e163:function(r,c,t){var a=t("5135"),s=t("7b0b"),l=t("f772"),u=t("e177"),d=l("IE_PROTO"),f=Object.prototype;r.exports=u?Object.getPrototypeOf:function(p){return p=s(p),a(p,d)?p[d]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?f:null}},e177:function(r,c,t){var a=t("d039");r.exports=!a(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},e260:function(r,c,t){var a=t("fc6a"),s=t("44d2"),l=t("3f8c"),u=t("69f3"),d=t("7dd0"),f="Array Iterator",p=u.set,g=u.getterFor(f);r.exports=d(Array,"Array",function(m,h){p(this,{type:f,target:a(m),index:0,kind:h})},function(){var m=g(this),h=m.target,b=m.kind,y=m.index++;return!h||y>=h.length?(m.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:y,done:!1}:b=="values"?{value:h[y],done:!1}:{value:[y,h[y]],done:!1}},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},e439:function(r,c,t){var a=t("23e7"),s=t("d039"),l=t("fc6a"),u=t("06cf").f,d=t("83ab"),f=s(function(){u(1)}),p=!d||f;a({target:"Object",stat:!0,forced:p,sham:!d},{getOwnPropertyDescriptor:function(m,h){return u(l(m),h)}})},e538:function(r,c,t){var a=t("b622");c.f=a},e893:function(r,c,t){var a=t("5135"),s=t("56ef"),l=t("06cf"),u=t("9bf2");r.exports=function(d,f){for(var p=s(f),g=u.f,m=l.f,h=0;h"u"||!(Symbol.iterator in Object(C)))){var I=[],L=!0,K=!1,Q=void 0;try{for(var tt=C[Symbol.iterator](),it;!(L=(it=tt.next()).done)&&(I.push(it.value),!(x&&I.length===x));L=!0);}catch(Ct){K=!0,Q=Ct}finally{try{!L&&tt.return!=null&&tt.return()}finally{if(K)throw Q}}return I}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function m(C,x){(x==null||x>C.length)&&(x=C.length);for(var I=0,L=new Array(x);Ii!=="processing"),lo=()=>{const i=Rt([]),n=Rt({}),e=Rt(void 0),o=Rt(""),r=Rt([]),c=Rt(mc),t=Rt(0),a=()=>({status:i.value,data:n.value,advanced_data_filter:e.value,search:o.value,stage:r.value});return{stageIds:r,filterStatus:i,filterData:n,filterDataCondition:e,filterSearch:o,limit:c,offset:t,filterFactory:a,labelOption:u=>sr({status:u}).text,requestDataFactory:()=>({filter:a(),limit:c.value,offset:t.value})}},He=i=>i!==void 0&&"key"in i&&"comparator"in i&&"value"in i,xn=()=>({key:"",comparator:tr[0],value:""}),co=i=>i!==void 0&&"operator"in i,Ve=i=>i!==void 0&&co(i)&&"conditions"in i&&Array.isArray(i.conditions),Or=i=>i!==void 0&&co(i)&&"condition"in i&&He(i.condition),Xe=$r[0],uo=()=>({operator:Xe,conditions:[xn()]}),hc=3,yc=({kanbanStagesStorage:i,kanbanRepository:n})=>{const e=Rt([]),o=Rt([]),r=Yt(()=>e.value.filter(d=>!o.value.map(f=>f.stage.id).includes(d.id))),c=async()=>{o.value=[]},t=d=>{o.value=o.value.filter(f=>f.stage.id!==d),i.set(o.value.map(f=>f.stage.id).filter(f=>f!==d))},a=async(d,f)=>{if(d)o.value=[...o.value.slice(0,f),{stage:d,limit:Re,offset:0},...o.value.slice(f+1)];else{const p=o.value[f].stage;return o.value=[...o.value.slice(0,f),...o.value.slice(f+1)],p}return i.set(o.value.map(p=>p.stage.id)),d},s=async d=>{const f=o.value[d.moved.oldIndex];a(null,d.moved.oldIndex),o.value=[...o.value.slice(0,d.moved.newIndex),f,...o.value.slice(d.moved.newIndex)],i.set(o.value.map(p=>p.stage.id))},l=d=>{o.value=d.reduce((f,p)=>{const g=e.value.find(m=>m.id===p);return g&&f.push({stage:g,limit:Re,offset:0}),f},[])};return{setup:async()=>{var f;e.value=await n.getStages();const d=(f=i.get())!=null?f:[];if(d.length===0){const p=await n.getPath(hc);i.set(p),l(p)}else o.value=d.map(p=>{const g=e.value.find(m=>m.id===p);return g?{stage:g,limit:Re,offset:0}:null}).filter(Boolean)},allStages:e,selectedStages:o,nonSelectedStages:r,clearSelection:c,unselect:t,setStage:a,reorderStages:s,initSelection:l}},Re=10,Sc=2e3,bc=({kanbanRepository:i,kanbanStagesStorage:n,stageRunRepository:e,router:o})=>{const r=lo(),c=yc({kanbanStagesStorage:n,kanbanRepository:i}),t=Rt({columns:[],next_stage_options:[]}),a=async()=>{try{const S=c.selectedStages.value,R=S.map(X=>(r.stageIds.value=[X.stage.id],i.getData(r.requestDataFactory()))),D={columns:[]},A=new Set,B=(await Promise.all(R)).map((X,$)=>({...X,stage:S[$].stage})),V=c.selectedStages.value,j=t.value.columns.map(X=>X.stage_run_cards).flat();for(const X of V){const $=B.find(z=>z.stage.id===X.stage.id);if(!$){D.columns.push({stage_run_cards:[],selected_stage:X.stage,total_count:0,loading:!1});continue}D.columns.push({stage_run_cards:$.stage_run_cards.map(z=>{var Ot;const ot=z.id,ct=(Ot=j.find(ft=>ft.id===ot))==null?void 0:Ot.loading;return{...z,loading:!!ct}}),selected_stage:X.stage,total_count:$.total_count,loading:!1});for(const z of $.not_found_stages)A.add(z)}const U=Array.from(A);for(const X of U)c.unselect(X);return{columns:D.columns,next_stage_options:c.nonSelectedStages.value}}catch(S){return Co(S),console.error(S),t.value}};function s(S){const R=S.selected_stage.id,D=c.selectedStages.value.find(A=>A.stage.id===R);return D!=null&&D.limit?D.limitA.stage.id===S.selected_stage.id);R&&(R.limit=((D=R.limit)!=null?D:0)+Re,t.value=await a())}async function u(S){const R=c.selectedStages.value.find(D=>D.stage.id===S);R&&R.limit&&R.limit>Re&&(R.limit-=Re,t.value=await a())}async function d(S,R){const D=await c.setStage(S,R);if(S===null){c.unselect(D.id),t.value.columns=t.value.columns.filter(V=>V.selected_stage.id!==D.id);const A=c.allStages.value,M=A.findIndex(V=>V.id===D.id);let B=0;for(const V of t.value.next_stage_options)A.findIndex(U=>U.id===V.id)({...D,stage_run_cards:D.stage_run_cards.map(A=>A.id===S?{...A,loading:R}:A)}))}const m=async S=>{await c.setup(),t.value={columns:c.selectedStages.value.map(R=>({stage_run_cards:[],selected_stage:R.stage,total_count:0,loading:!0})),next_stage_options:c.nonSelectedStages.value},S||b()},h=async()=>{t.value=await a()},{startPolling:b,endPolling:y}=Dr({interval:Sc,task:async()=>{await h()}});return{kanbanState:t,increasePagination:l,hasPagination:s,seeLess:u,setStage:d,addStage:f,cardRunHandler:async(S,R)=>{const D=S.selected_stage,A=R.id;if(D.type==="form"){const M=o.resolve({path:`/${D.path}`,query:A?{[Fo]:A}:{}});window.open(M.href,A)}},cardRetryHandler:async S=>{g(S.id,!0);try{await(e==null?void 0:e.retry(S.id))}catch{xo.error({message:"Failed to retry thread"})}},setup:m,startPolling:b,tearDown:()=>y(),reorderStages:p,filterController:r,setLoading:g,loadState:h}},Ec=$t({__name:"StageRunData",props:{data:{}},setup(i){return(n,e)=>(N(),Y(E(pe),{direction:"vertical",style:{overflow:"hidden"}},{default:w(()=>[(N(!0),st(_t,null,se(n.data,o=>(N(),st("div",{key:o.key,class:"tree"},[G(E(Pe),{strong:""},{default:w(()=>[lt(Tt(o.key),1)]),_:2},1024),G(E(Oo),{"tree-data":E($o)(o.value),selectable:!1},null,8,["tree-data"])]))),128))]),_:1}))}});const Yn=Ee(Ec,[["__scopeId","data-v-af388efb"]]),xc={key:0},Cc={key:1,class:"terminal"},Oc=$t({__name:"ExecutionInspector",props:{logs:{}},setup(i){return(n,e)=>n.logs.length===0?(N(),st("span",xc)):(N(),st("div",Cc,[G(E(xt),{vertical:""},{default:w(()=>[(N(!0),st(_t,null,se(n.logs,o=>(N(),st("pre",{key:o.executionId,class:"log-text"},Tt(o.payload.text),1))),128))]),_:1})]))}});const Ac=Ee(Oc,[["__scopeId","data-v-1edcaf0f"]]),Ic=i=>(Io("data-v-c99a5995"),i=i(),To(),i),Tc={key:1},Pc={key:1},Rc=Ic(()=>Wt("span",null,"[Deleted Stage]",-1)),Dc=$t({__name:"StageRunInspector",props:{stageRun:{},kanbanRepository:{},stageRunRepository:{}},emits:["close"],setup(i,{emit:n}){const e=i;function o(t){return Object.entries(t).map(([a,s])=>({key:a,value:s,type:typeof s}))}const{result:r,loading:c}=qn(()=>{var t;return e.kanbanRepository.getLogs((t=e.stageRun)==null?void 0:t.id)});return(t,a)=>(N(),Y(E(zo),{open:"",title:"Thread details",size:"large",onClose:a[0]||(a[0]=s=>n("close"))},{extra:w(()=>[G(E(lr),null,{default:w(()=>[G(E(qe),{style:{"font-weight":"600"}},{default:w(()=>{var s;return[lt(Tt(E(sr)({status:(s=t.stageRun)==null?void 0:s.status}).text),1)]}),_:1}),lt(" "+Tt(E(Go)(new Date(t.stageRun.created_at),{addSuffix:!0})),1)]),_:1})]),default:w(()=>{var s,l,u;return[(s=t.stageRun)!=null&&s.assignee?(N(),Y(E(lr),{key:0},{default:w(()=>{var d;return[lt(" Assignee: "+Tt((d=t.stageRun)==null?void 0:d.assignee),1)]}),_:1})):dt("",!0),((l=t.stageRun)==null?void 0:l.content)&&((u=t.stageRun)==null?void 0:u.content.length)>0?(N(),st("div",Tc,[G(E(on),{level:4},{default:w(()=>[lt("Current data")]),_:1}),G(Yn,{data:t.stageRun.content},null,8,["data"])])):dt("",!0),G(E(on),{level:4,style:{"margin-bottom":"30px"}},{default:w(()=>[lt(" Timeline ")]),_:1}),E(c)?(N(),Y(E(Ao),{key:2})):E(r)?(N(),Y(E(Bo),{key:3},{default:w(()=>[(N(!0),st(_t,null,se(E(r),({stage:d,stage_run:f,logs:p})=>(N(),Y(E(Ko),{key:f.id},{default:w(()=>[G(E(jr),{ghost:"","expand-icon-position":"end"},{default:w(()=>[G(E(wr),{class:"panel"},{header:w(()=>[d?(N(),Y(E(xt),{key:0,align:"center",gap:15},{default:w(()=>[(N(),Y(On(E(An)(d.type)))),p.length?(N(),st("span",Pc,Tt(d.title),1)):(N(),Y(E(Bn),{key:0,placement:"right",title:"No logs"},{default:w(()=>[lt(Tt(d.title),1)]),_:2},1024))]),_:2},1024)):(N(),Y(E(xt),{key:1,align:"center",gap:15},{default:w(()=>[G(E(Uo)),Rc]),_:1}))]),default:w(()=>[o(f.data).length||p.length?(N(),Y(E(xt),{key:0,vertical:""},{default:w(()=>[o(f.data).length?(N(),Y(E(xt),{key:0,gap:0,vertical:""},{default:w(()=>[G(E(on),{level:5},{default:w(()=>[lt(" Output data ")]),_:1}),G(Yn,{data:o(f.data)},null,8,["data"])]),_:2},1024)):dt("",!0),p.length?(N(),Y(E(xt),{key:1,vertical:"",gap:0},{default:w(()=>[G(E(Wo)),G(E(on),{level:5},{default:w(()=>[lt(" Logs ")]),_:1}),G(Ac,{logs:p},null,8,["logs"])]),_:2},1024)):dt("",!0)]),_:2},1024)):(N(),Y(E(Pr),{key:1,description:"No logs"}))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})):dt("",!0)]}),_:1}))}});const Lc=Ee(Dc,[["__scopeId","data-v-c99a5995"]]),Ar="_thread_title",wc=$t({__name:"Card",props:{stage:{},card:{}},emits:["inspect","run","retry"],setup(i,{emit:n}){const e=i,o=Yt(()=>{const l=e.card.content.find(d=>d.key===Ar);return l?l.value:new Date(String(e.card.updated_at)).toLocaleString()}),r=Yt(()=>e.card.content.filter(l=>l.key!==Ar)),c=l=>{l.stopPropagation(),n("run")},t=l=>{l.stopPropagation(),n("retry")},a=Yt(()=>sr({status:e.card.status}).text),s=Yt(()=>Po(new Date(String(e.card.updated_at))));return(l,u)=>{var d,f;return N(),Y(E(Nr),{size:"small",style:{cursor:"pointer"},"head-style":{"border-bottom":((d=l.card.content)==null?void 0:d.length)>0?"":"none"},"body-style":{display:((f=l.card.content)==null?void 0:f.length)>0?"block":"none"},onClick:u[0]||(u[0]=p=>l.$emit("inspect"))},{title:w(()=>[G(E(Bn),{title:o.value.length>24?o.value:void 0},{default:w(()=>[lt(Tt(o.value),1)]),_:1},8,["title"])]),default:w(()=>[G(E(pe),{direction:"vertical",style:{"max-height":"300px",width:"100%",overflow:"hidden"}},{default:w(()=>[G(Yn,{data:r.value,disabled:!0},null,8,["data"]),l.card.assignee?(N(),Y(E(qe),{key:0},{default:w(()=>[lt(Tt(l.card.assignee),1)]),_:1})):dt("",!0)]),_:1}),G(E(xt),{gap:"10",style:{"margin-top":"8px"}},{default:w(()=>[G(E(Bn),null,{title:w(()=>[lt(Tt(l.card.updated_at),1)]),default:w(()=>[G(E(Pe),{type:"secondary",style:{"font-size":"12px",display:"flex","align-items":"center",gap:"4px"}},{default:w(()=>[G(E(Vo),{size:14}),lt(" Updated at: "+Tt(s.value),1)]),_:1})]),_:1})]),_:1})]),actions:w(()=>[l.card.status==="waiting"&&l.stage.type==="form"?(N(),Y(E(ne),{key:0,onClick:c},{default:w(()=>[G(E(xt),{align:"center",gap:"6"},{default:w(()=>[G(E(xa),{size:"16"}),lt(" Continue this thread ")]),_:1})]),_:1})):dt("",!0),l.card.status==="failed"?(N(),Y(E(ne),{key:1,disabled:l.card.loading,onClick:t},{default:w(()=>[G(E(xt),{align:"center",gap:"6"},{default:w(()=>[G(E(Ho),{size:"14"}),lt(" Retry ")]),_:1})]),_:1},8,["disabled"])):dt("",!0)]),extra:w(()=>[G(E(qe),null,{default:w(()=>[lt(Tt(a.value)+" ",1),a.value==="Running"?(N(),Y(E(Mr),{key:0,spin:!0,style:{"margin-left":"4px"}})):dt("",!0)]),_:1})]),_:1},8,["head-style","body-style"])}}});class jc{constructor(n,e,o){this.router=n,this.column=e,this.kanbanRepository=o}get stage(){return this.column.selected_stage}get canStart(){return this.stage.can_be_started}get launchLink(){return!this.stage.can_be_started||this.stage.type!=="form"||!this.stage.path?null:this.router.resolve({path:`/${this.stage.path}`}).href}click(){if(this.launchLink)return window.open(this.launchLink,"_blank");if(this.stage.type==="job")return this.kanbanRepository.startJob(this.stage.id).catch(console.error)}}const Mc={class:"draggable-handler"},Nc=$t({__name:"Column",props:{router:{},hasPagination:{type:Boolean},column:{},kanbanRepository:{}},emits:["increasePagination","cardRun","stageUpdate","cardInspection","cardRetry"],setup(i,{emit:n}){const e=i,o=Yt(()=>new jc(e.router,e.column,e.kanbanRepository));return(r,c)=>(N(),Y(E(pe),{direction:"vertical",class:"stage-column"},{default:w(()=>[Wt("div",Mc,[G(E(pe),{direction:"horizontal",style:{width:"100%","justify-content":"space-between"}},{default:w(()=>[G(E(xt),{gap:"8",style:{"max-width":"200px","padding-left":"10px"}},{default:w(()=>[G(E(xt),null,{default:w(()=>[(N(),Y(On(E(An)(r.column.selected_stage.type)),{size:"20"}))]),_:1}),G(E(Pe),{ellipsis:"",content:r.column.selected_stage.title},null,8,["content"])]),_:1}),G(E(pe),null,{default:w(()=>[r.column.loading?dt("",!0):(N(),Y(E(Pe),{key:0,type:"secondary",style:{"font-size":"small","margin-right":"2px"}},{default:w(()=>[lt(Tt(r.column.total_count),1)]),_:1})),r.column.loading?(N(),Y(E(Fr),{key:1})):dt("",!0),G(E(ne),{type:"text",style:{padding:"4px"},onClick:c[0]||(c[0]=t=>n("stageUpdate",null))},{default:w(()=>[G(E(Pe),{type:"secondary",style:{"font-size":"small","margin-right":"2px"}},{default:w(()=>[G(E(Ro))]),_:1})]),_:1})]),_:1})]),_:1})]),G(E(pe),{direction:"vertical",style:{width:"100%"}},{default:w(()=>[G(E(xt),{justify:"center",align:"center"},{default:w(()=>[r.column.loading?(N(),Y(E(Jo),{key:0,active:"",block:"",size:"large",class:"skeleton"})):dt("",!0)]),_:1}),!r.column.loading&&r.column.stage_run_cards.length===0?(N(),Y(E(Pr),{key:0})):dt("",!0),(N(!0),st(_t,null,se(r.column.stage_run_cards,t=>(N(),Y(wc,{key:t.id,stage:r.column.selected_stage,card:t,onInspect:a=>n("cardInspection",t),onRun:a=>n("cardRun",t),onRetry:a=>n("cardRetry",t)},null,8,["stage","card","onInspect","onRun","onRetry"]))),128)),r.hasPagination?(N(),Y(E(ne),{key:1,style:{width:"100%"},onClick:c[1]||(c[1]=t=>n("increasePagination"))},{default:w(()=>[lt("See more")]),_:1})):dt("",!0),o.value.canStart?(N(),Y(E(ne),{key:2,style:{width:"100%"},onClick:c[2]||(c[2]=()=>o.value.click())},{default:w(()=>[lt(" Start new thread ")]),_:1})):dt("",!0)]),_:1})]),_:1}))}});const Fc=Ee(Nc,[["__scopeId","data-v-8a35b2bd"]]),Uc=$t({__name:"EmptyColumn",props:{stages:{}},emits:["stageUpdate"],setup(i,{emit:n}){const e=o=>{n("stageUpdate",o)};return(o,r)=>(N(),Y(E(pe),{direction:"vertical"},{default:w(()=>[(N(!0),st(_t,null,se(o.stages,c=>(N(),Y(E(qe),{key:c.id,class:"tag",onClick:t=>e(c)},{default:w(()=>[G(E(xt),{gap:"8",style:{"max-width":"200px","justify-content":"center","align-items":"center"}},{default:w(()=>[G(E(xt),null,{default:w(()=>[(N(),Y(On(E(An)(c.type)),{size:"20"}))]),_:2},1024),G(E(Pe),{ellipsis:"",content:c.title},null,8,["content"])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}))}});const $c=Ee(Uc,[["__scopeId","data-v-f5bf528d"]]),fo=$t({__name:"Condition",props:{condition:{}},emits:["deleteCondition"],setup(i,{emit:n}){return(e,o)=>(N(),Y(E(Do),{style:{width:"100%"},compact:""},{default:w(()=>[G(E(Kn),{value:e.condition.key,"onUpdate:value":o[0]||(o[0]=r=>e.condition.key=r),style:{width:"30%"}},null,8,["value"]),G(E(Jn),{value:e.condition.comparator,"onUpdate:value":o[1]||(o[1]=r=>e.condition.comparator=r),style:{width:"20%"}},{default:w(()=>[(N(!0),st(_t,null,se(E(tr),r=>(N(),Y(E(Zn),{key:r,value:r},{default:w(()=>[lt(Tt(r),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),G(E(Kn),{value:e.condition.value,"onUpdate:value":o[2]||(o[2]=r=>e.condition.value=r),style:{width:"40%"}},null,8,["value"]),G(E(ne),{style:{width:"10%",padding:"0"},onClick:o[3]||(o[3]=r=>n("deleteCondition"))},{default:w(()=>[G(E(Ur))]),_:1})]),_:1}))}}),po=$t({__name:"LogicalGroupActionButtons",emits:["update:addCondition","update:addLogicalGroup"],setup(i,{emit:n}){const e=()=>{n("update:addCondition")},o=()=>{n("update:addLogicalGroup")};return(r,c)=>(N(),st(_t,null,[G(E(ne),{type:"link",onClick:e},{default:w(()=>[G(E(fr)),lt(" Condition")]),_:1}),G(E(ne),{type:"link",onClick:o},{default:w(()=>[G(E(fr)),lt(" Group")]),_:1})],64))}}),Gc={style:{width:"50px","text-align":"end"}},Bc="Where",go=$t({__name:"LogicalGroupMultipleConditions",props:{logicalGroup:{}},emits:["deleteLogicalGroup"],setup(i,{emit:n}){const e=i,o=()=>{e.logicalGroup.conditions===void 0&&(e.logicalGroup.conditions=[]),e.logicalGroup.conditions.push(xn())},r=a=>{e.logicalGroup.conditions!==void 0&&e.logicalGroup.conditions.splice(a,1)},c=()=>{e.logicalGroup.conditions===void 0&&(e.logicalGroup.conditions=[]),e.logicalGroup.conditions.push(uo())},t=async a=>{if(await Lr("Are you sure you want to delete this group?")){if(e.logicalGroup.conditions===void 0)return;e.logicalGroup.conditions.splice(a,1)}};return(a,s)=>(N(),Y(E(Nr),{style:{width:"100%"}},{title:w(()=>[G(E(Jn),{value:a.logicalGroup.operator,"onUpdate:value":s[0]||(s[0]=l=>a.logicalGroup.operator=l),style:{width:"100px"}},{default:w(()=>[(N(!0),st(_t,null,se(E($r),l=>(N(),Y(E(Zn),{key:l,value:l},{default:w(()=>[lt(Tt(l),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),G(po,{"onUpdate:addCondition":o,"onUpdate:addLogicalGroup":c})]),extra:w(()=>[G(E(ne),{type:"text",onClick:s[1]||(s[1]=()=>n("deleteLogicalGroup"))},{default:w(()=>[G(E(Ur))]),_:1})]),default:w(()=>[Tr(a.$slots,"default",{},()=>[(N(!0),st(_t,null,se(a.logicalGroup.conditions,(l,u)=>(N(),Y(E(xt),{key:u,style:{"margin-bottom":"16px","align-items":"center",gap:"8px"}},{default:w(()=>[Wt("span",Gc,Tt(u===0?Bc:a.logicalGroup.operator),1),l!==void 0&&"key"in l?(N(),Y(fo,{key:0,condition:l,onDeleteCondition:d=>r(u)},null,8,["condition","onDeleteCondition"])):l&&"conditions"in l&&E(Ve)(l)?(N(),Y(go,{key:1,"logical-group":l,onDeleteLogicalGroup:d=>t(u)},null,8,["logical-group","onDeleteLogicalGroup"])):dt("",!0)]),_:2},1024))),128))])]),_:3}))}}),Kc=$t({__name:"AdvancedDataFilter",emits:["update:filterDataCondition"],setup(i,{emit:n}){const e=Rt(void 0),o=()=>{const s=xn();if(e.value===void 0)e.value=s;else if(He(e.value)){const l=e.value;e.value={operator:Xe,conditions:[l,s]}}else if("condition"in e.value&&Or(e.value)){const l=e.value;e.value={operator:Xe,conditions:[l,s]}}else"conditions"in e.value&&Ve(e.value)&&e.value.conditions.push(s)},r=()=>{He(e.value)&&(e.value=void 0)},c=()=>{const s=xn(),l=uo();if(e.value===void 0)e.value=l;else if(He(e.value)){const u=e.value;e.value={operator:Xe,conditions:[u,s]}}else if("condition"in e.value&&Or(e.value)){const u=e.value;e.value={operator:Xe,conditions:[u,s]}}else"conditions"in e.value&&Ve(e.value)&&e.value.conditions.push(l)},t=async()=>{await Lr("Are you sure you want to delete this filter group?")&&(e.value=void 0)};return Rr(e,()=>{n("update:filterDataCondition",e.value)},{deep:!0}),(s,l)=>(N(),Y(E(xt),{vertical:""},{default:w(()=>[E(Ve)(e.value)?dt("",!0):(N(),Y(E(xt),{key:0,style:{"margin-bottom":"16px"}},{default:w(()=>[G(po,{"onUpdate:addCondition":o,"onUpdate:addLogicalGroup":c})]),_:1})),e.value!==void 0&&"key"in e.value&&E(He)(e.value)?(N(),Y(fo,{key:1,condition:e.value,"onUpdate:condition":l[0]||(l[0]=u=>e.value=u),onDeleteCondition:r},null,8,["condition"])):e.value&&"conditions"in e.value&&E(Ve)(e.value)?(N(),Y(go,{key:2,logicalGroup:e.value,"onUpdate:logicalGroup":l[1]||(l[1]=u=>e.value=u),onDeleteLogicalGroup:t},null,8,["logicalGroup"])):dt("",!0)]),_:1}))}}),Wc=$t({__name:"FilterKanbanData",props:{filterController:{}},setup(i){const n=i,e=s=>{c.value=s},{filterController:o}=Lo(n),{labelOption:r,filterStatus:c,filterDataCondition:t}=o.value,a=s=>{t.value=s};return(s,l)=>(N(),Y(E(jr),{ghost:""},{default:w(()=>[G(E(wr),{header:"Filters"},{default:w(()=>[G(E(wo),null,{default:w(()=>[G(E(cr),{label:"Status"},{default:w(()=>[G(E(Jn),{value:E(c),style:{width:"325px"},mode:"multiple","onUpdate:value":l[0]||(l[0]=u=>e(u))},{default:w(()=>[(N(!0),st(_t,null,se(E(vc),u=>(N(),Y(E(Zn),{key:u,value:u},{default:w(()=>[lt(Tt(E(r)(u)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),G(E(cr),{label:"Data"},{default:w(()=>[G(Kc,{"onUpdate:filterDataCondition":l[1]||(l[1]=u=>a(u))})]),_:1})]),_:1})]),_:1})]),_:1}))}});function zc(){const i=Rt({state:"closed"});function n(){i.value={state:"closed"}}function e(r,c){i.value={state:"stage-run",stageRun:c}}const o=Yt(()=>"stageRun"in i.value?i.value.stageRun:null);return{closeDrawer:n,inspectStageRun:e,drawerState:i,selectedStageRunForDrawer:o}}const Hc={class:"stages-container"},Vc={class:"stages-content"},Xc=$t({__name:"Kanban",props:{kanbanStagesStorage:{},kanbanRepository:{},stageRunRepository:{}},setup(i){const n=i,e=jo(),{closeDrawer:o,inspectStageRun:r,drawerState:c,selectedStageRunForDrawer:t}=zc(),{kanbanState:a,setStage:s,addStage:l,setup:u,tearDown:d,cardRunHandler:f,cardRetryHandler:p,increasePagination:g,hasPagination:m,reorderStages:h,startPolling:b,filterController:y}=bc({kanbanRepository:n.kanbanRepository,kanbanStagesStorage:n.kanbanStagesStorage,stageRunRepository:n.stageRunRepository,router:e}),T=Rt([]);return Rr(()=>{var O;return(O=a.value)==null?void 0:O.columns},O=>{O!==void 0&&(T.value=O)}),Qn(u),kn(d),(O,P)=>(N(),st("div",null,[G(E(xt),{vertical:"",style:{height:"100%"}},{default:w(()=>[G(Wc,{"filter-controller":E(y)},null,8,["filter-controller"]),Wt("div",Hc,[Wt("div",Vc,[G(E(pe),{align:"start"},{default:w(()=>[G(E(pi),{modelValue:T.value,"onUpdate:modelValue":P[1]||(P[1]=S=>T.value=S),class:"draggable","item-key":S=>S.selected_stage.id,"ghost-class":"ghost","force-fallback":E(Ra),handle:".draggable-handler",onStart:E(d),onEnd:E(b),onChange:E(h)},{item:w(({element:S,index:R})=>[(N(),Y(E(Fc),{key:S.selected_stage.id,column:S,router:E(e),"has-pagination":E(m)(S),"kanban-repository":n.kanbanRepository,onIncreasePagination:D=>E(g)(S),onCardInspection:D=>E(r)(S,D),onCardRun:D=>E(f)(S,D),onCardRetry:P[0]||(P[0]=D=>E(p)(D)),onStageUpdate:D=>E(s)(D,R)},null,8,["column","router","has-pagination","kanban-repository","onIncreasePagination","onCardInspection","onCardRun","onStageUpdate"]))]),_:1},8,["modelValue","item-key","force-fallback","onStart","onEnd","onChange"]),G(E($c),{stages:E(a).next_stage_options||[],onStageUpdate:P[2]||(P[2]=S=>E(l)(S))},null,8,["stages"])]),_:1})])])]),_:1}),E(c).state==="stage-run"&&E(t)?(N(),Y(E(Lc),{key:0,"kanban-repository":n.kanbanRepository,"stage-run":E(t),"stage-run-repository":n.stageRunRepository,onClose:E(o)},null,8,["kanban-repository","stage-run","stage-run-repository","onClose"])):dt("",!0)]))}});const Pu=Ee(Xc,[["__scopeId","data-v-776f7f6d"]]),Yc=2e3,Ir=[{title:"Thread",dataIndex:"thread",align:"center"},{title:"Stage",dataIndex:"stage",align:"center"},{title:"Status",dataIndex:"status",align:"center"},{title:"Updated at",dataIndex:"updated_at",align:"center"}],Zc=({kanbanRepository:i})=>{const n=lo(),e=Rt(0),o=Rt(1),r=Rt(10),c=async f=>{n.limit.value=r.value*o.value,n.offset.value=(o.value-1)*r.value,n.stageIds.value=f;const p=n.requestDataFactory(),g=await i.getData(p);return e.value=g.total_count,g},t=async()=>{var P,S;const f=await i.getStages(),p=await c(f.map(R=>R.id)),g=f.reduce((R,D)=>(R[D.id]=D,R),{}),m=(P=p.stage_run_cards)==null?void 0:P.map(R=>R.content.map(D=>D.key)).flat(),h=Array.from(new Set(m)),y=[...Ir.map(R=>R.title),...h],T=(S=p.stage_run_cards)==null?void 0:S.map(R=>{var M,B;const D=R.stage?g[R.stage]:void 0,A={};for(const V of R.content)A[V.key]=JSON.stringify(V.value);return[R.id,(M=D==null?void 0:D.title)!=null?M:"",R.status,(B=R.updated_at)!=null?B:"",...h.map(V=>A[V]||"")]}),O=new Date;return{columns:y,rows:T!=null?T:[],fileName:`threads-${O.toISOString()}`}},a=qn(async()=>{var f,p,g;try{const m=await i.getStages(),h=await c(m.map(R=>R.id)),b=m.reduce((R,D)=>(R[D.id]=D,R),{}),y=(p=(f=h.stage_run_cards)==null?void 0:f.map(R=>R.content.map(D=>D.key)).flat())!=null?p:[],T=Array.from(new Set(y)),O=(g=h.stage_run_cards)==null?void 0:g.map(R=>{const D=R.stage?b[R.stage]:void 0,A={thread:R.id,type:(D==null?void 0:D.type)||"",stage:(D==null?void 0:D.title)||"",status:R.status,updated_at:R.updated_at||""};for(const M of R.content)A[`data.${M.key}`]=JSON.stringify(M.value)||"";return A}),P=T.map(R=>({title:R,dataIndex:`data.${R}`,align:"center",width:200}));return{tableColumns:[...Ir,{title:"Data",children:P}],tableRows:O}}catch{return{tableColumns:[],tableRows:[]}}}),{startPolling:s,endPolling:l}=Dr({interval:Yc,task:async()=>{await a.refetch()}});return{setup:()=>s(),tearDown:()=>l(),tableAsyncComputed:a,totalCount:e,current:o,pageSize:r,filterController:n,getDataAsCsv:t}},Jc={style:{"text-align":"center"}},Qc={key:2,style:{"min-width":"100px"}},kc=Wt("div",{style:{height:"50px"}},null,-1),Ru=$t({__name:"TableView",props:{kanbanRepository:{}},setup(i){const n=i,e=Rt(""),o=Rt(!1),r=Rt(!1),c=()=>{o.value=!0,p.filterSearch.value=e.value,t()},t=Mo.exports.debounce(()=>{l.refetch(),o.value=!1},500),{setup:a,tearDown:s,tableAsyncComputed:l,totalCount:u,current:d,pageSize:f,filterController:p,getDataAsCsv:g}=Zc({kanbanRepository:n.kanbanRepository}),m=Yt(()=>({total:u.value,current:d.value,pageSize:f.value,totalBoundaryShowSizeChanger:10,showSizeChanger:!0,pageSizeOptions:["10","25","50","100"],onChange:async(y,T)=>{d.value=y,f.value=T,await l.refetch()}})),h=async()=>{if(r.value=!0,!l.result.value)return;const y=await g();_o(y),r.value=!1},b=y=>y.dataIndex===void 0&&"children"in y&&Array.isArray(y.children)&&y.children.length===0;return Qn(a),kn(s),(y,T)=>(N(),st("div",null,[G(E(xt),{justify:"space-between",style:{"margin-bottom":"12px"}},{default:w(()=>[G(E(Kn),{value:e.value,placeholder:"Search data or status",style:{width:"400px"},"allow-clear":"","onUpdate:value":c},{prefix:w(()=>[G(E(No))]),suffix:w(()=>[o.value?(N(),Y(E(Fr),{key:0})):dt("",!0)]),_:1},8,["value"]),G(E(ne),{loading:r.value,onClick:h},{default:w(()=>[G(E(xt),{align:"center",gap:"small"},{default:w(()=>[lt(" Export to CSV "),G(E(qo))]),_:1})]),_:1},8,["loading"])]),_:1}),E(l).result.value?(N(),Y(E(ur),{key:0,columns:E(l).result.value.tableColumns,"data-source":E(l).result.value.tableRows,loading:o.value,pagination:m.value,scroll:{x:"max-content",y:700},bordered:"",size:"small"},{headerCell:w(({column:O})=>[Wt("p",Jc,Tt(O.title),1)]),bodyCell:w(({column:O,text:P,record:S})=>[O.dataIndex==="stage"?(N(),Y(E(xt),{key:0,gap:"small",justify:"center"},{default:w(()=>[(N(),Y(On(E(An)(S.type)),{size:"20"})),lt(" "+Tt(P),1)]),_:2},1024)):O.dataIndex==="status"?(N(),Y(E(xt),{key:1,gap:"small",justify:"center"},{default:w(()=>[G(E(qe),null,{default:w(()=>[lt(Tt(E(ko)(String(P)))+" ",1),P==="running"?(N(),Y(E(Mr),{key:0,spin:!0,style:{"margin-left":"4px"}})):dt("",!0)]),_:2},1024)]),_:2},1024)):b(O)?(N(),st("div",Qc)):dt("",!0)]),_:1},8,["columns","data-source","loading","pagination"])):(N(),Y(E(ur),{key:1,loading:"",columns:[{title:"Thread"},{title:"Stage"},{title:"Status"}],bordered:""},{emptyText:w(()=>[kc]),_:1}))]))}}),qc={key:1,class:"workflow-container"},_c=$t({__name:"WorkflowView",props:{kanbanRepository:{},workflowApi:{}},setup(i){const n=i,{result:e,loading:o}=qn(()=>Zo.init(n.workflowApi,!1)),{setup:r,tearDown:c,stageRunsCount:t}=Xo({kanbanRepository:n.kanbanRepository});return Qn(r),kn(c),(a,s)=>(N(),st(_t,null,[E(o)?(N(),Y(ta,{key:0})):dt("",!0),E(e)?(N(),st("div",qc,[G(Yo,{workflow:E(e),editable:!1,"stage-runs-count":E(t),"show-drag-hint":!1,"check-file-status":!1},null,8,["workflow","stage-runs-count"])])):dt("",!0)],64))}});const Du=Ee(_c,[["__scopeId","data-v-1746adfb"]]);export{Ou as E,Pu as K,Au as P,Du as W,Ru as _,Iu as a,Tu as b}; -//# sourceMappingURL=WorkflowView.a56d2fab.js.map +//# sourceMappingURL=WorkflowView.0114ce29.js.map diff --git a/abstra_statics/dist/assets/Workspace.28d47a77.js b/abstra_statics/dist/assets/Workspace.365a6296.js similarity index 79% rename from abstra_statics/dist/assets/Workspace.28d47a77.js rename to abstra_statics/dist/assets/Workspace.365a6296.js index 160c1f63d9..79924d3f61 100644 --- a/abstra_statics/dist/assets/Workspace.28d47a77.js +++ b/abstra_statics/dist/assets/Workspace.365a6296.js @@ -1,2 +1,2 @@ -import{B as C}from"./BaseLayout.995c8c6b.js";import{d as f,D as s,f as n,o as e,Y as l,$ as _,S as y,e8 as M,a as t,c as A,w as v,b as g,u as p,bx as H,aG as w,bz as S,e9 as k,bT as B,bR as P,ea as N,e as D,r as z,aS as b,eb as x,ec as j,ed as L,aW as I,cJ as G,Z as F,a0 as W}from"./index.8c3f27aa.js";import{F as E}from"./PhSignOut.vue.266bb925.js";import{u as q}from"./editor.e7656461.js";import{N as R}from"./NavbarControls.0c752e0f.js";import{_ as T}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js";import{I as J,G as O}from"./PhIdentificationBadge.vue.b9f0b1dc.js";import{G as Y}from"./PhCaretRight.vue.a26e962f.js";import{G as K}from"./PhFlowArrow.vue.f79c4ef2.js";import{G as Q}from"./PhKanban.vue.444564da.js";import{b as U}from"./index.d667cd0d.js";import"./workspaceStore.a6063d10.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./asyncComputed.cfc0cdaf.js";import"./CloseCircleOutlined.7faf1c70.js";import"./index.126762e2.js";import"./index.37c7ea66.js";import"./workspaces.7bc437a6.js";import"./record.a6861841.js";import"./popupNotifcation.40886a7f.js";import"./PhArrowSquareOut.vue.da8bb581.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js";import"./BookOutlined.b4191bff.js";import"./PhChats.vue.296ae643.js";import"./Logo.cf3e0e74.js";import"./index.d33f3e49.js";import"./Avatar.8da44d42.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[o]="d9265021-3652-43b2-8898-85af04964def",u._sentryDebugIdIdentifier="sentry-dbid-d9265021-3652-43b2-8898-85af04964def")}catch{}})();const X=["width","height","fill","transform"],a0={key:0},e0=t("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"},null,-1),l0=[e0],t0={key:1},o0=t("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),r0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),i0=[o0,r0],n0={key:2},s0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"},null,-1),d0=[s0],u0={key:3},m0=t("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"},null,-1),h0=[m0],p0={key:4},v0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),c0=[v0],V0={key:5},g0=t("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"},null,-1),Z0=[g0],$0={name:"PhBrowser"},f0=f({...$0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:c}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",a0,l0)):r.value==="duotone"?(e(),l("g",t0,i0)):r.value==="fill"?(e(),l("g",n0,d0)):r.value==="light"?(e(),l("g",u0,h0)):r.value==="regular"?(e(),l("g",p0,c0)):r.value==="thin"?(e(),l("g",V0,Z0)):y("",!0)],16,X))}}),y0=["width","height","fill","transform"],A0={key:0},_0=t("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"},null,-1),M0=[_0],w0={key:1},H0=t("path",{d:"M160,48V208L80,128Z",opacity:"0.2"},null,-1),k0=t("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"},null,-1),b0=[H0,k0],x0={key:2},L0=t("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"},null,-1),S0=[L0],z0={key:3},C0=t("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"},null,-1),B0=[C0],P0={key:4},N0=t("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},null,-1),D0=[N0],j0={key:5},I0=t("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"},null,-1),G0=[I0],F0={name:"PhCaretLeft"},W0=f({...F0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:c}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",A0,M0)):r.value==="duotone"?(e(),l("g",w0,b0)):r.value==="fill"?(e(),l("g",x0,S0)):r.value==="light"?(e(),l("g",z0,B0)):r.value==="regular"?(e(),l("g",P0,D0)):r.value==="thin"?(e(),l("g",j0,G0)):y("",!0)],16,y0))}}),E0=["width","height","fill","transform"],q0={key:0},R0=t("path",{d:"M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Z"},null,-1),T0=[R0],J0={key:1},O0=t("path",{d:"M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",opacity:"0.2"},null,-1),Y0=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),K0=[O0,Y0],Q0={key:2},U0=t("path",{d:"M160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160a88.09,88.09,0,0,0,87.93-91.48C246.11,77.54,207.07,40,160.06,40Z"},null,-1),X0=[U0],a1={key:3},e1=t("path",{d:"M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Z"},null,-1),l1=[e1],t1={key:4},o1=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),r1=[o1],i1={key:5},n1=t("path",{d:"M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Z"},null,-1),s1=[n1],d1={name:"PhCloud"},u1=f({...d1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:c}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",q0,T0)):r.value==="duotone"?(e(),l("g",J0,K0)):r.value==="fill"?(e(),l("g",Q0,X0)):r.value==="light"?(e(),l("g",a1,l1)):r.value==="regular"?(e(),l("g",t1,r1)):r.value==="thin"?(e(),l("g",i1,s1)):y("",!0)],16,E0))}}),m1=["width","height","fill","transform"],h1={key:0},p1=t("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H172a12,12,0,0,0,0,24h28a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM64,140H48a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40H60V164h4a8,8,0,0,1,0,16Zm80,7.44V208a12,12,0,0,1-24,0V187.44l-18.18-29.08a12,12,0,0,1,20.36-12.72L132,161.36l9.82-15.72a12,12,0,0,1,20.36,12.72Z"},null,-1),v1=[p1],c1={key:1},V1=t("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),g1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),Z1=[V1,g1],$1={key:2},f1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H172a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h20a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184Zm91-27.48L136,186.29v21.44a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V186.29l-18.61-29.77a8.22,8.22,0,0,1,2.16-11.17,8,8,0,0,1,11.23,2.41L128,168.91l13.22-21.15a8,8,0,0,1,11.23-2.41A8.22,8.22,0,0,1,154.61,156.52Z"},null,-1),y1=[f1],A1={key:3},_1=t("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM64,146H48a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198H64a26,26,0,0,0,0-52Zm0,40H54V158H64a14,14,0,0,1,0,28Zm89.09-30.82L134,185.72V208a6,6,0,0,1-12,0V185.72l-19.09-30.54a6,6,0,0,1,10.18-6.36L128,172.68l14.91-23.86a6,6,0,0,1,10.18,6.36Z"},null,-1),M1=[_1],w1={key:4},H1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),k1=[H1],b1={key:5},x1=t("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM64,148H48a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196H64a24,24,0,0,0,0-48Zm0,40H52V156H64a16,16,0,0,1,0,32Zm87.39-33.88-19.39,31V208a4,4,0,0,1-8,0V185.15l-19.39-31a4,4,0,0,1,6.78-4.24L128,176.45l16.61-26.57a4,4,0,1,1,6.78,4.24Z"},null,-1),L1=[x1],S1={name:"PhFilePy"},z1=f({...S1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:c}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",h1,v1)):r.value==="duotone"?(e(),l("g",c1,Z1)):r.value==="fill"?(e(),l("g",$1,y1)):r.value==="light"?(e(),l("g",A1,M1)):r.value==="regular"?(e(),l("g",w1,k1)):r.value==="thin"?(e(),l("g",b1,L1)):y("",!0)],16,m1))}}),C1=["width","height","fill","transform"],B1={key:0},P1=t("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,178.57,87.73l-72-39.42Zm0,78.83L56,76,81.56,62l72,39.41ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l24-13.13V152a12,12,0,0,0,24,0V109.92l24-13.13v76.65Z"},null,-1),N1=[P1],D1={key:1},j1=t("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.18a8,8,0,0,1-4.16-7V80.18a8,8,0,0,1,.7-3.25Z",opacity:"0.2"},null,-1),I1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),G1=[j1,I1],F1={key:2},W1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.35,44L178.57,92.29l-80.35-44Zm0,88L47.65,76,81.56,57.43l80.35,44Zm88,55.85h0l-80,43.79V133.83l32-17.51V152a8,8,0,0,0,16,0V107.56l32-17.51v85.76Z"},null,-1),E1=[W1],q1={key:3},R1=t("path",{d:"M222.72,67.91l-88-48.18a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.91ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,178.57,94.57,94.05,48.31ZM122,223,39,177.57a2,2,0,0,1-1-1.75V86.66l84,46ZM43.49,76,81.56,55.15l84.51,46.26L128,122.24ZM218,175.82a2,2,0,0,1-1,1.75h0L134,223V132.64l36-19.71V152a6,6,0,0,0,12,0V106.37l36-19.71Z"},null,-1),T1=[R1],J1={key:4},O1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),Y1=[O1],K1={key:5},Q1=t("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,178.5,96.89a4,4,0,0,0-.58-.4l-88-48.18Zm1.92,96L39.33,76,81.56,52.87l88.67,48.54Zm-89.92,54.8a4,4,0,0,1-2.08-3.5V83.29l88,48.16v94.91Zm179.84,0h0l-85.92,47V131.45l40-21.89V152a4,4,0,0,0,8,0V105.18l40-21.89v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),U1=[Q1],X1={name:"PhPackage"},a2=f({...X1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:c}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",B1,N1)):r.value==="duotone"?(e(),l("g",D1,G1)):r.value==="fill"?(e(),l("g",F1,E1)):r.value==="light"?(e(),l("g",q1,T1)):r.value==="regular"?(e(),l("g",J1,Y1)):r.value==="thin"?(e(),l("g",K1,U1)):y("",!0)],16,C1))}}),e2=["width","height","fill","transform"],l2={key:0},t2=t("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"},null,-1),o2=[t2],r2={key:1},i2=t("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"},null,-1),n2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),s2=[i2,n2],d2={key:2},u2=t("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"},null,-1),m2=[u2],h2={key:3},p2=t("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"},null,-1),v2=[p2],c2={key:4},V2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),g2=[V2],Z2={key:5},$2=t("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"},null,-1),f2=[$2],y2={name:"PhSliders"},A2=f({...y2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,c=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:c}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",l2,o2)):r.value==="duotone"?(e(),l("g",r2,s2)):r.value==="fill"?(e(),l("g",d2,m2)):r.value==="light"?(e(),l("g",h2,v2)):r.value==="regular"?(e(),l("g",c2,g2)):r.value==="thin"?(e(),l("g",Z2,f2)):y("",!0)],16,e2))}}),_2={class:"menu-item"},M2=["href"],w2={class:"menu-item"},H2=f({__name:"CloudProjectDropdown",setup(u){const o=q();return(c,d)=>(e(),A(p(P),null,{overlay:v(()=>[g(p(S),null,{default:v(()=>[g(p(H),null,{default:v(()=>{var i;return[t("div",_2,[g(p(u1)),t("a",{href:(i=p(o).links)==null?void 0:i.project,style:{color:"black"},target:"_project"},"Open Console",8,M2)])]}),_:1}),g(p(H),{danger:"",onClick:d[0]||(d[0]=i=>p(o).deleteLogin())},{default:v(()=>[t("div",w2,[g(p(E)),w(" Logout ")])]),_:1})]),_:1})]),default:v(()=>[g(p(B),{type:"text",size:"small",class:"menu-item"},{default:v(()=>{var i;return[g(p(f0),{size:"18"}),w(" "+k((i=p(o).cloudProject)==null?void 0:i.name),1)]}),_:1})]),_:1}))}});const k2={class:"logo"},b2={key:0,class:"toggle-button"},x2={key:1,class:"toggle-button"},L2=f({__name:"Sidebar",setup(u){const o=N();function c(){var Z,V;return[(V=(Z=r.value.map(a=>a.children).flat().find(a=>a.path===o.path))==null?void 0:Z.name)!=null?V:"Workflow"]}const d=n(c),i=D(!1),$=()=>i.value=!i.value,r=n(()=>[{name:"Project",children:[{name:"Workflow",icon:K,path:"/_editor/workflow"},{name:"Stages",icon:z1,path:"/_editor/stages"},{name:"Threads",icon:Q,path:"/_editor/threads"}]},{name:"Settings",children:[{name:"Preferences",icon:A2,path:"/_editor/preferences"},{name:"Requirements",icon:a2,path:"/_editor/requirements"},{name:"Env Vars",icon:J,path:"/_editor/env-vars"},{name:"Access Control",icon:O,path:"/_editor/access-control"}]}]);return(m,Z)=>{const V=z("RouterLink");return e(),l("div",{style:F({width:i.value?"80px":"200px"}),class:"sidebar"},[t("div",k2,[g(T,{"hide-text":i.value},null,8,["hide-text"])]),g(p(S),{"inline-collapsed":i.value,mode:"inline","selected-keys":d.value,style:{display:"flex","flex-direction":"column",width:"100%","flex-grow":"1",border:"none"}},{default:v(()=>[(e(!0),l(b,null,x(r.value,a=>(e(),A(p(G),{key:a.name,title:a.name},{default:v(()=>[(e(!0),l(b,null,x(a.children,h=>(e(),A(p(H),{key:h.name,role:"button",tabindex:"0",disabled:h.disabled},{icon:v(()=>[(e(),A(j(h.icon),{class:L({active:d.value.includes(h.path),disabled:h.disabled}),size:"18"},null,8,["class"]))]),default:v(()=>[h.disabled?(e(),A(p(I),{key:1,placement:"bottomLeft",title:h.tooltip},{default:v(()=>[w(k(h.name),1)]),_:2},1032,["title"])):(e(),A(V,{key:0,to:h.path,class:L({active:d.value.includes(h.path),disabled:h.disabled})},{default:v(()=>[w(k(h.name),1)]),_:2},1032,["to","class"]))]),_:2},1032,["disabled"]))),128))]),_:2},1032,["title"]))),128)),i.value?(e(),l("div",b2,[g(p(Y),{size:"20",onClick:$})])):y("",!0),i.value?y("",!0):(e(),l("div",x2,[g(p(W0),{size:"20",onClick:$})]))]),_:1},8,["inline-collapsed","selected-keys"])],4)}}});const S2=W(L2,[["__scopeId","data-v-f69aae2e"]]),z2={style:{display:"flex","align-items":"center",gap:"60px"}},n8=f({__name:"Workspace",setup(u){return(o,c)=>{const d=z("RouterView");return e(),A(C,null,{navbar:v(()=>[g(p(U),{style:{padding:"5px 10px",border:"1px solid #f0f0f0","border-left":"0px"}},{title:v(()=>[t("div",z2,[g(H2)])]),extra:v(()=>[g(R,{"show-github-stars":""})]),_:1})]),sidebar:v(()=>[g(S2,{class:"sidebar"})]),content:v(()=>[g(d)]),_:1})}}});export{n8 as default}; -//# sourceMappingURL=Workspace.28d47a77.js.map +import{B as C}from"./BaseLayout.52f1acec.js";import{d as f,D as s,f as n,o as e,Y as l,$ as _,S as y,e8 as M,a as t,c as A,w as c,b as g,u as p,bx as H,aG as w,bz as S,e9 as b,bT as B,bR as P,ea as N,e as D,r as z,aS as k,eb as x,ec as j,ed as L,aW as I,cJ as G,Z as F,a0 as W}from"./index.d0f12294.js";import{F as E}from"./PhSignOut.vue.6dacf893.js";import{u as q}from"./editor.95f16260.js";import{N as R}from"./NavbarControls.be646660.js";import{_ as T}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js";import{I as J,G as O}from"./PhIdentificationBadge.vue.088497fd.js";import{G as Y}from"./PhCaretRight.vue.5db53029.js";import{G as K}from"./PhFlowArrow.vue.be952fce.js";import{G as Q}from"./PhKanban.vue.fc0591cb.js";import{b as U}from"./index.3b2f4dca.js";import"./workspaceStore.e47060bf.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./asyncComputed.703c33fd.js";import"./CloseCircleOutlined.c0e3f3e1.js";import"./index.289665f1.js";import"./index.a82e0ed1.js";import"./workspaces.e43325e2.js";import"./record.8c284c67.js";import"./popupNotifcation.a0a6244b.js";import"./PhArrowSquareOut.vue.418ffcff.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js";import"./BookOutlined.7c922f07.js";import"./PhChats.vue.1b5982bf.js";import"./Logo.8f27935a.js";import"./index.3e715bc1.js";import"./Avatar.f6415f7c.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[o]="d1764b91-d68b-41f1-8ee6-350dcb8c629c",u._sentryDebugIdIdentifier="sentry-dbid-d1764b91-d68b-41f1-8ee6-350dcb8c629c")}catch{}})();const X=["width","height","fill","transform"],a0={key:0},e0=t("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"},null,-1),l0=[e0],t0={key:1},o0=t("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),r0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),i0=[o0,r0],n0={key:2},s0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"},null,-1),d0=[s0],u0={key:3},m0=t("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"},null,-1),h0=[m0],p0={key:4},c0=t("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"},null,-1),v0=[c0],V0={key:5},g0=t("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"},null,-1),Z0=[g0],$0={name:"PhBrowser"},f0=f({...$0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,v=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:v}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",a0,l0)):r.value==="duotone"?(e(),l("g",t0,i0)):r.value==="fill"?(e(),l("g",n0,d0)):r.value==="light"?(e(),l("g",u0,h0)):r.value==="regular"?(e(),l("g",p0,v0)):r.value==="thin"?(e(),l("g",V0,Z0)):y("",!0)],16,X))}}),y0=["width","height","fill","transform"],A0={key:0},_0=t("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"},null,-1),M0=[_0],w0={key:1},H0=t("path",{d:"M160,48V208L80,128Z",opacity:"0.2"},null,-1),b0=t("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"},null,-1),k0=[H0,b0],x0={key:2},L0=t("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"},null,-1),S0=[L0],z0={key:3},C0=t("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"},null,-1),B0=[C0],P0={key:4},N0=t("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},null,-1),D0=[N0],j0={key:5},I0=t("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"},null,-1),G0=[I0],F0={name:"PhCaretLeft"},W0=f({...F0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,v=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:v}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",A0,M0)):r.value==="duotone"?(e(),l("g",w0,k0)):r.value==="fill"?(e(),l("g",x0,S0)):r.value==="light"?(e(),l("g",z0,B0)):r.value==="regular"?(e(),l("g",P0,D0)):r.value==="thin"?(e(),l("g",j0,G0)):y("",!0)],16,y0))}}),E0=["width","height","fill","transform"],q0={key:0},R0=t("path",{d:"M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Z"},null,-1),T0=[R0],J0={key:1},O0=t("path",{d:"M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",opacity:"0.2"},null,-1),Y0=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),K0=[O0,Y0],Q0={key:2},U0=t("path",{d:"M160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160a88.09,88.09,0,0,0,87.93-91.48C246.11,77.54,207.07,40,160.06,40Z"},null,-1),X0=[U0],a1={key:3},e1=t("path",{d:"M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Z"},null,-1),l1=[e1],t1={key:4},o1=t("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"},null,-1),r1=[o1],i1={key:5},n1=t("path",{d:"M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Z"},null,-1),s1=[n1],d1={name:"PhCloud"},u1=f({...d1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,v=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:v}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",q0,T0)):r.value==="duotone"?(e(),l("g",J0,K0)):r.value==="fill"?(e(),l("g",Q0,X0)):r.value==="light"?(e(),l("g",a1,l1)):r.value==="regular"?(e(),l("g",t1,r1)):r.value==="thin"?(e(),l("g",i1,s1)):y("",!0)],16,E0))}}),m1=["width","height","fill","transform"],h1={key:0},p1=t("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H172a12,12,0,0,0,0,24h28a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM64,140H48a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40H60V164h4a8,8,0,0,1,0,16Zm80,7.44V208a12,12,0,0,1-24,0V187.44l-18.18-29.08a12,12,0,0,1,20.36-12.72L132,161.36l9.82-15.72a12,12,0,0,1,20.36,12.72Z"},null,-1),c1=[p1],v1={key:1},V1=t("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),g1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),Z1=[V1,g1],$1={key:2},f1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H172a4,4,0,0,1,4,4V228a4,4,0,0,0,4,4h20a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184Zm91-27.48L136,186.29v21.44a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V186.29l-18.61-29.77a8.22,8.22,0,0,1,2.16-11.17,8,8,0,0,1,11.23,2.41L128,168.91l13.22-21.15a8,8,0,0,1,11.23-2.41A8.22,8.22,0,0,1,154.61,156.52Z"},null,-1),y1=[f1],A1={key:3},_1=t("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM64,146H48a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198H64a26,26,0,0,0,0-52Zm0,40H54V158H64a14,14,0,0,1,0,28Zm89.09-30.82L134,185.72V208a6,6,0,0,1-12,0V185.72l-19.09-30.54a6,6,0,0,1,10.18-6.36L128,172.68l14.91-23.86a6,6,0,0,1,10.18,6.36Z"},null,-1),M1=[_1],w1={key:4},H1=t("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM64,144H48a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40H56V160h8a12,12,0,0,1,0,24Zm90.78-27.76-18.78,30V208a8,8,0,0,1-16,0V186.29l-18.78-30a8,8,0,1,1,13.56-8.48L128,168.91l13.22-21.15a8,8,0,1,1,13.56,8.48Z"},null,-1),b1=[H1],k1={key:5},x1=t("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM64,148H48a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196H64a24,24,0,0,0,0-48Zm0,40H52V156H64a16,16,0,0,1,0,32Zm87.39-33.88-19.39,31V208a4,4,0,0,1-8,0V185.15l-19.39-31a4,4,0,0,1,6.78-4.24L128,176.45l16.61-26.57a4,4,0,1,1,6.78,4.24Z"},null,-1),L1=[x1],S1={name:"PhFilePy"},z1=f({...S1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,v=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:v}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",h1,c1)):r.value==="duotone"?(e(),l("g",v1,Z1)):r.value==="fill"?(e(),l("g",$1,y1)):r.value==="light"?(e(),l("g",A1,M1)):r.value==="regular"?(e(),l("g",w1,b1)):r.value==="thin"?(e(),l("g",k1,L1)):y("",!0)],16,m1))}}),C1=["width","height","fill","transform"],B1={key:0},P1=t("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,178.57,87.73l-72-39.42Zm0,78.83L56,76,81.56,62l72,39.41ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l24-13.13V152a12,12,0,0,0,24,0V109.92l24-13.13v76.65Z"},null,-1),N1=[P1],D1={key:1},j1=t("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.18a8,8,0,0,1-4.16-7V80.18a8,8,0,0,1,.7-3.25Z",opacity:"0.2"},null,-1),I1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),G1=[j1,I1],F1={key:2},W1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.35,44L178.57,92.29l-80.35-44Zm0,88L47.65,76,81.56,57.43l80.35,44Zm88,55.85h0l-80,43.79V133.83l32-17.51V152a8,8,0,0,0,16,0V107.56l32-17.51v85.76Z"},null,-1),E1=[W1],q1={key:3},R1=t("path",{d:"M222.72,67.91l-88-48.18a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.91ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,178.57,94.57,94.05,48.31ZM122,223,39,177.57a2,2,0,0,1-1-1.75V86.66l84,46ZM43.49,76,81.56,55.15l84.51,46.26L128,122.24ZM218,175.82a2,2,0,0,1-1,1.75h0L134,223V132.64l36-19.71V152a6,6,0,0,0,12,0V106.37l36-19.71Z"},null,-1),T1=[R1],J1={key:4},O1=t("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"},null,-1),Y1=[O1],K1={key:5},Q1=t("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,178.5,96.89a4,4,0,0,0-.58-.4l-88-48.18Zm1.92,96L39.33,76,81.56,52.87l88.67,48.54Zm-89.92,54.8a4,4,0,0,1-2.08-3.5V83.29l88,48.16v94.91Zm179.84,0h0l-85.92,47V131.45l40-21.89V152a4,4,0,0,0,8,0V105.18l40-21.89v92.53A4,4,0,0,1,217.92,179.32Z"},null,-1),U1=[Q1],X1={name:"PhPackage"},a2=f({...X1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,v=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:v}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",B1,N1)):r.value==="duotone"?(e(),l("g",D1,G1)):r.value==="fill"?(e(),l("g",F1,E1)):r.value==="light"?(e(),l("g",q1,T1)):r.value==="regular"?(e(),l("g",J1,Y1)):r.value==="thin"?(e(),l("g",K1,U1)):y("",!0)],16,C1))}}),e2=["width","height","fill","transform"],l2={key:0},t2=t("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"},null,-1),o2=[t2],r2={key:1},i2=t("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"},null,-1),n2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),s2=[i2,n2],d2={key:2},u2=t("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"},null,-1),m2=[u2],h2={key:3},p2=t("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"},null,-1),c2=[p2],v2={key:4},V2=t("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"},null,-1),g2=[V2],Z2={key:5},$2=t("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"},null,-1),f2=[$2],y2={name:"PhSliders"},A2=f({...y2,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const o=u,v=s("weight","regular"),d=s("size","1em"),i=s("color","currentColor"),$=s("mirrored",!1),r=n(()=>{var a;return(a=o.weight)!=null?a:v}),m=n(()=>{var a;return(a=o.size)!=null?a:d}),Z=n(()=>{var a;return(a=o.color)!=null?a:i}),V=n(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:$?"scale(-1, 1)":void 0);return(a,h)=>(e(),l("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:m.value,height:m.value,fill:Z.value,transform:V.value},a.$attrs),[_(a.$slots,"default"),r.value==="bold"?(e(),l("g",l2,o2)):r.value==="duotone"?(e(),l("g",r2,s2)):r.value==="fill"?(e(),l("g",d2,m2)):r.value==="light"?(e(),l("g",h2,c2)):r.value==="regular"?(e(),l("g",v2,g2)):r.value==="thin"?(e(),l("g",Z2,f2)):y("",!0)],16,e2))}}),_2={class:"menu-item"},M2=["href"],w2={class:"menu-item"},H2=f({__name:"CloudProjectDropdown",setup(u){const o=q();return(v,d)=>(e(),A(p(P),null,{overlay:c(()=>[g(p(S),null,{default:c(()=>[g(p(H),null,{default:c(()=>{var i;return[t("div",_2,[g(p(u1)),t("a",{href:(i=p(o).links)==null?void 0:i.project,style:{color:"black"},target:"_project"},"Open Console",8,M2)])]}),_:1}),g(p(H),{danger:"",onClick:d[0]||(d[0]=i=>p(o).deleteLogin())},{default:c(()=>[t("div",w2,[g(p(E)),w(" Logout ")])]),_:1})]),_:1})]),default:c(()=>[g(p(B),{type:"text",size:"small",class:"menu-item"},{default:c(()=>{var i;return[g(p(f0),{size:"18"}),w(" "+b((i=p(o).cloudProject)==null?void 0:i.name),1)]}),_:1})]),_:1}))}});const b2={class:"logo"},k2={key:0,class:"toggle-button"},x2={key:1,class:"toggle-button"},L2=f({__name:"Sidebar",setup(u){const o=N();function v(){var Z,V;return[(V=(Z=r.value.map(a=>a.children).flat().find(a=>a.path===o.path))==null?void 0:Z.name)!=null?V:"Workflow"]}const d=n(v),i=D(!1),$=()=>i.value=!i.value,r=n(()=>[{name:"Project",children:[{name:"Workflow",icon:K,path:"/_editor/workflow"},{name:"Stages",icon:z1,path:"/_editor/stages"},{name:"Threads",icon:Q,path:"/_editor/threads"}]},{name:"Settings",children:[{name:"Preferences",icon:A2,path:"/_editor/preferences"},{name:"Requirements",icon:a2,path:"/_editor/requirements"},{name:"Env Vars",icon:J,path:"/_editor/env-vars"},{name:"Access Control",icon:O,path:"/_editor/access-control"}]}]);return(m,Z)=>{const V=z("RouterLink");return e(),l("div",{style:F({width:i.value?"80px":"200px"}),class:"sidebar"},[t("div",b2,[g(T,{"hide-text":i.value},null,8,["hide-text"])]),g(p(S),{"inline-collapsed":i.value,mode:"inline","selected-keys":d.value,style:{display:"flex","flex-direction":"column",width:"100%","flex-grow":"1",border:"none"}},{default:c(()=>[(e(!0),l(k,null,x(r.value,a=>(e(),A(p(G),{key:a.name,title:a.name},{default:c(()=>[(e(!0),l(k,null,x(a.children,h=>(e(),A(p(H),{key:h.name,role:"button",tabindex:"0",disabled:h.disabled},{icon:c(()=>[(e(),A(j(h.icon),{class:L({active:d.value.includes(h.path),disabled:h.disabled}),size:"18"},null,8,["class"]))]),default:c(()=>[h.disabled?(e(),A(p(I),{key:1,placement:"bottomLeft",title:h.tooltip},{default:c(()=>[w(b(h.name),1)]),_:2},1032,["title"])):(e(),A(V,{key:0,to:h.path,class:L({active:d.value.includes(h.path),disabled:h.disabled})},{default:c(()=>[w(b(h.name),1)]),_:2},1032,["to","class"]))]),_:2},1032,["disabled"]))),128))]),_:2},1032,["title"]))),128)),i.value?(e(),l("div",k2,[g(p(Y),{size:"20",onClick:$})])):y("",!0),i.value?y("",!0):(e(),l("div",x2,[g(p(W0),{size:"20",onClick:$})]))]),_:1},8,["inline-collapsed","selected-keys"])],4)}}});const S2=W(L2,[["__scopeId","data-v-f69aae2e"]]),z2={style:{display:"flex","align-items":"center",gap:"60px"}},n8=f({__name:"Workspace",setup(u){return(o,v)=>{const d=z("RouterView");return e(),A(C,null,{navbar:c(()=>[g(p(U),{style:{padding:"5px 10px",border:"1px solid #f0f0f0","border-left":"0px"}},{title:c(()=>[t("div",z2,[g(H2)])]),extra:c(()=>[g(R,{"show-github-stars":""})]),_:1})]),sidebar:c(()=>[g(S2,{class:"sidebar"})]),content:c(()=>[g(d)]),_:1})}}});export{n8 as default}; +//# sourceMappingURL=Workspace.365a6296.js.map diff --git a/abstra_statics/dist/assets/ant-design.ae7d2f9f.js b/abstra_statics/dist/assets/ant-design.d89b18ab.js similarity index 50% rename from abstra_statics/dist/assets/ant-design.ae7d2f9f.js rename to abstra_statics/dist/assets/ant-design.d89b18ab.js index 0af803f98b..30e08e4082 100644 --- a/abstra_statics/dist/assets/ant-design.ae7d2f9f.js +++ b/abstra_statics/dist/assets/ant-design.d89b18ab.js @@ -1,2 +1,2 @@ -import{ej as n,cL as y}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="03c5d2c7-7b66-4124-93a3-34314904e8e0",e._sentryDebugIdIdentifier="sentry-dbid-03c5d2c7-7b66-4124-93a3-34314904e8e0")}catch{}})();function f(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function u(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const l=t?`'${t}': ${f(e)}`:f(e);if(n.exports.isArray(e)){const i=u(e);return[{title:l,key:[...r,i].join("/"),children:e.flatMap((s,c)=>o(s,[...r,i,`${c}`]))}]}else if(n.exports.isObject(e)){const i=u(e);return[{title:l,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,c])=>o(c,[...r,i,s],s))}]}else return[{title:l,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{y.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,o as t}; -//# sourceMappingURL=ant-design.ae7d2f9f.js.map +import{ej as n,cL as y}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="5353c080-0473-4f5a-b693-1a0454093e5a",e._sentryDebugIdIdentifier="sentry-dbid-5353c080-0473-4f5a-b693-1a0454093e5a")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function c(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const l=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=c(e);return[{title:l,key:[...r,i].join("/"),children:e.flatMap((s,f)=>o(s,[...r,i,`${f}`]))}]}else if(n.exports.isObject(e)){const i=c(e);return[{title:l,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,f])=>o(f,[...r,i,s],s))}]}else return[{title:l,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{y.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,o as t}; +//# sourceMappingURL=ant-design.d89b18ab.js.map diff --git a/abstra_statics/dist/assets/api.ebb7a8be.js b/abstra_statics/dist/assets/api.8656aeba.js similarity index 53% rename from abstra_statics/dist/assets/api.ebb7a8be.js rename to abstra_statics/dist/assets/api.8656aeba.js index f6ea742676..6bfaa361cc 100644 --- a/abstra_statics/dist/assets/api.ebb7a8be.js +++ b/abstra_statics/dist/assets/api.8656aeba.js @@ -1,2 +1,2 @@ -import{l as r}from"./fetch.fd4370bb.js";import{O as t}from"./index.8c3f27aa.js";import{w as i}from"./metadata.2beed20a.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="aa77ff6e-a308-4a42-8e90-0c43ad317133",o._sentryDebugIdIdentifier="sentry-dbid-aa77ff6e-a308-4a42-8e90-0c43ad317133")}catch{}})();const l=i.stages.flatMap(o=>o.transitions.flatMap(e=>e.typeName)),c=t.object({type:t.enum(["forms","hooks","jobs","scripts","conditions","iterators"]),id:t.string(),title:t.string(),position:t.object({x:t.number(),y:t.number()}),props:t.object({path:t.string().nullable(),filename:t.string().nullable(),variableName:t.string().nullable(),itemName:t.string().nullable()})}),d=t.object({id:t.string(),type:t.enum(["forms:finished",...l]),sourceStageId:t.string(),targetStageId:t.string(),props:t.object({conditionValue:t.string().nullable()})}),s=t.object({stages:t.array(c),transitions:t.array(d)}),f={"Content-Type":"application/json"},y="abstra-run-id";class p{async load(){const e=await fetch("/_editor/api/workflows");if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){const a=await fetch("/_editor/api/workflows",{method:"PUT",headers:f,body:JSON.stringify(e)});if(a.ok){const n=await a.json();return s.parse(n)}else throw new Error("Failed to update workflow")}}const b=new p;class g{constructor(e,a=r){this.authHeaders=e,this.fetch=a}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async load(){const e=await this.fetch("/_workflows",{headers:this.headers});if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){throw new Error("not implemented")}}export{y as A,p as E,g as P,b as w}; -//# sourceMappingURL=api.ebb7a8be.js.map +import{l as r}from"./fetch.e5ebd511.js";import{O as t}from"./index.d0f12294.js";import{w as i}from"./metadata.bc77f4b9.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="c03dd7dd-aab0-4836-a1a7-d398731bb868",o._sentryDebugIdIdentifier="sentry-dbid-c03dd7dd-aab0-4836-a1a7-d398731bb868")}catch{}})();const d=i.stages.flatMap(o=>o.transitions.flatMap(e=>e.typeName)),l=t.object({type:t.enum(["forms","hooks","jobs","scripts","conditions","iterators"]),id:t.string(),title:t.string(),position:t.object({x:t.number(),y:t.number()}),props:t.object({path:t.string().nullable(),filename:t.string().nullable(),variableName:t.string().nullable(),itemName:t.string().nullable()})}),c=t.object({id:t.string(),type:t.enum(["forms:finished",...d]),sourceStageId:t.string(),targetStageId:t.string(),props:t.object({conditionValue:t.string().nullable()})}),s=t.object({stages:t.array(l),transitions:t.array(c)}),p={"Content-Type":"application/json"},h="abstra-run-id";class w{async load(){const e=await fetch("/_editor/api/workflows");if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){const a=await fetch("/_editor/api/workflows",{method:"PUT",headers:p,body:JSON.stringify(e)});if(a.ok){const n=await a.json();return s.parse(n)}else throw new Error("Failed to update workflow")}}const y=new w;class g{constructor(e,a=r){this.authHeaders=e,this.fetch=a}get headers(){return{"Content-Type":"application/json",...this.authHeaders}}async load(){const e=await this.fetch("/_workflows",{headers:this.headers});if(e.ok){const a=await e.json();return s.parse(a)}else throw new Error("Failed to fetch initial data")}async update(e){throw new Error("not implemented")}}export{h as A,w as E,g as P,y as w}; +//# sourceMappingURL=api.8656aeba.js.map diff --git a/abstra_statics/dist/assets/apiKey.12cb6e13.js b/abstra_statics/dist/assets/apiKey.12cb6e13.js new file mode 100644 index 0000000000..ea26d49a35 --- /dev/null +++ b/abstra_statics/dist/assets/apiKey.12cb6e13.js @@ -0,0 +1,2 @@ +var o=Object.defineProperty;var c=(s,t,e)=>t in s?o(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var d=(s,t,e)=>(c(s,typeof t!="symbol"?t+"":t,e),e);import{C as r}from"./gateway.ae1d6857.js";import"./index.d0f12294.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="6b574b4f-8144-4f27-9980-6cdd270180fe",s._sentryDebugIdIdentifier="sentry-dbid-6b574b4f-8144-4f27-9980-6cdd270180fe")}catch{}})();class u{constructor(){d(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return r.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await r.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return r.get(`projects/${t}/${this.urlPath}`)}}const a=new u;class n{constructor(t){this.dto=t}static async list(t){return(await a.list(t)).map(i=>new n(i))}static async create(t){const e=await a.create(t);return new n(e)}static async delete(t,e){await a.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A}; +//# sourceMappingURL=apiKey.12cb6e13.js.map diff --git a/abstra_statics/dist/assets/apiKey.e2e0503b.js b/abstra_statics/dist/assets/apiKey.e2e0503b.js deleted file mode 100644 index 4dd5ef9dd5..0000000000 --- a/abstra_statics/dist/assets/apiKey.e2e0503b.js +++ /dev/null @@ -1,2 +0,0 @@ -var i=Object.defineProperty;var o=(s,t,e)=>t in s?i(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var d=(s,t,e)=>(o(s,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.8032b20a.js";import"./index.8c3f27aa.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="a6982503-aec2-4443-9bc2-2577d4110fdc",s._sentryDebugIdIdentifier="sentry-dbid-a6982503-aec2-4443-9bc2-2577d4110fdc")}catch{}})();class u{constructor(){d(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return a.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return a.get(`projects/${t}/${this.urlPath}`)}}const r=new u;class n{constructor(t){this.dto=t}static async list(t){return(await r.list(t)).map(c=>new n(c))}static async create(t){const e=await r.create(t);return new n(e)}static async delete(t,e){await r.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A}; -//# sourceMappingURL=apiKey.e2e0503b.js.map diff --git a/abstra_statics/dist/assets/asyncComputed.703c33fd.js b/abstra_statics/dist/assets/asyncComputed.703c33fd.js new file mode 100644 index 0000000000..a42d26f6fe --- /dev/null +++ b/abstra_statics/dist/assets/asyncComputed.703c33fd.js @@ -0,0 +1,2 @@ +import{R as c,f as l}from"./index.d0f12294.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="04296fad-a506-44c6-a38e-be75c5032830",r._sentryDebugIdIdentifier="sentry-dbid-04296fad-a506-44c6-a38e-be75c5032830")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),a=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(a));o();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:o}};export{i as a}; +//# sourceMappingURL=asyncComputed.703c33fd.js.map diff --git a/abstra_statics/dist/assets/asyncComputed.cfc0cdaf.js b/abstra_statics/dist/assets/asyncComputed.cfc0cdaf.js deleted file mode 100644 index f42d41f781..0000000000 --- a/abstra_statics/dist/assets/asyncComputed.cfc0cdaf.js +++ /dev/null @@ -1,2 +0,0 @@ -import{R as d,f as l}from"./index.8c3f27aa.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="9ecc7175-85cc-4bdf-b303-290bb5ca8261",r._sentryDebugIdIdentifier="sentry-dbid-9ecc7175-85cc-4bdf-b303-290bb5ca8261")}catch{}})();const i=r=>{const e=d({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),s=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(s));o();const u=l(()=>e.value.loading),a=l(()=>e.value.result),c=l(()=>e.value.error);return{loading:u,result:a,error:c,refetch:o}};export{i as a}; -//# sourceMappingURL=asyncComputed.cfc0cdaf.js.map diff --git a/abstra_statics/dist/assets/colorHelpers.0ac76147.js b/abstra_statics/dist/assets/colorHelpers.0ac76147.js deleted file mode 100644 index 218c3a1b60..0000000000 --- a/abstra_statics/dist/assets/colorHelpers.0ac76147.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="341dae8d-6479-4692-b3a3-f10c6b4af90f",t._sentryDebugIdIdentifier="sentry-dbid-341dae8d-6479-4692-b3a3-f10c6b4af90f")}catch{}})();function p(t,e){const{r:n,g:r,b:a,usePound:o}=f(t);return w(c(n,-e),c(r,-e),c(a,-e),o)}function c(t,e){const n=t*(100+e*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(t){return t.startsWith("#")||t.match(/^(rgb|hsl)/)}const v=(t,e)=>y(p(y(t),e)),P=t=>k(t)?v(t,.1):p(t,.1);function k(t){const{r:e,g:n,b:r}=f(t);return e*.299+n*.587+r*.114<186}function f(t){let e=!1;t[0]=="#"&&(t=t.slice(1),e=!0);const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:e}}function y(t){const{r:e,g:n,b:r,usePound:a}=f(t);return w(255-e,255-n,255-r,a)}const w=(t,e,n,r=!0)=>(r?"#":"")+(n|e<<8|t<<16).toString(16).padStart(6,"0");function _(t){return new Promise((e,n)=>{const r=document.createElement("img");r.src=t,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let a=0;r.onerror=o=>n(new Error(`Failed to load image: ${o}`)),r.onload=()=>{const{width:o,height:g}=r,s=document.createElement("canvas");s.width=o,s.height=g;const u=s.getContext("2d");if(!u)return e(!1);u.drawImage(r,0,0);const I=u.getImageData(0,0,s.width,s.height),{data:d}=I;let l,b,h,m;for(let i=0,x=d.length;i255?255:n<0?0:Math.round(n)}function E(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}const v=(e,t)=>y(p(y(e),t)),P=e=>k(e)?v(e,.1):p(e,.1);function k(e){const{r:t,g:n,b:r}=g(e);return t*.299+n*.587+r*.114<186}function g(e){let t=!1;e[0]=="#"&&(e=e.slice(1),t=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:t}}function y(e){const{r:t,g:n,b:r,usePound:o}=g(e);return w(255-t,255-n,255-r,o)}const w=(e,t,n,r=!0)=>(r?"#":"")+(n|t<<8|e<<16).toString(16).padStart(6,"0");function _(e){return new Promise((t,n)=>{const r=document.createElement("img");r.src=e,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:f}=r,a=document.createElement("canvas");a.width=s,a.height=f;const c=a.getContext("2d");if(!c)return t(!1);c.drawImage(r,0,0);const I=c.getImageData(0,0,a.width,a.height),{data:d}=I;let l,b,h,m;for(let i=0,x=d.length;i()=>{t=null,e(...o)},l=function(){if(t==null){for(var o=arguments.length,c=new Array(o),d=0;d{Ut.cancel(t),t=null},l}function Nt(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function El(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function Pl(e,t,n){if(n!==void 0&&t.bottoml.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},xt.push(n),Xo.forEach(l=>{n.eventHandlers[l]=An(e,l,()=>{n.affixList.forEach(o=>{const{lazyUpdatePosition:c}=o.exposed;c()},(l==="touchstart"||l==="touchmove")&&In?{passive:!0}:!1)})}))}function Fl(e){const t=xt.find(n=>{const l=n.affixList.some(o=>o===e);return l&&(n.affixList=n.affixList.filter(o=>o!==e)),l});t&&t.affixList.length===0&&(xt=xt.filter(n=>n!==t),Xo.forEach(n=>{const l=t.eventHandlers[n];l&&l.remove&&l.remove()}))}const Ks=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},Gs=ye("Affix",e=>{const t=$e(e,{zIndexPopup:e.zIndexBase+10});return[Ks(t)]});function Us(){return typeof window<"u"?window:null}var pt;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(pt||(pt={}));const Xs=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Us},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),Ys=U({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:Xs(),setup(e,t){let{slots:n,emit:l,expose:o,attrs:c}=t;const d=ee(),i=ee(),r=wt({affixStyle:void 0,placeholderStyle:void 0,status:pt.None,lastAffix:!1,prevTarget:null,timeout:null}),a=_i(),u=O(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),f=O(()=>e.offsetBottom),g=()=>{const{status:k,lastAffix:T}=r,{target:x}=e;if(k!==pt.Prepare||!i.value||!d.value||!x)return;const A=x();if(!A)return;const S={status:pt.None},M=Nt(d.value);if(M.top===0&&M.left===0&&M.width===0&&M.height===0)return;const F=Nt(A),I=El(M,F,u.value),w=Pl(M,F,f.value);if(!(M.top===0&&M.left===0&&M.width===0&&M.height===0)){if(I!==void 0){const $=`${M.width}px`,E=`${M.height}px`;S.affixStyle={position:"fixed",top:I,width:$,height:E},S.placeholderStyle={width:$,height:E}}else if(w!==void 0){const $=`${M.width}px`,E=`${M.height}px`;S.affixStyle={position:"fixed",bottom:w,width:$,height:E},S.placeholderStyle={width:$,height:E}}S.lastAffix=!!S.affixStyle,T!==S.lastAffix&&l("change",S.lastAffix),p(r,S)}},v=()=>{p(r,{status:pt.Prepare,affixStyle:void 0,placeholderStyle:void 0}),a.update()},h=Fn(()=>{v()}),m=Fn(()=>{const{target:k}=e,{affixStyle:T}=r;if(k&&T){const x=k();if(x&&d.value){const A=Nt(x),S=Nt(d.value),M=El(S,A,u.value),F=Pl(S,A,f.value);if(M!==void 0&&T.top===M||F!==void 0&&T.bottom===F)return}}v()});o({updatePosition:h,lazyUpdatePosition:m}),se(()=>e.target,k=>{const T=(k==null?void 0:k())||null;r.prevTarget!==T&&(Fl(a),T&&(Ol(T,a),h()),r.prevTarget=T)}),se(()=>[e.offsetTop,e.offsetBottom],h),Qe(()=>{const{target:k}=e;k&&(r.timeout=setTimeout(()=>{Ol(k(),a),h()}))}),Qt(()=>{g()}),Di(()=>{clearTimeout(r.timeout),Fl(a),h.cancel(),m.cancel()});const{prefixCls:C}=ge("affix",e),[b,y]=Gs(C);return()=>{var k;const{affixStyle:T,placeholderStyle:x}=r,A=G({[C.value]:T,[y.value]:!0}),S=Oe(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return b(s(zi,{onResize:h},{default:()=>[s("div",P(P(P({},S),c),{},{ref:d}),[T&&s("div",{style:x,"aria-hidden":"true"},null),s("div",{class:A,ref:i,style:T},[(k=n.default)===null||k===void 0?void 0:k.call(n)])])]}))}}}),Yo=Je(Ys);function Rt(){}const qo=Symbol("anchorContextKey"),qs=e=>{nt(qo,e)},Zs=()=>ut(qo,{registerLink:Rt,unregisterLink:Rt,scrollTo:Rt,activeLink:O(()=>""),handleClick:Rt,direction:O(()=>"vertical")}),Js=qs,Qs=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:l,lineWidthBold:o,colorPrimary:c,lineType:d,colorSplit:i}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:p(p({},Me(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":p(p({},Mt),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${o}px ${d} ${i}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${l} ease-in-out`,width:o,backgroundColor:c,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},ec=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:l,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:l,backgroundColor:o}}}}},tc=ye("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:l,paddingXXS:o}=e,c=$e(e,{holderOffsetBlock:o,anchorPaddingBlock:o,anchorPaddingBlockSecondary:o/2,anchorPaddingInline:l,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[Qs(c),ec(c)]}),nc=()=>({prefixCls:String,href:String,title:Ne(),target:String,customTitleProps:Ee()}),Jn=U({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:we(nc(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:l}=t,o=null;const{handleClick:c,scrollTo:d,unregisterLink:i,registerLink:r,activeLink:a}=Zs(),{prefixCls:u}=ge("anchor",e),f=g=>{const{href:v}=e;c(g,{title:o,href:v}),d(v)};return se(()=>e.href,(g,v)=>{et(()=>{i(v),r(g)})}),Qe(()=>{r(e.href)}),Fe(()=>{i(e.href)}),()=>{var g;const{href:v,target:h,title:m=n.title,customTitleProps:C={}}=e,b=u.value;o=typeof m=="function"?m(C):m;const y=a.value===v,k=G(`${b}-link`,{[`${b}-link-active`]:y},l.class),T=G(`${b}-link-title`,{[`${b}-link-title-active`]:y});return s("div",P(P({},l),{},{class:k}),[s("a",{class:T,href:v,title:typeof o=="string"?o:"",target:h,onClick:f},[n.customTitle?n.customTitle(C):o]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}});function lc(){return window}function Bl(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const Nl=/#([\S ]+)$/,oc=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:Ie(),direction:z.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),ot=U({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:oc(),setup(e,t){let{emit:n,attrs:l,slots:o,expose:c}=t;const{prefixCls:d,getTargetContainer:i,direction:r}=ge("anchor",e),a=O(()=>{var S;return(S=e.direction)!==null&&S!==void 0?S:"vertical"}),u=te(null),f=te(),g=wt({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),v=te(null),h=O(()=>{const{getContainer:S}=e;return S||(i==null?void 0:i.value)||lc}),m=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const F=[],I=h.value();return g.links.forEach(w=>{const $=Nl.exec(w.toString());if(!$)return;const E=document.getElementById($[1]);if(E){const R=Bl(E,I);RE.top>$.top?E:$).link:""},C=S=>{const{getCurrentAnchor:M}=e;v.value!==S&&(v.value=typeof M=="function"?M(S):S,n("change",S))},b=S=>{const{offsetTop:M,targetOffset:F}=e;C(S);const I=Nl.exec(S);if(!I)return;const w=document.getElementById(I[1]);if(!w)return;const $=h.value(),E=mo($,!0),R=Bl(w,$);let D=E+R;D-=F!==void 0?F:M||0,g.animating=!0,bo(D,{callback:()=>{g.animating=!1},getContainer:h.value})};c({scrollTo:b});const y=()=>{if(g.animating)return;const{offsetTop:S,bounds:M,targetOffset:F}=e,I=m(F!==void 0?F:S||0,M);C(I)},k=()=>{const S=f.value.querySelector(`.${d.value}-link-title-active`);if(S&&u.value){const M=a.value==="horizontal";u.value.style.top=M?"":`${S.offsetTop+S.clientHeight/2}px`,u.value.style.height=M?"":`${S.clientHeight}px`,u.value.style.left=M?`${S.offsetLeft}px`:"",u.value.style.width=M?`${S.clientWidth}px`:"",M&&Hi(S,{scrollMode:"if-needed",block:"nearest"})}};Js({registerLink:S=>{g.links.includes(S)||g.links.push(S)},unregisterLink:S=>{const M=g.links.indexOf(S);M!==-1&&g.links.splice(M,1)},activeLink:v,scrollTo:b,handleClick:(S,M)=>{n("click",S,M)},direction:a}),Qe(()=>{et(()=>{const S=h.value();g.scrollContainer=S,g.scrollEvent=An(g.scrollContainer,"scroll",y),y()})}),Fe(()=>{g.scrollEvent&&g.scrollEvent.remove()}),Qt(()=>{if(g.scrollEvent){const S=h.value();g.scrollContainer!==S&&(g.scrollContainer=S,g.scrollEvent.remove(),g.scrollEvent=An(g.scrollContainer,"scroll",y),y())}k()});const T=S=>Array.isArray(S)?S.map(M=>{const{children:F,key:I,href:w,target:$,class:E,style:R,title:D}=M;return s(Jn,{key:I,href:w,target:$,class:E,style:R,title:D,customTitleProps:M},{default:()=>[a.value==="vertical"?T(F):null],customTitle:o.customTitle})}):null,[x,A]=tc(d);return()=>{var S;const{offsetTop:M,affix:F,showInkInFixed:I}=e,w=d.value,$=G(`${w}-ink`,{[`${w}-ink-visible`]:v.value}),E=G(A.value,e.wrapperClass,`${w}-wrapper`,{[`${w}-wrapper-horizontal`]:a.value==="horizontal",[`${w}-rtl`]:r.value==="rtl"}),R=G(w,{[`${w}-fixed`]:!F&&!I}),D=p({maxHeight:M?`calc(100vh - ${M}px)`:"100vh"},e.wrapperStyle),V=s("div",{class:E,style:D,ref:f},[s("div",{class:R},[s("span",{class:$,ref:u},null),Array.isArray(e.items)?T(e.items):(S=o.default)===null||S===void 0?void 0:S.call(o)])]);return x(F?s(Yo,P(P({},l),{},{offsetTop:M,target:h.value}),{default:()=>[V]}):V)}}});ot.Link=Jn;ot.install=function(e){return e.component(ot.name,ot),e.component(ot.Link.name,ot.Link),e};const Qn=()=>null;Qn.isSelectOption=!0;Qn.displayName="AAutoCompleteOption";const mt=Qn,el=()=>null;el.isSelectOptGroup=!0;el.displayName="AAutoCompleteOptGroup";const _t=el;function ic(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const ac=()=>p(p({},Oe(ji(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),rc=mt,sc=_t,pn=U({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:ac(),slots:Object,setup(e,t){let{slots:n,attrs:l,expose:o}=t;Ct(),Ct(),Ct(!e.dropdownClassName);const c=te(),d=()=>{var u;const f=Pt((u=n.default)===null||u===void 0?void 0:u.call(n));return f.length?f[0]:void 0};o({focus:()=>{var u;(u=c.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=c.value)===null||u===void 0||u.blur()}});const{prefixCls:a}=ge("select",e);return()=>{var u,f,g;const{size:v,dataSource:h,notFoundContent:m=(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)}=e;let C;const{class:b}=l,y={[b]:!!b,[`${a.value}-lg`]:v==="large",[`${a.value}-sm`]:v==="small",[`${a.value}-show-search`]:!0,[`${a.value}-auto-complete`]:!0};if(e.options===void 0){const T=((f=n.dataSource)===null||f===void 0?void 0:f.call(n))||((g=n.options)===null||g===void 0?void 0:g.call(n))||[];T.length&&ic(T[0])?C=T:C=h?h.map(x=>{if(So(x))return x;switch(typeof x){case"string":return s(mt,{key:x,value:x},{default:()=>[x]});case"object":return s(mt,{key:x.value,value:x.value},{default:()=>[x.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const k=Oe(p(p(p({},e),l),{mode:En.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:d,notFoundContent:m,class:y,popupClassName:e.popupClassName||e.dropdownClassName,ref:c}),["dataSource","loading"]);return s(En,k,P({default:()=>[C]},Oe(n,["default","dataSource","options"])))}}}),cc=p(pn,{Option:mt,OptGroup:_t,install(e){return e.component(pn.name,pn),e.component(mt.displayName,mt),e.component(_t.displayName,_t),e}}),uc=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},dc=function(e){return/[height|width]$/.test(e)},Rl=function(e){let t="";const n=Object.keys(e);return n.forEach(function(l,o){let c=e[l];l=uc(l),dc(l)&&typeof c=="number"&&(c=c+"px"),c===!0?t+=l:c===!1?t+="not "+l:t+="("+l+": "+c+")",o{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},qt=e=>{const t=[],n=Jo(e),l=Qo(e);for(let o=n;oe.currentSlide-gc(e),Qo=e=>e.currentSlide+vc(e),gc=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,vc=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Nn=e=>e&&e.offsetWidth||0,tl=e=>e&&e.offsetHeight||0,ei=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const l=e.startX-e.curX,o=e.startY-e.curY,c=Math.atan2(o,l);return n=Math.round(c*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},on=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},vn=(e,t)=>{const n={};return t.forEach(l=>n[l]=e[l]),n},mc=e=>{const t=e.children.length,n=e.listRef,l=Math.ceil(Nn(n)),o=e.trackRef,c=Math.ceil(Nn(o));let d;if(e.vertical)d=l;else{let v=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(v*=l/100),d=Math.ceil((l-v)/e.slidesToShow)}const i=n&&tl(n.querySelector('[data-index="0"]')),r=i*e.slidesToShow;let a=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(a=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const f=qt(p(p({},e),{currentSlide:a,lazyLoadedList:u}));u=u.concat(f);const g={slideCount:t,slideWidth:d,listWidth:l,trackWidth:c,currentSlide:a,slideHeight:i,listHeight:r,lazyLoadedList:u};return e.autoplaying===null&&e.autoplay&&(g.autoplaying="playing"),g},bc=e=>{const{waitForAnimate:t,animating:n,fade:l,infinite:o,index:c,slideCount:d,lazyLoad:i,currentSlide:r,centerMode:a,slidesToScroll:u,slidesToShow:f,useCSS:g}=e;let{lazyLoadedList:v}=e;if(t&&n)return{};let h=c,m,C,b,y={},k={};const T=o?c:Bn(c,0,d-1);if(l){if(!o&&(c<0||c>=d))return{};c<0?h=c+d:c>=d&&(h=c-d),i&&v.indexOf(h)<0&&(v=v.concat(h)),y={animating:!0,currentSlide:h,lazyLoadedList:v,targetSlide:h},k={animating:!1,targetSlide:h}}else m=h,h<0?(m=h+d,o?d%u!==0&&(m=d-d%u):m=0):!on(e)&&h>r?h=m=r:a&&h>=d?(h=o?d:d-1,m=o?0:d-1):h>=d&&(m=h-d,o?d%u!==0&&(m=0):m=d-f),!o&&h+f>=d&&(m=d-f),C=It(p(p({},e),{slideIndex:h})),b=It(p(p({},e),{slideIndex:m})),o||(C===b&&(h=m),C=b),i&&(v=v.concat(qt(p(p({},e),{currentSlide:h})))),g?(y={animating:!0,currentSlide:m,trackStyle:ti(p(p({},e),{left:C})),lazyLoadedList:v,targetSlide:T},k={animating:!1,currentSlide:m,trackStyle:At(p(p({},e),{left:b})),swipeLeft:null,targetSlide:T}):y={currentSlide:m,trackStyle:At(p(p({},e),{left:b})),lazyLoadedList:v,targetSlide:T};return{state:y,nextState:k}},Sc=(e,t)=>{let n,l,o;const{slidesToScroll:c,slidesToShow:d,slideCount:i,currentSlide:r,targetSlide:a,lazyLoad:u,infinite:f}=e,v=i%c!==0?0:(i-r)%c;if(t.message==="previous")l=v===0?c:d-v,o=r-l,u&&!f&&(n=r-l,o=n===-1?i-1:n),f||(o=a-c);else if(t.message==="next")l=v===0?c:v,o=r+l,u&&!f&&(o=(r+c)%i+v),f||(o=a+c);else if(t.message==="dots")o=t.index*t.slidesToScroll;else if(t.message==="children"){if(o=t.index,f){const h=Mc(p(p({},e),{targetSlide:o}));o>t.currentSlide&&h==="left"?o=o-i:oe.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",wc=(e,t,n)=>(e.target.tagName==="IMG"&&bt(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),Cc=(e,t)=>{const{scrolling:n,animating:l,vertical:o,swipeToSlide:c,verticalSwiping:d,rtl:i,currentSlide:r,edgeFriction:a,edgeDragged:u,onEdge:f,swiped:g,swiping:v,slideCount:h,slidesToScroll:m,infinite:C,touchObject:b,swipeEvent:y,listHeight:k,listWidth:T}=t;if(n)return;if(l)return bt(e);o&&c&&d&&bt(e);let x,A={};const S=It(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));const M=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!d&&!v&&M>10)return{scrolling:!0};d&&(b.swipeLength=M);let F=(i?-1:1)*(b.curX>b.startX?1:-1);d&&(F=b.curY>b.startY?1:-1);const I=Math.ceil(h/m),w=ei(t.touchObject,d);let $=b.swipeLength;return C||(r===0&&(w==="right"||w==="down")||r+1>=I&&(w==="left"||w==="up")||!on(t)&&(w==="left"||w==="up"))&&($=b.swipeLength*a,u===!1&&f&&(f(w),A.edgeDragged=!0)),!g&&y&&(y(w),A.swiped=!0),o?x=S+$*(k/T)*F:i?x=S-$*F:x=S+$*F,d&&(x=S+$*F),A=p(p({},A),{touchObject:b,swipeLeft:x,trackStyle:At(p(p({},t),{left:x}))}),Math.abs(b.curX-b.startX)10&&(A.swiping=!0,bt(e)),A},xc=(e,t)=>{const{dragging:n,swipe:l,touchObject:o,listWidth:c,touchThreshold:d,verticalSwiping:i,listHeight:r,swipeToSlide:a,scrolling:u,onSwipe:f,targetSlide:g,currentSlide:v,infinite:h}=t;if(!n)return l&&bt(e),{};const m=i?r/d:c/d,C=ei(o,i),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!o.swipeLength)return b;if(o.swipeLength>m){bt(e),f&&f(C);let y,k;const T=h?v:g;switch(C){case"left":case"up":k=T+Dl(t),y=a?Ll(t,k):k,b.currentDirection=0;break;case"right":case"down":k=T-Dl(t),y=a?Ll(t,k):k,b.currentDirection=1;break;default:y=T}b.triggerSlideHandler=y}else{const y=It(t);b.trackStyle=ti(p(p({},t),{left:y}))}return b},$c=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,l=e.infinite?e.slidesToShow*-1:0;const o=[];for(;n{const n=$c(e);let l=0;if(t>n[n.length-1])t=n[n.length-1];else for(const o in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const l=e.listRef,o=l.querySelectorAll&&l.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(i=>{if(e.vertical){if(i.offsetTop+tl(i)/2>e.swipeLeft*-1)return n=i,!1}else if(i.offsetLeft-t+Nn(i)/2>e.swipeLeft*-1)return n=i,!1;return!0}),!n)return 0;const c=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-c)||1}else return e.slidesToScroll},nl=(e,t)=>t.reduce((n,l)=>n&&e.hasOwnProperty(l),!0)?null:console.error("Keys Missing:",e),At=e=>{nl(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const l=e.slideCount+2*e.slidesToShow;e.vertical?n=l*e.slideHeight:t=kc(e)*e.slideWidth;let o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const c=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",d=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=p(p({},o),{WebkitTransform:c,transform:d,msTransform:i})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t+"px"),n&&(o.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},ti=e=>{nl(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=At(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},It=e=>{if(e.unslick)return 0;nl(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:l,centerMode:o,slideCount:c,slidesToShow:d,slidesToScroll:i,slideWidth:r,listWidth:a,variableWidth:u,slideHeight:f,fade:g,vertical:v}=e;let h=0,m,C,b=0;if(g||e.slideCount===1)return 0;let y=0;if(l?(y=-Ze(e),c%i!==0&&t+i>c&&(y=-(t>c?d-(t-c):c%i)),o&&(y+=parseInt(d/2))):(c%i!==0&&t+i>c&&(y=d-c%i),o&&(y=parseInt(d/2))),h=y*r,b=y*f,v?m=t*f*-1+b:m=t*r*-1+h,u===!0){let k;const T=n;if(k=t+Ze(e),C=T&&T.childNodes[k],m=C?C.offsetLeft*-1:0,o===!0){k=l?t+Ze(e):t,C=T&&T.children[k],m=0;for(let x=0;xe.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Ht=e=>e.unslick||!e.infinite?0:e.slideCount,kc=e=>e.slideCount===1?1:Ze(e)+e.slideCount+Ht(e),Mc=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Tc(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:l,centerPadding:o}=e;if(n){let c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),l&&t%2===0&&(c+=1),c}return l?0:t-1},Ac=e=>{let{slidesToShow:t,centerMode:n,rtl:l,centerPadding:o}=e;if(n){let c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),!l&&t%2===0&&(c+=1),c}return l?t-1:0},zl=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),mn=e=>{let t,n,l,o;e.rtl?o=e.slideCount-1-e.index:o=e.index;const c=o<0||o>=e.slideCount;e.centerMode?(l=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-l-1&&o<=e.currentSlide+l&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?d=e.targetSlide-e.slideCount:d=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":c,"slick-current":o===d}},Ic=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},bn=(e,t)=>e.key+"-"+t,Ec=function(e,t){let n;const l=[],o=[],c=[],d=t.length,i=Jo(e),r=Qo(e);return t.forEach((a,u)=>{let f;const g={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?f=a:f=s("div");const v=Ic(p(p({},e),{index:u})),h=f.props.class||"";let m=mn(p(p({},e),{index:u}));if(l.push(un(f,{key:"original"+bn(f,u),tabindex:"-1","data-index":u,"aria-hidden":!m["slick-active"],class:G(m,h),style:p(p({outline:"none"},f.props.style||{}),v),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(g)}})),e.infinite&&e.fade===!1){const C=d-u;C<=Ze(e)&&d!==e.slidesToShow&&(n=-C,n>=i&&(f=a),m=mn(p(p({},e),{index:n})),o.push(un(f,{key:"precloned"+bn(f,n),class:G(m,h),tabindex:"-1","data-index":n,"aria-hidden":!m["slick-active"],style:p(p({},f.props.style||{}),v),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(g)}}))),d!==e.slidesToShow&&(n=d+u,n{e.focusOnSelect&&e.focusOnSelect(g)}})))}}),e.rtl?o.concat(l,c).reverse():o.concat(l,c)},ni=(e,t)=>{let{attrs:n,slots:l}=t;const o=Ec(n,Pt(l==null?void 0:l.default())),{onMouseenter:c,onMouseover:d,onMouseleave:i}=n,r={onMouseenter:c,onMouseover:d,onMouseleave:i},a=p({class:"slick-track",style:n.trackStyle},r);return s("div",a,[o])};ni.inheritAttrs=!1;const Pc=ni,Oc=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},li=(e,t)=>{let{attrs:n}=t;const{slideCount:l,slidesToScroll:o,slidesToShow:c,infinite:d,currentSlide:i,appendDots:r,customPaging:a,clickHandler:u,dotsClass:f,onMouseenter:g,onMouseover:v,onMouseleave:h}=n,m=Oc({slideCount:l,slidesToScroll:o,slidesToShow:c,infinite:d}),C={onMouseenter:g,onMouseover:v,onMouseleave:h};let b=[];for(let y=0;y=A&&i<=T:i===A}),M={message:"dots",index:y,slidesToScroll:o,currentSlide:i};b=b.concat(s("li",{key:y,class:S},[St(a({i:y}),{onClick:F})]))}return St(r({dots:b}),p({class:f},C))};li.inheritAttrs=!1;const Fc=li;function oi(){}function ii(e,t,n){n&&n.preventDefault(),t(e,n)}const ai=(e,t)=>{let{attrs:n}=t;const{clickHandler:l,infinite:o,currentSlide:c,slideCount:d,slidesToShow:i}=n,r={"slick-arrow":!0,"slick-prev":!0};let a=function(v){ii({message:"previous"},l,v)};!o&&(c===0||d<=i)&&(r["slick-disabled"]=!0,a=oi);const u={key:"0","data-role":"none",class:r,style:{display:"block"},onClick:a},f={currentSlide:c,slideCount:d};let g;return n.prevArrow?g=St(n.prevArrow(p(p({},u),f)),{key:"0",class:r,style:{display:"block"},onClick:a},!1):g=s("button",P({key:"0",type:"button"},u),[" ",at("Previous")]),g};ai.inheritAttrs=!1;const ri=(e,t)=>{let{attrs:n}=t;const{clickHandler:l,currentSlide:o,slideCount:c}=n,d={"slick-arrow":!0,"slick-next":!0};let i=function(f){ii({message:"next"},l,f)};on(n)||(d["slick-disabled"]=!0,i=oi);const r={key:"1","data-role":"none",class:G(d),style:{display:"block"},onClick:i},a={currentSlide:o,slideCount:c};let u;return n.nextArrow?u=St(n.nextArrow(p(p({},r),a)),{key:"1",class:G(d),style:{display:"block"},onClick:i},!1):u=s("button",P({key:"1",type:"button"},r),[" ",at("Next")]),u};ri.inheritAttrs=!1;var Bc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=p({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=qt(p(p({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=p({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Wi(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=qt(p(p({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=tl(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Vi(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!Boolean(this.track))return;const n=p(p({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const l=mc(e);e=p(p(p({},e),l),{slideIndex:l.currentSlide});const o=It(e);e=p(p({},e),{left:o});const c=At(e);(t||this.children.length!==e.children.length)&&(l.trackStyle=c),this.setState(l,n)},ssrInit(){const e=this.children;if(this.variableWidth){let r=0,a=0;const u=[],f=Ze(p(p(p({},this.$props),this.$data),{slideCount:e.length})),g=Ht(p(p(p({},this.$props),this.$data),{slideCount:e.length}));e.forEach(h=>{var m,C;const b=((C=(m=h.props.style)===null||m===void 0?void 0:m.width)===null||C===void 0?void 0:C.split("px")[0])||0;u.push(b),r+=b});for(let h=0;h{const o=()=>++n&&n>=t&&this.onWindowResized();if(!l.onclick)l.onclick=()=>l.parentNode.focus();else{const c=l.onclick;l.onclick=()=>{c(),l.parentNode.focus()}}l.onload||(this.$props.lazyLoad?l.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(l.onload=o,l.onerror=()=>{o(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=p(p({},this.$props),this.$data);for(let n=this.currentSlide;n=-Ze(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:l,beforeChange:o,speed:c,afterChange:d}=this.$props,{state:i,nextState:r}=bc(p(p(p({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!i)return;o&&o(l,i.currentSlide);const a=i.lazyLoadedList.filter(u=>this.lazyLoadedList.indexOf(u)<0);this.$attrs.onLazyLoad&&a.length>0&&this.__emit("lazyLoad",a),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),d&&d(l),delete this.animationEndCallback),this.setState(i,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),r&&(this.animationEndCallback=setTimeout(()=>{const{animating:u}=r,f=Bc(r,["animating"]);this.setState(f,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:u}),10)),d&&d(i.currentSlide),delete this.animationEndCallback})},c))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=p(p({},this.$props),this.$data),l=Sc(n,e);if(!(l!==0&&!l)&&(t===!0?this.slideHandler(l,t):this.slideHandler(l),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const o=this.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=yc(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=wc(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=Cc(e,p(p(p({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));!t||(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=xc(e,p(p(p({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(on(p(p({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return s("button",null,[t+1])},appendDots(e){let{dots:t}=e;return s("ul",{style:{display:"block"}},[t])}},render(){const e=G("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=p(p({},this.$props),this.$data);let n=vn(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:l}=this.$props;n=p(p({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:l?this.onTrackLeave:Ae,onMouseover:l?this.onTrackOver:Ae});let o;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let C=vn(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);C.customPaging=this.customPaging,C.appendDots=this.appendDots;const{customPaging:b,appendDots:y}=this.$slots;b&&(C.customPaging=b),y&&(C.appendDots=y);const{pauseOnDotsHover:k}=this.$props;C=p(p({},C),{clickHandler:this.changeSlide,onMouseover:k?this.onDotsOver:Ae,onMouseleave:k?this.onDotsLeave:Ae}),o=s(Fc,C,null)}let c,d;const i=vn(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);i.clickHandler=this.changeSlide;const{prevArrow:r,nextArrow:a}=this.$slots;r&&(i.prevArrow=r),a&&(i.nextArrow=a),this.arrows&&(c=s(ai,i,null),d=s(ri,i,null));let u=null;this.vertical&&(u={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let f=null;this.vertical===!1?this.centerMode===!0&&(f={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(f={padding:this.centerPadding+" 0px"});const g=p(p({},u),f),v=this.touchMove;let h={ref:this.listRefHandler,class:"slick-list",style:g,onClick:this.clickHandler,onMousedown:v?this.swipeStart:Ae,onMousemove:this.dragging&&v?this.swipeMove:Ae,onMouseup:v?this.swipeEnd:Ae,onMouseleave:this.dragging&&v?this.swipeEnd:Ae,[In?"onTouchstartPassive":"onTouchstart"]:v?this.swipeStart:Ae,[In?"onTouchmovePassive":"onTouchmove"]:this.dragging&&v?this.swipeMove:Ae,onTouchend:v?this.touchEnd:Ae,onTouchcancel:this.dragging&&v?this.swipeEnd:Ae,onKeydown:this.accessibility?this.keyHandler:Ae},m={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(h={class:"slick-list",ref:this.listRefHandler},m={class:e}),s("div",m,[this.unslick?"":c,s("div",h,[s(Pc,n,{default:()=>[this.children]})]),this.unslick?"":d,this.unslick?"":o])}},Rc=U({name:"Slider",mixins:[yo],inheritAttrs:!1,props:p({},Zo),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,l)=>n-l),e.forEach((n,l)=>{let o;l===0?o=gn({minWidth:0,maxWidth:n}):o=gn({minWidth:e[l-1]+1,maxWidth:n}),zl()&&this.media(o,()=>{this.setState({breakpoint:n})})});const t=gn({minWidth:e.slice(-1)[0]});zl()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),l=o=>{let{matches:c}=o;c&&t()};n.addListener(l),l(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:l})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(i=>i.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":p(p({},this.$props),n[0].settings)):t=p({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let l=Ki(this)||[];l=l.filter(i=>typeof i=="string"?!!i.trim():!!i),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const o=[];let c=null;for(let i=0;i=l.length));f+=1)u.push(St(l[f],{key:100*i+10*a+f,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));r.push(s("div",{key:10*i+a},[u]))}t.variableWidth?o.push(s("div",{key:i,style:{width:c}},[r])):o.push(s("div",{key:i},[r]))}if(t==="unslick"){const i="regular slider "+(this.className||"");return s("div",{class:i},[l])}else o.length<=t.slidesToShow&&(t.unslick=!0);const d=p(p(p({},this.$attrs),t),{children:o,ref:this.innerSliderRefHandler});return s(Nc,P(P({},d),{},{__propsSymbol__:[]}),this.$slots)}}),Lc=e=>{const{componentCls:t,antCls:n,carouselArrowSize:l,carouselDotOffset:o,marginXXS:c}=e,d=-l*1.25,i=c;return{[t]:p(p({},Me(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:l,height:l,marginTop:-l/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:d,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:d,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-i,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Dc=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:l}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:p(p({},o),{margin:`${l}px 0`,verticalAlign:"baseline",button:o,"&.slick-active":p(p({},o),{button:o})})}}}},zc=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},_c=ye("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,l=$e(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[Lc(l),Dc(l),zc(l)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var Hc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o({effect:be(),dots:Y(!0),vertical:Y(),autoplay:Y(),easing:String,beforeChange:J(),afterChange:J(),prefixCls:String,accessibility:Y(),nextArrow:z.any,prevArrow:z.any,pauseOnHover:Y(),adaptiveHeight:Y(),arrows:Y(!1),autoplaySpeed:Number,centerMode:Y(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Y(!1),fade:Y(),focusOnSelect:Y(),infinite:Y(),initialSlide:Number,lazyLoad:be(),rtl:Y(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Y(),swipeToSlide:Y(),swipeEvent:J(),touchMove:Y(),touchThreshold:Number,variableWidth:Y(),useCSS:Y(),slickGoTo:Number,responsive:Array,dotPosition:be(),verticalSwiping:Y(!1)}),Wc=U({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:jc(),setup(e,t){let{slots:n,attrs:l,expose:o}=t;const c=te();o({goTo:function(h){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var C;(C=c.value)===null||C===void 0||C.slickGoTo(h,m)},autoplay:h=>{var m,C;(C=(m=c.value)===null||m===void 0?void 0:m.innerSlider)===null||C===void 0||C.handleAutoPlay(h)},prev:()=>{var h;(h=c.value)===null||h===void 0||h.slickPrev()},next:()=>{var h;(h=c.value)===null||h===void 0||h.slickNext()},innerSlider:O(()=>{var h;return(h=c.value)===null||h===void 0?void 0:h.innerSlider})}),Re(()=>{Ct(e.vertical===void 0)});const{prefixCls:i,direction:r}=ge("carousel",e),[a,u]=_c(i),f=O(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),g=O(()=>f.value==="left"||f.value==="right"),v=O(()=>{const h="slick-dots";return G({[h]:!0,[`${h}-${f.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:h,arrows:m,draggable:C,effect:b}=e,{class:y,style:k}=l,T=Hc(l,["class","style"]),x=b==="fade"?!0:e.fade,A=G(i.value,{[`${i.value}-rtl`]:r.value==="rtl",[`${i.value}-vertical`]:g.value,[`${y}`]:!!y},u.value);return a(s("div",{class:A,style:k},[s(Rc,P(P(P({ref:c},e),T),{},{dots:!!h,dotsClass:v.value,arrows:m,draggable:C,fade:x,vertical:g.value}),n)]))}}}),Vc=Je(Wc),Kc={useBreakpoint:Gi},Gc=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:l,commentNestIndent:o,commentFontSizeBase:c,commentFontSizeSm:d,commentAuthorNameColor:i,commentAuthorTimeColor:r,commentActionColor:a,commentActionHoverColor:u,commentActionsMarginBottom:f,commentActionsMarginTop:g,commentContentDetailPMarginBottom:v}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:l},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:c,wordWrap:"break-word",["&-author"]:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:c,["& > a,& > span"]:{paddingRight:e.paddingXS,fontSize:d,lineHeight:"18px"},["&-name"]:{color:i,fontSize:c,transition:`color ${e.motionDurationSlow}`,["> *"]:{color:i,["&:hover"]:{color:i}}},["&-time"]:{color:r,whiteSpace:"nowrap",cursor:"auto"}},["&-detail p"]:{marginBottom:v,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:g,marginBottom:f,paddingLeft:0,["> li"]:{display:"inline-block",color:a,["> span"]:{marginRight:"10px",color:a,fontSize:d,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none",["&:hover"]:{color:u}}}},[`${t}-nested`]:{marginLeft:o},"&-rtl":{direction:"rtl"}}}},Uc=ye("Comment",e=>{const t=$e(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[Gc(t)]}),Xc=()=>({actions:Array,author:z.any,avatar:z.any,content:z.any,prefixCls:String,datetime:z.any}),Yc=U({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:Xc(),slots:Object,setup(e,t){let{slots:n,attrs:l}=t;const{prefixCls:o,direction:c}=ge("comment",e),[d,i]=Uc(o),r=(u,f)=>s("div",{class:`${u}-nested`},[f]),a=u=>!u||!u.length?null:u.map((g,v)=>s("li",{key:`action-${v}`},[g]));return()=>{var u,f,g,v,h,m,C,b,y,k,T;const x=o.value,A=(u=e.actions)!==null&&u!==void 0?u:(f=n.actions)===null||f===void 0?void 0:f.call(n),S=(g=e.author)!==null&&g!==void 0?g:(v=n.author)===null||v===void 0?void 0:v.call(n),M=(h=e.avatar)!==null&&h!==void 0?h:(m=n.avatar)===null||m===void 0?void 0:m.call(n),F=(C=e.content)!==null&&C!==void 0?C:(b=n.content)===null||b===void 0?void 0:b.call(n),I=(y=e.datetime)!==null&&y!==void 0?y:(k=n.datetime)===null||k===void 0?void 0:k.call(n),w=s("div",{class:`${x}-avatar`},[typeof M=="string"?s("img",{src:M,alt:"comment-avatar"},null):M]),$=A?s("ul",{class:`${x}-actions`},[a(Array.isArray(A)?A:[A])]):null,E=s("div",{class:`${x}-content-author`},[S&&s("span",{class:`${x}-content-author-name`},[S]),I&&s("span",{class:`${x}-content-author-time`},[I])]),R=s("div",{class:`${x}-content`},[E,s("div",{class:`${x}-content-detail`},[F]),$]),D=s("div",{class:`${x}-inner`},[w,R]),V=Pt((T=n.default)===null||T===void 0?void 0:T.call(n));return d(s("div",P(P({},l),{},{class:[x,{[`${x}-rtl`]:c.value==="rtl"},l.class,i.value]}),[D,V&&V.length?r(x,V):null]))}}}),qc=Je(Yc);var Zc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const Jc=Zc;function _l(e){for(var t=1;t({prefixCls:String,description:z.any,type:be("default"),shape:be("circle"),tooltip:z.any,href:String,target:J(),badge:Ee(),onClick:J()}),eu=()=>({prefixCls:be()}),tu=()=>p(p({},ol()),{trigger:be(),open:Y(),onOpenChange:J(),"onUpdate:open":J()}),nu=()=>p(p({},ol()),{prefixCls:String,duration:Number,target:J(),visibilityHeight:Number,onClick:J()}),lu=U({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:eu(),setup(e,t){let{attrs:n,slots:l}=t;return()=>{var o;const{prefixCls:c}=e,d=Wn((o=l.description)===null||o===void 0?void 0:o.call(l));return s("div",P(P({},n),{},{class:[n.class,`${c}-content`]}),[l.icon||d.length?s(Ve,null,[l.icon&&s("div",{class:`${c}-icon`},[l.icon()]),d.length?s("div",{class:`${c}-description`},[d]):null]):s("div",{class:`${c}-icon`},[s(si,null,null)])])}}}),ou=lu,ci=Symbol("floatButtonGroupContext"),iu=e=>(nt(ci,e),e),ui=()=>ut(ci,{shape:te()}),au=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Hl=au,ru=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:l,motionEaseInOutCirc:o}=e,c=`${t}-group`,d=new $l("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),i=new $l("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${c}-wrap`]:p({},Xi(`${c}-wrap`,d,i,l,!0))},{[`${c}-wrap`]:{[` +import{aa as Ut,ab as An,ac as In,ad as ye,ae as $e,af as Je,d as U,R as ee,E as wt,f as O,g as se,X as Qe,ag as Qt,ah as Di,ai as ge,aj as G,ak as Oe,b as s,al as P,am as zi,U as p,an as _i,W as nt,D as ut,ao as Mt,ap as Me,aq as we,ar as Fe,as as Ne,at as Ee,K as et,e as te,au as Ie,av as z,aw as mo,ax as bo,ay as Hi,az as Ct,aA as So,aB as En,aC as ji,aD as Pt,aE as un,aF as St,aG as at,aH as yo,aI as Wi,aJ as Vi,aK as Ki,aL as Re,aM as be,aN as Y,aO as J,aP as Gi,aQ as dt,aR as Wn,aS as Ve,aT as Ui,aU as $l,aV as Xi,aW as Vn,aX as Tt,aY as wo,aZ as Kn,a_ as Gn,a$ as Co,b0 as xo,b1 as $o,b2 as ko,b3 as Yi,b4 as qi,b5 as Zi,b6 as Mo,b7 as pe,b8 as he,b9 as To,ba as Ji,bb as Ao,bc as Io,bd as Eo,be as Qi,bf as Po,bg as Un,bh as Xn,bi as Oo,bj as Ot,bk as en,bl as Fo,bm as Bo,bn as rt,bo as No,bp as kl,bq as Ml,br as tn,bs as Ro,bt as ea,bu as Xt,bv as Yt,bw as Pn,bx as zt,by as nn,bz as Xe,bA as Lo,bB as Ye,bC as ta,bD as na,bE as la,bF as dn,bG as oa,bH as ia,bI as aa,bJ as ra,bK as sa,bL as Do,bM as ca,bN as ua,bO as Yn,V as qn,bP as Zn,bQ as zo,bR as _o,bS as da,bT as yt,H as We,bU as fa,bV as ha,bW as pa,bX as ga,bY as va,bZ as ma,b_ as ba,b$ as On,c0 as Sa,c1 as ya,L as ln,c2 as wa,c3 as Tl,c4 as Ca,c5 as xa,c6 as $a,c7 as ka,c8 as fn,c9 as Ma,ca as Ta,cb as Aa,cc as Ia,cd as Ea,ce as Pa,cf as Oa,cg as Fa,a9 as Ho,ch as Ba,ci as Na,cj as Ra,ck as Al,cl as jo,cm as La,a1 as Bt,cn as Da,co as za,cp as _a,cq as Ha,cr as ja,cs as Wa,ct as Va,cu as Ka,cv as Ga,A as Wo,cw as Ua,cx as Xa,cy as Ya,cz as qa,cA as Za,cB as Ja,cC as Qa,cD as er,cE as tr,cF as nr,cG as lr,cH as Vo,cI as or,cJ as ir,cK as ar,cL as lt,cM as Ko,cN as rr,cO as sr,cP as cr,cQ as ur,cR as dr,cS as fr,cT as hr,cU as pr,cV as gr,cW as vr,cX as mr,cY as br,cZ as Sr,c_ as yr,c$ as wr,d0 as Cr,d1 as xr,d2 as $r,d3 as kr,d4 as Mr,d5 as Tr,d6 as Ar,d7 as Ir,d8 as Er,d9 as Pr,da as Or,db as Fr,dc as Br,dd as Nr,de as Rr,df as Lr,dg as Dr,dh as zr,di as _r,dj as Hr,r as jr,o as Wr,c as Vr,w as Kr,u as Gr,k as Ur,T as Xr,m as Yr,P as qr,C as Zr,M as Jr,s as Qr,n as hn,p as es,q as ts,t as ns,v as ls}from"./index.d0f12294.js";import{A as os,a as is,r as Il}from"./router.375df57e.js";import{A as as}from"./index.289665f1.js";import{G as rs}from"./index.3e715bc1.js";import"./index.61f90e53.js";import{B as ss,A as cs,a as us,b as ds}from"./index.3b2f4dca.js";import{G as fs,M as hs}from"./index.a26d75c2.js";import{T as ps,A as gs}from"./index.05dd3c22.js";import{A as vs}from"./index.d4b99d43.js";import{D as ms,M as bs,W as Ss,R as ys,Q as ws}from"./dayjs.9c046fb9.js";import{A as Cs,D as xs}from"./index.c44d2714.js";import{A as $s}from"./index.a552d580.js";import{A as ks}from"./index.7c84a9f5.js";import{B as Go,i as Ms,R as Ts}from"./Badge.f6241be2.js";import{A as As,a as Is,I as Es}from"./index.81ae2c34.js";import{S as Uo,C as Ps,A as Os,a as Fs,b as Bs,c as Ns,d as Rs}from"./Card.2a8fe028.js";import{A as Ls}from"./index.a82e0ed1.js";import{A as Ds,S as zs}from"./index.2862b277.js";import{A as _s}from"./Avatar.f6415f7c.js";import{C as Hs,A as js}from"./CollapsePanel.40b6e69e.js";import{T as Ws,A as Vs}from"./TabPane.79f4882f.js";import"./gateway.ae1d6857.js";import"./popupNotifcation.a0a6244b.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="43bc7372-999d-45cb-9e2a-9a93a26a1bde",e._sentryDebugIdIdentifier="sentry-dbid-43bc7372-999d-45cb-9e2a-9a93a26a1bde")}catch{}})();function Fn(e){let t;const n=o=>()=>{t=null,e(...o)},l=function(){if(t==null){for(var o=arguments.length,c=new Array(o),d=0;d{Ut.cancel(t),t=null},l}function Nt(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function El(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function Pl(e,t,n){if(n!==void 0&&t.bottoml.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},xt.push(n),Xo.forEach(l=>{n.eventHandlers[l]=An(e,l,()=>{n.affixList.forEach(o=>{const{lazyUpdatePosition:c}=o.exposed;c()},(l==="touchstart"||l==="touchmove")&&In?{passive:!0}:!1)})}))}function Fl(e){const t=xt.find(n=>{const l=n.affixList.some(o=>o===e);return l&&(n.affixList=n.affixList.filter(o=>o!==e)),l});t&&t.affixList.length===0&&(xt=xt.filter(n=>n!==t),Xo.forEach(n=>{const l=t.eventHandlers[n];l&&l.remove&&l.remove()}))}const Ks=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},Gs=ye("Affix",e=>{const t=$e(e,{zIndexPopup:e.zIndexBase+10});return[Ks(t)]});function Us(){return typeof window<"u"?window:null}var pt;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(pt||(pt={}));const Xs=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Us},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),Ys=U({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:Xs(),setup(e,t){let{slots:n,emit:l,expose:o,attrs:c}=t;const d=ee(),i=ee(),r=wt({affixStyle:void 0,placeholderStyle:void 0,status:pt.None,lastAffix:!1,prevTarget:null,timeout:null}),a=_i(),u=O(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),f=O(()=>e.offsetBottom),g=()=>{const{status:k,lastAffix:T}=r,{target:x}=e;if(k!==pt.Prepare||!i.value||!d.value||!x)return;const A=x();if(!A)return;const S={status:pt.None},M=Nt(d.value);if(M.top===0&&M.left===0&&M.width===0&&M.height===0)return;const F=Nt(A),I=El(M,F,u.value),w=Pl(M,F,f.value);if(!(M.top===0&&M.left===0&&M.width===0&&M.height===0)){if(I!==void 0){const $=`${M.width}px`,E=`${M.height}px`;S.affixStyle={position:"fixed",top:I,width:$,height:E},S.placeholderStyle={width:$,height:E}}else if(w!==void 0){const $=`${M.width}px`,E=`${M.height}px`;S.affixStyle={position:"fixed",bottom:w,width:$,height:E},S.placeholderStyle={width:$,height:E}}S.lastAffix=!!S.affixStyle,T!==S.lastAffix&&l("change",S.lastAffix),p(r,S)}},v=()=>{p(r,{status:pt.Prepare,affixStyle:void 0,placeholderStyle:void 0}),a.update()},h=Fn(()=>{v()}),m=Fn(()=>{const{target:k}=e,{affixStyle:T}=r;if(k&&T){const x=k();if(x&&d.value){const A=Nt(x),S=Nt(d.value),M=El(S,A,u.value),F=Pl(S,A,f.value);if(M!==void 0&&T.top===M||F!==void 0&&T.bottom===F)return}}v()});o({updatePosition:h,lazyUpdatePosition:m}),se(()=>e.target,k=>{const T=(k==null?void 0:k())||null;r.prevTarget!==T&&(Fl(a),T&&(Ol(T,a),h()),r.prevTarget=T)}),se(()=>[e.offsetTop,e.offsetBottom],h),Qe(()=>{const{target:k}=e;k&&(r.timeout=setTimeout(()=>{Ol(k(),a),h()}))}),Qt(()=>{g()}),Di(()=>{clearTimeout(r.timeout),Fl(a),h.cancel(),m.cancel()});const{prefixCls:C}=ge("affix",e),[b,y]=Gs(C);return()=>{var k;const{affixStyle:T,placeholderStyle:x}=r,A=G({[C.value]:T,[y.value]:!0}),S=Oe(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return b(s(zi,{onResize:h},{default:()=>[s("div",P(P(P({},S),c),{},{ref:d}),[T&&s("div",{style:x,"aria-hidden":"true"},null),s("div",{class:A,ref:i,style:T},[(k=n.default)===null||k===void 0?void 0:k.call(n)])])]}))}}}),Yo=Je(Ys);function Rt(){}const qo=Symbol("anchorContextKey"),qs=e=>{nt(qo,e)},Zs=()=>ut(qo,{registerLink:Rt,unregisterLink:Rt,scrollTo:Rt,activeLink:O(()=>""),handleClick:Rt,direction:O(()=>"vertical")}),Js=qs,Qs=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:l,lineWidthBold:o,colorPrimary:c,lineType:d,colorSplit:i}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:p(p({},Me(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":p(p({},Mt),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${o}px ${d} ${i}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${l} ease-in-out`,width:o,backgroundColor:c,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},ec=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:l,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:l,backgroundColor:o}}}}},tc=ye("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:l,paddingXXS:o}=e,c=$e(e,{holderOffsetBlock:o,anchorPaddingBlock:o,anchorPaddingBlockSecondary:o/2,anchorPaddingInline:l,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[Qs(c),ec(c)]}),nc=()=>({prefixCls:String,href:String,title:Ne(),target:String,customTitleProps:Ee()}),Jn=U({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:we(nc(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:l}=t,o=null;const{handleClick:c,scrollTo:d,unregisterLink:i,registerLink:r,activeLink:a}=Zs(),{prefixCls:u}=ge("anchor",e),f=g=>{const{href:v}=e;c(g,{title:o,href:v}),d(v)};return se(()=>e.href,(g,v)=>{et(()=>{i(v),r(g)})}),Qe(()=>{r(e.href)}),Fe(()=>{i(e.href)}),()=>{var g;const{href:v,target:h,title:m=n.title,customTitleProps:C={}}=e,b=u.value;o=typeof m=="function"?m(C):m;const y=a.value===v,k=G(`${b}-link`,{[`${b}-link-active`]:y},l.class),T=G(`${b}-link-title`,{[`${b}-link-title-active`]:y});return s("div",P(P({},l),{},{class:k}),[s("a",{class:T,href:v,title:typeof o=="string"?o:"",target:h,onClick:f},[n.customTitle?n.customTitle(C):o]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}});function lc(){return window}function Bl(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const Nl=/#([\S ]+)$/,oc=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:Ie(),direction:z.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),ot=U({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:oc(),setup(e,t){let{emit:n,attrs:l,slots:o,expose:c}=t;const{prefixCls:d,getTargetContainer:i,direction:r}=ge("anchor",e),a=O(()=>{var S;return(S=e.direction)!==null&&S!==void 0?S:"vertical"}),u=te(null),f=te(),g=wt({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),v=te(null),h=O(()=>{const{getContainer:S}=e;return S||(i==null?void 0:i.value)||lc}),m=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const F=[],I=h.value();return g.links.forEach(w=>{const $=Nl.exec(w.toString());if(!$)return;const E=document.getElementById($[1]);if(E){const R=Bl(E,I);RE.top>$.top?E:$).link:""},C=S=>{const{getCurrentAnchor:M}=e;v.value!==S&&(v.value=typeof M=="function"?M(S):S,n("change",S))},b=S=>{const{offsetTop:M,targetOffset:F}=e;C(S);const I=Nl.exec(S);if(!I)return;const w=document.getElementById(I[1]);if(!w)return;const $=h.value(),E=mo($,!0),R=Bl(w,$);let D=E+R;D-=F!==void 0?F:M||0,g.animating=!0,bo(D,{callback:()=>{g.animating=!1},getContainer:h.value})};c({scrollTo:b});const y=()=>{if(g.animating)return;const{offsetTop:S,bounds:M,targetOffset:F}=e,I=m(F!==void 0?F:S||0,M);C(I)},k=()=>{const S=f.value.querySelector(`.${d.value}-link-title-active`);if(S&&u.value){const M=a.value==="horizontal";u.value.style.top=M?"":`${S.offsetTop+S.clientHeight/2}px`,u.value.style.height=M?"":`${S.clientHeight}px`,u.value.style.left=M?`${S.offsetLeft}px`:"",u.value.style.width=M?`${S.clientWidth}px`:"",M&&Hi(S,{scrollMode:"if-needed",block:"nearest"})}};Js({registerLink:S=>{g.links.includes(S)||g.links.push(S)},unregisterLink:S=>{const M=g.links.indexOf(S);M!==-1&&g.links.splice(M,1)},activeLink:v,scrollTo:b,handleClick:(S,M)=>{n("click",S,M)},direction:a}),Qe(()=>{et(()=>{const S=h.value();g.scrollContainer=S,g.scrollEvent=An(g.scrollContainer,"scroll",y),y()})}),Fe(()=>{g.scrollEvent&&g.scrollEvent.remove()}),Qt(()=>{if(g.scrollEvent){const S=h.value();g.scrollContainer!==S&&(g.scrollContainer=S,g.scrollEvent.remove(),g.scrollEvent=An(g.scrollContainer,"scroll",y),y())}k()});const T=S=>Array.isArray(S)?S.map(M=>{const{children:F,key:I,href:w,target:$,class:E,style:R,title:D}=M;return s(Jn,{key:I,href:w,target:$,class:E,style:R,title:D,customTitleProps:M},{default:()=>[a.value==="vertical"?T(F):null],customTitle:o.customTitle})}):null,[x,A]=tc(d);return()=>{var S;const{offsetTop:M,affix:F,showInkInFixed:I}=e,w=d.value,$=G(`${w}-ink`,{[`${w}-ink-visible`]:v.value}),E=G(A.value,e.wrapperClass,`${w}-wrapper`,{[`${w}-wrapper-horizontal`]:a.value==="horizontal",[`${w}-rtl`]:r.value==="rtl"}),R=G(w,{[`${w}-fixed`]:!F&&!I}),D=p({maxHeight:M?`calc(100vh - ${M}px)`:"100vh"},e.wrapperStyle),V=s("div",{class:E,style:D,ref:f},[s("div",{class:R},[s("span",{class:$,ref:u},null),Array.isArray(e.items)?T(e.items):(S=o.default)===null||S===void 0?void 0:S.call(o)])]);return x(F?s(Yo,P(P({},l),{},{offsetTop:M,target:h.value}),{default:()=>[V]}):V)}}});ot.Link=Jn;ot.install=function(e){return e.component(ot.name,ot),e.component(ot.Link.name,ot.Link),e};const Qn=()=>null;Qn.isSelectOption=!0;Qn.displayName="AAutoCompleteOption";const mt=Qn,el=()=>null;el.isSelectOptGroup=!0;el.displayName="AAutoCompleteOptGroup";const _t=el;function ic(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const ac=()=>p(p({},Oe(ji(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),rc=mt,sc=_t,pn=U({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:ac(),slots:Object,setup(e,t){let{slots:n,attrs:l,expose:o}=t;Ct(),Ct(),Ct(!e.dropdownClassName);const c=te(),d=()=>{var u;const f=Pt((u=n.default)===null||u===void 0?void 0:u.call(n));return f.length?f[0]:void 0};o({focus:()=>{var u;(u=c.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=c.value)===null||u===void 0||u.blur()}});const{prefixCls:a}=ge("select",e);return()=>{var u,f,g;const{size:v,dataSource:h,notFoundContent:m=(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)}=e;let C;const{class:b}=l,y={[b]:!!b,[`${a.value}-lg`]:v==="large",[`${a.value}-sm`]:v==="small",[`${a.value}-show-search`]:!0,[`${a.value}-auto-complete`]:!0};if(e.options===void 0){const T=((f=n.dataSource)===null||f===void 0?void 0:f.call(n))||((g=n.options)===null||g===void 0?void 0:g.call(n))||[];T.length&&ic(T[0])?C=T:C=h?h.map(x=>{if(So(x))return x;switch(typeof x){case"string":return s(mt,{key:x,value:x},{default:()=>[x]});case"object":return s(mt,{key:x.value,value:x.value},{default:()=>[x.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const k=Oe(p(p(p({},e),l),{mode:En.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:d,notFoundContent:m,class:y,popupClassName:e.popupClassName||e.dropdownClassName,ref:c}),["dataSource","loading"]);return s(En,k,P({default:()=>[C]},Oe(n,["default","dataSource","options"])))}}}),cc=p(pn,{Option:mt,OptGroup:_t,install(e){return e.component(pn.name,pn),e.component(mt.displayName,mt),e.component(_t.displayName,_t),e}}),uc=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},dc=function(e){return/[height|width]$/.test(e)},Rl=function(e){let t="";const n=Object.keys(e);return n.forEach(function(l,o){let c=e[l];l=uc(l),dc(l)&&typeof c=="number"&&(c=c+"px"),c===!0?t+=l:c===!1?t+="not "+l:t+="("+l+": "+c+")",o{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},qt=e=>{const t=[],n=Jo(e),l=Qo(e);for(let o=n;oe.currentSlide-gc(e),Qo=e=>e.currentSlide+vc(e),gc=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,vc=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Nn=e=>e&&e.offsetWidth||0,tl=e=>e&&e.offsetHeight||0,ei=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const l=e.startX-e.curX,o=e.startY-e.curY,c=Math.atan2(o,l);return n=Math.round(c*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},on=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},vn=(e,t)=>{const n={};return t.forEach(l=>n[l]=e[l]),n},mc=e=>{const t=e.children.length,n=e.listRef,l=Math.ceil(Nn(n)),o=e.trackRef,c=Math.ceil(Nn(o));let d;if(e.vertical)d=l;else{let v=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(v*=l/100),d=Math.ceil((l-v)/e.slidesToShow)}const i=n&&tl(n.querySelector('[data-index="0"]')),r=i*e.slidesToShow;let a=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(a=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const f=qt(p(p({},e),{currentSlide:a,lazyLoadedList:u}));u=u.concat(f);const g={slideCount:t,slideWidth:d,listWidth:l,trackWidth:c,currentSlide:a,slideHeight:i,listHeight:r,lazyLoadedList:u};return e.autoplaying===null&&e.autoplay&&(g.autoplaying="playing"),g},bc=e=>{const{waitForAnimate:t,animating:n,fade:l,infinite:o,index:c,slideCount:d,lazyLoad:i,currentSlide:r,centerMode:a,slidesToScroll:u,slidesToShow:f,useCSS:g}=e;let{lazyLoadedList:v}=e;if(t&&n)return{};let h=c,m,C,b,y={},k={};const T=o?c:Bn(c,0,d-1);if(l){if(!o&&(c<0||c>=d))return{};c<0?h=c+d:c>=d&&(h=c-d),i&&v.indexOf(h)<0&&(v=v.concat(h)),y={animating:!0,currentSlide:h,lazyLoadedList:v,targetSlide:h},k={animating:!1,targetSlide:h}}else m=h,h<0?(m=h+d,o?d%u!==0&&(m=d-d%u):m=0):!on(e)&&h>r?h=m=r:a&&h>=d?(h=o?d:d-1,m=o?0:d-1):h>=d&&(m=h-d,o?d%u!==0&&(m=0):m=d-f),!o&&h+f>=d&&(m=d-f),C=It(p(p({},e),{slideIndex:h})),b=It(p(p({},e),{slideIndex:m})),o||(C===b&&(h=m),C=b),i&&(v=v.concat(qt(p(p({},e),{currentSlide:h})))),g?(y={animating:!0,currentSlide:m,trackStyle:ti(p(p({},e),{left:C})),lazyLoadedList:v,targetSlide:T},k={animating:!1,currentSlide:m,trackStyle:At(p(p({},e),{left:b})),swipeLeft:null,targetSlide:T}):y={currentSlide:m,trackStyle:At(p(p({},e),{left:b})),lazyLoadedList:v,targetSlide:T};return{state:y,nextState:k}},Sc=(e,t)=>{let n,l,o;const{slidesToScroll:c,slidesToShow:d,slideCount:i,currentSlide:r,targetSlide:a,lazyLoad:u,infinite:f}=e,v=i%c!==0?0:(i-r)%c;if(t.message==="previous")l=v===0?c:d-v,o=r-l,u&&!f&&(n=r-l,o=n===-1?i-1:n),f||(o=a-c);else if(t.message==="next")l=v===0?c:v,o=r+l,u&&!f&&(o=(r+c)%i+v),f||(o=a+c);else if(t.message==="dots")o=t.index*t.slidesToScroll;else if(t.message==="children"){if(o=t.index,f){const h=Mc(p(p({},e),{targetSlide:o}));o>t.currentSlide&&h==="left"?o=o-i:oe.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",wc=(e,t,n)=>(e.target.tagName==="IMG"&&bt(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),Cc=(e,t)=>{const{scrolling:n,animating:l,vertical:o,swipeToSlide:c,verticalSwiping:d,rtl:i,currentSlide:r,edgeFriction:a,edgeDragged:u,onEdge:f,swiped:g,swiping:v,slideCount:h,slidesToScroll:m,infinite:C,touchObject:b,swipeEvent:y,listHeight:k,listWidth:T}=t;if(n)return;if(l)return bt(e);o&&c&&d&&bt(e);let x,A={};const S=It(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));const M=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!d&&!v&&M>10)return{scrolling:!0};d&&(b.swipeLength=M);let F=(i?-1:1)*(b.curX>b.startX?1:-1);d&&(F=b.curY>b.startY?1:-1);const I=Math.ceil(h/m),w=ei(t.touchObject,d);let $=b.swipeLength;return C||(r===0&&(w==="right"||w==="down")||r+1>=I&&(w==="left"||w==="up")||!on(t)&&(w==="left"||w==="up"))&&($=b.swipeLength*a,u===!1&&f&&(f(w),A.edgeDragged=!0)),!g&&y&&(y(w),A.swiped=!0),o?x=S+$*(k/T)*F:i?x=S-$*F:x=S+$*F,d&&(x=S+$*F),A=p(p({},A),{touchObject:b,swipeLeft:x,trackStyle:At(p(p({},t),{left:x}))}),Math.abs(b.curX-b.startX)10&&(A.swiping=!0,bt(e)),A},xc=(e,t)=>{const{dragging:n,swipe:l,touchObject:o,listWidth:c,touchThreshold:d,verticalSwiping:i,listHeight:r,swipeToSlide:a,scrolling:u,onSwipe:f,targetSlide:g,currentSlide:v,infinite:h}=t;if(!n)return l&&bt(e),{};const m=i?r/d:c/d,C=ei(o,i),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!o.swipeLength)return b;if(o.swipeLength>m){bt(e),f&&f(C);let y,k;const T=h?v:g;switch(C){case"left":case"up":k=T+Dl(t),y=a?Ll(t,k):k,b.currentDirection=0;break;case"right":case"down":k=T-Dl(t),y=a?Ll(t,k):k,b.currentDirection=1;break;default:y=T}b.triggerSlideHandler=y}else{const y=It(t);b.trackStyle=ti(p(p({},t),{left:y}))}return b},$c=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,l=e.infinite?e.slidesToShow*-1:0;const o=[];for(;n{const n=$c(e);let l=0;if(t>n[n.length-1])t=n[n.length-1];else for(const o in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const l=e.listRef,o=l.querySelectorAll&&l.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(i=>{if(e.vertical){if(i.offsetTop+tl(i)/2>e.swipeLeft*-1)return n=i,!1}else if(i.offsetLeft-t+Nn(i)/2>e.swipeLeft*-1)return n=i,!1;return!0}),!n)return 0;const c=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-c)||1}else return e.slidesToScroll},nl=(e,t)=>t.reduce((n,l)=>n&&e.hasOwnProperty(l),!0)?null:console.error("Keys Missing:",e),At=e=>{nl(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const l=e.slideCount+2*e.slidesToShow;e.vertical?n=l*e.slideHeight:t=kc(e)*e.slideWidth;let o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const c=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",d=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=p(p({},o),{WebkitTransform:c,transform:d,msTransform:i})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t+"px"),n&&(o.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},ti=e=>{nl(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=At(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},It=e=>{if(e.unslick)return 0;nl(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:l,centerMode:o,slideCount:c,slidesToShow:d,slidesToScroll:i,slideWidth:r,listWidth:a,variableWidth:u,slideHeight:f,fade:g,vertical:v}=e;let h=0,m,C,b=0;if(g||e.slideCount===1)return 0;let y=0;if(l?(y=-Ze(e),c%i!==0&&t+i>c&&(y=-(t>c?d-(t-c):c%i)),o&&(y+=parseInt(d/2))):(c%i!==0&&t+i>c&&(y=d-c%i),o&&(y=parseInt(d/2))),h=y*r,b=y*f,v?m=t*f*-1+b:m=t*r*-1+h,u===!0){let k;const T=n;if(k=t+Ze(e),C=T&&T.childNodes[k],m=C?C.offsetLeft*-1:0,o===!0){k=l?t+Ze(e):t,C=T&&T.children[k],m=0;for(let x=0;xe.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Ht=e=>e.unslick||!e.infinite?0:e.slideCount,kc=e=>e.slideCount===1?1:Ze(e)+e.slideCount+Ht(e),Mc=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Tc(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:l,centerPadding:o}=e;if(n){let c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),l&&t%2===0&&(c+=1),c}return l?0:t-1},Ac=e=>{let{slidesToShow:t,centerMode:n,rtl:l,centerPadding:o}=e;if(n){let c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),!l&&t%2===0&&(c+=1),c}return l?t-1:0},zl=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),mn=e=>{let t,n,l,o;e.rtl?o=e.slideCount-1-e.index:o=e.index;const c=o<0||o>=e.slideCount;e.centerMode?(l=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-l-1&&o<=e.currentSlide+l&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?d=e.targetSlide-e.slideCount:d=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":c,"slick-current":o===d}},Ic=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},bn=(e,t)=>e.key+"-"+t,Ec=function(e,t){let n;const l=[],o=[],c=[],d=t.length,i=Jo(e),r=Qo(e);return t.forEach((a,u)=>{let f;const g={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?f=a:f=s("div");const v=Ic(p(p({},e),{index:u})),h=f.props.class||"";let m=mn(p(p({},e),{index:u}));if(l.push(un(f,{key:"original"+bn(f,u),tabindex:"-1","data-index":u,"aria-hidden":!m["slick-active"],class:G(m,h),style:p(p({outline:"none"},f.props.style||{}),v),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(g)}})),e.infinite&&e.fade===!1){const C=d-u;C<=Ze(e)&&d!==e.slidesToShow&&(n=-C,n>=i&&(f=a),m=mn(p(p({},e),{index:n})),o.push(un(f,{key:"precloned"+bn(f,n),class:G(m,h),tabindex:"-1","data-index":n,"aria-hidden":!m["slick-active"],style:p(p({},f.props.style||{}),v),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(g)}}))),d!==e.slidesToShow&&(n=d+u,n{e.focusOnSelect&&e.focusOnSelect(g)}})))}}),e.rtl?o.concat(l,c).reverse():o.concat(l,c)},ni=(e,t)=>{let{attrs:n,slots:l}=t;const o=Ec(n,Pt(l==null?void 0:l.default())),{onMouseenter:c,onMouseover:d,onMouseleave:i}=n,r={onMouseenter:c,onMouseover:d,onMouseleave:i},a=p({class:"slick-track",style:n.trackStyle},r);return s("div",a,[o])};ni.inheritAttrs=!1;const Pc=ni,Oc=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},li=(e,t)=>{let{attrs:n}=t;const{slideCount:l,slidesToScroll:o,slidesToShow:c,infinite:d,currentSlide:i,appendDots:r,customPaging:a,clickHandler:u,dotsClass:f,onMouseenter:g,onMouseover:v,onMouseleave:h}=n,m=Oc({slideCount:l,slidesToScroll:o,slidesToShow:c,infinite:d}),C={onMouseenter:g,onMouseover:v,onMouseleave:h};let b=[];for(let y=0;y=A&&i<=T:i===A}),M={message:"dots",index:y,slidesToScroll:o,currentSlide:i};b=b.concat(s("li",{key:y,class:S},[St(a({i:y}),{onClick:F})]))}return St(r({dots:b}),p({class:f},C))};li.inheritAttrs=!1;const Fc=li;function oi(){}function ii(e,t,n){n&&n.preventDefault(),t(e,n)}const ai=(e,t)=>{let{attrs:n}=t;const{clickHandler:l,infinite:o,currentSlide:c,slideCount:d,slidesToShow:i}=n,r={"slick-arrow":!0,"slick-prev":!0};let a=function(v){ii({message:"previous"},l,v)};!o&&(c===0||d<=i)&&(r["slick-disabled"]=!0,a=oi);const u={key:"0","data-role":"none",class:r,style:{display:"block"},onClick:a},f={currentSlide:c,slideCount:d};let g;return n.prevArrow?g=St(n.prevArrow(p(p({},u),f)),{key:"0",class:r,style:{display:"block"},onClick:a},!1):g=s("button",P({key:"0",type:"button"},u),[" ",at("Previous")]),g};ai.inheritAttrs=!1;const ri=(e,t)=>{let{attrs:n}=t;const{clickHandler:l,currentSlide:o,slideCount:c}=n,d={"slick-arrow":!0,"slick-next":!0};let i=function(f){ii({message:"next"},l,f)};on(n)||(d["slick-disabled"]=!0,i=oi);const r={key:"1","data-role":"none",class:G(d),style:{display:"block"},onClick:i},a={currentSlide:o,slideCount:c};let u;return n.nextArrow?u=St(n.nextArrow(p(p({},r),a)),{key:"1",class:G(d),style:{display:"block"},onClick:i},!1):u=s("button",P({key:"1",type:"button"},r),[" ",at("Next")]),u};ri.inheritAttrs=!1;var Bc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=p({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=qt(p(p({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=p({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Wi(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=qt(p(p({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=tl(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Vi(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!Boolean(this.track))return;const n=p(p({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const l=mc(e);e=p(p(p({},e),l),{slideIndex:l.currentSlide});const o=It(e);e=p(p({},e),{left:o});const c=At(e);(t||this.children.length!==e.children.length)&&(l.trackStyle=c),this.setState(l,n)},ssrInit(){const e=this.children;if(this.variableWidth){let r=0,a=0;const u=[],f=Ze(p(p(p({},this.$props),this.$data),{slideCount:e.length})),g=Ht(p(p(p({},this.$props),this.$data),{slideCount:e.length}));e.forEach(h=>{var m,C;const b=((C=(m=h.props.style)===null||m===void 0?void 0:m.width)===null||C===void 0?void 0:C.split("px")[0])||0;u.push(b),r+=b});for(let h=0;h{const o=()=>++n&&n>=t&&this.onWindowResized();if(!l.onclick)l.onclick=()=>l.parentNode.focus();else{const c=l.onclick;l.onclick=()=>{c(),l.parentNode.focus()}}l.onload||(this.$props.lazyLoad?l.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(l.onload=o,l.onerror=()=>{o(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=p(p({},this.$props),this.$data);for(let n=this.currentSlide;n=-Ze(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:l,beforeChange:o,speed:c,afterChange:d}=this.$props,{state:i,nextState:r}=bc(p(p(p({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!i)return;o&&o(l,i.currentSlide);const a=i.lazyLoadedList.filter(u=>this.lazyLoadedList.indexOf(u)<0);this.$attrs.onLazyLoad&&a.length>0&&this.__emit("lazyLoad",a),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),d&&d(l),delete this.animationEndCallback),this.setState(i,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),r&&(this.animationEndCallback=setTimeout(()=>{const{animating:u}=r,f=Bc(r,["animating"]);this.setState(f,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:u}),10)),d&&d(i.currentSlide),delete this.animationEndCallback})},c))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=p(p({},this.$props),this.$data),l=Sc(n,e);if(!(l!==0&&!l)&&(t===!0?this.slideHandler(l,t):this.slideHandler(l),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const o=this.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=yc(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=wc(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=Cc(e,p(p(p({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));!t||(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=xc(e,p(p(p({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(on(p(p({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return s("button",null,[t+1])},appendDots(e){let{dots:t}=e;return s("ul",{style:{display:"block"}},[t])}},render(){const e=G("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=p(p({},this.$props),this.$data);let n=vn(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:l}=this.$props;n=p(p({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:l?this.onTrackLeave:Ae,onMouseover:l?this.onTrackOver:Ae});let o;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let C=vn(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);C.customPaging=this.customPaging,C.appendDots=this.appendDots;const{customPaging:b,appendDots:y}=this.$slots;b&&(C.customPaging=b),y&&(C.appendDots=y);const{pauseOnDotsHover:k}=this.$props;C=p(p({},C),{clickHandler:this.changeSlide,onMouseover:k?this.onDotsOver:Ae,onMouseleave:k?this.onDotsLeave:Ae}),o=s(Fc,C,null)}let c,d;const i=vn(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);i.clickHandler=this.changeSlide;const{prevArrow:r,nextArrow:a}=this.$slots;r&&(i.prevArrow=r),a&&(i.nextArrow=a),this.arrows&&(c=s(ai,i,null),d=s(ri,i,null));let u=null;this.vertical&&(u={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let f=null;this.vertical===!1?this.centerMode===!0&&(f={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(f={padding:this.centerPadding+" 0px"});const g=p(p({},u),f),v=this.touchMove;let h={ref:this.listRefHandler,class:"slick-list",style:g,onClick:this.clickHandler,onMousedown:v?this.swipeStart:Ae,onMousemove:this.dragging&&v?this.swipeMove:Ae,onMouseup:v?this.swipeEnd:Ae,onMouseleave:this.dragging&&v?this.swipeEnd:Ae,[In?"onTouchstartPassive":"onTouchstart"]:v?this.swipeStart:Ae,[In?"onTouchmovePassive":"onTouchmove"]:this.dragging&&v?this.swipeMove:Ae,onTouchend:v?this.touchEnd:Ae,onTouchcancel:this.dragging&&v?this.swipeEnd:Ae,onKeydown:this.accessibility?this.keyHandler:Ae},m={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(h={class:"slick-list",ref:this.listRefHandler},m={class:e}),s("div",m,[this.unslick?"":c,s("div",h,[s(Pc,n,{default:()=>[this.children]})]),this.unslick?"":d,this.unslick?"":o])}},Rc=U({name:"Slider",mixins:[yo],inheritAttrs:!1,props:p({},Zo),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,l)=>n-l),e.forEach((n,l)=>{let o;l===0?o=gn({minWidth:0,maxWidth:n}):o=gn({minWidth:e[l-1]+1,maxWidth:n}),zl()&&this.media(o,()=>{this.setState({breakpoint:n})})});const t=gn({minWidth:e.slice(-1)[0]});zl()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),l=o=>{let{matches:c}=o;c&&t()};n.addListener(l),l(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:l})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(i=>i.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":p(p({},this.$props),n[0].settings)):t=p({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let l=Ki(this)||[];l=l.filter(i=>typeof i=="string"?!!i.trim():!!i),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const o=[];let c=null;for(let i=0;i=l.length));f+=1)u.push(St(l[f],{key:100*i+10*a+f,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));r.push(s("div",{key:10*i+a},[u]))}t.variableWidth?o.push(s("div",{key:i,style:{width:c}},[r])):o.push(s("div",{key:i},[r]))}if(t==="unslick"){const i="regular slider "+(this.className||"");return s("div",{class:i},[l])}else o.length<=t.slidesToShow&&(t.unslick=!0);const d=p(p(p({},this.$attrs),t),{children:o,ref:this.innerSliderRefHandler});return s(Nc,P(P({},d),{},{__propsSymbol__:[]}),this.$slots)}}),Lc=e=>{const{componentCls:t,antCls:n,carouselArrowSize:l,carouselDotOffset:o,marginXXS:c}=e,d=-l*1.25,i=c;return{[t]:p(p({},Me(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:l,height:l,marginTop:-l/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:d,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:d,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-i,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Dc=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:l}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:p(p({},o),{margin:`${l}px 0`,verticalAlign:"baseline",button:o,"&.slick-active":p(p({},o),{button:o})})}}}},zc=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},_c=ye("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,l=$e(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[Lc(l),Dc(l),zc(l)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var Hc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o({effect:be(),dots:Y(!0),vertical:Y(),autoplay:Y(),easing:String,beforeChange:J(),afterChange:J(),prefixCls:String,accessibility:Y(),nextArrow:z.any,prevArrow:z.any,pauseOnHover:Y(),adaptiveHeight:Y(),arrows:Y(!1),autoplaySpeed:Number,centerMode:Y(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Y(!1),fade:Y(),focusOnSelect:Y(),infinite:Y(),initialSlide:Number,lazyLoad:be(),rtl:Y(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Y(),swipeToSlide:Y(),swipeEvent:J(),touchMove:Y(),touchThreshold:Number,variableWidth:Y(),useCSS:Y(),slickGoTo:Number,responsive:Array,dotPosition:be(),verticalSwiping:Y(!1)}),Wc=U({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:jc(),setup(e,t){let{slots:n,attrs:l,expose:o}=t;const c=te();o({goTo:function(h){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var C;(C=c.value)===null||C===void 0||C.slickGoTo(h,m)},autoplay:h=>{var m,C;(C=(m=c.value)===null||m===void 0?void 0:m.innerSlider)===null||C===void 0||C.handleAutoPlay(h)},prev:()=>{var h;(h=c.value)===null||h===void 0||h.slickPrev()},next:()=>{var h;(h=c.value)===null||h===void 0||h.slickNext()},innerSlider:O(()=>{var h;return(h=c.value)===null||h===void 0?void 0:h.innerSlider})}),Re(()=>{Ct(e.vertical===void 0)});const{prefixCls:i,direction:r}=ge("carousel",e),[a,u]=_c(i),f=O(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),g=O(()=>f.value==="left"||f.value==="right"),v=O(()=>{const h="slick-dots";return G({[h]:!0,[`${h}-${f.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:h,arrows:m,draggable:C,effect:b}=e,{class:y,style:k}=l,T=Hc(l,["class","style"]),x=b==="fade"?!0:e.fade,A=G(i.value,{[`${i.value}-rtl`]:r.value==="rtl",[`${i.value}-vertical`]:g.value,[`${y}`]:!!y},u.value);return a(s("div",{class:A,style:k},[s(Rc,P(P(P({ref:c},e),T),{},{dots:!!h,dotsClass:v.value,arrows:m,draggable:C,fade:x,vertical:g.value}),n)]))}}}),Vc=Je(Wc),Kc={useBreakpoint:Gi},Gc=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:l,commentNestIndent:o,commentFontSizeBase:c,commentFontSizeSm:d,commentAuthorNameColor:i,commentAuthorTimeColor:r,commentActionColor:a,commentActionHoverColor:u,commentActionsMarginBottom:f,commentActionsMarginTop:g,commentContentDetailPMarginBottom:v}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:l},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:c,wordWrap:"break-word",["&-author"]:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:c,["& > a,& > span"]:{paddingRight:e.paddingXS,fontSize:d,lineHeight:"18px"},["&-name"]:{color:i,fontSize:c,transition:`color ${e.motionDurationSlow}`,["> *"]:{color:i,["&:hover"]:{color:i}}},["&-time"]:{color:r,whiteSpace:"nowrap",cursor:"auto"}},["&-detail p"]:{marginBottom:v,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:g,marginBottom:f,paddingLeft:0,["> li"]:{display:"inline-block",color:a,["> span"]:{marginRight:"10px",color:a,fontSize:d,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none",["&:hover"]:{color:u}}}},[`${t}-nested`]:{marginLeft:o},"&-rtl":{direction:"rtl"}}}},Uc=ye("Comment",e=>{const t=$e(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[Gc(t)]}),Xc=()=>({actions:Array,author:z.any,avatar:z.any,content:z.any,prefixCls:String,datetime:z.any}),Yc=U({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:Xc(),slots:Object,setup(e,t){let{slots:n,attrs:l}=t;const{prefixCls:o,direction:c}=ge("comment",e),[d,i]=Uc(o),r=(u,f)=>s("div",{class:`${u}-nested`},[f]),a=u=>!u||!u.length?null:u.map((g,v)=>s("li",{key:`action-${v}`},[g]));return()=>{var u,f,g,v,h,m,C,b,y,k,T;const x=o.value,A=(u=e.actions)!==null&&u!==void 0?u:(f=n.actions)===null||f===void 0?void 0:f.call(n),S=(g=e.author)!==null&&g!==void 0?g:(v=n.author)===null||v===void 0?void 0:v.call(n),M=(h=e.avatar)!==null&&h!==void 0?h:(m=n.avatar)===null||m===void 0?void 0:m.call(n),F=(C=e.content)!==null&&C!==void 0?C:(b=n.content)===null||b===void 0?void 0:b.call(n),I=(y=e.datetime)!==null&&y!==void 0?y:(k=n.datetime)===null||k===void 0?void 0:k.call(n),w=s("div",{class:`${x}-avatar`},[typeof M=="string"?s("img",{src:M,alt:"comment-avatar"},null):M]),$=A?s("ul",{class:`${x}-actions`},[a(Array.isArray(A)?A:[A])]):null,E=s("div",{class:`${x}-content-author`},[S&&s("span",{class:`${x}-content-author-name`},[S]),I&&s("span",{class:`${x}-content-author-time`},[I])]),R=s("div",{class:`${x}-content`},[E,s("div",{class:`${x}-content-detail`},[F]),$]),D=s("div",{class:`${x}-inner`},[w,R]),V=Pt((T=n.default)===null||T===void 0?void 0:T.call(n));return d(s("div",P(P({},l),{},{class:[x,{[`${x}-rtl`]:c.value==="rtl"},l.class,i.value]}),[D,V&&V.length?r(x,V):null]))}}}),qc=Je(Yc);var Zc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const Jc=Zc;function _l(e){for(var t=1;t({prefixCls:String,description:z.any,type:be("default"),shape:be("circle"),tooltip:z.any,href:String,target:J(),badge:Ee(),onClick:J()}),eu=()=>({prefixCls:be()}),tu=()=>p(p({},ol()),{trigger:be(),open:Y(),onOpenChange:J(),"onUpdate:open":J()}),nu=()=>p(p({},ol()),{prefixCls:String,duration:Number,target:J(),visibilityHeight:Number,onClick:J()}),lu=U({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:eu(),setup(e,t){let{attrs:n,slots:l}=t;return()=>{var o;const{prefixCls:c}=e,d=Wn((o=l.description)===null||o===void 0?void 0:o.call(l));return s("div",P(P({},n),{},{class:[n.class,`${c}-content`]}),[l.icon||d.length?s(Ve,null,[l.icon&&s("div",{class:`${c}-icon`},[l.icon()]),d.length?s("div",{class:`${c}-description`},[d]):null]):s("div",{class:`${c}-icon`},[s(si,null,null)])])}}}),ou=lu,ci=Symbol("floatButtonGroupContext"),iu=e=>(nt(ci,e),e),ui=()=>ut(ci,{shape:te()}),au=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Hl=au,ru=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:l,motionEaseInOutCirc:o}=e,c=`${t}-group`,d=new $l("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),i=new $l("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${c}-wrap`]:p({},Xi(`${c}-wrap`,d,i,l,!0))},{[`${c}-wrap`]:{[` &${c}-wrap-enter, &${c}-wrap-appear `]:{opacity:0,animationTimingFunction:o},[`&${c}-wrap-leave`]:{animationTimingFunction:o}}}]},su=e=>{const{antCls:t,componentCls:n,floatButtonSize:l,margin:o,borderRadiusLG:c,borderRadiusSM:d,badgeOffset:i,floatButtonBodyPadding:r}=e,a=`${n}-group`;return{[a]:p(p({},Me(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:l,height:"auto",boxShadow:"none",minHeight:l,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:c,[`${a}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${a}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${a}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:l,height:l,borderRadius:"50%"}}},[`${a}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:c,borderStartEndRadius:c},"&:last-child":{borderEndStartRadius:c,borderEndEndRadius:c},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(r+i),insetInlineEnd:-(r+i)}}},[`${a}-wrap`]:{display:"block",borderRadius:c,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:r,"&:first-child":{borderStartStartRadius:c,borderStartEndRadius:c},"&:last-child":{borderEndStartRadius:c,borderEndEndRadius:c},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${a}-circle-shadow`]:{boxShadow:"none"},[`${a}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:r,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:d}}}}},cu=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:l,floatButtonIconSize:o,floatButtonSize:c,borderRadiusLG:d,badgeOffset:i,dotOffsetInSquare:r,dotOffsetInCircle:a}=e;return{[n]:p(p({},Me(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:c,height:c,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-i,insetInlineEnd:-i}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:c,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${l/2}px ${l}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:c,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:a,insetInlineEnd:a}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:c,borderRadius:d,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:r,insetInlineEnd:r}},[`${n}-body`]:{height:"auto",borderRadius:d}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},il=ye("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:l,marginXXL:o,marginLG:c,fontSize:d,fontSizeIcon:i,controlItemBgHover:r,paddingXXS:a,borderRadiusLG:u}=e,f=$e(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:r,floatButtonFontSize:d,floatButtonIconSize:i*1.5,floatButtonSize:l,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:c,floatButtonBodySize:l-a*2,floatButtonBodyPadding:a,badgeOffset:a*1.5,dotOffsetInCircle:Hl(l/2),dotOffsetInSquare:Hl(u)});return[su(f),cu(f),Ui(e),ru(f)]});var uu=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o(r==null?void 0:r.value)||e.shape);return()=>{var f;const{prefixCls:g,type:v="default",shape:h="circle",description:m=(f=l.description)===null||f===void 0?void 0:f.call(l),tooltip:C,badge:b={}}=e,y=uu(e,["prefixCls","type","shape","description","tooltip","badge"]),k=G(o.value,`${o.value}-${v}`,`${o.value}-${u.value}`,{[`${o.value}-rtl`]:c.value==="rtl"},n.class,i.value),T=s(Vn,{placement:"left"},{title:l.tooltip||C?()=>l.tooltip&&l.tooltip()||C:void 0,default:()=>s(Go,b,{default:()=>[s("div",{class:`${o.value}-body`},[s(ou,{prefixCls:o.value},{icon:l.icon,description:()=>m})])]})});return d(e.href?s("a",P(P(P({ref:a},n),y),{},{class:k}),[T]):s("button",P(P(P({ref:a},n),y),{},{class:k,type:"button"}),[T]))}}}),tt=du,fu=U({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:we(tu(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:l,emit:o}=t;const{prefixCls:c,direction:d}=ge(al,e),[i,r]=il(c),[a,u]=Tt(!1,{value:O(()=>e.open)}),f=te(null),g=te(null);iu({shape:O(()=>e.shape)});const v={onMouseenter(){var b;u(!0),o("update:open",!0),(b=e.onOpenChange)===null||b===void 0||b.call(e,!0)},onMouseleave(){var b;u(!1),o("update:open",!1),(b=e.onOpenChange)===null||b===void 0||b.call(e,!1)}},h=O(()=>e.trigger==="hover"?v:{}),m=()=>{var b;const y=!a.value;o("update:open",y),(b=e.onOpenChange)===null||b===void 0||b.call(e,y),u(y)},C=b=>{var y,k,T;if(!((y=f.value)===null||y===void 0)&&y.contains(b.target)){!((k=$o(g.value))===null||k===void 0)&&k.contains(b.target)&&m();return}u(!1),o("update:open",!1),(T=e.onOpenChange)===null||T===void 0||T.call(e,!1)};return se(O(()=>e.trigger),b=>{!ko()||(document.removeEventListener("click",C),b==="click"&&document.addEventListener("click",C))},{immediate:!0}),Fe(()=>{document.removeEventListener("click",C)}),()=>{var b;const{shape:y="circle",type:k="default",tooltip:T,description:x,trigger:A}=e,S=`${c.value}-group`,M=G(S,r.value,n.class,{[`${S}-rtl`]:d.value==="rtl",[`${S}-${y}`]:y,[`${S}-${y}-shadow`]:!A}),F=G(r.value,`${S}-wrap`),I=wo(`${S}-wrap`);return i(s("div",P(P({ref:f},n),{},{class:M},h.value),[A&&["click","hover"].includes(A)?s(Ve,null,[s(Kn,I,{default:()=>[Gn(s("div",{class:F},[l.default&&l.default()]),[[Co,a.value]])]}),s(tt,{ref:g,type:k,shape:y,tooltip:T,description:x},{icon:()=>{var w,$;return a.value?((w=l.closeIcon)===null||w===void 0?void 0:w.call(l))||s(xo,null,null):(($=l.icon)===null||$===void 0?void 0:$.call(l))||s(si,null,null)},tooltip:l.tooltip,description:l.description})]):(b=l.default)===null||b===void 0?void 0:b.call(l)]))}}}),Zt=fu;var hu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const pu=hu;function jl(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:l,emit:o}=t;const{prefixCls:c,direction:d}=ge(al,e),[i]=il(c),r=te(),a=wt({visible:e.visibilityHeight===0,scrollEvent:null}),u=()=>r.value&&r.value.ownerDocument?r.value.ownerDocument:window,f=C=>{const{target:b=u,duration:y}=e;bo(0,{getContainer:b,duration:y}),o("click",C)},g=Fn(C=>{const{visibilityHeight:b}=e,y=mo(C.target,!0);a.visible=y>=b}),v=()=>{const{target:C}=e,y=(C||u)();g({target:y}),y==null||y.addEventListener("scroll",g)},h=()=>{const{target:C}=e,y=(C||u)();g.cancel(),y==null||y.removeEventListener("scroll",g)};se(()=>e.target,()=>{h(),et(()=>{v()})}),Qe(()=>{et(()=>{v()})}),Yi(()=>{et(()=>{v()})}),qi(()=>{h()}),Fe(()=>{h()});const m=ui();return()=>{const{description:C,type:b,shape:y,tooltip:k,badge:T}=e,x=p(p({},l),{shape:(m==null?void 0:m.shape.value)||y,onClick:f,class:{[`${c.value}`]:!0,[`${l.class}`]:l.class,[`${c.value}-rtl`]:d.value==="rtl"},description:C,type:b,tooltip:k,badge:T}),A=wo("fade");return i(s(Kn,A,{default:()=>[Gn(s(tt,P(P({},x),{},{ref:r}),{icon:()=>{var S;return((S=n.icon)===null||S===void 0?void 0:S.call(n))||s(vu,null,null)}}),[[Co,a.visible]])]}))}}}),Jt=mu;tt.Group=Zt;tt.BackTop=Jt;tt.install=function(e){return e.component(tt.name,tt),e.component(Zt.name,Zt),e.component(Jt.name,Jt),e};var bu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Su=bu;function Wl(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(Rn()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new it(Number.MAX_SAFE_INTEGER);if(l0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":ul(this.number):this.origin}}class gt{constructor(t){if(this.origin="",di(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(cl(n)&&(n=Number(n)),n=typeof n=="string"?n:ul(n),dl(n)){const l=$t(n);this.negative=l.negative;const o=l.trimStr.split(".");this.integer=BigInt(o[0]);const c=o[1]||"0";this.decimal=BigInt(c),this.decimalLen=c.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new gt(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new gt(t);const n=new gt(t);if(n.isInvalidate())return this;const l=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(l),c=n.alignDecimal(l),d=(o+c).toString(),{negativeStr:i,trimStr:r}=$t(d),a=`${i}${r.padStart(l+1,"0")}`;return new gt(`${a.slice(0,-l)}.${a.slice(-l)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":$t(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function je(e){return Rn()?new gt(e):new it(e)}function Ln(e,t,n){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:o,integerStr:c,decimalStr:d}=$t(e),i=`${t}${d}`,r=`${o}${c}`;if(n>=0){const a=Number(d[n]);if(a>=5&&!l){const u=je(e).add(`${o}0.${"0".repeat(n)}${10-a}`);return Ln(u.toString(),t,n,l)}return n===0?r:`${r}${t}${d.padEnd(n,"0").slice(0,n)}`}return i===".0"?r:`${r}${i}`}const Cu=200,xu=600,$u=U({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:J()},slots:Object,setup(e,t){let{slots:n,emit:l}=t;const o=te(),c=(i,r)=>{i.preventDefault(),l("step",r);function a(){l("step",r),o.value=setTimeout(a,Cu)}o.value=setTimeout(a,xu)},d=()=>{clearTimeout(o.value)};return Fe(()=>{d()}),()=>{if(Zi())return null;const{prefixCls:i,upDisabled:r,downDisabled:a}=e,u=`${i}-handler`,f=G(u,`${u}-up`,{[`${u}-up-disabled`]:r}),g=G(u,`${u}-down`,{[`${u}-down-disabled`]:a}),v={unselectable:"on",role:"button",onMouseup:d,onMouseleave:d},{upNode:h,downNode:m}=n;return s("div",{class:`${u}-wrap`},[s("span",P(P({},v),{},{onMousedown:C=>{c(C,!0)},"aria-label":"Increase Value","aria-disabled":r,class:f}),[(h==null?void 0:h())||s("span",{unselectable:"on",class:`${i}-handler-up-inner`},null)]),s("span",P(P({},v),{},{onMousedown:C=>{c(C,!1)},"aria-label":"Decrease Value","aria-disabled":a,class:g}),[(m==null?void 0:m())||s("span",{unselectable:"on",class:`${i}-handler-down-inner`},null)])])}}});function ku(e,t){const n=te(null);function l(){try{const{selectionStart:c,selectionEnd:d,value:i}=e.value,r=i.substring(0,c),a=i.substring(d);n.value={start:c,end:d,value:i,beforeTxt:r,afterTxt:a}}catch{}}function o(){if(e.value&&n.value&&t.value)try{const{value:c}=e.value,{beforeTxt:d,afterTxt:i,start:r}=n.value;let a=c.length;if(c.endsWith(i))a=c.length-n.value.afterTxt.length;else if(c.startsWith(d))a=d.length;else{const u=d[r-1],f=c.indexOf(u,r-1);f!==-1&&(a=f+1)}e.value.setSelectionRange(a,a)}catch(c){Mo(!1,`Something warning of cursor restore. Please fire issue about this: ${c.message}`)}}return[l,o]}const Mu=()=>{const e=ee(0),t=()=>{Ut.cancel(e.value)};return Fe(()=>{t()}),n=>{t(),e.value=Ut(()=>{n()})}};var Tu=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);oe||t.isEmpty()?t.toString():t.toNumber(),Kl=e=>{const t=je(e);return t.isInvalidate()?null:t},fi=()=>({stringMode:Y(),defaultValue:pe([String,Number]),value:pe([String,Number]),prefixCls:be(),min:pe([String,Number]),max:pe([String,Number]),step:pe([String,Number],1),tabindex:Number,controls:Y(!0),readonly:Y(),disabled:Y(),autofocus:Y(),keyboard:Y(!0),parser:J(),formatter:J(),precision:Number,decimalSeparator:String,onInput:J(),onChange:J(),onPressEnter:J(),onStep:J(),onBlur:J(),onFocus:J()}),Au=U({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:p(p({},fi()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:l,emit:o,expose:c}=t;const d=ee(),i=ee(!1),r=ee(!1),a=ee(!1),u=ee(je(e.value));function f(B){e.value===void 0&&(u.value=B)}const g=(B,L)=>{if(!L)return e.precision>=0?e.precision:Math.max(Et(B),Et(e.step))},v=B=>{const L=String(B);if(e.parser)return e.parser(L);let H=L;return e.decimalSeparator&&(H=H.replace(e.decimalSeparator,".")),H.replace(/[^\w.-]+/g,"")},h=ee(""),m=(B,L)=>{if(e.formatter)return e.formatter(B,{userTyping:L,input:String(h.value)});let H=typeof B=="number"?ul(B):B;if(!L){const _=g(H,L);if(dl(H)&&(e.decimalSeparator||_>=0)){const N=e.decimalSeparator||".";H=Ln(H,N,_)}}return H},C=(()=>{const B=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof B)?Number.isNaN(B)?"":B:m(u.value.toString(),!1)})();h.value=C;function b(B,L){h.value=m(B.isInvalidate()?B.toString(!1):B.toString(!L),L)}const y=O(()=>Kl(e.max)),k=O(()=>Kl(e.min)),T=O(()=>!y.value||!u.value||u.value.isInvalidate()?!1:y.value.lessEquals(u.value)),x=O(()=>!k.value||!u.value||u.value.isInvalidate()?!1:u.value.lessEquals(k.value)),[A,S]=ku(d,i),M=B=>y.value&&!B.lessEquals(y.value)?y.value:k.value&&!k.value.lessEquals(B)?k.value:null,F=B=>!M(B),I=(B,L)=>{var H;let _=B,N=F(_)||_.isEmpty();if(!_.isEmpty()&&!L&&(_=M(_)||_,N=!0),!e.readonly&&!e.disabled&&N){const j=_.toString(),Z=g(j,L);return Z>=0&&(_=je(Ln(j,".",Z))),_.equals(u.value)||(f(_),(H=e.onChange)===null||H===void 0||H.call(e,_.isEmpty()?null:Vl(e.stringMode,_)),e.value===void 0&&b(_,L)),_}return u.value},w=Mu(),$=B=>{var L;if(A(),h.value=B,!a.value){const H=v(B),_=je(H);_.isNaN()||I(_,!0)}(L=e.onInput)===null||L===void 0||L.call(e,B),w(()=>{let H=B;e.parser||(H=B.replace(/。/g,".")),H!==B&&$(H)})},E=()=>{a.value=!0},R=()=>{a.value=!1,$(d.value.value)},D=B=>{$(B.target.value)},V=B=>{var L,H;if(B&&T.value||!B&&x.value)return;r.value=!1;let _=je(e.step);B||(_=_.negate());const N=(u.value||je(0)).add(_.toString()),j=I(N,!1);(L=e.onStep)===null||L===void 0||L.call(e,Vl(e.stringMode,j),{offset:e.step,type:B?"up":"down"}),(H=d.value)===null||H===void 0||H.focus()},q=B=>{const L=je(v(h.value));let H=L;L.isNaN()?H=u.value:H=I(L,B),e.value!==void 0?b(u.value,!1):H.isNaN()||b(H,!1)},Q=B=>{var L;const{which:H}=B;r.value=!0,H===he.ENTER&&(a.value||(r.value=!1),q(!1),(L=e.onPressEnter)===null||L===void 0||L.call(e,B)),e.keyboard!==!1&&!a.value&&[he.UP,he.DOWN].includes(H)&&(V(he.UP===H),B.preventDefault())},X=()=>{r.value=!1},ie=B=>{q(!1),i.value=!1,r.value=!1,o("blur",B)};return se(()=>e.precision,()=>{u.value.isInvalidate()||b(u.value,!1)},{flush:"post"}),se(()=>e.value,()=>{const B=je(e.value);u.value=B;const L=je(v(h.value));(!B.equals(L)||!r.value||e.formatter)&&b(B,r.value)},{flush:"post"}),se(h,()=>{e.formatter&&S()},{flush:"post"}),se(()=>e.disabled,B=>{B&&(i.value=!1)}),c({focus:()=>{var B;(B=d.value)===null||B===void 0||B.focus()},blur:()=>{var B;(B=d.value)===null||B===void 0||B.blur()}}),()=>{const B=p(p({},n),e),{prefixCls:L="rc-input-number",min:H,max:_,step:N=1,defaultValue:j,value:Z,disabled:oe,readonly:ue,keyboard:W,controls:ce=!0,autofocus:ve,stringMode:Ce,parser:Se,formatter:Te,precision:Ke,decimalSeparator:Le,onChange:De,onInput:Be,onPressEnter:Ge,onStep:Ue,lazy:K,class:ne,style:le}=B,re=Tu(B,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:me,downHandler:de}=l,ae=`${L}-input`,fe={};return K?fe.onChange=D:fe.onInput=D,s("div",{class:G(L,ne,{[`${L}-focused`]:i.value,[`${L}-disabled`]:oe,[`${L}-readonly`]:ue,[`${L}-not-a-number`]:u.value.isNaN(),[`${L}-out-of-range`]:!u.value.isInvalidate()&&!F(u.value)}),style:le,onKeydown:Q,onKeyup:X},[ce&&s($u,{prefixCls:L,upDisabled:T.value,downDisabled:x.value,onStep:V},{upNode:me,downNode:de}),s("div",{class:`${ae}-wrap`},[s("input",P(P(P({autofocus:ve,autocomplete:"off",role:"spinbutton","aria-valuemin":H,"aria-valuemax":_,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:N},re),{},{ref:d,class:ae,value:h.value,disabled:oe,readonly:ue,onFocus:ke=>{i.value=!0,o("focus",ke)}},fe),{},{onBlur:ie,onCompositionstart:E,onCompositionend:R}),null)])])}}});function Sn(e){return e!=null}const Iu=e=>{const{componentCls:t,lineWidth:n,lineType:l,colorBorder:o,borderRadius:c,fontSizeLG:d,controlHeightLG:i,controlHeightSM:r,colorError:a,inputPaddingHorizontalSM:u,colorTextDescription:f,motionDurationMid:g,colorPrimary:v,controlHeight:h,inputPaddingHorizontal:m,colorBgContainer:C,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:k,controlWidth:T,handleVisible:x}=e;return[{[t]:p(p(p(p({},Me(e)),Un(e)),Xn(e,t)),{display:"inline-block",width:T,margin:0,padding:0,border:`${n}px ${l} ${o}`,borderRadius:c,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:d,borderRadius:k,[`input${t}-input`]:{height:i-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:r-2*n,padding:`0 ${u}px`}},"&:hover":p({},Ao(e)),"&-focused":p({},Io(e)),"&-disabled":p(p({},Eo(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:a}},"&-group":p(p(p({},Me(e)),Qi(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}}}}),[t]:{"&-input":p(p({width:"100%",height:h-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:c,outline:0,transition:`all ${g} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},Po(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:C,borderStartStartRadius:0,borderStartEndRadius:c,borderEndEndRadius:c,borderEndStartRadius:0,opacity:x===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${g} linear ${g}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` @@ -14,4 +14,4 @@ import{aa as Ut,ab as An,ac as In,ad as ye,ae as $e,af as Je,d as U,R as ee,E as ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Eu=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:l,controlWidth:o,borderRadiusLG:c,borderRadiusSM:d}=e;return{[`${t}-affix-wrapper`]:p(p(p({},Un(e)),Xn(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:c},"&-sm":{borderRadius:d},[`&:not(${t}-affix-wrapper-disabled):hover`]:p(p({},Ao(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:l},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:l}}})}},Pu=ye("InputNumber",e=>{const t=To(e);return[Iu(t),Eu(t),Ji(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var Ou=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);op(p({},Gl),{size:be(),bordered:Y(!0),placeholder:String,name:String,id:String,type:String,addonBefore:z.any,addonAfter:z.any,prefix:z.any,"onUpdate:value":Gl.onChange,valueModifiers:Object,status:be()}),yn=U({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Fu(),slots:Object,setup(e,t){let{emit:n,expose:l,attrs:o,slots:c}=t;const d=Ot(),i=en.useInject(),r=O(()=>tn(i.status,e.status)),{prefixCls:a,size:u,direction:f,disabled:g}=ge("input-number",e),{compactSize:v,compactItemClassnames:h}=Fo(a,f),m=Bo(),C=O(()=>{var $;return($=g.value)!==null&&$!==void 0?$:m.value}),[b,y]=Pu(a),k=O(()=>v.value||u.value),T=ee(e.value===void 0?e.defaultValue:e.value),x=ee(!1);se(()=>e.value,()=>{T.value=e.value});const A=ee(null),S=()=>{var $;($=A.value)===null||$===void 0||$.focus()};l({focus:S,blur:()=>{var $;($=A.value)===null||$===void 0||$.blur()}});const F=$=>{e.value===void 0&&(T.value=$),n("update:value",$),n("change",$),d.onFieldChange()},I=$=>{x.value=!1,n("blur",$),d.onFieldBlur()},w=$=>{x.value=!0,n("focus",$)};return()=>{var $,E,R,D;const{hasFeedback:V,isFormItemInput:q,feedbackIcon:Q}=i,X=($=e.id)!==null&&$!==void 0?$:d.id.value,ie=p(p(p({},o),e),{id:X,disabled:C.value}),{class:B,bordered:L,readonly:H,style:_,addonBefore:N=(E=c.addonBefore)===null||E===void 0?void 0:E.call(c),addonAfter:j=(R=c.addonAfter)===null||R===void 0?void 0:R.call(c),prefix:Z=(D=c.prefix)===null||D===void 0?void 0:D.call(c),valueModifiers:oe={}}=ie,ue=Ou(ie,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),W=a.value,ce=G({[`${W}-lg`]:k.value==="large",[`${W}-sm`]:k.value==="small",[`${W}-rtl`]:f.value==="rtl",[`${W}-readonly`]:H,[`${W}-borderless`]:!L,[`${W}-in-form-item`]:q},rt(W,r.value),B,h.value,y.value);let ve=s(Au,P(P({},Oe(ue,["size","defaultValue"])),{},{ref:A,lazy:!!oe.lazy,value:T.value,class:ce,prefixCls:W,readonly:H,onChange:F,onBlur:I,onFocus:w}),{upHandler:c.upIcon?()=>s("span",{class:`${W}-handler-up-inner`},[c.upIcon()]):()=>s(wu,{class:`${W}-handler-up-inner`},null),downHandler:c.downIcon?()=>s("span",{class:`${W}-handler-down-inner`},[c.downIcon()]):()=>s(No,{class:`${W}-handler-down-inner`},null)});const Ce=Sn(N)||Sn(j),Se=Sn(Z);if(Se||V){const Te=G(`${W}-affix-wrapper`,rt(`${W}-affix-wrapper`,r.value,V),{[`${W}-affix-wrapper-focused`]:x.value,[`${W}-affix-wrapper-disabled`]:C.value,[`${W}-affix-wrapper-sm`]:k.value==="small",[`${W}-affix-wrapper-lg`]:k.value==="large",[`${W}-affix-wrapper-rtl`]:f.value==="rtl",[`${W}-affix-wrapper-readonly`]:H,[`${W}-affix-wrapper-borderless`]:!L,[`${B}`]:!Ce&&B},y.value);ve=s("div",{class:Te,style:_,onClick:S},[Se&&s("span",{class:`${W}-prefix`},[Z]),ve,V&&s("span",{class:`${W}-suffix`},[Q])])}if(Ce){const Te=`${W}-group`,Ke=`${Te}-addon`,Le=N?s("div",{class:Ke},[N]):null,De=j?s("div",{class:Ke},[j]):null,Be=G(`${W}-wrapper`,Te,{[`${Te}-rtl`]:f.value==="rtl"},y.value),Ge=G(`${W}-group-wrapper`,{[`${W}-group-wrapper-sm`]:k.value==="small",[`${W}-group-wrapper-lg`]:k.value==="large",[`${W}-group-wrapper-rtl`]:f.value==="rtl"},rt(`${a}-group-wrapper`,r.value,V),B,y.value);ve=s("div",{class:Ge,style:_},[s("div",{class:Be},[Le&&s(kl,null,{default:()=>[s(Ml,null,{default:()=>[Le]})]}),ve,De&&s(kl,null,{default:()=>[s(Ml,null,{default:()=>[De]})]})])])}return b(St(ve,{style:_}))}}}),Bu=p(yn,{install:e=>(e.component(yn.name,yn),e)}),Nu=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:l,colorText:o}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:o,background:n},[`${t}-sider-zero-width-trigger`]:{color:o,background:n,border:`1px solid ${l}`,borderInlineStart:0}}}},Ru=Nu,Lu=e=>{const{antCls:t,componentCls:n,colorText:l,colorTextLightSolid:o,colorBgHeader:c,colorBgBody:d,colorBgTrigger:i,layoutHeaderHeight:r,layoutHeaderPaddingInline:a,layoutHeaderColor:u,layoutFooterPadding:f,layoutTriggerHeight:g,layoutZeroTriggerSize:v,motionDurationMid:h,motionDurationSlow:m,fontSize:C,borderRadius:b}=e;return{[n]:p(p({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:r,paddingInline:a,color:u,lineHeight:`${r}px`,background:c,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:l,fontSize:C,background:d},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:c,transition:`all ${h}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:g},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:g,color:o,lineHeight:`${g}px`,textAlign:"center",background:i,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:r,insetInlineEnd:-v,zIndex:1,width:v,height:v,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:c,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-v,borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},Ru(e)),{"&-rtl":{direction:"rtl"}})}},Du=ye("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:l,controlHeightLG:o,marginXXS:c}=e,d=o*1.25,i=$e(e,{layoutHeaderHeight:l*2,layoutHeaderPaddingInline:d,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${d}px`,layoutTriggerHeight:o+c*2,layoutZeroTriggerSize:o});return[Lu(i)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),fl=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function an(e){let{suffixCls:t,tagName:n,name:l}=e;return o=>U({compatConfig:{MODE:3},name:l,props:fl(),setup(d,i){let{slots:r}=i;const{prefixCls:a}=ge(t,d);return()=>{const u=p(p({},d),{prefixCls:a.value,tagName:n});return s(o,u,r)}}})}const hl=U({compatConfig:{MODE:3},props:fl(),setup(e,t){let{slots:n}=t;return()=>s(e.tagName,{class:e.prefixCls},n)}}),zu=U({compatConfig:{MODE:3},inheritAttrs:!1,props:fl(),setup(e,t){let{slots:n,attrs:l}=t;const{prefixCls:o,direction:c}=ge("",e),[d,i]=Du(o),r=te([]);nt(Ro,{addSider:f=>{r.value=[...r.value,f]},removeSider:f=>{r.value=r.value.filter(g=>g!==f)}});const u=O(()=>{const{prefixCls:f,hasSider:g}=e;return{[i.value]:!0,[`${f}`]:!0,[`${f}-has-sider`]:typeof g=="boolean"?g:r.value.length>0,[`${f}-rtl`]:c.value==="rtl"}});return()=>{const{tagName:f}=e;return d(s(f,p(p({},l),{class:[u.value,l.class]}),n))}}}),_u=an({suffixCls:"layout",tagName:"section",name:"ALayout"})(zu),jt=an({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(hl),Wt=an({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(hl),Vt=an({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(hl),wn=_u;var Hu={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const ju=Hu;function Ul(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:z.any,width:z.oneOfType([z.number,z.string]),collapsedWidth:z.oneOfType([z.number,z.string]),breakpoint:z.oneOf(Pn("xs","sm","md","lg","xl","xxl","xxxl")),theme:z.oneOf(Pn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Gu=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Kt=U({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:we(Ku(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:l,slots:o}=t;const{prefixCls:c}=ge("layout-sider",e),d=ut(Ro,void 0),i=ee(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),r=ee(!1);se(()=>e.collapsed,()=>{i.value=!!e.collapsed}),nt(ea,i);const a=(m,C)=>{e.collapsed===void 0&&(i.value=m),n("update:collapsed",m),n("collapse",m,C)},u=ee(m=>{r.value=m.matches,n("breakpoint",m.matches),i.value!==m.matches&&a(m.matches,"responsive")});let f;function g(m){return u.value(m)}const v=Gu("ant-sider-");d&&d.addSider(v),Qe(()=>{se(()=>e.breakpoint,()=>{try{f==null||f.removeEventListener("change",g)}catch{f==null||f.removeListener(g)}if(typeof window<"u"){const{matchMedia:m}=window;if(m&&e.breakpoint&&e.breakpoint in Xl){f=m(`(max-width: ${Xl[e.breakpoint]})`);try{f.addEventListener("change",g)}catch{f.addListener(g)}g(f)}}},{immediate:!0})}),Fe(()=>{try{f==null||f.removeEventListener("change",g)}catch{f==null||f.removeListener(g)}d&&d.removeSider(v)});const h=()=>{a(!i.value,"clickTrigger")};return()=>{var m,C;const b=c.value,{collapsedWidth:y,width:k,reverseArrow:T,zeroWidthTriggerStyle:x,trigger:A=(m=o.trigger)===null||m===void 0?void 0:m.call(o),collapsible:S,theme:M}=e,F=i.value?y:k,I=Ms(F)?`${F}px`:String(F),w=parseFloat(String(y||0))===0?s("span",{onClick:h,class:G(`${b}-zero-width-trigger`,`${b}-zero-width-trigger-${T?"right":"left"}`),style:x},[A||s(Vu,null,null)]):null,$={expanded:T?s(Xt,null,null):s(Yt,null,null),collapsed:T?s(Yt,null,null):s(Xt,null,null)},E=i.value?"collapsed":"expanded",R=$[E],D=A!==null?w||s("div",{class:`${b}-trigger`,onClick:h,style:{width:I}},[A||R]):null,V=[l.style,{flex:`0 0 ${I}`,maxWidth:I,minWidth:I,width:I}],q=G(b,`${b}-${M}`,{[`${b}-collapsed`]:!!i.value,[`${b}-has-trigger`]:S&&A!==null&&!w,[`${b}-below`]:!!r.value,[`${b}-zero-width`]:parseFloat(I)===0},l.class);return s("aside",P(P({},l),{},{class:q,style:V}),[s("div",{class:`${b}-children`},[(C=o.default)===null||C===void 0?void 0:C.call(o)]),S||r.value&&w?D:null])}}}),Uu=jt,Xu=Wt,Yu=Kt,qu=Vt,Zu=p(wn,{Header:jt,Footer:Wt,Content:Vt,Sider:Kt,install:e=>(e.component(wn.name,wn),e.component(jt.name,jt),e.component(Wt.name,Wt),e.component(Kt.name,Kt),e.component(Vt.name,Vt),e)});function Ju(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function Qu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((l,o)=>{const c=e.lastIndexOf(o);return c>l.location?{location:c,prefix:o}:l},{location:-1,prefix:""})}function Yl(e){return(e||"").toLowerCase()}function ed(e,t,n){const l=e[0];if(!l||l===n)return e;let o=e;const c=t.length;for(let d=0;d[]}},setup(e,t){let{slots:n}=t;const{activeIndex:l,setActiveIndex:o,selectOption:c,onFocus:d=ad,loading:i}=ut(hi,{activeIndex:ee(),loading:ee(!1)});let r;const a=u=>{clearTimeout(r),r=setTimeout(()=>{d(u)})};return Fe(()=>{clearTimeout(r)}),()=>{var u;const{prefixCls:f,options:g}=e,v=g[l.value]||{};return s(Xe,{prefixCls:`${f}-menu`,activeKey:v.value,onSelect:h=>{let{key:m}=h;const C=g.find(b=>{let{value:y}=b;return y===m});c(C)},onMousedown:a},{default:()=>[!i.value&&g.map((h,m)=>{var C,b;const{value:y,disabled:k,label:T=h.value,class:x,style:A}=h;return s(zt,{key:y,disabled:k,onMouseenter:()=>{o(m)},class:x,style:A},{default:()=>[(b=(C=n.option)===null||C===void 0?void 0:C.call(n,h))!==null&&b!==void 0?b:typeof T=="function"?T(h):T]})}),!i.value&&g.length===0?s(zt,{key:"notFoundContent",disabled:!0},{default:()=>[(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)]}):null,i.value&&s(zt,{key:"loading",disabled:!0},{default:()=>[s(nn,{size:"small"},null)]})]})}}}),sd={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},cd=U({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const l=()=>`${e.prefixCls}-dropdown`,o=()=>{const{options:d}=e;return s(rd,{prefixCls:l(),options:d},{notFoundContent:n.notFoundContent,option:n.option})},c=O(()=>{const{placement:d,direction:i}=e;let r="topRight";return i==="rtl"?r=d==="top"?"topLeft":"bottomLeft":r=d==="top"?"topRight":"bottomRight",r});return()=>{const{visible:d,transitionName:i,getPopupContainer:r}=e;return s(Lo,{prefixCls:l(),popupVisible:d,popup:o(),popupClassName:e.dropdownClassName,popupPlacement:c.value,popupTransitionName:i,builtinPlacements:sd,getPopupContainer:r},{default:n.default})}}}),ud=Pn("top","bottom"),pi={autofocus:{type:Boolean,default:void 0},prefix:z.oneOfType([z.string,z.arrayOf(z.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:z.oneOf(ud),character:z.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:Ie(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},gi=p(p({},pi),{dropdownClassName:String}),vi={prefix:"@",split:" ",rows:1,validateSearch:ld,filterOption:()=>od};we(gi,vi);var ql=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o{a.value=e.value});const u=w=>{n("change",w)},f=w=>{let{target:{value:$,composing:E},isComposing:R}=w;R||E||u($)},g=(w,$,E)=>{p(a,{measuring:!0,measureText:w,measurePrefix:$,measureLocation:E,activeIndex:0})},v=w=>{p(a,{measuring:!1,measureLocation:0,measureText:null}),w==null||w()},h=w=>{const{which:$}=w;if(!!a.measuring){if($===he.UP||$===he.DOWN){const E=M.value.length,R=$===he.UP?-1:1,D=(a.activeIndex+R+E)%E;a.activeIndex=D,w.preventDefault()}else if($===he.ESC)v();else if($===he.ENTER){if(w.preventDefault(),!M.value.length){v();return}const E=M.value[a.activeIndex];x(E)}}},m=w=>{const{key:$,which:E}=w,{measureText:R,measuring:D}=a,{prefix:V,validateSearch:q}=e,Q=w.target;if(Q.composing)return;const X=Ju(Q),{location:ie,prefix:B}=Qu(X,V);if([he.ESC,he.UP,he.DOWN,he.ENTER].indexOf(E)===-1)if(ie!==-1){const L=X.slice(ie+B.length),H=q(L,e),_=!!S(L).length;H?($===B||$==="Shift"||D||L!==R&&_)&&g(L,B,ie):D&&v(),H&&n("search",L,B)}else D&&v()},C=w=>{a.measuring||n("pressenter",w)},b=w=>{k(w)},y=w=>{T(w)},k=w=>{clearTimeout(r.value);const{isFocus:$}=a;!$&&w&&n("focus",w),a.isFocus=!0},T=w=>{r.value=setTimeout(()=>{a.isFocus=!1,v(),n("blur",w)},100)},x=w=>{const{split:$}=e,{value:E=""}=w,{text:R,selectionLocation:D}=td(a.value,{measureLocation:a.measureLocation,targetText:E,prefix:a.measurePrefix,selectionStart:i.value.selectionStart,split:$});u(R),v(()=>{nd(i.value,D)}),n("select",w,a.measurePrefix)},A=w=>{a.activeIndex=w},S=w=>{const $=w||a.measureText||"",{filterOption:E}=e;return e.options.filter(D=>E?E($,D):!0)},M=O(()=>S());return o({blur:()=>{i.value.blur()},focus:()=>{i.value.focus()}}),nt(hi,{activeIndex:Ye(a,"activeIndex"),setActiveIndex:A,selectOption:x,onFocus:k,onBlur:T,loading:Ye(e,"loading")}),Qt(()=>{et(()=>{a.measuring&&(d.value.scrollTop=i.value.scrollTop)})}),()=>{const{measureLocation:w,measurePrefix:$,measuring:E}=a,{prefixCls:R,placement:D,transitionName:V,getPopupContainer:q,direction:Q}=e,X=ql(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:ie,style:B}=l,L=ql(l,["class","style"]),H=Oe(X,["value","prefix","split","validateSearch","filterOption","options","loading"]),_=p(p(p({},H),L),{onChange:Zl,onSelect:Zl,value:a.value,onInput:f,onBlur:y,onKeydown:h,onKeyup:m,onFocus:b,onPressenter:C});return s("div",{class:G(R,ie),style:B},[Gn(s("textarea",P({ref:i},_),null),[[ta]]),E&&s("div",{ref:d,class:`${R}-measure`},[a.value.slice(0,w),s(cd,{prefixCls:R,transitionName:V,dropdownClassName:e.dropdownClassName,placement:D,options:E?M.value:[],visible:!0,direction:Q,getPopupContainer:q},{default:()=>[s("span",null,[$])],notFoundContent:c.notFoundContent,option:c.option}),a.value.slice(w+$.length)])])}}}),fd={value:String,disabled:Boolean,payload:Ee()},mi=p(p({},fd),{label:Ne([])}),bi={name:"Option",props:mi,render(e,t){let{slots:n}=t;var l;return(l=n.default)===null||l===void 0?void 0:l.call(n)}};U(p({compatConfig:{MODE:3}},bi));const hd=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:l,controlPaddingHorizontal:o,colorText:c,motionDurationSlow:d,lineHeight:i,controlHeight:r,inputPaddingHorizontal:a,inputPaddingVertical:u,fontSize:f,colorBgElevated:g,borderRadiusLG:v,boxShadowSecondary:h}=e,m=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:p(p(p(p(p({},Me(e)),Un(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:i,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Xn(e,t)),{"&-disabled":{"> textarea":p({},Eo(e))},"&-focused":p({},Io(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:a,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:c,boxSizing:"border-box",minHeight:r-2,margin:0,padding:`${u}px ${a}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":p({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},Po(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":p(p({},Me(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:f,fontVariant:"initial",backgroundColor:g,borderRadius:v,outline:"none",boxShadow:h,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":p(p({},Mt),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${m}px ${o}px`,color:c,fontWeight:"normal",lineHeight:i,cursor:"pointer",transition:`background ${d} ease`,"&:hover":{backgroundColor:l},"&:first-child":{borderStartStartRadius:v,borderStartEndRadius:v,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:v,borderEndEndRadius:v},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:l,cursor:"not-allowed"}},"&-selected":{color:c,fontWeight:e.fontWeightStrong,backgroundColor:l},"&-active":{backgroundColor:l}})}})})}},pd=ye("Mentions",e=>{const t=To(e);return[hd(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var Jl=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:l=" "}=t,o=Array.isArray(n)?n:[n];return e.split(l).map(function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",d=null;return o.some(i=>c.slice(0,i.length)===i?(d=i,!0):!1),d!==null?{prefix:d,value:c.slice(d.length)}:null}).filter(c=>!!c&&!!c.value)},md=()=>p(p({},pi),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:z.any,defaultValue:String,id:String,status:String}),Cn=U({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:md(),slots:Object,setup(e,t){let{slots:n,emit:l,attrs:o,expose:c}=t;var d,i;const{prefixCls:r,renderEmpty:a,direction:u}=ge("mentions",e),[f,g]=pd(r),v=ee(!1),h=ee(null),m=ee((i=(d=e.value)!==null&&d!==void 0?d:e.defaultValue)!==null&&i!==void 0?i:""),C=Ot(),b=en.useInject(),y=O(()=>tn(b.status,e.status));na({prefixCls:O(()=>`${r.value}-menu`),mode:O(()=>"vertical"),selectable:O(()=>!1),onClick:()=>{},validator:$=>{Ct()}}),se(()=>e.value,$=>{m.value=$});const k=$=>{v.value=!0,l("focus",$)},T=$=>{v.value=!1,l("blur",$),C.onFieldBlur()},x=function(){for(var $=arguments.length,E=new Array($),R=0;R<$;R++)E[R]=arguments[R];l("select",...E),v.value=!0},A=$=>{e.value===void 0&&(m.value=$),l("update:value",$),l("change",$),C.onFieldChange()},S=()=>{const $=e.notFoundContent;return $!==void 0?$:n.notFoundContent?n.notFoundContent():a("Select")},M=()=>{var $;return Pt((($=n.default)===null||$===void 0?void 0:$.call(n))||[]).map(E=>{var R,D;return p(p({},la(E)),{label:(D=(R=E.children)===null||R===void 0?void 0:R.default)===null||D===void 0?void 0:D.call(R)})})};c({focus:()=>{h.value.focus()},blur:()=>{h.value.blur()}});const w=O(()=>e.loading?gd:e.filterOption);return()=>{const{disabled:$,getPopupContainer:E,rows:R=1,id:D=C.id.value}=e,V=Jl(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:q,feedbackIcon:Q}=b,{class:X}=o,ie=Jl(o,["class"]),B=Oe(V,["defaultValue","onUpdate:value","prefixCls"]),L=G({[`${r.value}-disabled`]:$,[`${r.value}-focused`]:v.value,[`${r.value}-rtl`]:u.value==="rtl"},rt(r.value,y.value),!q&&X,g.value),H=p(p(p(p({prefixCls:r.value},B),{disabled:$,direction:u.value,filterOption:w.value,getPopupContainer:E,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:s(nn,{size:"small"},null)}]:e.options||M(),class:L}),ie),{rows:R,onChange:A,onSelect:x,onFocus:k,onBlur:T,ref:h,value:m.value,id:D}),_=s(dd,P(P({},H),{},{dropdownClassName:g.value}),{notFoundContent:S,option:n.option});return f(q?s("div",{class:G(`${r.value}-affix-wrapper`,rt(`${r.value}-affix-wrapper`,y.value,q),X,g.value)},[_,s("span",{class:`${r.value}-suffix`},[Q])]):_)}}}),Gt=U(p(p({compatConfig:{MODE:3}},bi),{name:"AMentionsOption",props:mi})),bd=p(Cn,{Option:Gt,getMentions:vd,install:e=>(e.component(Cn.name,Cn),e.component(Gt.name,Gt),e)}),Si=e=>{const{value:t,formatter:n,precision:l,decimalSeparator:o,groupSeparator:c="",prefixCls:d}=e;let i;if(typeof n=="function")i=n({value:t});else{const r=String(t),a=r.match(/^(-?)(\d*)(\.(\d+))?$/);if(!a)i=r;else{const u=a[1];let f=a[2]||"0",g=a[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,c),typeof l=="number"&&(g=g.padEnd(l,"0").slice(0,l>0?l:0)),g&&(g=`${o}${g}`),i=[s("span",{key:"int",class:`${d}-content-value-int`},[u,f]),g&&s("span",{key:"decimal",class:`${d}-content-value-decimal`},[g])]}}return s("span",{class:`${d}-content-value`},[i])};Si.displayName="StatisticNumber";const Sd=Si,yd=e=>{const{componentCls:t,marginXXS:n,padding:l,colorTextDescription:o,statisticTitleFontSize:c,colorTextHeading:d,statisticContentFontSize:i,statisticFontFamily:r}=e;return{[`${t}`]:p(p({},Me(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:c},[`${t}-skeleton`]:{paddingTop:l},[`${t}-content`]:{color:d,fontSize:i,fontFamily:r,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},wd=ye("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:l}=e,o=$e(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:l});return[yd(o)]}),yi=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:pe([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:J(),formatter:Ne(),precision:Number,prefix:dn(),suffix:dn(),title:dn(),loading:Y()}),qe=U({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:we(yi(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:l}=t;const{prefixCls:o,direction:c}=ge("statistic",e),[d,i]=wd(o);return()=>{var r,a,u,f,g,v,h;const{value:m=0,valueStyle:C,valueRender:b}=e,y=o.value,k=(r=e.title)!==null&&r!==void 0?r:(a=n.title)===null||a===void 0?void 0:a.call(n),T=(u=e.prefix)!==null&&u!==void 0?u:(f=n.prefix)===null||f===void 0?void 0:f.call(n),x=(g=e.suffix)!==null&&g!==void 0?g:(v=n.suffix)===null||v===void 0?void 0:v.call(n),A=(h=e.formatter)!==null&&h!==void 0?h:n.formatter;let S=s(Sd,P({"data-for-update":Date.now()},p(p({},e),{prefixCls:y,value:m,formatter:A})),null);return b&&(S=b(S)),d(s("div",P(P({},l),{},{class:[y,{[`${y}-rtl`]:c.value==="rtl"},l.class,i.value]}),[k&&s("div",{class:`${y}-title`},[k]),s(Uo,{paragraph:!1,loading:e.loading},{default:()=>[s("div",{style:C,class:`${y}-content`},[T&&s("span",{class:`${y}-content-prefix`},[T]),S,x&&s("span",{class:`${y}-content-suffix`},[x])])]})]))}}}),Cd=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function xd(e,t){let n=e;const l=/\[[^\]]*]/g,o=(t.match(l)||[]).map(r=>r.slice(1,-1)),c=t.replace(l,"[]"),d=Cd.reduce((r,a)=>{let[u,f]=a;if(r.includes(u)){const g=Math.floor(n/f);return n-=g*f,r.replace(new RegExp(`${u}+`,"g"),v=>{const h=v.length;return g.toString().padStart(h,"0")})}return r},c);let i=0;return d.replace(l,()=>{const r=o[i];return i+=1,r})}function $d(e,t){const{format:n=""}=t,l=new Date(e).getTime(),o=Date.now(),c=Math.max(l-o,0);return xd(c,n)}const kd=1e3/30;function xn(e){return new Date(e).getTime()}const Md=()=>p(p({},yi()),{value:pe([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),Td=U({compatConfig:{MODE:3},name:"AStatisticCountdown",props:we(Md(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:l}=t;const o=te(),c=te(),d=()=>{const{value:f}=e;xn(f)>=Date.now()?i():r()},i=()=>{if(o.value)return;const f=xn(e.value);o.value=setInterval(()=>{c.value.$forceUpdate(),f>Date.now()&&n("change",f-Date.now()),d()},kd)},r=()=>{const{value:f}=e;o.value&&(clearInterval(o.value),o.value=void 0,xn(f){let{value:g,config:v}=f;const{format:h}=e;return $d(g,p(p({},v),{format:h}))},u=f=>f;return Qe(()=>{d()}),Qt(()=>{d()}),Fe(()=>{r()}),()=>{const f=e.value;return s(qe,P({ref:c},p(p({},Oe(e,["onFinish","onChange"])),{value:f,valueRender:u,formatter:a})),l)}}});qe.Countdown=Td;qe.install=function(e){return e.component(qe.name,qe),e.component(qe.Countdown.name,qe.Countdown),e};const Ad=qe.Countdown;function Id(e){let t=e.pageXOffset;const n="scrollLeft";if(typeof t!="number"){const l=e.document;t=l.documentElement[n],typeof t!="number"&&(t=l.body[n])}return t}function Ed(e){let t,n;const l=e.ownerDocument,{body:o}=l,c=l&&l.documentElement,d=e.getBoundingClientRect();return t=d.left,n=d.top,t-=c.clientLeft||o.clientLeft||0,n-=c.clientTop||o.clientTop||0,{left:t,top:n}}function Pd(e){const t=Ed(e),n=e.ownerDocument,l=n.defaultView||n.parentWindow;return t.left+=Id(l),t.left}var Od={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Fd=Od;function Ql(e){for(var t=1;t{const{index:r}=e;n("hover",i,r)},o=i=>{const{index:r}=e;n("click",i,r)},c=i=>{const{index:r}=e;i.keyCode===13&&n("click",i,r)},d=O(()=>{const{prefixCls:i,index:r,value:a,allowHalf:u,focused:f}=e,g=r+1;let v=i;return a===0&&r===0&&f?v+=` ${i}-focused`:u&&a+.5>=g&&a{const{disabled:i,prefixCls:r,characterRender:a,character:u,index:f,count:g,value:v}=e,h=typeof u=="function"?u({disabled:i,prefixCls:r,index:f,count:g,value:v}):u;let m=s("li",{class:d.value},[s("div",{onClick:i?null:o,onKeydown:i?null:c,onMousemove:i?null:l,role:"radio","aria-checked":v>f?"true":"false","aria-posinset":f+1,"aria-setsize":g,tabindex:i?-1:0},[s("div",{class:`${r}-first`},[h]),s("div",{class:`${r}-second`},[h])])]);return a&&(m=a(m,e)),m}}}),Dd=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},zd=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),_d=e=>{const{componentCls:t}=e;return{[t]:p(p(p(p(p({},Me(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),Dd(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),zd(e))}},Hd=ye("Rate",e=>{const{colorFillContent:t}=e,n=$e(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[_d(n)]}),jd=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:z.any,autofocus:{type:Boolean,default:void 0},tabindex:z.oneOfType([z.number,z.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),Wd=U({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:we(jd(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:l,emit:o,expose:c}=t;const{prefixCls:d,direction:i}=ge("rate",e),[r,a]=Hd(d),u=Ot(),f=te(),[g,v]=oa(),h=wt({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});se(()=>e.value,()=>{h.value=e.value});const m=w=>$o(v.value.get(w)),C=(w,$)=>{const E=i.value==="rtl";let R=w+1;if(e.allowHalf){const D=m(w),V=Pd(D),q=D.clientWidth;(E&&$-V>q/2||!E&&$-V{e.value===void 0&&(h.value=w),o("update:value",w),o("change",w),u.onFieldChange()},y=(w,$)=>{const E=C($,w.pageX);E!==h.cleanedValue&&(h.hoverValue=E,h.cleanedValue=null),o("hoverChange",E)},k=()=>{h.hoverValue=void 0,h.cleanedValue=null,o("hoverChange",void 0)},T=(w,$)=>{const{allowClear:E}=e,R=C($,w.pageX);let D=!1;E&&(D=R===h.value),k(),b(D?0:R),h.cleanedValue=D?R:null},x=w=>{h.focused=!0,o("focus",w)},A=w=>{h.focused=!1,o("blur",w),u.onFieldBlur()},S=w=>{const{keyCode:$}=w,{count:E,allowHalf:R}=e,D=i.value==="rtl";$===he.RIGHT&&h.value0&&!D||$===he.RIGHT&&h.value>0&&D?(R?h.value-=.5:h.value-=1,b(h.value),w.preventDefault()):$===he.LEFT&&h.value{e.disabled||f.value.focus()};c({focus:M,blur:()=>{e.disabled||f.value.blur()}}),Qe(()=>{const{autofocus:w,disabled:$}=e;w&&!$&&M()});const I=(w,$)=>{let{index:E}=$;const{tooltips:R}=e;return R?s(Vn,{title:R[E]},{default:()=>[w]}):w};return()=>{const{count:w,allowHalf:$,disabled:E,tabindex:R,id:D=u.id.value}=e,{class:V,style:q}=l,Q=[],X=E?`${d.value}-disabled`:"",ie=e.character||n.character||(()=>s(Nd,null,null));for(let L=0;Ls("svg",{width:"252",height:"294"},[s("defs",null,[s("path",{d:"M0 .387h251.772v251.772H0z"},null)]),s("g",{fill:"none","fill-rule":"evenodd"},[s("g",{transform:"translate(0 .012)"},[s("mask",{fill:"#fff"},null),s("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),s("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),s("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),s("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),s("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),s("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),s("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),s("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),s("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),s("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),s("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),s("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),s("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),s("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),s("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),s("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),s("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),s("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),s("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),s("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),s("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),s("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),s("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),s("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),s("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),s("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),s("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),s("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),s("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),s("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),s("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),s("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),s("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),s("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),s("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),s("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),s("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),s("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),s("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),s("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),s("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),s("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),qd=Yd,Zd=()=>s("svg",{width:"254",height:"294"},[s("defs",null,[s("path",{d:"M0 .335h253.49v253.49H0z"},null),s("path",{d:"M0 293.665h253.49V.401H0z"},null)]),s("g",{fill:"none","fill-rule":"evenodd"},[s("g",{transform:"translate(0 .067)"},[s("mask",{fill:"#fff"},null),s("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),s("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),s("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),s("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),s("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),s("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),s("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),s("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),s("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),s("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),s("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),s("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),s("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),s("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),s("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),s("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),s("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),s("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),s("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),s("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),s("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),s("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),s("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),s("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),s("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),s("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),s("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),s("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),s("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),s("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),s("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),s("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),s("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),s("mask",{fill:"#fff"},null),s("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),s("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),s("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),s("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),s("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),s("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),s("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),s("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),s("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),s("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),s("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),Jd=Zd,Qd=()=>s("svg",{width:"251",height:"294"},[s("g",{fill:"none","fill-rule":"evenodd"},[s("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),s("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),s("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),s("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),s("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),s("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),s("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),s("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),s("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),s("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),s("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),s("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),s("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),s("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),s("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),s("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),s("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),s("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),s("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),s("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),s("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),s("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),s("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),s("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),s("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),s("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),s("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),s("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),s("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),s("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),s("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),s("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),s("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),s("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),s("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),s("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),s("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),s("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),s("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),s("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),e1=Qd,t1=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:l,padding:o,paddingXL:c,paddingXS:d,paddingLG:i,marginXS:r,lineHeight:a}=e;return{[t]:{padding:`${i*2}px ${c}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:i,textAlign:"center",[`& > ${l}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:r,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:a,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:i,padding:`${i}px ${o*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:d,"&:last-child":{marginInlineEnd:0}}}}},n1=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},l1=e=>[t1(e),n1(e)],o1=e=>l1(e),i1=ye("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,l=e.fontSize,o=`${t}px 0 0 0`,c=e.colorInfo,d=e.colorError,i=e.colorSuccess,r=e.colorWarning,a=$e(e,{resultTitleFontSize:n,resultSubtitleFontSize:l,resultIconFontSize:n*3,resultExtraMargin:o,resultInfoIconColor:c,resultErrorIconColor:d,resultSuccessIconColor:i,resultWarningIconColor:r});return[o1(a)]},{imageWidth:250,imageHeight:295}),a1={success:ia,error:aa,info:ra,warning:Xd},Ft={404:qd,500:Jd,403:e1},r1=Object.keys(Ft),s1=()=>({prefixCls:String,icon:z.any,status:{type:[Number,String],default:"info"},title:z.any,subTitle:z.any,extra:z.any}),c1=(e,t)=>{let{status:n,icon:l}=t;if(r1.includes(`${n}`)){const d=Ft[n];return s("div",{class:`${e}-icon ${e}-image`},[s(d,null,null)])}const o=a1[n],c=l||s(o,null,null);return s("div",{class:`${e}-icon`},[c])},u1=(e,t)=>t&&s("div",{class:`${e}-extra`},[t]),st=U({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:s1(),slots:Object,setup(e,t){let{slots:n,attrs:l}=t;const{prefixCls:o,direction:c}=ge("result",e),[d,i]=i1(o),r=O(()=>G(o.value,i.value,`${o.value}-${e.status}`,{[`${o.value}-rtl`]:c.value==="rtl"}));return()=>{var a,u,f,g,v,h,m,C;const b=(a=e.title)!==null&&a!==void 0?a:(u=n.title)===null||u===void 0?void 0:u.call(n),y=(f=e.subTitle)!==null&&f!==void 0?f:(g=n.subTitle)===null||g===void 0?void 0:g.call(n),k=(v=e.icon)!==null&&v!==void 0?v:(h=n.icon)===null||h===void 0?void 0:h.call(n),T=(m=e.extra)!==null&&m!==void 0?m:(C=n.extra)===null||C===void 0?void 0:C.call(n),x=o.value;return d(s("div",P(P({},l),{},{class:[r.value,l.class]}),[c1(x,{status:e.status,icon:k}),s("div",{class:`${x}-title`},[b]),y&&s("div",{class:`${x}-subtitle`},[y]),u1(x,T),n.default&&s("div",{class:`${x}-content`},[n.default()])]))}}});st.PRESENTED_IMAGE_403=Ft[403];st.PRESENTED_IMAGE_404=Ft[404];st.PRESENTED_IMAGE_500=Ft[500];st.install=function(e){return e.component(st.name,st),e};const d1=st,f1={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},h1=U({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:we(f1,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const l=o=>{var c;n("change",o),o.target.value===""&&((c=e.handleClear)===null||c===void 0||c.call(e))};return()=>{const{placeholder:o,value:c,prefixCls:d,disabled:i}=e;return s(Do,{placeholder:o,class:d,value:c,onChange:l,disabled:i,allowClear:!0},{prefix:()=>s(sa,null,null)})}}});function p1(){}const g1={renderedText:z.any,renderedEl:z.any,item:z.any,checked:Y(),prefixCls:String,disabled:Y(),showRemove:Y(),onClick:Function,onRemove:Function},v1=U({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:g1,emits:["click","remove"],setup(e,t){let{emit:n}=t;return()=>{const{renderedText:l,renderedEl:o,item:c,checked:d,disabled:i,prefixCls:r,showRemove:a}=e,u=G({[`${r}-content-item`]:!0,[`${r}-content-item-disabled`]:i||c.disabled});let f;return(typeof l=="string"||typeof l=="number")&&(f=String(l)),s(Zn,{componentName:"Transfer",defaultLocale:qn.Transfer},{default:g=>{const v=s("span",{class:`${r}-content-item-text`},[o]);return a?s("li",{class:u,title:f},[v,s(ca,{disabled:i||c.disabled,class:`${r}-content-item-remove`,"aria-label":g.remove,onClick:()=>{n("remove",c)}},{default:()=>[s(ua,null,null)]})]):s("li",{class:u,title:f,onClick:i||c.disabled?p1:()=>{n("click",c)}},[s(Yn,{class:`${r}-checkbox`,checked:d,disabled:i||c.disabled},null),v])}})}}}),m1={prefixCls:String,filteredRenderItems:z.array.def([]),selectedKeys:z.array,disabled:Y(),showRemove:Y(),pagination:z.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function b1(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?p(p({},t),e):t}const S1=U({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:m1,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:l}=t;const o=te(1),c=f=>{const{selectedKeys:g}=e,v=g.indexOf(f.key)>=0;n("itemSelect",f.key,!v)},d=f=>{n("itemRemove",[f.key])},i=f=>{n("scroll",f)},r=O(()=>b1(e.pagination));se([r,()=>e.filteredRenderItems],()=>{if(r.value){const f=Math.ceil(e.filteredRenderItems.length/r.value.pageSize);o.value=Math.min(o.value,f)}},{immediate:!0});const a=O(()=>{const{filteredRenderItems:f}=e;let g=f;return r.value&&(g=f.slice((o.value-1)*r.value.pageSize,o.value*r.value.pageSize)),g}),u=f=>{o.value=f};return l({items:a}),()=>{const{prefixCls:f,filteredRenderItems:g,selectedKeys:v,disabled:h,showRemove:m}=e;let C=null;r.value&&(C=s(zo,{simple:r.value.simple,showSizeChanger:r.value.showSizeChanger,showLessItems:r.value.showLessItems,size:"small",disabled:h,class:`${f}-pagination`,total:g.length,pageSize:r.value.pageSize,current:o.value,onChange:u},null));const b=a.value.map(y=>{let{renderedEl:k,renderedText:T,item:x}=y;const{disabled:A}=x,S=v.indexOf(x.key)>=0;return s(v1,{disabled:h||A,key:x.key,item:x,renderedText:T,renderedEl:k,checked:S,prefixCls:f,onClick:c,onRemove:d,showRemove:m},null)});return s(Ve,null,[s("ul",{class:G(`${f}-content`,{[`${f}-content-show-remove`]:m}),onScroll:i},[b]),C])}}}),y1=S1,Dn=e=>{const t=new Map;return e.forEach((n,l)=>{t.set(n,l)}),t},w1=e=>{const t=new Map;return e.forEach((n,l)=>{let{disabled:o,key:c}=n;o&&t.set(c,l)}),t},C1=()=>null;function x1(e){return!!(e&&!So(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Lt(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const $1={prefixCls:String,dataSource:Ie([]),filter:String,filterOption:Function,checkedKeys:z.arrayOf(z.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Y(!1),searchPlaceholder:String,notFoundContent:z.any,itemUnit:String,itemsUnit:String,renderList:z.any,disabled:Y(),direction:be(),showSelectAll:Y(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:z.any,showRemove:Y(),pagination:z.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},to=U({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:$1,slots:Object,setup(e,t){let{attrs:n,slots:l}=t;const o=te(""),c=te(),d=te(),i=(x,A)=>{let S=x?x(A):null;const M=!!S&&Wn(S).length>0;return M||(S=s(y1,P(P({},A),{},{ref:d}),null)),{customize:M,bodyContent:S}},r=x=>{const{renderItem:A=C1}=e,S=A(x),M=x1(S);return{renderedText:M?S.value:S,renderedEl:M?S.label:S,item:x}},a=te([]),u=te([]);Re(()=>{const x=[],A=[];e.dataSource.forEach(S=>{const M=r(S),{renderedText:F}=M;if(o.value&&o.value.trim()&&!b(F,S))return null;x.push(S),A.push(M)}),a.value=x,u.value=A});const f=O(()=>{const{checkedKeys:x}=e;if(x.length===0)return"none";const A=Dn(x);return a.value.every(S=>A.has(S.key)||!!S.disabled)?"all":"part"}),g=O(()=>Lt(a.value)),v=(x,A)=>Array.from(new Set([...x,...e.checkedKeys])).filter(S=>A.indexOf(S)===-1),h=x=>{let{disabled:A,prefixCls:S}=x;var M;const F=f.value==="all";return s(Yn,{disabled:((M=e.dataSource)===null||M===void 0?void 0:M.length)===0||A,checked:F,indeterminate:f.value==="part",class:`${S}-checkbox`,onChange:()=>{const w=g.value;e.onItemSelectAll(v(F?[]:w,F?e.checkedKeys:[]))}},null)},m=x=>{var A;const{target:{value:S}}=x;o.value=S,(A=e.handleFilter)===null||A===void 0||A.call(e,x)},C=x=>{var A;o.value="",(A=e.handleClear)===null||A===void 0||A.call(e,x)},b=(x,A)=>{const{filterOption:S}=e;return S?S(o.value,A):x.includes(o.value)},y=(x,A)=>{const{itemsUnit:S,itemUnit:M,selectAllLabel:F}=e;if(F)return typeof F=="function"?F({selectedCount:x,totalCount:A}):F;const I=A>1?S:M;return s(Ve,null,[(x>0?`${x}/`:"")+A,at(" "),I])},k=O(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),T=(x,A,S,M,F,I)=>{const w=F?s("div",{class:`${x}-body-search-wrapper`},[s(h1,{prefixCls:`${x}-search`,onChange:m,handleClear:C,placeholder:A,value:o.value,disabled:I},null)]):null;let $;const{onEvents:E}=da(n),{bodyContent:R,customize:D}=i(M,p(p(p({},e),{filteredItems:a.value,filteredRenderItems:u.value,selectedKeys:S}),E));return D?$=s("div",{class:`${x}-body-customize-wrapper`},[R]):$=a.value.length?R:s("div",{class:`${x}-body-not-found`},[k.value]),s("div",{class:F?`${x}-body ${x}-body-with-search`:`${x}-body`,ref:c},[w,$])};return()=>{var x,A;const{prefixCls:S,checkedKeys:M,disabled:F,showSearch:I,searchPlaceholder:w,selectAll:$,selectCurrent:E,selectInvert:R,removeAll:D,removeCurrent:V,renderList:q,onItemSelectAll:Q,onItemRemove:X,showSelectAll:ie=!0,showRemove:B,pagination:L}=e,H=(x=l.footer)===null||x===void 0?void 0:x.call(l,p({},e)),_=G(S,{[`${S}-with-pagination`]:!!L,[`${S}-with-footer`]:!!H}),N=T(S,w,M,q,I,F),j=H?s("div",{class:`${S}-footer`},[H]):null,Z=!B&&!L&&h({disabled:F,prefixCls:S});let oe=null;B?oe=s(Xe,null,{default:()=>[L&&s(Xe.Item,{key:"removeCurrent",onClick:()=>{const W=Lt((d.value.items||[]).map(ce=>ce.item));X==null||X(W)}},{default:()=>[V]}),s(Xe.Item,{key:"removeAll",onClick:()=>{X==null||X(g.value)}},{default:()=>[D]})]}):oe=s(Xe,null,{default:()=>[s(Xe.Item,{key:"selectAll",onClick:()=>{const W=g.value;Q(v(W,[]))}},{default:()=>[$]}),L&&s(Xe.Item,{onClick:()=>{const W=Lt((d.value.items||[]).map(ce=>ce.item));Q(v(W,[]))}},{default:()=>[E]}),s(Xe.Item,{key:"selectInvert",onClick:()=>{let W;L?W=Lt((d.value.items||[]).map(Se=>Se.item)):W=g.value;const ce=new Set(M),ve=[],Ce=[];W.forEach(Se=>{ce.has(Se)?Ce.push(Se):ve.push(Se)}),Q(v(ve,Ce))}},{default:()=>[R]})]});const ue=s(_o,{class:`${S}-header-dropdown`,overlay:oe,disabled:F},{default:()=>[s(No,null,null)]});return s("div",{class:_,style:n.style},[s("div",{class:`${S}-header`},[ie?s(Ve,null,[Z,ue]):null,s("span",{class:`${S}-header-selected`},[s("span",null,[y(M.length,a.value.length)]),s("span",{class:`${S}-header-title`},[(A=l.titleText)===null||A===void 0?void 0:A.call(l)])])]),N,j])}}});function no(){}const ml=e=>{const{disabled:t,moveToLeft:n=no,moveToRight:l=no,leftArrowText:o="",rightArrowText:c="",leftActive:d,rightActive:i,class:r,style:a,direction:u,oneWay:f}=e;return s("div",{class:r,style:a},[s(yt,{type:"primary",size:"small",disabled:t||!i,onClick:l,icon:u!=="rtl"?s(Xt,null,null):s(Yt,null,null)},{default:()=>[c]}),!f&&s(yt,{type:"primary",size:"small",disabled:t||!d,onClick:n,icon:u!=="rtl"?s(Yt,null,null):s(Xt,null,null)},{default:()=>[o]})])};ml.displayName="Operation";ml.inheritAttrs=!1;const k1=ml,M1=e=>{const{antCls:t,componentCls:n,listHeight:l,controlHeightLG:o,marginXXS:c,margin:d}=e,i=`${t}-table`,r=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:l},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:o,minWidth:o}},[`${i}-pagination${i}-pagination`]:{margin:`${d}px 0 ${c}px`}},[`${r}[disabled]`]:{backgroundColor:"transparent"}}}},lo=(e,t)=>{const{componentCls:n,colorBorder:l}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:l}}}},T1=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:p({},lo(e,e.colorError)),[`${t}-status-warning`]:p({},lo(e,e.colorWarning))}},A1=e=>{const{componentCls:t,colorBorder:n,colorSplit:l,lineWidth:o,transferItemHeight:c,transferHeaderHeight:d,transferHeaderVerticalPadding:i,transferItemPaddingVertical:r,controlItemBgActive:a,controlItemBgActiveHover:u,colorTextDisabled:f,listHeight:g,listWidth:v,listWidthLG:h,fontSizeIcon:m,marginXS:C,paddingSM:b,lineType:y,iconCls:k,motionDurationSlow:T}=e;return{display:"flex",flexDirection:"column",width:v,height:g,border:`${o}px ${y} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${k}-search`]:{color:f}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:d,padding:`${i-o}px ${b}px ${i}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${o}px ${y} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":p(p({},Mt),{flex:"auto",textAlign:"end"}),"&-dropdown":p(p({},Oo()),{fontSize:m,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:b}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:c,padding:`${r}px ${b}px`,transition:`all ${T}`,"> *:not(:last-child)":{marginInlineEnd:C},"> *":{flex:"none"},"&-text":p(p({},Mt),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${T}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${r}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:a},"&-disabled":{color:f,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${y} ${l}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:f,textAlign:"center"},"&-footer":{borderTop:`${o}px ${y} ${l}`},"&-checkbox":{lineHeight:1}}},I1=e=>{const{antCls:t,iconCls:n,componentCls:l,transferHeaderHeight:o,marginXS:c,marginXXS:d,fontSizeIcon:i,fontSize:r,lineHeight:a}=e;return{[l]:p(p({},Me(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${l}-disabled`]:{[`${l}-list`]:{background:e.colorBgContainerDisabled}},[`${l}-list`]:A1(e),[`${l}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${c}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:d},[n]:{fontSize:i}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(r*a)}})}},E1=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},P1=ye("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:l,controlHeightLG:o,controlHeight:c}=e,d=Math.round(t*n),i=o,r=c,a=$e(e,{transferItemHeight:r,transferHeaderHeight:i,transferHeaderVerticalPadding:Math.ceil((i-l-d)/2),transferItemPaddingVertical:(r-d)/2});return[I1(a),M1(a),T1(a),E1(a)]},{listWidth:180,listHeight:200,listWidthLG:250}),O1=()=>({id:String,prefixCls:String,dataSource:Ie([]),disabled:Y(),targetKeys:Ie(),selectedKeys:Ie(),render:J(),listStyle:pe([Function,Object],()=>({})),operationStyle:Ee(void 0),titles:Ie(),operations:Ie(),showSearch:Y(!1),filterOption:J(),searchPlaceholder:String,notFoundContent:z.any,locale:Ee(),rowKey:J(),showSelectAll:Y(),selectAllLabels:Ie(),children:J(),oneWay:Y(),pagination:pe([Object,Boolean]),status:be(),onChange:J(),onSelectChange:J(),onSearch:J(),onScroll:J(),"onUpdate:targetKeys":J(),"onUpdate:selectedKeys":J()}),F1=U({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:O1(),slots:Object,setup(e,t){let{emit:n,attrs:l,slots:o,expose:c}=t;const{configProvider:d,prefixCls:i,direction:r}=ge("transfer",e),[a,u]=P1(i),f=te([]),g=te([]),v=Ot(),h=en.useInject(),m=O(()=>tn(h.status,e.status));se(()=>e.selectedKeys,()=>{var N,j;f.value=((N=e.selectedKeys)===null||N===void 0?void 0:N.filter(Z=>e.targetKeys.indexOf(Z)===-1))||[],g.value=((j=e.selectedKeys)===null||j===void 0?void 0:j.filter(Z=>e.targetKeys.indexOf(Z)>-1))||[]},{immediate:!0});const C=(N,j)=>{const Z={notFoundContent:j("Transfer")},oe=fa(o,e,"notFoundContent");return oe&&(Z.notFoundContent=oe),e.searchPlaceholder!==void 0&&(Z.searchPlaceholder=e.searchPlaceholder),p(p(p({},N),Z),e.locale)},b=N=>{const{targetKeys:j=[],dataSource:Z=[]}=e,oe=N==="right"?f.value:g.value,ue=w1(Z),W=oe.filter(Se=>!ue.has(Se)),ce=Dn(W),ve=N==="right"?W.concat(j):j.filter(Se=>!ce.has(Se)),Ce=N==="right"?"left":"right";N==="right"?f.value=[]:g.value=[],n("update:targetKeys",ve),S(Ce,[]),n("change",ve,N,W),v.onFieldChange()},y=()=>{b("left")},k=()=>{b("right")},T=(N,j)=>{S(N,j)},x=N=>T("left",N),A=N=>T("right",N),S=(N,j)=>{N==="left"?(e.selectedKeys||(f.value=j),n("update:selectedKeys",[...j,...g.value]),n("selectChange",j,We(g.value))):(e.selectedKeys||(g.value=j),n("update:selectedKeys",[...j,...f.value]),n("selectChange",We(f.value),j))},M=(N,j)=>{const Z=j.target.value;n("search",N,Z)},F=N=>{M("left",N)},I=N=>{M("right",N)},w=N=>{n("search",N,"")},$=()=>{w("left")},E=()=>{w("right")},R=(N,j,Z)=>{const oe=N==="left"?[...f.value]:[...g.value],ue=oe.indexOf(j);ue>-1&&oe.splice(ue,1),Z&&oe.push(j),S(N,oe)},D=(N,j)=>R("left",N,j),V=(N,j)=>R("right",N,j),q=N=>{const{targetKeys:j=[]}=e,Z=j.filter(oe=>!N.includes(oe));n("update:targetKeys",Z),n("change",Z,"left",[...N])},Q=(N,j)=>{n("scroll",N,j)},X=N=>{Q("left",N)},ie=N=>{Q("right",N)},B=(N,j)=>typeof N=="function"?N({direction:j}):N,L=te([]),H=te([]);Re(()=>{const{dataSource:N,rowKey:j,targetKeys:Z=[]}=e,oe=[],ue=new Array(Z.length),W=Dn(Z);N.forEach(ce=>{j&&(ce.key=j(ce)),W.has(ce.key)?ue[W.get(ce.key)]=ce:oe.push(ce)}),L.value=oe,H.value=ue}),c({handleSelectChange:S});const _=N=>{var j,Z,oe,ue,W,ce;const{disabled:ve,operations:Ce=[],showSearch:Se,listStyle:Te,operationStyle:Ke,filterOption:Le,showSelectAll:De,selectAllLabels:Be=[],oneWay:Ge,pagination:Ue,id:K=v.id.value}=e,{class:ne,style:le}=l,re=o.children,me=!re&&Ue,de=d.renderEmpty,ae=C(N,de),{footer:fe}=o,ke=e.render||o.render,ze=g.value.length>0,_e=f.value.length>0,Pe=G(i.value,ne,{[`${i.value}-disabled`]:ve,[`${i.value}-customize-list`]:!!re,[`${i.value}-rtl`]:r.value==="rtl"},rt(i.value,m.value,h.hasFeedback),u.value),xe=e.titles,He=(oe=(j=xe&&xe[0])!==null&&j!==void 0?j:(Z=o.leftTitle)===null||Z===void 0?void 0:Z.call(o))!==null&&oe!==void 0?oe:(ae.titles||["",""])[0],ft=(ce=(ue=xe&&xe[1])!==null&&ue!==void 0?ue:(W=o.rightTitle)===null||W===void 0?void 0:W.call(o))!==null&&ce!==void 0?ce:(ae.titles||["",""])[1];return s("div",P(P({},l),{},{class:Pe,style:le,id:K}),[s(to,P({key:"leftList",prefixCls:`${i.value}-list`,dataSource:L.value,filterOption:Le,style:B(Te,"left"),checkedKeys:f.value,handleFilter:F,handleClear:$,onItemSelect:D,onItemSelectAll:x,renderItem:ke,showSearch:Se,renderList:re,onScroll:X,disabled:ve,direction:r.value==="rtl"?"right":"left",showSelectAll:De,selectAllLabel:Be[0]||o.leftSelectAllLabel,pagination:me},ae),{titleText:()=>He,footer:fe}),s(k1,{key:"operation",class:`${i.value}-operation`,rightActive:_e,rightArrowText:Ce[0],moveToRight:k,leftActive:ze,leftArrowText:Ce[1],moveToLeft:y,style:Ke,disabled:ve,direction:r.value,oneWay:Ge},null),s(to,P({key:"rightList",prefixCls:`${i.value}-list`,dataSource:H.value,filterOption:Le,style:B(Te,"right"),checkedKeys:g.value,handleFilter:I,handleClear:E,onItemSelect:V,onItemSelectAll:A,onItemRemove:q,renderItem:ke,showSearch:Se,renderList:re,onScroll:ie,disabled:ve,direction:r.value==="rtl"?"left":"right",showSelectAll:De,selectAllLabel:Be[1]||o.rightSelectAllLabel,showRemove:Ge,pagination:me},ae),{titleText:()=>ft,footer:fe})])};return()=>a(s(Zn,{componentName:"Transfer",defaultLocale:qn.Transfer,children:_},null))}}),B1=Je(F1);function N1(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function R1(e){const{label:t,value:n,children:l}=e||{},o=n||"value";return{_title:t?[t]:["title","label"],value:o,key:o,children:l||"children"}}function zn(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function L1(e,t){const n=[];function l(o){o.forEach(c=>{n.push(c[t.value]);const d=c[t.children];d&&l(d)})}return l(e),n}function oo(e){return e==null}const wi=Symbol("TreeSelectContextPropsKey");function D1(e){return nt(wi,e)}function z1(){return ut(wi,{})}const _1={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},H1=U({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:l}=t;const o=ha(),c=pa(),d=z1(),i=te(),r=ga(()=>d.treeData,[()=>o.open,()=>d.treeData],x=>x[0]),a=O(()=>{const{checkable:x,halfCheckedKeys:A,checkedKeys:S}=c;return x?{checked:S,halfChecked:A}:null});se(()=>o.open,()=>{et(()=>{var x;o.open&&!o.multiple&&c.checkedKeys.length&&((x=i.value)===null||x===void 0||x.scrollTo({key:c.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const u=O(()=>String(o.searchValue).toLowerCase()),f=x=>u.value?String(x[c.treeNodeFilterProp]).toLowerCase().includes(u.value):!1,g=ee(c.treeDefaultExpandedKeys),v=ee(null);se(()=>o.searchValue,()=>{o.searchValue&&(v.value=L1(We(d.treeData),We(d.fieldNames)))},{immediate:!0});const h=O(()=>c.treeExpandedKeys?c.treeExpandedKeys.slice():o.searchValue?v.value:g.value),m=x=>{var A;g.value=x,v.value=x,(A=c.onTreeExpand)===null||A===void 0||A.call(c,x)},C=x=>{x.preventDefault()},b=(x,A)=>{let{node:S}=A;var M,F;const{checkable:I,checkedKeys:w}=c;I&&zn(S)||((M=d.onSelect)===null||M===void 0||M.call(d,S.key,{selected:!w.includes(S.key)}),o.multiple||(F=o.toggleOpen)===null||F===void 0||F.call(o,!1))},y=te(null),k=O(()=>c.keyEntities[y.value]),T=x=>{y.value=x};return l({scrollTo:function(){for(var x,A,S=arguments.length,M=new Array(S),F=0;F{var A;const{which:S}=x;switch(S){case he.UP:case he.DOWN:case he.LEFT:case he.RIGHT:(A=i.value)===null||A===void 0||A.onKeydown(x);break;case he.ENTER:{if(k.value){const{selectable:M,value:F}=k.value.node||{};M!==!1&&b(null,{node:{key:y.value},selected:!c.checkedKeys.includes(F)})}break}case he.ESC:o.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var x;const{prefixCls:A,multiple:S,searchValue:M,open:F,notFoundContent:I=(x=n.notFoundContent)===null||x===void 0?void 0:x.call(n)}=o,{listHeight:w,listItemHeight:$,virtual:E,dropdownMatchSelectWidth:R,treeExpandAction:D}=d,{checkable:V,treeDefaultExpandAll:q,treeIcon:Q,showTreeIcon:X,switcherIcon:ie,treeLine:B,loadData:L,treeLoadedKeys:H,treeMotion:_,onTreeLoad:N,checkedKeys:j}=c;if(r.value.length===0)return s("div",{role:"listbox",class:`${A}-empty`,onMousedown:C},[I]);const Z={fieldNames:d.fieldNames};return H&&(Z.loadedKeys=H),h.value&&(Z.expandedKeys=h.value),s("div",{onMousedown:C},[k.value&&F&&s("span",{style:_1,"aria-live":"assertive"},[k.value.node.value]),s(va,P(P({ref:i,focusable:!1,prefixCls:`${A}-tree`,treeData:r.value,height:w,itemHeight:$,virtual:E!==!1&&R!==!1,multiple:S,icon:Q,showIcon:X,switcherIcon:ie,showLine:B,loadData:M?null:L,motion:_,activeKey:y.value,checkable:V,checkStrictly:!0,checkedKeys:a.value,selectedKeys:V?[]:j,defaultExpandAll:q},Z),{},{onActiveChange:T,onSelect:b,onCheck:b,onExpand:m,onLoad:N,filterTreeNode:f,expandAction:D}),p(p({},n),{checkable:c.customSlots.treeCheckable}))])}}}),j1="SHOW_ALL",Ci="SHOW_PARENT",bl="SHOW_CHILD";function io(e,t,n,l){const o=new Set(e);return t===bl?e.filter(c=>{const d=n[c];return!(d&&d.children&&d.children.some(i=>{let{node:r}=i;return o.has(r[l.value])})&&d.children.every(i=>{let{node:r}=i;return zn(r)||o.has(r[l.value])}))}):t===Ci?e.filter(c=>{const d=n[c],i=d?d.parent:null;return!(i&&!zn(i.node)&&o.has(i.key))}):e}const rn=()=>null;rn.inheritAttrs=!1;rn.displayName="ATreeSelectNode";rn.isTreeSelectNode=!0;const Sl=rn;var W1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o0&&arguments[0]!==void 0?arguments[0]:[];return Wn(n).map(l=>{var o,c,d;if(!V1(l))return null;const i=l.children||{},r=l.key,a={};for(const[S,M]of Object.entries(l.props))a[ma(S)]=M;const{isLeaf:u,checkable:f,selectable:g,disabled:v,disableCheckbox:h}=a,m={isLeaf:u||u===""||void 0,checkable:f||f===""||void 0,selectable:g||g===""||void 0,disabled:v||v===""||void 0,disableCheckbox:h||h===""||void 0},C=p(p({},a),m),{title:b=(o=i.title)===null||o===void 0?void 0:o.call(i,C),switcherIcon:y=(c=i.switcherIcon)===null||c===void 0?void 0:c.call(i,C)}=a,k=W1(a,["title","switcherIcon"]),T=(d=i.default)===null||d===void 0?void 0:d.call(i),x=p(p(p({},k),{title:b,switcherIcon:y,key:r,isLeaf:u}),m),A=t(T);return A.length&&(x.children=A),x})}return t(e)}function _n(e){if(!e)return e;const t=p({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function G1(e,t,n,l,o,c){let d=null,i=null;function r(){function a(u){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map((v,h)=>{const m=`${f}-${h}`,C=v[c.value],b=n.includes(C),y=a(v[c.children]||[],m,b),k=s(Sl,v,{default:()=>[y.map(T=>T.node)]});if(t===C&&(d=k),b){const T={pos:m,node:k,children:y};return g||i.push(T),T}return null}).filter(v=>v)}i||(i=[],a(l),i.sort((u,f)=>{let{node:{props:{value:g}}}=u,{node:{props:{value:v}}}=f;const h=n.indexOf(g),m=n.indexOf(v);return h-m}))}Object.defineProperty(e,"triggerNode",{get(){return r(),d}}),Object.defineProperty(e,"allCheckedNodes",{get(){return r(),o?i:i.map(a=>{let{node:u}=a;return u})}})}function U1(e,t){let{id:n,pId:l,rootPId:o}=t;const c={},d=[];return e.map(r=>{const a=p({},r),u=a[n];return c[u]=a,a.key=a.key||u,a}).forEach(r=>{const a=r[l],u=c[a];u&&(u.children=u.children||[],u.children.push(r)),(a===o||!u&&o===null)&&d.push(r)}),d}function X1(e,t,n){const l=ee();return se([n,e,t],()=>{const o=n.value;e.value?l.value=n.value?U1(We(e.value),p({id:"id",pId:"pId",rootPId:null},o!==!0?o:{})):We(e.value).slice():l.value=K1(We(t.value))},{immediate:!0,deep:!0}),l}const Y1=e=>{const t=ee({valueLabels:new Map}),n=ee();return se(e,()=>{n.value=We(e.value)},{immediate:!0}),[O(()=>{const{valueLabels:o}=t.value,c=new Map,d=n.value.map(i=>{var r;const{value:a}=i,u=(r=i.label)!==null&&r!==void 0?r:o.get(a);return c.set(a,u),p(p({},i),{label:u})});return t.value.valueLabels=c,d})]},q1=(e,t)=>{const n=ee(new Map),l=ee({});return Re(()=>{const o=t.value,c=ba(e.value,{fieldNames:o,initWrapper:d=>p(p({},d),{valueEntities:new Map}),processEntity:(d,i)=>{const r=d.node[o.value];i.valueEntities.set(r,d)}});n.value=c.valueEntities,l.value=c.keyEntities}),{valueEntities:n,keyEntities:l}},Z1=(e,t,n,l,o,c)=>{const d=ee([]),i=ee([]);return Re(()=>{let r=e.value.map(f=>{let{value:g}=f;return g}),a=t.value.map(f=>{let{value:g}=f;return g});const u=r.filter(f=>!l.value[f]);n.value&&({checkedKeys:r,halfCheckedKeys:a}=On(r,!0,l.value,o.value,c.value)),d.value=Array.from(new Set([...u,...r])),i.value=a}),[d,i]},J1=(e,t,n)=>{let{treeNodeFilterProp:l,filterTreeNode:o,fieldNames:c}=n;return O(()=>{const{children:d}=c.value,i=t.value,r=l==null?void 0:l.value;if(!i||o.value===!1)return e.value;let a;if(typeof o.value=="function")a=o.value;else{const f=i.toUpperCase();a=(g,v)=>{const h=v[r];return String(h).toUpperCase().includes(f)}}function u(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const v=[];for(let h=0,m=f.length;he.treeCheckable&&!e.treeCheckStrictly),i=O(()=>e.treeCheckable||e.treeCheckStrictly),r=O(()=>e.treeCheckStrictly||e.labelInValue),a=O(()=>i.value||e.multiple),u=O(()=>R1(e.fieldNames)),[f,g]=Tt("",{value:O(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:K=>K||""}),v=K=>{var ne;g(K),(ne=e.onSearch)===null||ne===void 0||ne.call(e,K)},h=X1(Ye(e,"treeData"),Ye(e,"children"),Ye(e,"treeDataSimpleMode")),{keyEntities:m,valueEntities:C}=q1(h,u),b=K=>{const ne=[],le=[];return K.forEach(re=>{C.value.has(re)?le.push(re):ne.push(re)}),{missingRawValues:ne,existRawValues:le}},y=J1(h,f,{fieldNames:u,treeNodeFilterProp:Ye(e,"treeNodeFilterProp"),filterTreeNode:Ye(e,"filterTreeNode")}),k=K=>{if(K){if(e.treeNodeLabelProp)return K[e.treeNodeLabelProp];const{_title:ne}=u.value;for(let le=0;leN1(K).map(le=>Q1(le)?{value:le}:le),x=K=>T(K).map(le=>{let{label:re}=le;const{value:me,halfChecked:de}=le;let ae;const fe=C.value.get(me);return fe&&(re=re!=null?re:k(fe.node),ae=fe.node.disabled),{label:re,value:me,halfChecked:de,disabled:ae}}),[A,S]=Tt(e.defaultValue,{value:Ye(e,"value")}),M=O(()=>T(A.value)),F=ee([]),I=ee([]);Re(()=>{const K=[],ne=[];M.value.forEach(le=>{le.halfChecked?ne.push(le):K.push(le)}),F.value=K,I.value=ne});const w=O(()=>F.value.map(K=>K.value)),{maxLevel:$,levelEntities:E}=ya(m),[R,D]=Z1(F,I,d,m,$,E),V=O(()=>{const le=io(R.value,e.showCheckedStrategy,m.value,u.value).map(de=>{var ae,fe,ke;return(ke=(fe=(ae=m.value[de])===null||ae===void 0?void 0:ae.node)===null||fe===void 0?void 0:fe[u.value.value])!==null&&ke!==void 0?ke:de}).map(de=>{const ae=F.value.find(fe=>fe.value===de);return{value:de,label:ae==null?void 0:ae.label}}),re=x(le),me=re[0];return!a.value&&me&&oo(me.value)&&oo(me.label)?[]:re.map(de=>{var ae;return p(p({},de),{label:(ae=de.label)!==null&&ae!==void 0?ae:de.value})})}),[q]=Y1(V),Q=(K,ne,le)=>{const re=x(K);if(S(re),e.autoClearSearchValue&&g(""),e.onChange){let me=K;d.value&&(me=io(K,e.showCheckedStrategy,m.value,u.value).map(He=>{const ft=C.value.get(He);return ft?ft.node[u.value.value]:He}));const{triggerValue:de,selected:ae}=ne||{triggerValue:void 0,selected:void 0};let fe=me;if(e.treeCheckStrictly){const xe=I.value.filter(He=>!me.includes(He.value));fe=[...fe,...xe]}const ke=x(fe),ze={preValue:F.value,triggerValue:de};let _e=!0;(e.treeCheckStrictly||le==="selection"&&!ae)&&(_e=!1),G1(ze,de,K,h.value,_e,u.value),i.value?ze.checked=ae:ze.selected=ae;const Pe=r.value?ke:ke.map(xe=>xe.value);e.onChange(a.value?Pe:Pe[0],r.value?null:ke.map(xe=>xe.label),ze)}},X=(K,ne)=>{let{selected:le,source:re}=ne;var me,de,ae;const fe=We(m.value),ke=We(C.value),ze=fe[K],_e=ze==null?void 0:ze.node,Pe=(me=_e==null?void 0:_e[u.value.value])!==null&&me!==void 0?me:K;if(!a.value)Q([Pe],{selected:!0,triggerValue:Pe},"option");else{let xe=le?[...w.value,Pe]:R.value.filter(He=>He!==Pe);if(d.value){const{missingRawValues:He,existRawValues:ft}=b(xe),xl=ft.map(cn=>ke.get(cn).key);let sn;le?{checkedKeys:sn}=On(xl,!0,fe,$.value,E.value):{checkedKeys:sn}=On(xl,{checked:!1,halfCheckedKeys:D.value},fe,$.value,E.value),xe=[...He,...sn.map(cn=>fe[cn].node[u.value.value])]}Q(xe,{selected:le,triggerValue:Pe},re||"option")}le||!a.value?(de=e.onSelect)===null||de===void 0||de.call(e,Pe,_n(_e)):(ae=e.onDeselect)===null||ae===void 0||ae.call(e,Pe,_n(_e))},ie=K=>{if(e.onDropdownVisibleChange){const ne={};Object.defineProperty(ne,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(K,ne)}},B=(K,ne)=>{const le=K.map(re=>re.value);if(ne.type==="clear"){Q(le,{},"selection");return}ne.values.length&&X(ne.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:L,loadData:H,treeLoadedKeys:_,onTreeLoad:N,treeDefaultExpandAll:j,treeExpandedKeys:Z,treeDefaultExpandedKeys:oe,onTreeExpand:ue,virtual:W,listHeight:ce,listItemHeight:ve,treeLine:Ce,treeIcon:Se,showTreeIcon:Te,switcherIcon:Ke,treeMotion:Le,customSlots:De,dropdownMatchSelectWidth:Be,treeExpandAction:Ge}=ln(e);wa(Tl({checkable:i,loadData:H,treeLoadedKeys:_,onTreeLoad:N,checkedKeys:R,halfCheckedKeys:D,treeDefaultExpandAll:j,treeExpandedKeys:Z,treeDefaultExpandedKeys:oe,onTreeExpand:ue,treeIcon:Se,treeMotion:Le,showTreeIcon:Te,switcherIcon:Ke,treeLine:Ce,treeNodeFilterProp:L,keyEntities:m,customSlots:De})),D1(Tl({virtual:W,listHeight:ce,listItemHeight:ve,treeData:y,fieldNames:u,onSelect:X,dropdownMatchSelectWidth:Be,treeExpandAction:Ge}));const Ue=te();return l({focus(){var K;(K=Ue.value)===null||K===void 0||K.focus()},blur(){var K;(K=Ue.value)===null||K===void 0||K.blur()},scrollTo(K){var ne;(ne=Ue.value)===null||ne===void 0||ne.scrollTo(K)}}),()=>{var K;const ne=Oe(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return s(Ca,P(P(P({ref:Ue},n),ne),{},{id:c,prefixCls:e.prefixCls,mode:a.value?"multiple":void 0,displayValues:q.value,onDisplayValuesChange:B,searchValue:f.value,onSearch:v,OptionList:H1,emptyOptions:!h.value.length,onDropdownVisibleChange:ie,tagRender:e.tagRender||o.tagRender,dropdownMatchSelectWidth:(K=e.dropdownMatchSelectWidth)!==null&&K!==void 0?K:!0}),o)}}}),tf=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:l}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},$a(n,$e(e,{colorBgContainer:l})),{[o]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},ka(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function nf(e,t){return ye("TreeSelect",n=>{const l=$e(n,{treePrefixCls:t.value});return[tf(l)]})(e)}const ao=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function lf(){return p(p({},Oe(xi(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:z.any,size:be(),bordered:Y(),treeLine:pe([Boolean,Object]),replaceFields:Ee(),placement:be(),status:be(),popupClassName:String,dropdownClassName:String,"onUpdate:value":J(),"onUpdate:treeExpandedKeys":J(),"onUpdate:searchValue":J()})}const $n=U({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:we(lf(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:l,expose:o,emit:c}=t;Mo(!(e.treeData===void 0&&l.default)),fn(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),fn(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),fn(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const d=Ot(),i=en.useInject(),r=O(()=>tn(i.status,e.status)),{prefixCls:a,renderEmpty:u,direction:f,virtual:g,dropdownMatchSelectWidth:v,size:h,getPopupContainer:m,getPrefixCls:C,disabled:b}=ge("select",e),{compactSize:y,compactItemClassnames:k}=Fo(a,f),T=O(()=>y.value||h.value),x=Bo(),A=O(()=>{var _;return(_=b.value)!==null&&_!==void 0?_:x.value}),S=O(()=>C()),M=O(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft"),F=O(()=>ao(S.value,Ia(M.value),e.transitionName)),I=O(()=>ao(S.value,"",e.choiceTransitionName)),w=O(()=>C("select-tree",e.prefixCls)),$=O(()=>C("tree-select",e.prefixCls)),[E,R]=Ma(a),[D]=nf($,w),V=O(()=>G(e.popupClassName||e.dropdownClassName,`${$.value}-dropdown`,{[`${$.value}-dropdown-rtl`]:f.value==="rtl"},R.value)),q=O(()=>!!(e.treeCheckable||e.multiple)),Q=O(()=>e.showArrow!==void 0?e.showArrow:e.loading||!q.value),X=te();o({focus(){var _,N;(N=(_=X.value).focus)===null||N===void 0||N.call(_)},blur(){var _,N;(N=(_=X.value).blur)===null||N===void 0||N.call(_)}});const ie=function(){for(var _=arguments.length,N=new Array(_),j=0;j<_;j++)N[j]=arguments[j];c("update:value",N[0]),c("change",...N),d.onFieldChange()},B=_=>{c("update:treeExpandedKeys",_),c("treeExpand",_)},L=_=>{c("update:searchValue",_),c("search",_)},H=_=>{c("blur",_),d.onFieldBlur()};return()=>{var _,N;const{notFoundContent:j=(_=l.notFoundContent)===null||_===void 0?void 0:_.call(l),prefixCls:Z,bordered:oe,listHeight:ue,listItemHeight:W,multiple:ce,treeIcon:ve,treeLine:Ce,showArrow:Se,switcherIcon:Te=(N=l.switcherIcon)===null||N===void 0?void 0:N.call(l),fieldNames:Ke=e.replaceFields,id:Le=d.id.value}=e,{isFormItemInput:De,hasFeedback:Be,feedbackIcon:Ge}=i,{suffixIcon:Ue,removeIcon:K,clearIcon:ne}=Ta(p(p({},e),{multiple:q.value,showArrow:Q.value,hasFeedback:Be,feedbackIcon:Ge,prefixCls:a.value}),l);let le;j!==void 0?le=j:le=u("Select");const re=Oe(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),me=G(!Z&&$.value,{[`${a.value}-lg`]:T.value==="large",[`${a.value}-sm`]:T.value==="small",[`${a.value}-rtl`]:f.value==="rtl",[`${a.value}-borderless`]:!oe,[`${a.value}-in-form-item`]:De},rt(a.value,r.value,Be),k.value,n.class,R.value),de={};return e.treeData===void 0&&l.default&&(de.children=Pt(l.default())),E(D(s(ef,P(P(P(P({},n),re),{},{disabled:A.value,virtual:g.value,dropdownMatchSelectWidth:v.value,id:Le,fieldNames:Ke,ref:X,prefixCls:a.value,class:me,listHeight:ue,listItemHeight:W,treeLine:!!Ce,inputIcon:Ue,multiple:ce,removeIcon:K,clearIcon:ne,switcherIcon:ae=>Aa(w.value,Te,ae,l.leafIcon,Ce),showTreeIcon:ve,notFoundContent:le,getPopupContainer:m==null?void 0:m.value,treeMotion:null,dropdownClassName:V.value,choiceTransitionName:I.value,onChange:ie,onBlur:H,onSearch:L,onTreeExpand:B},de),{},{transitionName:F.value,customSlots:p(p({},l),{treeCheckable:()=>s("span",{class:`${a.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,placement:M.value,showArrow:Be||Se}),p(p({},l),{treeCheckable:()=>s("span",{class:`${a.value}-tree-checkbox-inner`},null)}))))}}}),Hn=Sl,of=p($n,{TreeNode:Sl,SHOW_ALL:j1,SHOW_PARENT:Ci,SHOW_CHILD:bl,install:e=>(e.component($n.name,$n),e.component(Hn.displayName,Hn),e)});function af(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function rf(e){return Object.keys(e).map(t=>`${af(t)}: ${e[t]};`).join(" ")}function ro(){return window.devicePixelRatio||1}function kn(e,t,n,l){e.translate(t,n),e.rotate(Math.PI/180*Number(l)),e.translate(-t,-n)}const sf=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(l=>l===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var cf=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o2&&arguments[2]!==void 0?arguments[2]:{};const{window:l=Ea}=n,o=cf(n,["window"]);let c;const d=Pa(()=>l&&"MutationObserver"in l),i=()=>{c&&(c.disconnect(),c=void 0)},r=se(()=>Oa(e),u=>{i(),d.value&&l&&u&&(c=new MutationObserver(t),c.observe(u,o))},{immediate:!0}),a=()=>{i(),r()};return Fa(a),{isSupported:d,stop:a}}const Mn=2,so=3,df=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:pe([String,Array]),font:Ee(),rootClassName:String,gap:Ie(),offset:Ie()}),ff=U({name:"AWatermark",inheritAttrs:!1,props:we(df(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:l}=t;const[,o]=Ho(),c=ee(),d=ee(),i=ee(!1),r=O(()=>{var I,w;return(w=(I=e.gap)===null||I===void 0?void 0:I[0])!==null&&w!==void 0?w:100}),a=O(()=>{var I,w;return(w=(I=e.gap)===null||I===void 0?void 0:I[1])!==null&&w!==void 0?w:100}),u=O(()=>r.value/2),f=O(()=>a.value/2),g=O(()=>{var I,w;return(w=(I=e.offset)===null||I===void 0?void 0:I[0])!==null&&w!==void 0?w:u.value}),v=O(()=>{var I,w;return(w=(I=e.offset)===null||I===void 0?void 0:I[1])!==null&&w!==void 0?w:f.value}),h=O(()=>{var I,w;return(w=(I=e.font)===null||I===void 0?void 0:I.fontSize)!==null&&w!==void 0?w:o.value.fontSizeLG}),m=O(()=>{var I,w;return(w=(I=e.font)===null||I===void 0?void 0:I.fontWeight)!==null&&w!==void 0?w:"normal"}),C=O(()=>{var I,w;return(w=(I=e.font)===null||I===void 0?void 0:I.fontStyle)!==null&&w!==void 0?w:"normal"}),b=O(()=>{var I,w;return(w=(I=e.font)===null||I===void 0?void 0:I.fontFamily)!==null&&w!==void 0?w:"sans-serif"}),y=O(()=>{var I,w;return(w=(I=e.font)===null||I===void 0?void 0:I.color)!==null&&w!==void 0?w:o.value.colorFill}),k=O(()=>{var I;const w={zIndex:(I=e.zIndex)!==null&&I!==void 0?I:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let $=g.value-u.value,E=v.value-f.value;return $>0&&(w.left=`${$}px`,w.width=`calc(100% - ${$}px)`,$=0),E>0&&(w.top=`${E}px`,w.height=`calc(100% - ${E}px)`,E=0),w.backgroundPosition=`${$}px ${E}px`,w}),T=()=>{d.value&&(d.value.remove(),d.value=void 0)},x=(I,w)=>{var $;c.value&&d.value&&(i.value=!0,d.value.setAttribute("style",rf(p(p({},k.value),{backgroundImage:`url('${I}')`,backgroundSize:`${(r.value+w)*Mn}px`}))),($=c.value)===null||$===void 0||$.append(d.value),setTimeout(()=>{i.value=!1}))},A=I=>{let w=120,$=64;const E=e.content,R=e.image,D=e.width,V=e.height;if(!R&&I.measureText){I.font=`${Number(h.value)}px ${b.value}`;const q=Array.isArray(E)?E:[E],Q=q.map(X=>I.measureText(X).width);w=Math.ceil(Math.max(...Q)),$=Number(h.value)*q.length+(q.length-1)*so}return[D!=null?D:w,V!=null?V:$]},S=(I,w,$,E,R)=>{const D=ro(),V=e.content,q=Number(h.value)*D;I.font=`${C.value} normal ${m.value} ${q}px/${R}px ${b.value}`,I.fillStyle=y.value,I.textAlign="center",I.textBaseline="top",I.translate(E/2,0);const Q=Array.isArray(V)?V:[V];Q==null||Q.forEach((X,ie)=>{I.fillText(X!=null?X:"",w,$+ie*(q+so*D))})},M=()=>{var I;const w=document.createElement("canvas"),$=w.getContext("2d"),E=e.image,R=(I=e.rotate)!==null&&I!==void 0?I:-22;if($){d.value||(d.value=document.createElement("div"));const D=ro(),[V,q]=A($),Q=(r.value+V)*D,X=(a.value+q)*D;w.setAttribute("width",`${Q*Mn}px`),w.setAttribute("height",`${X*Mn}px`);const ie=r.value*D/2,B=a.value*D/2,L=V*D,H=q*D,_=(L+r.value*D)/2,N=(H+a.value*D)/2,j=ie+Q,Z=B+X,oe=_+Q,ue=N+X;if($.save(),kn($,_,N,R),E){const W=new Image;W.onload=()=>{$.drawImage(W,ie,B,L,H),$.restore(),kn($,oe,ue,R),$.drawImage(W,j,Z,L,H),x(w.toDataURL(),V)},W.crossOrigin="anonymous",W.referrerPolicy="no-referrer",W.src=E}else S($,ie,B,L,H),$.restore(),kn($,oe,ue,R),S($,j,Z,L,H),x(w.toDataURL(),V)}};return Qe(()=>{M()}),se(()=>[e,o.value.colorFill,o.value.fontSizeLG],()=>{M()},{deep:!0,flush:"post"}),Fe(()=>{T()}),uf(c,I=>{i.value||I.forEach(w=>{sf(w,d.value)&&(T(),M())})},{attributes:!0}),()=>{var I;return s("div",P(P({},l),{},{ref:c,class:[l.class,e.rootClassName],style:[{position:"relative"},l.style]}),[(I=n.default)===null||I===void 0?void 0:I.call(n)])}}}),hf=Je(ff);function co(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function uo(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const pf=p({overflow:"hidden"},Mt),gf=e=>{const{componentCls:t}=e;return{[t]:p(p(p(p(p({},Me(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":p(p({},uo(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":p({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},pf),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:p(p({},uo(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),co(`&-disabled ${t}-item`,e)),co(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},vf=ye("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:l,colorText:o,colorFillSecondary:c,colorBgLayout:d,colorBgElevated:i}=e,r=$e(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:l,labelColorHover:o,bgColor:d,bgColorHover:c,bgColorSelected:i});return[gf(r)]}),fo=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,ht=e=>e!==void 0?`${e}px`:void 0,mf=U({props:{value:Ne(),getValueIndex:Ne(),prefixCls:Ne(),motionName:Ne(),onMotionStart:Ne(),onMotionEnd:Ne(),direction:Ne(),containerRef:Ne()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const l=te(),o=h=>{var m;const C=e.getValueIndex(h),b=(m=e.containerRef.value)===null||m===void 0?void 0:m.querySelectorAll(`.${e.prefixCls}-item`)[C];return(b==null?void 0:b.offsetParent)&&b},c=te(null),d=te(null);se(()=>e.value,(h,m)=>{const C=o(m),b=o(h),y=fo(C),k=fo(b);c.value=y,d.value=k,n(C&&b?"motionStart":"motionEnd")},{flush:"post"});const i=O(()=>{var h,m;return e.direction==="rtl"?ht(-((h=c.value)===null||h===void 0?void 0:h.right)):ht((m=c.value)===null||m===void 0?void 0:m.left)}),r=O(()=>{var h,m;return e.direction==="rtl"?ht(-((h=d.value)===null||h===void 0?void 0:h.right)):ht((m=d.value)===null||m===void 0?void 0:m.left)});let a;const u=h=>{clearTimeout(a),et(()=>{h&&(h.style.transform="translateX(var(--thumb-start-left))",h.style.width="var(--thumb-start-width)")})},f=h=>{a=setTimeout(()=>{h&&(Ba(h,`${e.motionName}-appear-active`),h.style.transform="translateX(var(--thumb-active-left))",h.style.width="var(--thumb-active-width)")})},g=h=>{c.value=null,d.value=null,h&&(h.style.transform=null,h.style.width=null,Na(h,`${e.motionName}-appear-active`)),n("motionEnd")},v=O(()=>{var h,m;return{"--thumb-start-left":i.value,"--thumb-start-width":ht((h=c.value)===null||h===void 0?void 0:h.width),"--thumb-active-left":r.value,"--thumb-active-width":ht((m=d.value)===null||m===void 0?void 0:m.width)}});return Fe(()=>{clearTimeout(a)}),()=>{const h={ref:l,style:v.value,class:[`${e.prefixCls}-thumb`]};return s(Kn,{appear:!0,onBeforeEnter:u,onEnter:f,onAfterEnter:g},{default:()=>[!c.value||!d.value?null:s("div",h,null)]})}}}),bf=mf;function Sf(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const yf=()=>({prefixCls:String,options:Ie(),block:Y(),disabled:Y(),size:be(),value:p(p({},pe([String,Number])),{required:!0}),motionName:String,onChange:J(),"onUpdate:value":J()}),$i=(e,t)=>{let{slots:n,emit:l}=t;const{value:o,disabled:c,payload:d,title:i,prefixCls:r,label:a=n.label,checked:u,className:f}=e,g=v=>{c||l("change",v,o)};return s("label",{class:G({[`${r}-item-disabled`]:c},f)},[s("input",{class:`${r}-item-input`,type:"radio",disabled:c,checked:u,onChange:g},null),s("div",{class:`${r}-item-label`,title:typeof i=="string"?i:""},[typeof a=="function"?a({value:o,disabled:c,payload:d,title:i}):a!=null?a:o])])};$i.inheritAttrs=!1;const wf=U({name:"ASegmented",inheritAttrs:!1,props:we(yf(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:l,attrs:o}=t;const{prefixCls:c,direction:d,size:i}=ge("segmented",e),[r,a]=vf(c),u=ee(),f=ee(!1),g=O(()=>Sf(e.options)),v=(h,m)=>{e.disabled||(n("update:value",m),n("change",m))};return()=>{const h=c.value;return r(s("div",P(P({},o),{},{class:G(h,{[a.value]:!0,[`${h}-block`]:e.block,[`${h}-disabled`]:e.disabled,[`${h}-lg`]:i.value=="large",[`${h}-sm`]:i.value=="small",[`${h}-rtl`]:d.value==="rtl"},o.class),ref:u}),[s("div",{class:`${h}-group`},[s(bf,{containerRef:u,prefixCls:h,value:e.value,motionName:`${h}-${e.motionName}`,direction:d.value,getValueIndex:m=>g.value.findIndex(C=>C.value===m),onMotionStart:()=>{f.value=!0},onMotionEnd:()=>{f.value=!1}},null),g.value.map(m=>s($i,P(P({key:m.value,prefixCls:h,checked:m.value===e.value,onChange:v},m),{},{className:G(m.className,`${h}-item`,{[`${h}-item-selected`]:m.value===e.value&&!f.value}),disabled:!!e.disabled||!!m.disabled}),l))])]))}}}),Cf=Je(wf),xf=e=>{const{componentCls:t}=e;return{[t]:p(p({},Me(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},$f=ye("QRCode",e=>xf($e(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var kf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const Mf=kf;function ho(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:be("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:Ee()}),If=()=>p(p({},wl()),{errorLevel:be("M"),icon:String,iconSize:{type:Number,default:40},status:be("active"),bordered:{type:Boolean,default:!0}});var ct;(function(e){class t{static encodeText(i,r){const a=e.QrSegment.makeSegments(i);return t.encodeSegments(a,r)}static encodeBinary(i,r){const a=e.QrSegment.makeBytes(i);return t.encodeSegments([a],r)}static encodeSegments(i,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=a&&a<=u&&u<=t.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let v,h;for(v=a;;v++){const y=t.getNumDataCodewords(v,r)*8,k=c.getTotalBits(i,v);if(k<=y){h=k;break}if(v>=u)throw new RangeError("Data too long")}for(const y of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])g&&h<=t.getNumDataCodewords(v,y)*8&&(r=y);const m=[];for(const y of i){n(y.mode.modeBits,4,m),n(y.numChars,y.mode.numCharCountBits(v),m);for(const k of y.getData())m.push(k)}o(m.length==h);const C=t.getNumDataCodewords(v,r)*8;o(m.length<=C),n(0,Math.min(4,C-m.length),m),n(0,(8-m.length%8)%8,m),o(m.length%8==0);for(let y=236;m.lengthb[k>>>3]|=y<<7-(k&7)),new t(v,r,b,f)}constructor(i,r,a,u){if(this.version=i,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],it.MAX_VERSION)throw new RangeError("Version value out of range");if(u<-1||u>7)throw new RangeError("Mask value out of range");this.size=i*4+17;const f=[];for(let v=0;v>>9)*1335;const u=(r<<10|a)^21522;o(u>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,l(u,f));this.setFunctionModule(8,7,l(u,6)),this.setFunctionModule(8,8,l(u,7)),this.setFunctionModule(7,8,l(u,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,l(u,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,l(u,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,l(u,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let i=this.version;for(let a=0;a<12;a++)i=i<<1^(i>>>11)*7973;const r=this.version<<12|i;o(r>>>18==0);for(let a=0;a<18;a++){const u=l(r,a),f=this.size-11+a%3,g=Math.floor(a/3);this.setFunctionModule(f,g,u),this.setFunctionModule(g,f,u)}}drawFinderPattern(i,r){for(let a=-4;a<=4;a++)for(let u=-4;u<=4;u++){const f=Math.max(Math.abs(u),Math.abs(a)),g=i+u,v=r+a;0<=g&&g{(y!=h-f||T>=v)&&b.push(k[y])});return o(b.length==g),b}drawCodewords(i){if(i.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let a=this.size-1;a>=1;a-=2){a==6&&(a=5);for(let u=0;u>>3],7-(r&7)),r++)}}o(r==i.length*8)}applyMask(i){if(i<0||i>7)throw new RangeError("Mask value out of range");for(let r=0;r5&&i++):(this.finderPenaltyAddHistory(v,h),g||(i+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),g=this.modules[f][m],v=1);i+=this.finderPenaltyTerminateAndCount(g,v,h)*t.PENALTY_N3}for(let f=0;f5&&i++):(this.finderPenaltyAddHistory(v,h),g||(i+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),g=this.modules[m][f],v=1);i+=this.finderPenaltyTerminateAndCount(g,v,h)*t.PENALTY_N3}for(let f=0;fg+(v?1:0),r);const a=this.size*this.size,u=Math.ceil(Math.abs(r*20-a*10)/a)-1;return o(0<=u&&u<=9),i+=u*t.PENALTY_N4,o(0<=i&&i<=2568888),i}getAlignmentPatternPositions(){if(this.version==1)return[];{const i=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(i*2-2))*2,a=[6];for(let u=this.size-7;a.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*i+128)*i+64;if(i>=2){const a=Math.floor(i/7)+2;r-=(25*a-10)*a-55,i>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(i,r){return Math.floor(t.getNumRawDataModules(i)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][i]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][i]}static reedSolomonComputeDivisor(i){if(i<1||i>255)throw new RangeError("Degree out of range");const r=[];for(let u=0;u0);for(const u of i){const f=u^a.shift();a.push(0),r.forEach((g,v)=>a[v]^=t.reedSolomonMultiply(g,f))}return a}static reedSolomonMultiply(i,r){if(i>>>8!=0||r>>>8!=0)throw new RangeError("Byte out of range");let a=0;for(let u=7;u>=0;u--)a=a<<1^(a>>>7)*285,a^=(r>>>u&1)*i;return o(a>>>8==0),a}finderPenaltyCountPatterns(i){const r=i[1];o(r<=this.size*3);const a=r>0&&i[2]==r&&i[3]==r*3&&i[4]==r&&i[5]==r;return(a&&i[0]>=r*4&&i[6]>=r?1:0)+(a&&i[6]>=r*4&&i[0]>=r?1:0)}finderPenaltyTerminateAndCount(i,r,a){return i&&(this.finderPenaltyAddHistory(r,a),r=0),r+=this.size,this.finderPenaltyAddHistory(r,a),this.finderPenaltyCountPatterns(a)}finderPenaltyAddHistory(i,r){r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(d,i,r){if(i<0||i>31||d>>>i!=0)throw new RangeError("Value out of range");for(let a=i-1;a>=0;a--)r.push(d>>>a&1)}function l(d,i){return(d>>>i&1)!=0}function o(d){if(!d)throw new Error("Assertion error")}class c{static makeBytes(i){const r=[];for(const a of i)n(a,8,r);return new c(c.Mode.BYTE,i.length,r)}static makeNumeric(i){if(!c.isNumeric(i))throw new RangeError("String contains non-numeric characters");const r=[];for(let a=0;a=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(l,o){let c=null;l.forEach(function(d,i){if(!d&&c!==null){n.push(`M${c+t} ${o+t}h${i-c}v1H${c+t}z`),c=null;return}if(i===l.length-1){if(!d)return;c===null?n.push(`M${i+t},${o+t} h1v1H${i+t}z`):n.push(`M${c+t},${o+t} h${i+1-c}v1H${c+t}z`);return}d&&c===null&&(c=i)})}),n.join("")}function Pi(e,t){return e.slice().map((n,l)=>l=t.y+t.h?n:n.map((o,c)=>c=t.x+t.w?o:!1))}function Oi(e,t,n,l){if(l==null)return null;const o=e.length+n*2,c=Math.floor(t*Of),d=o/t,i=(l.width||c)*d,r=(l.height||c)*d,a=l.x==null?e.length/2-i/2:l.x*d,u=l.y==null?e.length/2-r/2:l.y*d;let f=null;if(l.excavate){const g=Math.floor(a),v=Math.floor(u),h=Math.ceil(i+a-g),m=Math.ceil(r+u-v);f={x:g,y:v,w:h,h:m}}return{x:a,y:u,h:r,w:i,excavation:f}}function Fi(e,t){return t!=null?Math.floor(t):e?Ef:Pf}const Ff=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Bf=U({name:"QRCodeCanvas",inheritAttrs:!1,props:p(p({},wl()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:l}=t;const o=O(()=>{var r;return(r=e.imageSettings)===null||r===void 0?void 0:r.src}),c=ee(null),d=ee(null),i=ee(!1);return l({toDataURL:(r,a)=>{var u;return(u=c.value)===null||u===void 0?void 0:u.toDataURL(r,a)}}),Re(()=>{const{value:r,size:a=jn,level:u=Mi,bgColor:f=Ti,fgColor:g=Ai,includeMargin:v=Ii,marginSize:h,imageSettings:m}=e;if(c.value!=null){const C=c.value,b=C.getContext("2d");if(!b)return;let y=vt.QrCode.encodeText(r,ki[u]).getModules();const k=Fi(v,h),T=y.length+k*2,x=Oi(y,a,k,m),A=d.value,S=i.value&&x!=null&&A!==null&&A.complete&&A.naturalHeight!==0&&A.naturalWidth!==0;S&&x.excavation!=null&&(y=Pi(y,x.excavation));const M=window.devicePixelRatio||1;C.height=C.width=a*M;const F=a/T*M;b.scale(F,F),b.fillStyle=f,b.fillRect(0,0,T,T),b.fillStyle=g,Ff?b.fill(new Path2D(Ei(y,k))):y.forEach(function(I,w){I.forEach(function($,E){$&&b.fillRect(E+k,w+k,1,1)})}),S&&b.drawImage(A,x.x+k,x.y+k,x.w,x.h)}},{flush:"post"}),se(o,()=>{i.value=!1}),()=>{var r;const a=(r=e.size)!==null&&r!==void 0?r:jn,u={height:`${a}px`,width:`${a}px`};let f=null;return o.value!=null&&(f=s("img",{src:o.value,key:o.value,style:{display:"none"},onLoad:()=>{i.value=!0},ref:d},null)),s(Ve,null,[s("canvas",P(P({},n),{},{style:[u,n.style],ref:c}),null),f])}}}),Nf=U({name:"QRCodeSVG",inheritAttrs:!1,props:p(p({},wl()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,l=null,o=null,c=null,d=null;return Re(()=>{const{value:i,size:r=jn,level:a=Mi,includeMargin:u=Ii,marginSize:f,imageSettings:g}=e;t=vt.QrCode.encodeText(i,ki[a]).getModules(),n=Fi(u,f),l=t.length+n*2,o=Oi(t,r,n,g),g!=null&&o!=null&&(o.excavation!=null&&(t=Pi(t,o.excavation)),d=s("image",{"xlink:href":g.src,height:o.h,width:o.w,x:o.x+n,y:o.y+n,preserveAspectRatio:"none"},null)),c=Ei(t,n)}),()=>{const i=e.bgColor&&Ti,r=e.fgColor&&Ai;return s("svg",{height:e.size,width:e.size,viewBox:`0 0 ${l} ${l}`},[!!e.title&&s("title",null,[e.title]),s("path",{fill:i,d:`M0,0 h${l}v${l}H0z`,"shape-rendering":"crispEdges"},null),s("path",{fill:r,d:c,"shape-rendering":"crispEdges"},null),d])}}}),Rf=U({name:"AQrcode",inheritAttrs:!1,props:If(),emits:["refresh"],setup(e,t){let{emit:n,attrs:l,expose:o}=t;const[c]=Ra("QRCode"),{prefixCls:d}=ge("qrcode",e),[i,r]=$f(d),[,a]=Ho(),u=te();o({toDataURL:(g,v)=>{var h;return(h=u.value)===null||h===void 0?void 0:h.toDataURL(g,v)}});const f=O(()=>{const{value:g,icon:v="",size:h=160,iconSize:m=40,color:C=a.value.colorText,bgColor:b="transparent",errorLevel:y="M"}=e,k={src:v,x:void 0,y:void 0,height:m,width:m,excavate:!0};return{value:g,size:h-(a.value.paddingSM+a.value.lineWidth)*2,level:y,bgColor:b,fgColor:C,imageSettings:v?k:void 0}});return()=>{const g=d.value;return i(s("div",P(P({},l),{},{style:[l.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:f.value.bgColor}],class:[r.value,g,{[`${g}-borderless`]:!e.bordered}]}),[e.status!=="active"&&s("div",{class:`${g}-mask`},[e.status==="loading"&&s(nn,null,null),e.status==="expired"&&s(Ve,null,[s("p",{class:`${g}-expired`},[c.value.expired]),s(yt,{type:"link",onClick:v=>n("refresh",v)},{default:()=>[c.value.refresh],icon:()=>s(Af,null,null)})])]),e.type==="canvas"?s(Bf,P({ref:u},f.value),null):s(Nf,f.value,null)]))}}}),Lf=Je(Rf);function Df(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:l,right:o,bottom:c,left:d}=e.getBoundingClientRect();return l>=0&&d>=0&&o<=t&&c<=n}function zf(e,t,n,l){const[o,c]=Al(void 0);Re(()=>{const u=typeof e.value=="function"?e.value():e.value;c(u||null)},{flush:"post"});const[d,i]=Al(null),r=()=>{if(!t.value){i(null);return}if(o.value){!Df(o.value)&&t.value&&o.value.scrollIntoView(l.value);const{left:u,top:f,width:g,height:v}=o.value.getBoundingClientRect(),h={left:u,top:f,width:g,height:v,radius:0};JSON.stringify(d.value)!==JSON.stringify(h)&&i(h)}else i(null)};return Qe(()=>{se([t,o],()=>{r()},{flush:"post",immediate:!0}),window.addEventListener("resize",r)}),Fe(()=>{window.removeEventListener("resize",r)}),[O(()=>{var u,f;if(!d.value)return d.value;const g=((u=n.value)===null||u===void 0?void 0:u.offset)||6,v=((f=n.value)===null||f===void 0?void 0:f.radius)||2;return{left:d.value.left-g,top:d.value.top-g,width:d.value.width+g*2,height:d.value.height+g*2,radius:v}}),o]}const _f=()=>({arrow:pe([Boolean,Object]),target:pe([String,Function,Object]),title:pe([String,Object]),description:pe([String,Object]),placement:be(),mask:pe([Object,Boolean],!0),className:{type:String},style:Ee(),scrollIntoViewOptions:pe([Boolean,Object])}),Cl=()=>p(p({},_f()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:J(),onFinish:J(),renderPanel:J(),onPrev:J(),onNext:J()}),Hf=U({name:"DefaultPanel",inheritAttrs:!1,props:Cl(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:l,current:o,total:c,title:d,description:i,onClose:r,onPrev:a,onNext:u,onFinish:f}=e;return s("div",P(P({},n),{},{class:G(`${l}-content`,n.class)}),[s("div",{class:`${l}-inner`},[s("button",{type:"button",onClick:r,"aria-label":"Close",class:`${l}-close`},[s("span",{class:`${l}-close-x`},[at("\xD7")])]),s("div",{class:`${l}-header`},[s("div",{class:`${l}-title`},[d])]),s("div",{class:`${l}-description`},[i]),s("div",{class:`${l}-footer`},[s("div",{class:`${l}-sliders`},[c>1?[...Array.from({length:c}).keys()].map((g,v)=>s("span",{key:g,class:v===o?"active":""},null)):null]),s("div",{class:`${l}-buttons`},[o!==0?s("button",{class:`${l}-prev-btn`,onClick:a},[at("Prev")]):null,o===c-1?s("button",{class:`${l}-finish-btn`,onClick:f},[at("Finish")]):s("button",{class:`${l}-next-btn`,onClick:u},[at("Next")])])])])])}}}),jf=Hf,Wf=U({name:"TourStep",inheritAttrs:!1,props:Cl(),setup(e,t){let{attrs:n}=t;return()=>{const{current:l,renderPanel:o}=e;return s(Ve,null,[typeof o=="function"?o(p(p({},n),e),l):s(jf,P(P({},n),e),null)])}}}),Vf=Wf;let po=0;const Kf=ko();function Gf(){let e;return Kf?(e=po,po+=1):e="TEST_OR_SSR",e}function Uf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te("");const t=`vc_unique_${Gf()}`;return e.value||t}const Dt={fill:"transparent","pointer-events":"auto"},Xf=U({name:"TourMask",props:{prefixCls:{type:String},pos:Ee(),rootClassName:{type:String},showMask:Y(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Y(),animated:pe([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const l=Uf();return()=>{const{prefixCls:o,open:c,rootClassName:d,pos:i,showMask:r,fill:a,animated:u,zIndex:f}=e,g=`${o}-mask-${l}`,v=typeof u=="object"?u==null?void 0:u.placeholder:u;return s(jo,{visible:c,autoLock:!0},{default:()=>c&&s("div",P(P({},n),{},{class:G(`${o}-mask`,d,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:f,pointerEvents:"none"},n.style]}),[r?s("svg",{style:{width:"100%",height:"100%"}},[s("defs",null,[s("mask",{id:g},[s("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),i&&s("rect",{x:i.left,y:i.top,rx:i.radius,width:i.width,height:i.height,fill:"black",class:v?`${o}-placeholder-animated`:""},null)])]),s("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:a,mask:`url(#${g})`},null),i&&s(Ve,null,[s("rect",P(P({},Dt),{},{x:"0",y:"0",width:"100%",height:i.top}),null),s("rect",P(P({},Dt),{},{x:"0",y:"0",width:i.left,height:"100%"}),null),s("rect",P(P({},Dt),{},{x:"0",y:i.top+i.height,width:"100%",height:`calc(100vh - ${i.top+i.height}px)`}),null),s("rect",P(P({},Dt),{},{x:i.left+i.width,y:"0",width:`calc(100vw - ${i.left+i.width}px)`,height:"100%"}),null)])]):null])})}}}),Yf=Xf,qf=[0,0],go={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Bi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(go).forEach(n=>{t[n]=p(p({},go[n]),{autoArrow:e,targetOffset:qf})}),t}Bi();var Zf=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o{const{builtinPlacements:e,popupAlign:t}=La();return{builtinPlacements:e,popupAlign:t,steps:Ie(),open:Y(),defaultCurrent:{type:Number},current:{type:Number},onChange:J(),onClose:J(),onFinish:J(),mask:pe([Boolean,Object],!0),arrow:pe([Boolean,Object],!0),rootClassName:{type:String},placement:be("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:J(),gap:Ee(),animated:pe([Boolean,Object]),scrollIntoViewOptions:pe([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},Jf=U({name:"Tour",inheritAttrs:!1,props:we(Ni(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:l,scrollIntoViewOptions:o,open:c,gap:d,arrow:i}=ln(e),r=te(),[a,u]=Tt(0,{value:O(()=>e.current),defaultValue:t.value}),[f,g]=Tt(void 0,{value:O(()=>e.open),postState:S=>a.value<0||a.value>=e.steps.length?!1:S!=null?S:!0}),v=ee(f.value);Re(()=>{f.value&&!v.value&&u(0),v.value=f.value});const h=O(()=>e.steps[a.value]||{}),m=O(()=>{var S;return(S=h.value.placement)!==null&&S!==void 0?S:n.value}),C=O(()=>{var S;return f.value&&((S=h.value.mask)!==null&&S!==void 0?S:l.value)}),b=O(()=>{var S;return(S=h.value.scrollIntoViewOptions)!==null&&S!==void 0?S:o.value}),[y,k]=zf(O(()=>h.value.target),c,d,b),T=O(()=>k.value?typeof h.value.arrow>"u"?i.value:h.value.arrow:!1),x=O(()=>typeof T.value=="object"?T.value.pointAtCenter:!1);se(x,()=>{var S;(S=r.value)===null||S===void 0||S.forcePopupAlign()}),se(a,()=>{var S;(S=r.value)===null||S===void 0||S.forcePopupAlign()});const A=S=>{var M;u(S),(M=e.onChange)===null||M===void 0||M.call(e,S)};return()=>{var S;const{prefixCls:M,steps:F,onClose:I,onFinish:w,rootClassName:$,renderPanel:E,animated:R,zIndex:D}=e,V=Zf(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if(k.value===void 0)return null;const q=()=>{g(!1),I==null||I(a.value)},Q=typeof C.value=="boolean"?C.value:!!C.value,X=typeof C.value=="boolean"?void 0:C.value,ie=()=>k.value||document.body,B=()=>s(Vf,P({arrow:T.value,key:"content",prefixCls:M,total:F.length,renderPanel:E,onPrev:()=>{A(a.value-1)},onNext:()=>{A(a.value+1)},onClose:q,current:a.value,onFinish:()=>{q(),w==null||w()}},h.value),null),L=O(()=>{const H=y.value||Tn,_={};return Object.keys(H).forEach(N=>{typeof H[N]=="number"?_[N]=`${H[N]}px`:_[N]=H[N]}),_});return f.value?s(Ve,null,[s(Yf,{zIndex:D,prefixCls:M,pos:y.value,showMask:Q,style:X==null?void 0:X.style,fill:X==null?void 0:X.color,open:f.value,animated:R,rootClassName:$},null),s(Lo,P(P({},V),{},{builtinPlacements:h.value.target?(S=V.builtinPlacements)!==null&&S!==void 0?S:Bi(x.value):void 0,ref:r,popupStyle:h.value.target?h.value.style:p(p({},h.value.style),{position:"fixed",left:Tn.left,top:Tn.top,transform:"translate(-50%, -50%)"}),popupPlacement:m.value,popupVisible:f.value,popupClassName:G($,h.value.className),prefixCls:M,popup:B,forceRender:!1,destroyPopupOnHide:!0,zIndex:D,mask:!1,getTriggerDOMNode:ie}),{default:()=>[s(jo,{visible:f.value,autoLock:!0},{default:()=>[s("div",{class:G($,`${M}-target-placeholder`),style:p(p({},L.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),Qf=Jf,e0=()=>p(p({},Ni()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),t0=()=>p(p({},Cl()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),n0=U({name:"ATourPanel",inheritAttrs:!1,props:t0(),setup(e,t){let{attrs:n,slots:l}=t;const{current:o,total:c}=ln(e),d=O(()=>o.value===c.value-1),i=a=>{var u;const f=e.prevButtonProps;(u=e.onPrev)===null||u===void 0||u.call(e,a),typeof(f==null?void 0:f.onClick)=="function"&&(f==null||f.onClick())},r=a=>{var u,f;const g=e.nextButtonProps;d.value?(u=e.onFinish)===null||u===void 0||u.call(e,a):(f=e.onNext)===null||f===void 0||f.call(e,a),typeof(g==null?void 0:g.onClick)=="function"&&(g==null||g.onClick())};return()=>{const{prefixCls:a,title:u,onClose:f,cover:g,description:v,type:h,arrow:m}=e,C=e.prevButtonProps,b=e.nextButtonProps;let y;u&&(y=s("div",{class:`${a}-header`},[s("div",{class:`${a}-title`},[u])]));let k;v&&(k=s("div",{class:`${a}-description`},[v]));let T;g&&(T=s("div",{class:`${a}-cover`},[g]));let x;l.indicatorsRender?x=l.indicatorsRender({current:o.value,total:c}):x=[...Array.from({length:c.value}).keys()].map((M,F)=>s("span",{key:M,class:G(F===o.value&&`${a}-indicator-active`,`${a}-indicator`)},null));const A=h==="primary"?"default":"primary",S={type:"default",ghost:h==="primary"};return s(Zn,{componentName:"Tour",defaultLocale:qn.Tour},{default:M=>{var F,I;return s("div",P(P({},n),{},{class:G(h==="primary"?`${a}-primary`:"",n.class,`${a}-content`)}),[m&&s("div",{class:`${a}-arrow`,key:"arrow"},null),s("div",{class:`${a}-inner`},[s(xo,{class:`${a}-close`,onClick:f},null),T,y,k,s("div",{class:`${a}-footer`},[c.value>1&&s("div",{class:`${a}-indicators`},[x]),s("div",{class:`${a}-buttons`},[o.value!==0?s(yt,P(P(P({},S),C),{},{onClick:i,size:"small",class:G(`${a}-prev-btn`,C==null?void 0:C.className)}),{default:()=>[(F=C==null?void 0:C.children)!==null&&F!==void 0?F:M.Previous]}):null,s(yt,P(P({type:A},b),{},{onClick:r,size:"small",class:G(`${a}-next-btn`,b==null?void 0:b.className)}),{default:()=>[(I=b==null?void 0:b.children)!==null&&I!==void 0?I:d.value?M.Finish:M.Next]})])])])])}})}}}),l0=n0,o0=e=>{let{defaultType:t,steps:n,current:l,defaultCurrent:o}=e;const c=te(o==null?void 0:o.value),d=O(()=>l==null?void 0:l.value);se(d,u=>{c.value=u!=null?u:o==null?void 0:o.value},{immediate:!0});const i=u=>{c.value=u},r=O(()=>{var u,f;return typeof c.value=="number"?n&&((f=(u=n.value)===null||u===void 0?void 0:u[c.value])===null||f===void 0?void 0:f.type):t==null?void 0:t.value});return{currentMergedType:O(()=>{var u;return(u=r.value)!==null&&u!==void 0?u:t==null?void 0:t.value}),updateInnerCurrent:i}},i0=o0,a0=e=>{const{componentCls:t,lineHeight:n,padding:l,paddingXS:o,borderRadius:c,borderRadiusXS:d,colorPrimary:i,colorText:r,colorFill:a,indicatorHeight:u,indicatorWidth:f,boxShadowTertiary:g,tourZIndexPopup:v,fontSize:h,colorBgContainer:m,fontWeightStrong:C,marginXS:b,colorTextLightSolid:y,tourBorderRadius:k,colorWhite:T,colorBgTextHover:x,tourCloseSize:A,motionDurationSlow:S,antCls:M}=e;return[{[t]:p(p({},Me(e)),{color:r,position:"absolute",zIndex:v,display:"block",visibility:"visible",fontSize:h,lineHeight:n,width:520,"--antd-arrow-background-color":m,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:k,boxShadow:g,position:"relative",backgroundColor:m,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:l,insetInlineEnd:l,color:e.colorIcon,outline:"none",width:A,height:A,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${l+A+o}px ${l}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${l}px ${l}px ${o}px`,[`${t}-title`]:{lineHeight:n,fontSize:h,fontWeight:C}},[`${t}-description`]:{padding:`0 ${l}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${o}px ${l}px ${l}px`,textAlign:"end",borderRadius:`0 0 ${d}px ${d}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:f,height:u,display:"inline-block",borderRadius:"50%",background:a,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:i}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${M}-btn`]:{marginInlineStart:b}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{color:y,textAlign:"start",textDecoration:"none",backgroundColor:i,borderRadius:c,boxShadow:g,[`${t}-close`]:{color:y},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new Bt(y).setAlpha(.15).toRgbString(),"&-active":{background:y}}},[`${t}-prev-btn`]:{color:y,borderColor:new Bt(y).setAlpha(.15).toRgbString(),backgroundColor:i,"&:hover":{backgroundColor:new Bt(y).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:i,borderColor:"transparent",background:T,"&:hover":{background:new Bt(x).onBackground(T).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${S}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(k,Da)}}},za(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:k,limitVerticalRadius:!0})]},r0=ye("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:l}=e,o=$e(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*l});return[a0(o)]});var s0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o{const{steps:m,current:C,type:b,rootClassName:y}=e,k=s0(e,["steps","current","type","rootClassName"]),T=G({[`${a.value}-primary`]:v.value==="primary",[`${a.value}-rtl`]:u.value==="rtl"},g.value,y),x=(M,F)=>s(l0,P(P({},M),{},{type:b,current:F}),{indicatorsRender:o.indicatorsRender}),A=M=>{h(M),l("update:current",M),l("change",M)},S=O(()=>_a({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return f(s(Qf,P(P(P({},n),k),{},{rootClassName:T,prefixCls:a.value,current:C,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:x,onChange:A,steps:m,builtinPlacements:S.value}),null))}}}),u0=Je(c0),Ri=Symbol("appConfigContext"),d0=e=>nt(Ri,e),f0=()=>ut(Ri,{}),Li=Symbol("appContext"),h0=e=>nt(Li,e),p0=wt({message:{},notification:{},modal:{}}),g0=()=>ut(Li,p0),v0=e=>{const{componentCls:t,colorText:n,fontSize:l,lineHeight:o,fontFamily:c}=e;return{[t]:{color:n,fontSize:l,lineHeight:o,fontFamily:c}}},m0=ye("App",e=>[v0(e)]),b0=()=>({rootClassName:String,message:Ee(),notification:Ee()}),S0=()=>g0(),kt=U({name:"AApp",props:we(b0(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:l}=ge("app",e),[o,c]=m0(l),d=O(()=>G(c.value,l.value,e.rootClassName)),i=f0(),r=O(()=>({message:p(p({},i.message),e.message),notification:p(p({},i.notification),e.notification)}));d0(r.value);const[a,u]=Ha(r.value.message),[f,g]=ja(r.value.notification),[v,h]=Wa(),m=O(()=>({message:a,notification:f,modal:v}));return h0(m.value),()=>{var C;return o(s("div",{class:d.value},[h(),u(),g(),(C=n.default)===null||C===void 0?void 0:C.call(n)]))}}});kt.useApp=S0;kt.install=function(e){e.component(kt.name,kt)};const y0=kt,vo=Object.freeze(Object.defineProperty({__proto__:null,Affix:Yo,Anchor:ot,AnchorLink:Jn,AutoComplete:cc,AutoCompleteOptGroup:sc,AutoCompleteOption:rc,Alert:as,Avatar:_s,AvatarGroup:rs,Badge:Go,BadgeRibbon:Ts,Breadcrumb:ss,BreadcrumbItem:cs,BreadcrumbSeparator:us,Button:yt,ButtonGroup:Va,Calendar:Ka,Card:Ps,CardGrid:fs,CardMeta:hs,Collapse:Hs,CollapsePanel:js,Carousel:Vc,Cascader:vs,Checkbox:Yn,CheckboxGroup:Ga,Col:os,Comment:qc,ConfigProvider:Wo,DatePicker:ms,MonthPicker:bs,WeekPicker:Ss,RangePicker:ys,QuarterPicker:ws,Descriptions:Cs,DescriptionsItem:xs,Divider:$s,Dropdown:_o,DropdownButton:Ua,Drawer:ks,Empty:Xa,FloatButton:tt,FloatButtonGroup:Zt,BackTop:Jt,Form:Ya,FormItem:qa,FormItemRest:Za,Grid:Kc,Input:Do,InputGroup:Ja,InputPassword:Qa,InputSearch:er,Textarea:tr,Image:nr,ImagePreviewGroup:lr,InputNumber:Bu,Layout:Zu,LayoutHeader:Uu,LayoutSider:Yu,LayoutFooter:Xu,LayoutContent:qu,List:As,ListItem:Is,ListItemMeta:Es,message:Vo,Menu:Xe,MenuDivider:or,MenuItem:zt,MenuItemGroup:ir,SubMenu:ar,Mentions:bd,MentionsOption:Gt,Modal:lt,Statistic:qe,StatisticCountdown:Ad,notification:Ko,PageHeader:ds,Pagination:zo,Popconfirm:rr,Popover:sr,Progress:cr,Radio:ur,RadioButton:dr,RadioGroup:fr,Rate:Vd,Result:d1,Row:is,Select:En,SelectOptGroup:hr,SelectOption:pr,Skeleton:Uo,SkeletonButton:Os,SkeletonAvatar:Fs,SkeletonInput:Bs,SkeletonImage:Ns,SkeletonTitle:Rs,Slider:gr,Space:Ls,Compact:vr,Spin:nn,Steps:Ds,Step:zs,Switch:mr,Table:br,TableColumn:Sr,TableColumnGroup:yr,TableSummary:wr,TableSummaryRow:Cr,TableSummaryCell:xr,Transfer:B1,Tree:$r,TreeNode:kr,DirectoryTree:Mr,TreeSelect:of,TreeSelectNode:Hn,Tabs:Ws,TabPane:Vs,Tag:Tr,CheckableTag:Ar,TimePicker:Ir,TimeRangePicker:Er,Timeline:ps,TimelineItem:gs,Tooltip:Vn,Typography:Pr,TypographyLink:Or,TypographyParagraph:Fr,TypographyText:Br,TypographyTitle:Nr,Upload:Rr,UploadDragger:Lr,LocaleProvider:Dr,Watermark:hf,Segmented:Cf,QRCode:Lf,Tour:u0,App:y0,Flex:zr},Symbol.toStringTag,{value:"Module"})),w0=function(e){return Object.keys(vo).forEach(t=>{const n=vo[t];n.install&&e.use(n)}),e.use(Hr.StyleProvider),e.config.globalProperties.$message=Vo,e.config.globalProperties.$notification=Ko,e.config.globalProperties.$info=lt.info,e.config.globalProperties.$success=lt.success,e.config.globalProperties.$error=lt.error,e.config.globalProperties.$warning=lt.warning,e.config.globalProperties.$confirm=lt.confirm,e.config.globalProperties.$destroyAll=lt.destroyAll,e},C0={version:_r,install:w0},x0=U({__name:"App",setup(e){const t={token:{colorPrimary:"#EA576A",colorLink:"#813841",colorLinkHover:"#EA576A"}};return(n,l)=>{const o=jr("RouterView");return Wr(),Vr(Gr(Wo),{theme:t,"page-header":{ghost:!1}},{default:Kr(()=>[s(o)]),_:1})}}});(async()=>{const e=Ur({render:()=>es(x0)});Xr.init(),Yr(e,Il),e.use(Il),e.use(qr),e.use(C0),e.mount("#app"),e.component("VSelect",Zr),e.component("Markdown",Jr),e.component("Message",Qr),hn(e,ts),hn(e,ns),hn(e,ls)})(); -//# sourceMappingURL=console.709b99cd.js.map +//# sourceMappingURL=console.e99e11bb.js.map diff --git a/abstra_statics/dist/assets/cssMode.e0c7ce46.js b/abstra_statics/dist/assets/cssMode.15b3a50a.js similarity index 99% rename from abstra_statics/dist/assets/cssMode.e0c7ce46.js rename to abstra_statics/dist/assets/cssMode.15b3a50a.js index 0b2931a2d0..a545da2ff3 100644 --- a/abstra_statics/dist/assets/cssMode.e0c7ce46.js +++ b/abstra_statics/dist/assets/cssMode.15b3a50a.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6bbcea09-3f30-4a15-9ae1-4faefbdf5b67",e._sentryDebugIdIdentifier="sentry-dbid-6bbcea09-3f30-4a15-9ae1-4faefbdf5b67")}catch{}})();/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="49dc3622-1224-41f2-9262-b3c2e155ff41",e._sentryDebugIdIdentifier="sentry-dbid-49dc3622-1224-41f2-9262-b3c2e155ff41")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -7,4 +7,4 @@ var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,config `,a==="\r"&&t+10&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,A,N){return n.call(f)==="[object Number]"&&A<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,A){return Array.isArray(f)&&f.every(A)}e.typedArray=b})(s||(s={}));var $e=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>Qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function qe(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:qe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Ge=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),y(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ze(d.command),range:u,kind:Ye(d.kind)};return d.textEdit&&(Je(d.textEdit)?v.range={insert:m(d.textEdit.insert),replace:m(d.textEdit.replace)}:v.range=m(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function y(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Je(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ye(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:m(e.range),text:e.newText}}function Ze(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ke=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),y(n))).then(t=>{if(!!t)return{range:m(t.range),contents:tt(t.contents)}})}};function et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function De(e){return typeof e=="string"?{value:e}:et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function tt(e){if(!!e)return Array.isArray(e)?e.map(De):[De(e)]}var rt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),y(n))).then(t=>{if(!!t)return t.map(a=>({range:m(a.range),kind:nt(a.kind)}))})}};function nt(e){switch(e){case P.Read:return c.languages.DocumentHighlightKind.Read;case P.Write:return c.languages.DocumentHighlightKind.Write;case P.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var it=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),y(n))).then(t=>{if(!!t)return[Te(t)]})}};function Te(e){return{uri:c.Uri.parse(e.uri),range:m(e.range)}}var at=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),y(n))).then(a=>{if(!!a)return a.map(Te)})}},ot=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),y(n),i)).then(a=>st(a))}};function st(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var ut=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ct(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]}))})}};function ct(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var wt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},dt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Se(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},ft=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Se(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Se(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var gt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},lt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ht(a.kind)),o})})}};function ht(e){switch(e){case D.Comment:return c.languages.FoldingRangeKind.Comment;case D.Imports:return c.languages.FoldingRangeKind.Imports;case D.Region:return c.languages.FoldingRangeKind.Region}}var vt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(y))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:m(a.range)}),a=a.parent;return o})})}};function kt(e){const n=[],i=[],r=new Xe(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Fe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Ge(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ke(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new rt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new it(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new at(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new ut(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new ot(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new gt(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new lt(t))),u.diagnostics&&i.push(new $e(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new vt(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new dt(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ft(t)))}return a(),n.push(Pe(i)),Pe(n)}function Pe(e){return{dispose:()=>Fe(e)}}function Fe(e){for(;e.length;)e.pop().dispose()}export{Ge as CompletionAdapter,it as DefinitionAdapter,$e as DiagnosticsAdapter,gt as DocumentColorAdapter,dt as DocumentFormattingEditProvider,rt as DocumentHighlightAdapter,wt as DocumentLinkAdapter,ft as DocumentRangeFormattingEditProvider,ut as DocumentSymbolAdapter,lt as FoldingRangeAdapter,Ke as HoverAdapter,at as ReferenceAdapter,ot as RenameAdapter,vt as SelectionRangeAdapter,Xe as WorkerManager,y as fromPosition,Me as fromRange,kt as setupMode,m as toRange,j as toTextEdit}; -//# sourceMappingURL=cssMode.e0c7ce46.js.map +//# sourceMappingURL=cssMode.15b3a50a.js.map diff --git a/abstra_statics/dist/assets/datetime.c7490e96.js b/abstra_statics/dist/assets/datetime.19a96164.js similarity index 82% rename from abstra_statics/dist/assets/datetime.c7490e96.js rename to abstra_statics/dist/assets/datetime.19a96164.js index d6a04b7eb9..861fc069ff 100644 --- a/abstra_statics/dist/assets/datetime.c7490e96.js +++ b/abstra_statics/dist/assets/datetime.19a96164.js @@ -1,2 +1,2 @@ -import{C as n}from"./gateway.8032b20a.js";import"./index.8c3f27aa.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="692ea74a-690a-4d79-9ee3-df5690ed8aa9",a._sentryDebugIdIdentifier="sentry-dbid-692ea74a-690a-4d79-9ee3-df5690ed8aa9")}catch{}})();class u{async list(t){return n.get(`projects/${t}/builds`)}async get(t){return n.get(`builds/${t}`)}async download(t){return n.get(`builds/${t}/download`)}}const d=new u;class l{constructor(t){this.dto=t}static async list(t){return(await d.list(t)).map(i=>new l(i))}get id(){return this.dto.id}get projectId(){return this.dto.projectId}get createdAt(){return new Date(this.dto.createdAt)}get status(){return this.dto.status}get log(){return this.dto.log}get latest(){return this.dto.latest}get abstraVersion(){return this.dto.abstraVersion}async download(){const t=await d.download(this.id);if(!t)throw new Error("Download failed");window.open(t.url,"_blank")}}class g{constructor(t,s,i,r){this.projectId=t,this.buildId=s,this.abstraVersion=i,this.project=r}static fromV0(t,s,i,r){const o={hooks:r.hooks.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),forms:r.forms.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({id:e.identifier,logQuery:{buildId:s,stageId:e.identifier,stageTitle:e.title},...e})),scripts:[]};return new g(t,s,i,o)}static fromDTO(t,s,i,r){const o={hooks:r.hooks.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),forms:r.forms.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),scripts:r.scripts.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e}))};return new g(t,s,i,o)}static async get(t){const s=await d.get(t);if(!s)throw new Error("Build not found");const{projectId:i,abstraJson:r,abstraVersion:o}=s;if(!r||!o)return null;const e=JSON.parse(r);if(!e.version)throw new Error("Version is invalid");return e.version==="0.1"?this.fromV0(i,t,o,e):this.fromDTO(i,t,o,e)}get runtimes(){return[...this.project.forms.map(t=>({...t,type:"form"})),...this.project.hooks.map(t=>({...t,type:"hook"})),...this.project.jobs.map(t=>({...t,type:"job"})),...this.project.scripts.map(t=>({...t,type:"script"}))]}}function h(a,t){return a.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...t})}export{l as B,g as a,u as b,h as g}; -//# sourceMappingURL=datetime.c7490e96.js.map +import{C as n}from"./gateway.ae1d6857.js";import"./index.d0f12294.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="e45d2ab6-5f16-48a2-a11f-54a01e824764",a._sentryDebugIdIdentifier="sentry-dbid-e45d2ab6-5f16-48a2-a11f-54a01e824764")}catch{}})();class u{async list(t){return n.get(`projects/${t}/builds`)}async get(t){return n.get(`builds/${t}`)}async download(t){return n.get(`builds/${t}/download`)}}const d=new u;class l{constructor(t){this.dto=t}static async list(t){return(await d.list(t)).map(i=>new l(i))}get id(){return this.dto.id}get projectId(){return this.dto.projectId}get createdAt(){return new Date(this.dto.createdAt)}get status(){return this.dto.status}get log(){return this.dto.log}get latest(){return this.dto.latest}get abstraVersion(){return this.dto.abstraVersion}async download(){const t=await d.download(this.id);if(!t)throw new Error("Download failed");window.open(t.url,"_blank")}}class g{constructor(t,s,i,r){this.projectId=t,this.buildId=s,this.abstraVersion=i,this.project=r}static fromV0(t,s,i,r){const o={hooks:r.hooks.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),forms:r.forms.map(e=>({id:e.path,logQuery:{buildId:s,stageId:e.path,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({id:e.identifier,logQuery:{buildId:s,stageId:e.identifier,stageTitle:e.title},...e})),scripts:[]};return new g(t,s,i,o)}static fromDTO(t,s,i,r){const o={hooks:r.hooks.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),forms:r.forms.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),jobs:r.jobs.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e})),scripts:r.scripts.map(e=>({logQuery:{buildId:s,stageId:e.id,stageTitle:e.title},...e}))};return new g(t,s,i,o)}static async get(t){const s=await d.get(t);if(!s)throw new Error("Build not found");const{projectId:i,abstraJson:r,abstraVersion:o}=s;if(!r||!o)return null;const e=JSON.parse(r);if(!e.version)throw new Error("Version is invalid");return e.version==="0.1"?this.fromV0(i,t,o,e):this.fromDTO(i,t,o,e)}get runtimes(){return[...this.project.forms.map(t=>({...t,type:"form"})),...this.project.hooks.map(t=>({...t,type:"hook"})),...this.project.jobs.map(t=>({...t,type:"job"})),...this.project.scripts.map(t=>({...t,type:"script"}))]}}function f(a,t){return a.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...t})}export{l as B,g as a,u as b,f as g}; +//# sourceMappingURL=datetime.19a96164.js.map diff --git a/abstra_statics/dist/assets/dayjs.53bce80c.js b/abstra_statics/dist/assets/dayjs.53bce80c.js deleted file mode 100644 index 5caf50577b..0000000000 --- a/abstra_statics/dist/assets/dayjs.53bce80c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{U as d,dA as c,dB as i}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ab7cfe4d-4315-4657-88da-859f73737463",e._sentryDebugIdIdentifier="sentry-dbid-ab7cfe4d-4315-4657-88da-859f73737463")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:m,QuarterPicker:a,RangePicker:o}=c(i),y=d(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:o,TimePicker:m,QuarterPicker:a,install:e=>(e.component(n.name,n),e.component(o.name,o),e.component(r.name,r),e.component(t.name,t),e.component(a.name,a),e)});export{y as D,r as M,a as Q,o as R,t as W}; -//# sourceMappingURL=dayjs.53bce80c.js.map diff --git a/abstra_statics/dist/assets/dayjs.9c046fb9.js b/abstra_statics/dist/assets/dayjs.9c046fb9.js new file mode 100644 index 0000000000..fc024a3a06 --- /dev/null +++ b/abstra_statics/dist/assets/dayjs.9c046fb9.js @@ -0,0 +1,2 @@ +import{U as c,dA as i,dB as d}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="1c9317f5-b600-4217-bb0a-7441ffb48605",e._sentryDebugIdIdentifier="sentry-dbid-1c9317f5-b600-4217-bb0a-7441ffb48605")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:b,QuarterPicker:o,RangePicker:a}=i(d),u=c(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:a,TimePicker:b,QuarterPicker:o,install:e=>(e.component(n.name,n),e.component(a.name,a),e.component(r.name,r),e.component(t.name,t),e.component(o.name,o),e)});export{u as D,r as M,o as Q,a as R,t as W}; +//# sourceMappingURL=dayjs.9c046fb9.js.map diff --git a/abstra_statics/dist/assets/editor.95f16260.js b/abstra_statics/dist/assets/editor.95f16260.js new file mode 100644 index 0000000000..aa160bbf6b --- /dev/null +++ b/abstra_statics/dist/assets/editor.95f16260.js @@ -0,0 +1,2 @@ +var T=Object.defineProperty;var k=(o,e,t)=>e in o?T(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var n=(o,e,t)=>(k(o,typeof e!="symbol"?e+"":e,t),t);import{d as A,r as I,o as V,c as j,w as D,a as O,b as U,u as C,A as x,l as f,e as w,f as g,g as E,h as S,i as $,_ as a,j as W,k as N,T as B,m as M,P as q,C as F,M as H,s as J,n as m,p as z,q as G,t as Y,v as K}from"./index.d0f12294.js";import{d as Q,r as X,u as Z,g as ee,s as te,c as oe}from"./workspaceStore.e47060bf.js";import{a as ae}from"./asyncComputed.703c33fd.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="99d30d33-781b-4b3e-958c-496cb01f6cf6",o._sentryDebugIdIdentifier="sentry-dbid-99d30d33-781b-4b3e-958c-496cb01f6cf6")}catch{}})();const re={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},ne=A({__name:"App",setup(o){const e={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(t,r)=>{const l=I("RouterView");return V(),j(C(x),{theme:e,"page-header":{ghost:!1}},{default:D(()=>[O("div",re,[U(l)])]),_:1})}}});class v{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}static getLoginUrl(e){return"https://cloud.abstra.io/api-key?"+new URLSearchParams(e)}}class se{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,t){const r=await fetch(`/_editor/api/linters/fix/${e}/${t}`,{method:"POST"});if(!r.ok)throw new Error("Failed to fix");return _.refetch(),r.json()}}const b=new se,_=ae(async()=>(await b.check()).map(e=>new le(e)));class ie{constructor(e,t){n(this,"name");n(this,"label");n(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=t}async fix(){await b.fix(this.ruleName,this.name)}}class ce{constructor(e,t){n(this,"label");n(this,"fixes");this.ruleName=t,this.label=e.label,this.fixes=e.fixes.map(r=>new ie(r,t))}}class le{constructor(e){n(this,"name");n(this,"label");n(this,"type");n(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(t=>new ce(t,this.name))}static get asyncComputed(){return _}static fromName(e){var r;const t=(r=_.result.value)==null?void 0:r.find(l=>l.name===e);if(!t)throw new Error(`Rule ${e} not found`);return t}}const i=class{static dispatch(e,t,r=0){window.Intercom?window.Intercom(e,t):r<10?setTimeout(()=>i.dispatch(e,t),100):console.error("Intercom not loaded")}static boot(e,t){i.booted||(i.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),i.booted=!0)}static shutdown(){i.dispatch("shutdown"),i.booted=!1}};let p=i;n(p,"booted",!1);const de={"console-url":"https://cloud.abstra.io"},pe=o=>{const e="VITE_"+f.toUpper(f.snakeCase(o)),t={VITE_SENTRY_RELEASE:"a6a8f6f37f1ddb4de5f0385bfc54d40c194485e0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||de[o]},d={consoleUrl:pe("console-url")},ue=Q("cloud-project",()=>{const o=new v,e=w(null),t=w(null),r=g(()=>{var s,c;return(c=(s=e.value)==null?void 0:s.logged)!=null?c:!1}),l=g(()=>t.value?{project:`${d.consoleUrl}/projects/${t.value.id}`,users:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${d.consoleUrl}/projects/${t.value.id}/builds`,login:`${d.consoleUrl}/api-key`}:null),L=async()=>{!r.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},y=async s=>{const c=await o.createLogin(s);e.value=c,c.logged&&await h()},h=async()=>t.value=await o.getCloudProject(),P=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,h),E(()=>e.value,async s=>{if(s&&"info"in s){const{email:c,intercomHash:R}=s.info;p.boot(c,R)}else p.shutdown()}),{loadLogin:P,createLogin:y,deleteLogin:L,loginInfo:e,cloudProject:t,isLogged:r,links:l}}),me=X.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),u=S({history:$("/"),routes:[{path:"/_editor/",name:"app",component:()=>a(()=>import("./Home.5c6a1d41.js"),["assets/Home.5c6a1d41.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/Home.ad31131b.css"]),children:[{path:"",name:"workspace",component:()=>a(()=>import("./Workspace.365a6296.js"),["assets/Workspace.365a6296.js","assets/BaseLayout.52f1acec.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/PhSignOut.vue.6dacf893.js","assets/NavbarControls.be646660.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/CloseCircleOutlined.c0e3f3e1.js","assets/index.289665f1.js","assets/index.a82e0ed1.js","assets/workspaces.e43325e2.js","assets/record.8c284c67.js","assets/popupNotifcation.a0a6244b.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/PhChats.vue.1b5982bf.js","assets/NavbarControls.8216d9aa.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/PhIdentificationBadge.vue.088497fd.js","assets/PhCaretRight.vue.5db53029.js","assets/PhFlowArrow.vue.be952fce.js","assets/PhKanban.vue.fc0591cb.js","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js","assets/asyncComputed.703c33fd.js","assets/Workspace.1d39102f.css"]),redirect:()=>({name:"workflowEditor"}),children:[{path:"stages",name:"stages",component:()=>a(()=>import("./Stages.f603f4e8.js"),["assets/Stages.f603f4e8.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/CrudView.423d8744.js","assets/router.375df57e.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/ant-design.d89b18ab.js","assets/asyncComputed.703c33fd.js","assets/string.d9c83adf.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/forms.ac0b102a.js","assets/record.8c284c67.js","assets/scripts.9802e877.js","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/colorHelpers.b079bb04.js","assets/index.289665f1.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/validations.2475f715.js","assets/Stages.f68d77c7.css"]),meta:{title:"Stages"}},{path:"workflow",name:"workflowEditor",component:()=>a(()=>import("./WorkflowEditor.009f92fe.js"),["assets/WorkflowEditor.009f92fe.js","assets/api.8656aeba.js","assets/fetch.e5ebd511.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/Workflow.1ecea04a.js","assets/PhArrowCounterClockwise.vue.70f7f135.js","assets/validations.2475f715.js","assets/string.d9c83adf.js","assets/uuid.f9389d59.js","assets/index.c7e8afe7.js","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/record.8c284c67.js","assets/polling.c979afd7.js","assets/index.61f90e53.js","assets/Badge.f6241be2.js","assets/PhArrowDown.vue.1c758684.js","assets/Workflow.0e84f462.css","assets/asyncComputed.703c33fd.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/index.a552d580.js","assets/WorkflowEditor.adc8a023.css"]),meta:{title:"Workflow Editor"}},{path:"threads",name:"workflowThreads",component:()=>a(()=>import("./WorkflowThreads.55396698.js"),["assets/WorkflowThreads.55396698.js","assets/api.8656aeba.js","assets/fetch.e5ebd511.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/WorkflowView.0114ce29.js","assets/polling.c979afd7.js","assets/asyncComputed.703c33fd.js","assets/PhQuestion.vue.f82af3dd.js","assets/ant-design.d89b18ab.js","assets/index.a82e0ed1.js","assets/index.3814eba6.js","assets/index.05dd3c22.js","assets/CollapsePanel.40b6e69e.js","assets/index.a552d580.js","assets/index.7c84a9f5.js","assets/Badge.f6241be2.js","assets/PhArrowCounterClockwise.vue.70f7f135.js","assets/Workflow.1ecea04a.js","assets/validations.2475f715.js","assets/string.d9c83adf.js","assets/uuid.f9389d59.js","assets/index.c7e8afe7.js","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/record.8c284c67.js","assets/index.61f90e53.js","assets/PhArrowDown.vue.1c758684.js","assets/Workflow.0e84f462.css","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/LoadingOutlined.bcfc8c20.js","assets/DeleteOutlined.5a680b6a.js","assets/PhDownloadSimple.vue.07a1756e.js","assets/utils.537da94d.js","assets/LoadingContainer.23bc0e74.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.aec9e496.css"]),meta:{title:"Workflow Threads"}},{path:"preferences",name:"settingsPreferences",component:()=>a(()=>import("./PreferencesEditor.4d180162.js"),["assets/PreferencesEditor.4d180162.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/record.8c284c67.js","assets/PlayerNavbar.8e419fbd.js","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/LoadingOutlined.bcfc8c20.js","assets/PhSignOut.vue.6dacf893.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js","assets/PlayerNavbar.bac3bd2c.css","assets/PlayerConfigProvider.e5e86f58.js","assets/index.c7e8afe7.js","assets/PlayerConfigProvider.8864c905.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/LoadingContainer.23bc0e74.js","assets/LoadingContainer.56fa997a.css","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/asyncComputed.703c33fd.js","assets/PreferencesEditor.a7201214.css"]),meta:{title:"Preferences"}},{path:"requirements",name:"settingsRequirements",component:()=>a(()=>import("./RequirementsEditor.baa7f021.js"),["assets/RequirementsEditor.baa7f021.js","assets/ContentLayout.f92ff80c.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/ContentLayout.ee57a545.css","assets/CrudView.423d8744.js","assets/router.375df57e.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js","assets/record.8c284c67.js","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/colorHelpers.b079bb04.js","assets/RequirementsEditor.46e215f2.css"]),meta:{title:"Requirements"}},{path:"env-vars",name:"env-vars",component:()=>a(()=>import("./EnvVarsEditor.1c2c38a0.js"),["assets/EnvVarsEditor.1c2c38a0.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/record.8c284c67.js","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/View.vue_vue_type_script_setup_true_lang.1a7d99da.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/fetch.e5ebd511.js","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/CrudView.423d8744.js","assets/router.375df57e.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js","assets/PhPencil.vue.7418c4e5.js","assets/index.289665f1.js"]),meta:{title:"Environment Variables"}},{path:"access-control",name:"accessControl",component:()=>a(()=>import("./AccessControlEditor.5b7ec035.js"),["assets/AccessControlEditor.5b7ec035.js","assets/ContentLayout.f92ff80c.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/ContentLayout.ee57a545.css","assets/fetch.e5ebd511.js","assets/record.8c284c67.js","assets/repository.d3422c40.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/asyncComputed.703c33fd.js","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/PhGlobe.vue.71eddd06.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/index.a552d580.js","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/index.289665f1.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/AccessControlEditor.b7d1ceb9.css"]),meta:{title:"Access Control"}}]},{path:"project-login",name:"projectLogin",component:()=>a(()=>import("./ProjectLogin.869d6354.js"),["assets/ProjectLogin.869d6354.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/Logo.03290bf7.css","assets/BaseLayout.52f1acec.js","assets/BaseLayout.b7a1f19a.css","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js","assets/index.a82e0ed1.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/asyncComputed.703c33fd.js","assets/ProjectLogin.2f3a2bb2.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:"form/:id",name:"formEditor",component:()=>a(()=>import("./FormEditor.771039c7.js"),["assets/FormEditor.771039c7.js","assets/api.8656aeba.js","assets/fetch.e5ebd511.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/PlayerNavbar.8e419fbd.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/LoadingOutlined.bcfc8c20.js","assets/PhSignOut.vue.6dacf893.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js","assets/PlayerNavbar.bac3bd2c.css","assets/BaseLayout.52f1acec.js","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.a748d690.js","assets/uuid.f9389d59.js","assets/scripts.9802e877.js","assets/record.8c284c67.js","assets/validations.2475f715.js","assets/string.d9c83adf.js","assets/PhCopy.vue.dfade011.js","assets/PhCopySimple.vue.6b8fcb49.js","assets/PhCaretRight.vue.5db53029.js","assets/Badge.f6241be2.js","assets/PhQuestion.vue.f82af3dd.js","assets/workspaces.e43325e2.js","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js","assets/PhPencil.vue.7418c4e5.js","assets/toggleHighContrast.0eb315ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.289665f1.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/SourceCode.62d79c81.css","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/FormRunner.8bf9d58d.js","assets/Login.vue_vue_type_script_setup_true_lang.9976d09a.js","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/CircularLoading.13413fc4.js","assets/CircularLoading.1a558a0d.css","assets/index.c7e8afe7.js","assets/Login.28df3844.css","assets/Steps.b72611f7.js","assets/index.2862b277.js","assets/Steps.4d03c6c1.css","assets/Watermark.32de12c9.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.616c8292.css","assets/PlayerConfigProvider.e5e86f58.js","assets/PlayerConfigProvider.8864c905.css","assets/PhArrowSquareOut.vue.418ffcff.js","assets/PhFlowArrow.vue.be952fce.js","assets/forms.ac0b102a.js","assets/ThreadSelector.f3c948bb.js","assets/index.3814eba6.js","assets/index.a552d580.js","assets/ThreadSelector.c38c4d8f.css","assets/index.a82e0ed1.js","assets/NavbarControls.be646660.js","assets/CloseCircleOutlined.c0e3f3e1.js","assets/popupNotifcation.a0a6244b.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/PhChats.vue.1b5982bf.js","assets/NavbarControls.8216d9aa.css","assets/index.3b2f4dca.js","assets/FormEditor.cc36a3e2.css"]),meta:{title:"Form Editor"}},{path:"job/:id",name:"jobEditor",component:()=>a(()=>import("./JobEditor.a781566d.js"),["assets/JobEditor.a781566d.js","assets/BaseLayout.52f1acec.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.a748d690.js","assets/uuid.f9389d59.js","assets/scripts.9802e877.js","assets/record.8c284c67.js","assets/validations.2475f715.js","assets/string.d9c83adf.js","assets/PhCopy.vue.dfade011.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhCopySimple.vue.6b8fcb49.js","assets/PhCaretRight.vue.5db53029.js","assets/Badge.f6241be2.js","assets/PhBug.vue.33662d9e.js","assets/PhQuestion.vue.f82af3dd.js","assets/LoadingOutlined.bcfc8c20.js","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js","assets/PhPencil.vue.7418c4e5.js","assets/toggleHighContrast.0eb315ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.289665f1.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/SourceCode.62d79c81.css","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/index.81ae2c34.js","assets/index.a82e0ed1.js","assets/RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js","assets/NavbarControls.be646660.js","assets/CloseCircleOutlined.c0e3f3e1.js","assets/popupNotifcation.a0a6244b.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/PhChats.vue.1b5982bf.js","assets/NavbarControls.8216d9aa.css","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js"]),meta:{title:"Job Editor"}},{path:"hook/:id",name:"hookEditor",component:()=>a(()=>import("./HookEditor.8e39c563.js"),["assets/HookEditor.8e39c563.js","assets/BaseLayout.52f1acec.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.a748d690.js","assets/uuid.f9389d59.js","assets/scripts.9802e877.js","assets/record.8c284c67.js","assets/validations.2475f715.js","assets/string.d9c83adf.js","assets/PhCopy.vue.dfade011.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhCopySimple.vue.6b8fcb49.js","assets/PhCaretRight.vue.5db53029.js","assets/Badge.f6241be2.js","assets/PhBug.vue.33662d9e.js","assets/PhQuestion.vue.f82af3dd.js","assets/LoadingOutlined.bcfc8c20.js","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js","assets/PhPencil.vue.7418c4e5.js","assets/toggleHighContrast.0eb315ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.289665f1.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/SourceCode.62d79c81.css","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js","assets/api.8656aeba.js","assets/fetch.e5ebd511.js","assets/metadata.bc77f4b9.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/ThreadSelector.f3c948bb.js","assets/index.3814eba6.js","assets/index.a552d580.js","assets/ThreadSelector.c38c4d8f.css","assets/index.c44d2714.js","assets/CollapsePanel.40b6e69e.js","assets/index.a82e0ed1.js","assets/NavbarControls.be646660.js","assets/CloseCircleOutlined.c0e3f3e1.js","assets/popupNotifcation.a0a6244b.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/PhChats.vue.1b5982bf.js","assets/NavbarControls.8216d9aa.css","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js"]),meta:{title:"Hook Editor"}},{path:"script/:id",name:"scriptEditor",component:()=>a(()=>import("./ScriptEditor.9189d0f2.js"),["assets/ScriptEditor.9189d0f2.js","assets/BaseLayout.52f1acec.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.a748d690.js","assets/uuid.f9389d59.js","assets/scripts.9802e877.js","assets/record.8c284c67.js","assets/validations.2475f715.js","assets/string.d9c83adf.js","assets/PhCopy.vue.dfade011.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhCopySimple.vue.6b8fcb49.js","assets/PhCaretRight.vue.5db53029.js","assets/Badge.f6241be2.js","assets/PhBug.vue.33662d9e.js","assets/PhQuestion.vue.f82af3dd.js","assets/LoadingOutlined.bcfc8c20.js","assets/workspaces.e43325e2.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js","assets/PhPencil.vue.7418c4e5.js","assets/toggleHighContrast.0eb315ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.289665f1.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/SourceCode.62d79c81.css","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/RunButton.vue_vue_type_script_setup_true_lang.4e5d322c.js","assets/ThreadSelector.f3c948bb.js","assets/index.3814eba6.js","assets/index.a552d580.js","assets/ThreadSelector.c38c4d8f.css","assets/NavbarControls.be646660.js","assets/CloseCircleOutlined.c0e3f3e1.js","assets/index.a82e0ed1.js","assets/popupNotifcation.a0a6244b.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/PhChats.vue.1b5982bf.js","assets/NavbarControls.8216d9aa.css","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js","assets/CollapsePanel.40b6e69e.js"]),meta:{title:"Script Editor"}},{path:"resources",name:"resourcesTracker",component:()=>a(()=>import("./ResourcesTracker.6827af8a.js"),["assets/ResourcesTracker.6827af8a.js","assets/BaseLayout.52f1acec.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js"]),meta:{title:"Resources Tracker"}},{path:"welcome",name:"welcome",component:()=>a(()=>import("./Welcome.8fd822a7.js"),["assets/Welcome.8fd822a7.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/Logo.03290bf7.css","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/fetch.e5ebd511.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/workspaceStore.e47060bf.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/asyncComputed.703c33fd.js","assets/Welcome.8d813f91.css"]),meta:{title:"Welcome",allowUnauthenticated:!0}}]},{path:"/:path(.*)*",name:"form",component:()=>a(()=>import("./App.5afbb284.js"),["assets/App.5afbb284.js","assets/App.vue_vue_type_style_index_0_lang.03b90ea7.js","assets/workspaceStore.e47060bf.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/PlayerConfigProvider.e5e86f58.js","assets/index.c7e8afe7.js","assets/PlayerConfigProvider.8864c905.css","assets/App.bf2707f8.css"]),children:me}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),_e=ee(u);u.beforeEach(async(o,e)=>{if(await Z().actions.fetch(),o.meta.playerRoute)return _e(o,e);W(o,e);const t=ue();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const r={redirect:location.origin+"/_editor/project-login"};window.open(v.getLoginUrl(r),"_self")}});(async()=>{await te();const o=oe(),e=N({render:()=>z(ne)});B.init(),M(e,u),e.use(u),e.use(q),e.use(o),e.mount("#app"),e.component("VSelect",F),e.component("Markdown",H),e.component("Message",J),m(e,G),m(e,Y),m(e,K)})();export{d as E,le as L,ue as u}; +//# sourceMappingURL=editor.95f16260.js.map diff --git a/abstra_statics/dist/assets/editor.e7656461.js b/abstra_statics/dist/assets/editor.e7656461.js deleted file mode 100644 index d6ff8fcbe2..0000000000 --- a/abstra_statics/dist/assets/editor.e7656461.js +++ /dev/null @@ -1,2 +0,0 @@ -var T=Object.defineProperty;var k=(o,e,t)=>e in o?T(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var n=(o,e,t)=>(k(o,typeof e!="symbol"?e+"":e,t),t);import{d as A,r as I,o as V,c as j,w as D,a as O,b as U,u as C,A as x,l as f,e as w,f as g,g as E,h as S,i as $,_ as a,j as W,k as N,T as B,m as M,P as q,C as F,M as H,s as J,n as m,p as z,q as G,t as Y,v as K}from"./index.8c3f27aa.js";import{d as Q,r as X,u as Z,g as ee,s as te,c as oe}from"./workspaceStore.a6063d10.js";import{a as ae}from"./asyncComputed.cfc0cdaf.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="f785220e-df3c-408f-95a1-38e681ac379f",o._sentryDebugIdIdentifier="sentry-dbid-f785220e-df3c-408f-95a1-38e681ac379f")}catch{}})();const re={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},ne=A({__name:"App",setup(o){const e={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(t,r)=>{const l=I("RouterView");return V(),j(C(x),{theme:e,"page-header":{ghost:!1}},{default:D(()=>[O("div",re,[U(l)])]),_:1})}}});class v{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}static getLoginUrl(e){return"https://cloud.abstra.io/api-key?"+new URLSearchParams(e)}}class se{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,t){const r=await fetch(`/_editor/api/linters/fix/${e}/${t}`,{method:"POST"});if(!r.ok)throw new Error("Failed to fix");return _.refetch(),r.json()}}const L=new se,_=ae(async()=>(await L.check()).map(e=>new le(e)));class ie{constructor(e,t){n(this,"name");n(this,"label");n(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=t}async fix(){await L.fix(this.ruleName,this.name)}}class ce{constructor(e,t){n(this,"label");n(this,"fixes");this.ruleName=t,this.label=e.label,this.fixes=e.fixes.map(r=>new ie(r,t))}}class le{constructor(e){n(this,"name");n(this,"label");n(this,"type");n(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(t=>new ce(t,this.name))}static get asyncComputed(){return _}static fromName(e){var r;const t=(r=_.result.value)==null?void 0:r.find(l=>l.name===e);if(!t)throw new Error(`Rule ${e} not found`);return t}}const i=class{static dispatch(e,t,r=0){window.Intercom?window.Intercom(e,t):r<10?setTimeout(()=>i.dispatch(e,t),100):console.error("Intercom not loaded")}static boot(e,t){i.booted||(i.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),i.booted=!0)}static shutdown(){i.dispatch("shutdown"),i.booted=!1}};let p=i;n(p,"booted",!1);const de={"console-url":"https://cloud.abstra.io"},pe=o=>{const e="VITE_"+f.toUpper(f.snakeCase(o)),t={VITE_SENTRY_RELEASE:"77c1001591fff922ea45dd83d03249c1bc837d9e",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||de[o]},d={consoleUrl:pe("console-url")},ue=Q("cloud-project",()=>{const o=new v,e=w(null),t=w(null),r=g(()=>{var s,c;return(c=(s=e.value)==null?void 0:s.logged)!=null?c:!1}),l=g(()=>t.value?{project:`${d.consoleUrl}/projects/${t.value.id}`,users:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${d.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${d.consoleUrl}/projects/${t.value.id}/builds`,login:`${d.consoleUrl}/api-key`}:null),y=async()=>{!r.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},b=async s=>{const c=await o.createLogin(s);e.value=c,c.logged&&await h()},h=async()=>t.value=await o.getCloudProject(),P=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,h),E(()=>e.value,async s=>{if(s&&"info"in s){const{email:c,intercomHash:R}=s.info;p.boot(c,R)}else p.shutdown()}),{loadLogin:P,createLogin:b,deleteLogin:y,loginInfo:e,cloudProject:t,isLogged:r,links:l}}),me=X.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),u=S({history:$("/"),routes:[{path:"/_editor/",name:"app",component:()=>a(()=>import("./Home.44eb0d15.js"),["assets/Home.44eb0d15.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/Home.ad31131b.css"]),children:[{path:"",name:"workspace",component:()=>a(()=>import("./Workspace.28d47a77.js"),["assets/Workspace.28d47a77.js","assets/BaseLayout.995c8c6b.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/PhSignOut.vue.266bb925.js","assets/NavbarControls.0c752e0f.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/CloseCircleOutlined.7faf1c70.js","assets/index.126762e2.js","assets/index.37c7ea66.js","assets/workspaces.7bc437a6.js","assets/record.a6861841.js","assets/popupNotifcation.40886a7f.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/PhChats.vue.296ae643.js","assets/NavbarControls.8216d9aa.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/PhIdentificationBadge.vue.b9f0b1dc.js","assets/PhCaretRight.vue.a26e962f.js","assets/PhFlowArrow.vue.f79c4ef2.js","assets/PhKanban.vue.444564da.js","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js","assets/asyncComputed.cfc0cdaf.js","assets/Workspace.1d39102f.css"]),redirect:()=>({name:"workflowEditor"}),children:[{path:"stages",name:"stages",component:()=>a(()=>import("./Stages.6ab1bd41.js"),["assets/Stages.6ab1bd41.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/CrudView.ac8aad2f.js","assets/router.f4663fd5.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/ant-design.ae7d2f9f.js","assets/asyncComputed.cfc0cdaf.js","assets/string.0a3509c3.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/forms.95b70669.js","assets/record.a6861841.js","assets/scripts.ab5c52f3.js","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/colorHelpers.0ac76147.js","assets/index.126762e2.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/validations.1f9bbc1f.js","assets/Stages.f68d77c7.css"]),meta:{title:"Stages"}},{path:"workflow",name:"workflowEditor",component:()=>a(()=>import("./WorkflowEditor.61d6891c.js"),["assets/WorkflowEditor.61d6891c.js","assets/api.ebb7a8be.js","assets/fetch.fd4370bb.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/Workflow.0ffe81e0.js","assets/PhArrowCounterClockwise.vue.e0916215.js","assets/validations.1f9bbc1f.js","assets/string.0a3509c3.js","assets/uuid.4ec4da84.js","assets/index.73b06b4b.js","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/record.a6861841.js","assets/polling.98a0bd01.js","assets/index.c8ad961f.js","assets/Badge.7a29ebdb.js","assets/PhArrowDown.vue.bbcdf79c.js","assets/Workflow.0e84f462.css","assets/asyncComputed.cfc0cdaf.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/index.d18d35d7.js","assets/WorkflowEditor.adc8a023.css"]),meta:{title:"Workflow Editor"}},{path:"threads",name:"workflowThreads",component:()=>a(()=>import("./WorkflowThreads.7e66085c.js"),["assets/WorkflowThreads.7e66085c.js","assets/api.ebb7a8be.js","assets/fetch.fd4370bb.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/WorkflowView.a56d2fab.js","assets/polling.98a0bd01.js","assets/asyncComputed.cfc0cdaf.js","assets/PhQuestion.vue.5030f781.js","assets/ant-design.ae7d2f9f.js","assets/index.37c7ea66.js","assets/index.eefd8753.js","assets/index.90acc740.js","assets/CollapsePanel.14b56554.js","assets/index.d18d35d7.js","assets/index.2753fdb2.js","assets/Badge.7a29ebdb.js","assets/PhArrowCounterClockwise.vue.e0916215.js","assets/Workflow.0ffe81e0.js","assets/validations.1f9bbc1f.js","assets/string.0a3509c3.js","assets/uuid.4ec4da84.js","assets/index.73b06b4b.js","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/record.a6861841.js","assets/index.c8ad961f.js","assets/PhArrowDown.vue.bbcdf79c.js","assets/Workflow.0e84f462.css","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/LoadingOutlined.7a2941f5.js","assets/DeleteOutlined.0e27ef4f.js","assets/PhDownloadSimple.vue.53949cd1.js","assets/utils.c92e833b.js","assets/LoadingContainer.e327afe8.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.aec9e496.css"]),meta:{title:"Workflow Threads"}},{path:"preferences",name:"settingsPreferences",component:()=>a(()=>import("./PreferencesEditor.6e9e36a8.js"),["assets/PreferencesEditor.6e9e36a8.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/record.a6861841.js","assets/PlayerNavbar.dddcfb4f.js","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/LoadingOutlined.7a2941f5.js","assets/PhSignOut.vue.266bb925.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js","assets/PlayerNavbar.bac3bd2c.css","assets/PlayerConfigProvider.4d4af7bc.js","assets/index.73b06b4b.js","assets/PlayerConfigProvider.8864c905.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/LoadingContainer.e327afe8.js","assets/LoadingContainer.56fa997a.css","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/asyncComputed.cfc0cdaf.js","assets/PreferencesEditor.a7201214.css"]),meta:{title:"Preferences"}},{path:"requirements",name:"settingsRequirements",component:()=>a(()=>import("./RequirementsEditor.afe6899d.js"),["assets/RequirementsEditor.afe6899d.js","assets/ContentLayout.60e2d770.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/ContentLayout.ee57a545.css","assets/CrudView.ac8aad2f.js","assets/router.f4663fd5.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js","assets/record.a6861841.js","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/colorHelpers.0ac76147.js","assets/RequirementsEditor.46e215f2.css"]),meta:{title:"Requirements"}},{path:"env-vars",name:"env-vars",component:()=>a(()=>import("./EnvVarsEditor.b5d90e39.js"),["assets/EnvVarsEditor.b5d90e39.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/record.a6861841.js","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/View.vue_vue_type_script_setup_true_lang.dc951c99.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/fetch.fd4370bb.js","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/CrudView.ac8aad2f.js","assets/router.f4663fd5.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js","assets/PhPencil.vue.47d672ed.js","assets/index.126762e2.js"]),meta:{title:"Environment Variables"}},{path:"access-control",name:"accessControl",component:()=>a(()=>import("./AccessControlEditor.53b7cfdd.js"),["assets/AccessControlEditor.53b7cfdd.js","assets/ContentLayout.60e2d770.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/ContentLayout.ee57a545.css","assets/fetch.fd4370bb.js","assets/record.a6861841.js","assets/repository.31bede66.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/asyncComputed.cfc0cdaf.js","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/PhGlobe.vue.3da2da74.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/index.d18d35d7.js","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/index.126762e2.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/AccessControlEditor.b7d1ceb9.css"]),meta:{title:"Access Control"}}]},{path:"project-login",name:"projectLogin",component:()=>a(()=>import("./ProjectLogin.836b6bad.js"),["assets/ProjectLogin.836b6bad.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/Logo.03290bf7.css","assets/BaseLayout.995c8c6b.js","assets/BaseLayout.b7a1f19a.css","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js","assets/index.37c7ea66.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/asyncComputed.cfc0cdaf.js","assets/ProjectLogin.2f3a2bb2.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:"form/:id",name:"formEditor",component:()=>a(()=>import("./FormEditor.ca445dd9.js"),["assets/FormEditor.ca445dd9.js","assets/api.ebb7a8be.js","assets/fetch.fd4370bb.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/PlayerNavbar.dddcfb4f.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/LoadingOutlined.7a2941f5.js","assets/PhSignOut.vue.266bb925.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js","assets/PlayerNavbar.bac3bd2c.css","assets/BaseLayout.995c8c6b.js","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.38be4205.js","assets/uuid.4ec4da84.js","assets/scripts.ab5c52f3.js","assets/record.a6861841.js","assets/validations.1f9bbc1f.js","assets/string.0a3509c3.js","assets/PhCopy.vue.a05dc1a1.js","assets/PhCopySimple.vue.cf5729b7.js","assets/PhCaretRight.vue.a26e962f.js","assets/Badge.7a29ebdb.js","assets/PhQuestion.vue.5030f781.js","assets/workspaces.7bc437a6.js","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js","assets/PhPencil.vue.47d672ed.js","assets/toggleHighContrast.5028b4ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.126762e2.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/SourceCode.62d79c81.css","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/FormRunner.b9a7fe60.js","assets/Login.vue_vue_type_script_setup_true_lang.4f858dcf.js","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/CircularLoading.fdcc1083.js","assets/CircularLoading.1a558a0d.css","assets/index.73b06b4b.js","assets/Login.28df3844.css","assets/Steps.526dbd54.js","assets/index.f36b2f2c.js","assets/Steps.4d03c6c1.css","assets/Watermark.41d3e1ab.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.616c8292.css","assets/PlayerConfigProvider.4d4af7bc.js","assets/PlayerConfigProvider.8864c905.css","assets/PhArrowSquareOut.vue.da8bb581.js","assets/PhFlowArrow.vue.f79c4ef2.js","assets/forms.95b70669.js","assets/ThreadSelector.0fc03e39.js","assets/index.eefd8753.js","assets/index.d18d35d7.js","assets/ThreadSelector.c38c4d8f.css","assets/index.37c7ea66.js","assets/NavbarControls.0c752e0f.js","assets/CloseCircleOutlined.7faf1c70.js","assets/popupNotifcation.40886a7f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/PhChats.vue.296ae643.js","assets/NavbarControls.8216d9aa.css","assets/index.d667cd0d.js","assets/FormEditor.cc36a3e2.css"]),meta:{title:"Form Editor"}},{path:"job/:id",name:"jobEditor",component:()=>a(()=>import("./JobEditor.080bdf78.js"),["assets/JobEditor.080bdf78.js","assets/BaseLayout.995c8c6b.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.38be4205.js","assets/uuid.4ec4da84.js","assets/scripts.ab5c52f3.js","assets/record.a6861841.js","assets/validations.1f9bbc1f.js","assets/string.0a3509c3.js","assets/PhCopy.vue.a05dc1a1.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhCopySimple.vue.cf5729b7.js","assets/PhCaretRight.vue.a26e962f.js","assets/Badge.7a29ebdb.js","assets/PhBug.vue.96a42e8e.js","assets/PhQuestion.vue.5030f781.js","assets/LoadingOutlined.7a2941f5.js","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js","assets/PhPencil.vue.47d672ed.js","assets/toggleHighContrast.5028b4ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.126762e2.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/SourceCode.62d79c81.css","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/index.d2b068b5.js","assets/index.37c7ea66.js","assets/RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js","assets/NavbarControls.0c752e0f.js","assets/CloseCircleOutlined.7faf1c70.js","assets/popupNotifcation.40886a7f.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/PhChats.vue.296ae643.js","assets/NavbarControls.8216d9aa.css","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js"]),meta:{title:"Job Editor"}},{path:"hook/:id",name:"hookEditor",component:()=>a(()=>import("./HookEditor.4c4202a3.js"),["assets/HookEditor.4c4202a3.js","assets/BaseLayout.995c8c6b.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.38be4205.js","assets/uuid.4ec4da84.js","assets/scripts.ab5c52f3.js","assets/record.a6861841.js","assets/validations.1f9bbc1f.js","assets/string.0a3509c3.js","assets/PhCopy.vue.a05dc1a1.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhCopySimple.vue.cf5729b7.js","assets/PhCaretRight.vue.a26e962f.js","assets/Badge.7a29ebdb.js","assets/PhBug.vue.96a42e8e.js","assets/PhQuestion.vue.5030f781.js","assets/LoadingOutlined.7a2941f5.js","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js","assets/PhPencil.vue.47d672ed.js","assets/toggleHighContrast.5028b4ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.126762e2.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/SourceCode.62d79c81.css","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js","assets/api.ebb7a8be.js","assets/fetch.fd4370bb.js","assets/metadata.2beed20a.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/ThreadSelector.0fc03e39.js","assets/index.eefd8753.js","assets/index.d18d35d7.js","assets/ThreadSelector.c38c4d8f.css","assets/index.a0ca3dcb.js","assets/CollapsePanel.14b56554.js","assets/index.37c7ea66.js","assets/NavbarControls.0c752e0f.js","assets/CloseCircleOutlined.7faf1c70.js","assets/popupNotifcation.40886a7f.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/PhChats.vue.296ae643.js","assets/NavbarControls.8216d9aa.css","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js"]),meta:{title:"Hook Editor"}},{path:"script/:id",name:"scriptEditor",component:()=>a(()=>import("./ScriptEditor.10fa89bf.js"),["assets/ScriptEditor.10fa89bf.js","assets/BaseLayout.995c8c6b.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/SourceCode.38be4205.js","assets/uuid.4ec4da84.js","assets/scripts.ab5c52f3.js","assets/record.a6861841.js","assets/validations.1f9bbc1f.js","assets/string.0a3509c3.js","assets/PhCopy.vue.a05dc1a1.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhCopySimple.vue.cf5729b7.js","assets/PhCaretRight.vue.a26e962f.js","assets/Badge.7a29ebdb.js","assets/PhBug.vue.96a42e8e.js","assets/PhQuestion.vue.5030f781.js","assets/LoadingOutlined.7a2941f5.js","assets/workspaces.7bc437a6.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js","assets/PhPencil.vue.47d672ed.js","assets/toggleHighContrast.5028b4ff.js","assets/toggleHighContrast.30d77c87.css","assets/index.126762e2.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/SourceCode.62d79c81.css","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/RunButton.vue_vue_type_script_setup_true_lang.3aa36f4b.js","assets/ThreadSelector.0fc03e39.js","assets/index.eefd8753.js","assets/index.d18d35d7.js","assets/ThreadSelector.c38c4d8f.css","assets/NavbarControls.0c752e0f.js","assets/CloseCircleOutlined.7faf1c70.js","assets/index.37c7ea66.js","assets/popupNotifcation.40886a7f.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/PhChats.vue.296ae643.js","assets/NavbarControls.8216d9aa.css","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js","assets/CollapsePanel.14b56554.js"]),meta:{title:"Script Editor"}},{path:"resources",name:"resourcesTracker",component:()=>a(()=>import("./ResourcesTracker.e418a694.js"),["assets/ResourcesTracker.e418a694.js","assets/BaseLayout.995c8c6b.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/BaseLayout.b7a1f19a.css","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js"]),meta:{title:"Resources Tracker"}},{path:"welcome",name:"welcome",component:()=>a(()=>import("./Welcome.f33e3b7a.js"),["assets/Welcome.f33e3b7a.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/Logo.03290bf7.css","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/fetch.fd4370bb.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/workspaceStore.a6063d10.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/asyncComputed.cfc0cdaf.js","assets/Welcome.8d813f91.css"]),meta:{title:"Welcome",allowUnauthenticated:!0}}]},{path:"/:path(.*)*",name:"form",component:()=>a(()=>import("./App.80bbeb43.js"),["assets/App.80bbeb43.js","assets/App.vue_vue_type_style_index_0_lang.b11374af.js","assets/workspaceStore.a6063d10.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/PlayerConfigProvider.4d4af7bc.js","assets/index.73b06b4b.js","assets/PlayerConfigProvider.8864c905.css","assets/App.bf2707f8.css"]),children:me}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),_e=ee(u);u.beforeEach(async(o,e)=>{if(await Z().actions.fetch(),o.meta.playerRoute)return _e(o,e);W(o,e);const t=ue();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const r={redirect:location.origin+"/_editor/project-login"};window.open(v.getLoginUrl(r),"_self")}});(async()=>{await te();const o=oe(),e=N({render:()=>z(ne)});B.init(),M(e,u),e.use(u),e.use(q),e.use(o),e.mount("#app"),e.component("VSelect",F),e.component("Markdown",H),e.component("Message",J),m(e,G),m(e,Y),m(e,K)})();export{d as E,le as L,ue as u}; -//# sourceMappingURL=editor.e7656461.js.map diff --git a/abstra_statics/dist/assets/editor.main.54e0d4d5.js b/abstra_statics/dist/assets/editor.main.54e0d4d5.js new file mode 100644 index 0000000000..b926061f8c --- /dev/null +++ b/abstra_statics/dist/assets/editor.main.54e0d4d5.js @@ -0,0 +1,2 @@ +import{C as r,E as t,K as i,a as c,M as f,c as l,P as y,R as b,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f8a4c23c-64d8-4f5d-9711-863e6c3cd7b2",e._sentryDebugIdIdentifier="sentry-dbid-f8a4c23c-64d8-4f5d-9711-863e6c3cd7b2")}catch{}})();export{r as CancellationTokenSource,t as Emitter,i as KeyCode,c as KeyMod,f as MarkerSeverity,l as MarkerTag,y as Position,b as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages}; +//# sourceMappingURL=editor.main.54e0d4d5.js.map diff --git a/abstra_statics/dist/assets/editor.main.99d6f79a.js b/abstra_statics/dist/assets/editor.main.99d6f79a.js deleted file mode 100644 index 84c5b33eb0..0000000000 --- a/abstra_statics/dist/assets/editor.main.99d6f79a.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C as t,E as d,K as i,a as b,M as c,c as l,P as y,R as f,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="77018360-42d1-4b79-a3eb-d71b90c38931",e._sentryDebugIdIdentifier="sentry-dbid-77018360-42d1-4b79-a3eb-d71b90c38931")}catch{}})();export{t as CancellationTokenSource,d as Emitter,i as KeyCode,b as KeyMod,c as MarkerSeverity,l as MarkerTag,y as Position,f as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages}; -//# sourceMappingURL=editor.main.99d6f79a.js.map diff --git a/abstra_statics/dist/assets/fetch.e5ebd511.js b/abstra_statics/dist/assets/fetch.e5ebd511.js new file mode 100644 index 0000000000..d60fc21526 --- /dev/null +++ b/abstra_statics/dist/assets/fetch.e5ebd511.js @@ -0,0 +1,2 @@ +import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="7b390c50-bfa8-4e43-b694-82e0d8f8bc86",e._sentryDebugIdIdentifier="sentry-dbid-7b390c50-bfa8-4e43-b694-82e0d8f8bc86")}catch{}})();const b=(...e)=>window.fetch(...e);export{b as l}; +//# sourceMappingURL=fetch.e5ebd511.js.map diff --git a/abstra_statics/dist/assets/fetch.fd4370bb.js b/abstra_statics/dist/assets/fetch.fd4370bb.js deleted file mode 100644 index 4040f66fb6..0000000000 --- a/abstra_statics/dist/assets/fetch.fd4370bb.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="73684baa-8342-4180-9588-4f09a0333dbb",e._sentryDebugIdIdentifier="sentry-dbid-73684baa-8342-4180-9588-4f09a0333dbb")}catch{}})();const o=(...e)=>window.fetch(...e);export{o as l}; -//# sourceMappingURL=fetch.fd4370bb.js.map diff --git a/abstra_statics/dist/assets/forms.95b70669.js b/abstra_statics/dist/assets/forms.ac0b102a.js similarity index 93% rename from abstra_statics/dist/assets/forms.95b70669.js rename to abstra_statics/dist/assets/forms.ac0b102a.js index 77b25fae78..8fc8e3cb67 100644 --- a/abstra_statics/dist/assets/forms.95b70669.js +++ b/abstra_statics/dist/assets/forms.ac0b102a.js @@ -1,2 +1,2 @@ -var c=Object.defineProperty;var d=(r,t,e)=>t in r?c(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>(d(r,typeof t!="symbol"?t+"":t,e),e);import{A as g}from"./record.a6861841.js";import"./index.8c3f27aa.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="0f855b3c-d9b7-494f-9673-e994af46629e",r._sentryDebugIdIdentifier="sentry-dbid-0f855b3c-d9b7-494f-9673-e994af46629e")}catch{}})();class h{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,s){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/forms/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",o=`/_editor/api/forms/${t}`+s;await fetch(o,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const a=new h;class i{constructor(t){n(this,"record");this.record=g.create(a,t)}static async list(){return(await a.list()).map(e=>new i(e))}static async create(t,e,s){const o=await a.create(t,e,s);return new i(o)}static async get(t){const e=await a.get(t);return new i(e)}get id(){return this.record.get("id")}get type(){return"form"}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,s)=>(this.record.set("notification_trigger",{...t,[e]:s}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await a.delete(this.id,t)}async duplicate(){const t=await a.duplicate(this.id);return new i(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,allowRestart:this.allowRestart,welcomeTitle:this.welcomeTitle,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText,restartButtonText:this.restartButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new i(t)}}export{i as F}; -//# sourceMappingURL=forms.95b70669.js.map +var c=Object.defineProperty;var d=(r,t,e)=>t in r?c(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>(d(r,typeof t!="symbol"?t+"":t,e),e);import{A as g}from"./record.8c284c67.js";import"./index.d0f12294.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="5e10046a-b023-4f89-be9d-bef1a66d14fb",r._sentryDebugIdIdentifier="sentry-dbid-5e10046a-b023-4f89-be9d-bef1a66d14fb")}catch{}})();class h{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,s){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/forms/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",o=`/_editor/api/forms/${t}`+s;await fetch(o,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const a=new h;class i{constructor(t){n(this,"record");this.record=g.create(a,t)}static async list(){return(await a.list()).map(e=>new i(e))}static async create(t,e,s){const o=await a.create(t,e,s);return new i(o)}static async get(t){const e=await a.get(t);return new i(e)}get id(){return this.record.get("id")}get type(){return"form"}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,s)=>(this.record.set("notification_trigger",{...t,[e]:s}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await a.delete(this.id,t)}async duplicate(){const t=await a.duplicate(this.id);return new i(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,allowRestart:this.allowRestart,welcomeTitle:this.welcomeTitle,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText,restartButtonText:this.restartButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new i(t)}}export{i as F}; +//# sourceMappingURL=forms.ac0b102a.js.map diff --git a/abstra_statics/dist/assets/freemarker2.552a9264.js b/abstra_statics/dist/assets/freemarker2.4de0301e.js similarity index 98% rename from abstra_statics/dist/assets/freemarker2.552a9264.js rename to abstra_statics/dist/assets/freemarker2.4de0301e.js index a3d7a563d9..41e29c75d0 100644 --- a/abstra_statics/dist/assets/freemarker2.552a9264.js +++ b/abstra_statics/dist/assets/freemarker2.4de0301e.js @@ -1,4 +1,4 @@ -import{m as b}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="de2ba915-8cd8-4d75-bf40-9527df2b7e6e",t._sentryDebugIdIdentifier="sentry-dbid-de2ba915-8cd8-4d75-bf40-9527df2b7e6e")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as b}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="bc87224c-2c6a-466b-9e19-47de39f559d9",t._sentryDebugIdIdentifier="sentry-dbid-bc87224c-2c6a-466b-9e19-47de39f559d9")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -6,4 +6,4 @@ import{m as b}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js" *-----------------------------------------------------------------------------*/var F=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&F(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,b);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\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-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\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]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var w={conf:l(a),language:i(a,k)},h={conf:l(u),language:i(u,k)},T={conf:l(a),language:i(a,p)},S={conf:l(u),language:i(u,p)},y={conf:A(),language:m(k)},P={conf:A(),language:m(p)};export{T as TagAngleInterpolationBracket,w as TagAngleInterpolationDollar,P as TagAutoInterpolationBracket,y as TagAutoInterpolationDollar,S as TagBracketInterpolationBracket,h as TagBracketInterpolationDollar}; -//# sourceMappingURL=freemarker2.552a9264.js.map +//# sourceMappingURL=freemarker2.4de0301e.js.map diff --git a/abstra_statics/dist/assets/gateway.8032b20a.js b/abstra_statics/dist/assets/gateway.ae1d6857.js similarity index 75% rename from abstra_statics/dist/assets/gateway.8032b20a.js rename to abstra_statics/dist/assets/gateway.ae1d6857.js index 98bdf4b28f..ea6560d254 100644 --- a/abstra_statics/dist/assets/gateway.8032b20a.js +++ b/abstra_statics/dist/assets/gateway.ae1d6857.js @@ -1,2 +1,2 @@ -var w=Object.defineProperty;var g=(e,t,o)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var p=(e,t,o)=>(g(e,typeof t!="symbol"?t+"":t,o),o);import{p as y}from"./popupNotifcation.40886a7f.js";import{N as b,O as E,Q as A,l as h}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="69ac0286-6375-4d7f-9bf5-3dd9a1c236e7",e._sentryDebugIdIdentifier="sentry-dbid-69ac0286-6375-4d7f-9bf5-3dd9a1c236e7")}catch{}})();class m{constructor(){p(this,"storage");this.storage=new b(E.string(),"auth:jwt")}async authenticate(t){f.post("authn/authenticate",{email:t})}async verify(t,o){const n=await f.post("authn/verify",{email:t,token:o});if(!(n&&"jwt"in n))throw new Error("Invalid token");return this.saveJWT(n.jwt),this.getAuthor()}saveJWT(t){this.storage.set(t)}getAuthor(){const t=this.storage.get();if(t)try{const o=A(t);if(o.exp&&o.exp>Date.now()/1e3)return{jwt:t,claims:o}}catch{console.warn("Invalid JWT")}return null}removeAuthor(){this.storage.remove()}get headers(){const t=this.getAuthor();return t?{"Author-Authorization":`Bearer ${t.jwt}`}:{}}}const i=new m,T=()=>window.location.host.includes(".abstra.io"),R={"cloud-api":"/api/cloud-api",onboarding:"https://onboarding.abstra.app"},O={"cloud-api":"https://cloud-api.abstra.cloud",onboarding:"https://onboarding.abstra.app"},l=e=>{const t="VITE_"+h.toUpper(h.snakeCase(e)),o={VITE_SENTRY_RELEASE:"77c1001591fff922ea45dd83d03249c1bc837d9e",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[t];return o||(T()?R[e]:O[e])},c={cloudApi:l("cloud-api"),onboarding:l("onboarding")};class u extends Error{constructor(t,o){super(t),this.status=o}static async fromResponse(t){const o=await t.text();return new u(o,t.status)}}class f{static async get(t,o){const n=Object.fromEntries(Object.entries(o!=null?o:{}).filter(([,d])=>d!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await fetch(`${c.cloudApi}/console/${t}${s}`,{headers:{...i.headers}});if(a.status===403){y("You are not authorized to access this resource","Click here to go back to the home page.",()=>{window.location.href="/"});return}const r=await a.text();return r?JSON.parse(r):null}static async getBlob(t){return await(await fetch(`${c.cloudApi}/console/${t}`,{headers:{...i.headers}})).blob()}static async post(t,o,n){const s=!!(n!=null&&n["Content-Type"])&&n["Content-Type"]!=="application/json",a=await fetch(`${c.cloudApi}/console/${t}`,{method:"POST",headers:{"Content-Type":"application/json",...i.headers,...n},body:s?o:JSON.stringify(o)});if(!a.ok)throw await u.fromResponse(a);const r=await a.text();return r?JSON.parse(r):null}static async patch(t,o){const n=await fetch(`${c.cloudApi}/console/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json",...i.headers},body:JSON.stringify(o)});if(!n.ok)throw await u.fromResponse(n);const s=await n.text();return s?JSON.parse(s):null}static async delete(t){const o=await fetch(`${c.cloudApi}/console/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",...i.headers}});if(!o.ok)throw await u.fromResponse(o)}}export{f as C,c as E,i as a}; -//# sourceMappingURL=gateway.8032b20a.js.map +var w=Object.defineProperty;var g=(e,t,o)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var d=(e,t,o)=>(g(e,typeof t!="symbol"?t+"":t,o),o);import{p as b}from"./popupNotifcation.a0a6244b.js";import{N as y,O as E,Q as A,l as h}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="96750e3c-7b2f-44ab-b303-501ec5ed1ba4",e._sentryDebugIdIdentifier="sentry-dbid-96750e3c-7b2f-44ab-b303-501ec5ed1ba4")}catch{}})();class m{constructor(){d(this,"storage");this.storage=new y(E.string(),"auth:jwt")}async authenticate(t){f.post("authn/authenticate",{email:t})}async verify(t,o){const n=await f.post("authn/verify",{email:t,token:o});if(!(n&&"jwt"in n))throw new Error("Invalid token");return this.saveJWT(n.jwt),this.getAuthor()}saveJWT(t){this.storage.set(t)}getAuthor(){const t=this.storage.get();if(t)try{const o=A(t);if(o.exp&&o.exp>Date.now()/1e3)return{jwt:t,claims:o}}catch{console.warn("Invalid JWT")}return null}removeAuthor(){this.storage.remove()}get headers(){const t=this.getAuthor();return t?{"Author-Authorization":`Bearer ${t.jwt}`}:{}}}const i=new m,T=()=>window.location.host.includes(".abstra.io"),R={"cloud-api":"/api/cloud-api",onboarding:"https://onboarding.abstra.app"},O={"cloud-api":"https://cloud-api.abstra.cloud",onboarding:"https://onboarding.abstra.app"},l=e=>{const t="VITE_"+h.toUpper(h.snakeCase(e)),o={VITE_SENTRY_RELEASE:"a6a8f6f37f1ddb4de5f0385bfc54d40c194485e0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[t];return o||(T()?R[e]:O[e])},c={cloudApi:l("cloud-api"),onboarding:l("onboarding")};class u extends Error{constructor(t,o){super(t),this.status=o}static async fromResponse(t){const o=await t.text();return new u(o,t.status)}}class f{static async get(t,o){const n=Object.fromEntries(Object.entries(o!=null?o:{}).filter(([,p])=>p!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await fetch(`${c.cloudApi}/console/${t}${s}`,{headers:{...i.headers}});if(a.status===403){b("You are not authorized to access this resource","Click here to go back to the home page.",()=>{window.location.href="/"});return}const r=await a.text();return r?JSON.parse(r):null}static async getBlob(t){return await(await fetch(`${c.cloudApi}/console/${t}`,{headers:{...i.headers}})).blob()}static async post(t,o,n){const s=!!(n!=null&&n["Content-Type"])&&n["Content-Type"]!=="application/json",a=await fetch(`${c.cloudApi}/console/${t}`,{method:"POST",headers:{"Content-Type":"application/json",...i.headers,...n},body:s?o:JSON.stringify(o)});if(!a.ok)throw await u.fromResponse(a);const r=await a.text();return r?JSON.parse(r):null}static async patch(t,o){const n=await fetch(`${c.cloudApi}/console/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json",...i.headers},body:JSON.stringify(o)});if(!n.ok)throw await u.fromResponse(n);const s=await n.text();return s?JSON.parse(s):null}static async delete(t){const o=await fetch(`${c.cloudApi}/console/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",...i.headers}});if(!o.ok)throw await u.fromResponse(o)}}export{f as C,c as E,i as a}; +//# sourceMappingURL=gateway.ae1d6857.js.map diff --git a/abstra_statics/dist/assets/handlebars.03515038.js b/abstra_statics/dist/assets/handlebars.44d99850.js similarity index 91% rename from abstra_statics/dist/assets/handlebars.03515038.js rename to abstra_statics/dist/assets/handlebars.44d99850.js index c6630c96e9..d1b7cde50d 100644 --- a/abstra_statics/dist/assets/handlebars.03515038.js +++ b/abstra_statics/dist/assets/handlebars.44d99850.js @@ -1,7 +1,7 @@ -import{m as l}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cdb82ec9-1ae9-4182-9db4-a0f3313f73eb",t._sentryDebugIdIdentifier="sentry-dbid-cdb82ec9-1ae9-4182-9db4-a0f3313f73eb")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as l}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="482a0a3f-e3c1-4f80-ae8a-950c6b118e0c",t._sentryDebugIdIdentifier="sentry-dbid-482a0a3f-e3c1-4f80-ae8a-950c6b118e0c")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!p.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=s(e,r))||o.enumerable});return t},h=(t,e,n)=>(i(t,e,"default"),n&&i(n,e,"default")),a={};h(a,l);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; -//# sourceMappingURL=handlebars.03515038.js.map + *-----------------------------------------------------------------------------*/var d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of c(e))!p.call(t,a)&&a!==n&&d(t,a,{get:()=>e[a],enumerable:!(o=s(e,a))||o.enumerable});return t},h=(t,e,n)=>(i(t,e,"default"),n&&i(n,e,"default")),r={};h(r,l);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; +//# sourceMappingURL=handlebars.44d99850.js.map diff --git a/abstra_statics/dist/assets/html.b6d5cced.js b/abstra_statics/dist/assets/html.5beff205.js similarity index 91% rename from abstra_statics/dist/assets/html.b6d5cced.js rename to abstra_statics/dist/assets/html.5beff205.js index b705f92822..18f57256a9 100644 --- a/abstra_statics/dist/assets/html.b6d5cced.js +++ b/abstra_statics/dist/assets/html.5beff205.js @@ -1,7 +1,7 @@ -import{m as d}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="37820e80-df41-4e53-9c56-fb509f681b8f",t._sentryDebugIdIdentifier="sentry-dbid-37820e80-df41-4e53-9c56-fb509f681b8f")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as s}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b1d0903e-1d0e-47f3-b344-3207a2b6827d",t._sentryDebugIdIdentifier="sentry-dbid-b1d0903e-1d0e-47f3-b344-3207a2b6827d")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var p=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!c.call(t,n)&&n!==r&&p(t,n,{get:()=>e[n],enumerable:!(o=l(e,n))||o.enumerable});return t},u=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};u(i,d);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{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:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{x as conf,g as language}; -//# sourceMappingURL=html.b6d5cced.js.map + *-----------------------------------------------------------------------------*/var p=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!c.call(t,n)&&n!==r&&p(t,n,{get:()=>e[n],enumerable:!(o=l(e,n))||o.enumerable});return t},u=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};u(i,s);var d=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{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:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${d.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{x as conf,g as language}; +//# sourceMappingURL=html.5beff205.js.map diff --git a/abstra_statics/dist/assets/htmlMode.fbafd865.js b/abstra_statics/dist/assets/htmlMode.de1c4f49.js similarity index 99% rename from abstra_statics/dist/assets/htmlMode.fbafd865.js rename to abstra_statics/dist/assets/htmlMode.de1c4f49.js index 4d8592742a..d89b09f11c 100644 --- a/abstra_statics/dist/assets/htmlMode.fbafd865.js +++ b/abstra_statics/dist/assets/htmlMode.de1c4f49.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a467da99-e986-4e90-831b-712bc1f7abb0",e._sentryDebugIdIdentifier="sentry-dbid-a467da99-e986-4e90-831b-712bc1f7abb0")}catch{}})();/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f761fec7-7473-4357-949c-0785056c1363",e._sentryDebugIdIdentifier="sentry-dbid-f761fec7-7473-4357-949c-0785056c1363")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -7,4 +7,4 @@ var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,config `,a==="\r"&&t+10&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,I,N){return n.call(f)==="[object Number]"&&I<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,I){return Array.isArray(f)&&f.every(I)}e.typedArray=b})(s||(s={}));var mt=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>nt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function rt(e){switch(e){case A.Error:return c.MarkerSeverity.Error;case A.Warning:return c.MarkerSeverity.Warning;case A.Information:return c.MarkerSeverity.Info;case A.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function nt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var it=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),C(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:st(d.command),range:u,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function C(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Se(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:_(e.range),text:e.newText}}function st(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),C(n))).then(t=>{if(!!t)return{range:_(t.range),contents:ct(t.contents)}})}};function ut(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:ut(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function ct(e){if(!!e)return Array.isArray(e)?e.map(Re):[Re(e)]}var Fe=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),C(n))).then(t=>{if(!!t)return t.map(a=>({range:_(a.range),kind:dt(a.kind)}))})}};function dt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var _t=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),C(n))).then(t=>{if(!!t)return[Le(t)]})}};function Le(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var wt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),C(n))).then(a=>{if(!!a)return a.map(Le)})}},je=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),C(n),i)).then(a=>ft(a))}};function ft(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var Ne=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:gt(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function gt(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var We=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},He=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Oe(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},Ue=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Se(n),Oe(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Oe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var kt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Se(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Ve=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=lt(a.kind)),o})})}};function lt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var ze=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(C))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},Xe=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function bt(e){const n=new Me(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new Xe(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Fe(i)),c.languages.registerLinkProvider(r,new We(i)),c.languages.registerFoldingRangeProvider(r,new Ve(i)),c.languages.registerDocumentSymbolProvider(r,new Ne(i)),c.languages.registerSelectionRangeProvider(r,new ze(i)),c.languages.registerRenameProvider(r,new je(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new He(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new Ue(i)))}function Et(e){const n=[],i=[],r=new Me(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Be(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Xe(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Fe(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new We(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new Ne(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new je(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Ve(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new ze(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new He(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new Ue(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Be(e)}}function Be(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,_t as DefinitionAdapter,mt as DiagnosticsAdapter,kt as DocumentColorAdapter,He as DocumentFormattingEditProvider,Fe as DocumentHighlightAdapter,We as DocumentLinkAdapter,Ue as DocumentRangeFormattingEditProvider,Ne as DocumentSymbolAdapter,Ve as FoldingRangeAdapter,Te as HoverAdapter,wt as ReferenceAdapter,je as RenameAdapter,ze as SelectionRangeAdapter,Me as WorkerManager,C as fromPosition,Se as fromRange,Et as setupMode,bt as setupMode1,_ as toRange,j as toTextEdit}; -//# sourceMappingURL=htmlMode.fbafd865.js.map +//# sourceMappingURL=htmlMode.de1c4f49.js.map diff --git a/abstra_statics/dist/assets/index.90acc740.js b/abstra_statics/dist/assets/index.05dd3c22.js similarity index 79% rename from abstra_statics/dist/assets/index.90acc740.js rename to abstra_statics/dist/assets/index.05dd3c22.js index 3d98a50a77..739614be1b 100644 --- a/abstra_statics/dist/assets/index.90acc740.js +++ b/abstra_statics/dist/assets/index.05dd3c22.js @@ -1,4 +1,4 @@ -import{C as f,A as x}from"./CollapsePanel.14b56554.js";import{d as A,aq as D,ai as E,f as L,b as s,av as c,aN as M,bw as N,ad as G,ae as q,U as P,ap as U,aR as F,dy as J,du as K,aj as W,al as _}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="2fd3bcfe-31ae-4f08-9a76-396ab92204be",e._sentryDebugIdIdentifier="sentry-dbid-2fd3bcfe-31ae-4f08-9a76-396ab92204be")}catch{}})();f.Panel=x;f.install=function(e){return e.component(f.name,f),e.component(x.name,x),e};const Q=()=>({prefixCls:String,color:String,dot:c.any,pending:M(),position:c.oneOf(N("left","right","")).def(""),label:c.any}),b=A({compatConfig:{MODE:3},name:"ATimelineItem",props:D(Q(),{color:"blue",pending:!1}),slots:Object,setup(e,i){let{slots:l}=i;const{prefixCls:n}=E("timeline",e),t=L(()=>({[`${n.value}-item`]:!0,[`${n.value}-item-pending`]:e.pending})),u=L(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),v=L(()=>({[`${n.value}-item-head`]:!0,[`${n.value}-item-head-${e.color||"blue"}`]:!u.value}));return()=>{var g,p,r;const{label:o=(g=l.label)===null||g===void 0?void 0:g.call(l),dot:a=(p=l.dot)===null||p===void 0?void 0:p.call(l)}=e;return s("li",{class:t.value},[o&&s("div",{class:`${n.value}-item-label`},[o]),s("div",{class:`${n.value}-item-tail`},null),s("div",{class:[v.value,!!a&&`${n.value}-item-head-custom`],style:{borderColor:u.value,color:u.value}},[a]),s("div",{class:`${n.value}-item-content`},[(r=l.default)===null||r===void 0?void 0:r.call(l)])])}}}),Y=e=>{const{componentCls:i}=e;return{[i]:P(P({},U(e)),{margin:0,padding:0,listStyle:"none",[`${i}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${i}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${i}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${i}-item-tail`]:{display:"none"},[`> ${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${i}-alternate, +import{C as S,A as x}from"./CollapsePanel.40b6e69e.js";import{d as A,aq as D,ai as E,f as L,b as d,av as c,aN as M,bw as N,ad as G,ae as q,U as P,ap as U,aR as F,dy as J,du as K,aj as W,al as _}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="13dce855-e865-4702-b447-17547d769854",e._sentryDebugIdIdentifier="sentry-dbid-13dce855-e865-4702-b447-17547d769854")}catch{}})();S.Panel=x;S.install=function(e){return e.component(S.name,S),e.component(x.name,x),e};const Q=()=>({prefixCls:String,color:String,dot:c.any,pending:M(),position:c.oneOf(N("left","right","")).def(""),label:c.any}),f=A({compatConfig:{MODE:3},name:"ATimelineItem",props:D(Q(),{color:"blue",pending:!1}),slots:Object,setup(e,i){let{slots:l}=i;const{prefixCls:n}=E("timeline",e),t=L(()=>({[`${n.value}-item`]:!0,[`${n.value}-item-pending`]:e.pending})),u=L(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),b=L(()=>({[`${n.value}-item-head`]:!0,[`${n.value}-item-head-${e.color||"blue"}`]:!u.value}));return()=>{var g,p,r;const{label:o=(g=l.label)===null||g===void 0?void 0:g.call(l),dot:a=(p=l.dot)===null||p===void 0?void 0:p.call(l)}=e;return d("li",{class:t.value},[o&&d("div",{class:`${n.value}-item-label`},[o]),d("div",{class:`${n.value}-item-tail`},null),d("div",{class:[b.value,!!a&&`${n.value}-item-head-custom`],style:{borderColor:u.value,color:u.value}},[a]),d("div",{class:`${n.value}-item-content`},[(r=l.default)===null||r===void 0?void 0:r.call(l)])])}}}),Y=e=>{const{componentCls:i}=e;return{[i]:P(P({},U(e)),{margin:0,padding:0,listStyle:"none",[`${i}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${i}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${i}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${i}-item-tail`]:{display:"none"},[`> ${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${i}-alternate, &${i}-right, &${i}-label`]:{[`${i}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${i}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${i}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${i}-right`]:{[`${i}-item-right`]:{[`${i}-item-tail, ${i}-item-head, @@ -6,5 +6,5 @@ import{C as f,A as x}from"./CollapsePanel.14b56554.js";import{d as A,aq as D,ai ${i}-item-last ${i}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${i}-reverse ${i}-item-last - ${i}-item-tail`]:{display:"none"},[`&${i}-reverse ${i}-item-pending`]:{[`${i}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${i}-label`]:{[`${i}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${i}-item-right`]:{[`${i}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${i}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Z=G("Timeline",e=>{const i=q(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Y(i)]}),k=()=>({prefixCls:String,pending:c.any,pendingDot:c.any,reverse:M(),mode:c.oneOf(N("left","alternate","right",""))}),S=A({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:D(k(),{reverse:!1,mode:""}),slots:Object,setup(e,i){let{slots:l,attrs:n}=i;const{prefixCls:t,direction:u}=E("timeline",e),[v,g]=Z(t),p=(r,o)=>{const a=r.props||{};return e.mode==="alternate"?a.position==="right"?`${t.value}-item-right`:a.position==="left"?`${t.value}-item-left`:o%2===0?`${t.value}-item-left`:`${t.value}-item-right`:e.mode==="left"?`${t.value}-item-left`:e.mode==="right"?`${t.value}-item-right`:a.position==="right"?`${t.value}-item-right`:""};return()=>{var r,o,a;const{pending:m=(r=l.pending)===null||r===void 0?void 0:r.call(l),pendingDot:O=(o=l.pendingDot)===null||o===void 0?void 0:o.call(l),reverse:I,mode:H}=e,X=typeof m=="boolean"?null:m,y=F((a=l.default)===null||a===void 0?void 0:a.call(l)),T=m?s(b,{pending:!!m,dot:O||s(J,null,null)},{default:()=>[X]}):null;T&&y.push(T);const C=I?y.reverse():y,z=C.length,B=`${t.value}-item-last`,j=C.map(($,d)=>{const h=d===z-2?B:"",V=d===z-1?B:"";return K($,{class:W([!I&&!!m?h:V,p($,d)])})}),w=C.some($=>{var d,h;return!!(((d=$.props)===null||d===void 0?void 0:d.label)||((h=$.children)===null||h===void 0?void 0:h.label))}),R=W(t.value,{[`${t.value}-pending`]:!!m,[`${t.value}-reverse`]:!!I,[`${t.value}-${H}`]:!!H&&!w,[`${t.value}-label`]:w,[`${t.value}-rtl`]:u.value==="rtl"},n.class,g.value);return v(s("ul",_(_({},n),{},{class:R}),[j]))}}});S.Item=b;S.install=function(e){return e.component(S.name,S),e.component(b.name,b),e};export{b as A,S as T}; -//# sourceMappingURL=index.90acc740.js.map + ${i}-item-tail`]:{display:"none"},[`&${i}-reverse ${i}-item-pending`]:{[`${i}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${i}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${i}-label`]:{[`${i}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${i}-item-right`]:{[`${i}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${i}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Z=G("Timeline",e=>{const i=q(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Y(i)]}),k=()=>({prefixCls:String,pending:c.any,pendingDot:c.any,reverse:M(),mode:c.oneOf(N("left","alternate","right",""))}),v=A({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:D(k(),{reverse:!1,mode:""}),slots:Object,setup(e,i){let{slots:l,attrs:n}=i;const{prefixCls:t,direction:u}=E("timeline",e),[b,g]=Z(t),p=(r,o)=>{const a=r.props||{};return e.mode==="alternate"?a.position==="right"?`${t.value}-item-right`:a.position==="left"?`${t.value}-item-left`:o%2===0?`${t.value}-item-left`:`${t.value}-item-right`:e.mode==="left"?`${t.value}-item-left`:e.mode==="right"?`${t.value}-item-right`:a.position==="right"?`${t.value}-item-right`:""};return()=>{var r,o,a;const{pending:m=(r=l.pending)===null||r===void 0?void 0:r.call(l),pendingDot:O=(o=l.pendingDot)===null||o===void 0?void 0:o.call(l),reverse:I,mode:H}=e,X=typeof m=="boolean"?null:m,y=F((a=l.default)===null||a===void 0?void 0:a.call(l)),T=m?d(f,{pending:!!m,dot:O||d(J,null,null)},{default:()=>[X]}):null;T&&y.push(T);const C=I?y.reverse():y,z=C.length,B=`${t.value}-item-last`,j=C.map(($,s)=>{const h=s===z-2?B:"",V=s===z-1?B:"";return K($,{class:W([!I&&!!m?h:V,p($,s)])})}),w=C.some($=>{var s,h;return!!(((s=$.props)===null||s===void 0?void 0:s.label)||((h=$.children)===null||h===void 0?void 0:h.label))}),R=W(t.value,{[`${t.value}-pending`]:!!m,[`${t.value}-reverse`]:!!I,[`${t.value}-${H}`]:!!H&&!w,[`${t.value}-label`]:w,[`${t.value}-rtl`]:u.value==="rtl"},n.class,g.value);return b(d("ul",_(_({},n),{},{class:R}),[j]))}}});v.Item=f;v.install=function(e){return e.component(v.name,v),e.component(f.name,f),e};export{f as A,v as T}; +//# sourceMappingURL=index.05dd3c22.js.map diff --git a/abstra_statics/dist/assets/index.f36b2f2c.js b/abstra_statics/dist/assets/index.2862b277.js similarity index 98% rename from abstra_statics/dist/assets/index.f36b2f2c.js rename to abstra_statics/dist/assets/index.2862b277.js index cc61b924b4..ff89155306 100644 --- a/abstra_statics/dist/assets/index.f36b2f2c.js +++ b/abstra_statics/dist/assets/index.2862b277.js @@ -1,2 +1,2 @@ -import{d as L,aj as A,b as g,al as z,ak as F,aM as P,av as p,dQ as Q,aO as T,aN as K,aR as q,U as s,aF as J,ao as Z,ad as k,ae as ii,ap as ti,aq as ei,ai as ni,a9 as oi,aP as ri,f as M,au as li,b7 as si,cP as ai,dR as ci,b0 as di,aW as pi}from"./index.8c3f27aa.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="e0b70b52-4e41-458d-9044-52c64404182a",i._sentryDebugIdIdentifier="sentry-dbid-e0b70b52-4e41-458d-9044-52c64404182a")}catch{}})();function G(i){return typeof i=="string"}function mi(){}const V=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:P(),iconPrefix:String,icon:p.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:p.any,title:p.any,subTitle:p.any,progressDot:Q(p.oneOfType([p.looseBool,p.func])),tailContent:p.any,icons:p.shape({finish:p.any,error:p.any}).loose,onClick:T(),onStepClick:T(),stepIcon:T(),itemRender:T(),__legacy:K()}),U=L({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:V(),setup(i,t){let{slots:e,emit:n,attrs:o}=t;const r=m=>{n("click",m),n("stepClick",i.stepIndex)},b=m=>{let{icon:l,title:c,description:I}=m;const{prefixCls:a,stepNumber:x,status:S,iconPrefix:C,icons:d,progressDot:y=e.progressDot,stepIcon:w=e.stepIcon}=i;let $;const u=A(`${a}-icon`,`${C}icon`,{[`${C}icon-${l}`]:l&&G(l),[`${C}icon-check`]:!l&&S==="finish"&&(d&&!d.finish||!d),[`${C}icon-cross`]:!l&&S==="error"&&(d&&!d.error||!d)}),h=g("span",{class:`${a}-icon-dot`},null);return y?typeof y=="function"?$=g("span",{class:`${a}-icon`},[y({iconDot:h,index:x-1,status:S,title:c,description:I,prefixCls:a})]):$=g("span",{class:`${a}-icon`},[h]):l&&!G(l)?$=g("span",{class:`${a}-icon`},[l]):d&&d.finish&&S==="finish"?$=g("span",{class:`${a}-icon`},[d.finish]):d&&d.error&&S==="error"?$=g("span",{class:`${a}-icon`},[d.error]):l||S==="finish"||S==="error"?$=g("span",{class:u},null):$=g("span",{class:`${a}-icon`},[x]),w&&($=w({index:x-1,status:S,title:c,description:I,node:$})),$};return()=>{var m,l,c,I;const{prefixCls:a,itemWidth:x,active:S,status:C="wait",tailContent:d,adjustMarginRight:y,disabled:w,title:$=(m=e.title)===null||m===void 0?void 0:m.call(e),description:u=(l=e.description)===null||l===void 0?void 0:l.call(e),subTitle:h=(c=e.subTitle)===null||c===void 0?void 0:c.call(e),icon:f=(I=e.icon)===null||I===void 0?void 0:I.call(e),onClick:v,onStepClick:D}=i,W=C||"wait",_=A(`${a}-item`,`${a}-item-${W}`,{[`${a}-item-custom`]:f,[`${a}-item-active`]:S,[`${a}-item-disabled`]:w===!0}),X={};x&&(X.width=x),y&&(X.marginRight=y);const H={onClick:v||mi};D&&!w&&(H.role="button",H.tabindex=0,H.onClick=r);const N=g("div",z(z({},F(o,["__legacy"])),{},{class:[_,o.class],style:[o.style,X]}),[g("div",z(z({},H),{},{class:`${a}-item-container`}),[g("div",{class:`${a}-item-tail`},[d]),g("div",{class:`${a}-item-icon`},[b({icon:f,title:$,description:u})]),g("div",{class:`${a}-item-content`},[g("div",{class:`${a}-item-title`},[$,h&&g("div",{title:typeof h=="string"?h:void 0,class:`${a}-item-subtitle`},[h])]),u&&g("div",{class:`${a}-item-description`},[u])])])]);return i.itemRender?i.itemRender(N):N}}});var gi=globalThis&&globalThis.__rest||function(i,t){var e={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&t.indexOf(n)<0&&(e[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(i);o[]),icons:p.shape({finish:p.any,error:p.any}).loose,stepIcon:T(),isInline:p.looseBool,itemRender:T()},emits:["change"],setup(i,t){let{slots:e,emit:n}=t;const o=m=>{const{current:l}=i;l!==m&&n("change",m)},r=(m,l,c)=>{const{prefixCls:I,iconPrefix:a,status:x,current:S,initial:C,icons:d,stepIcon:y=e.stepIcon,isInline:w,itemRender:$,progressDot:u=e.progressDot}=i,h=w||u,f=s(s({},m),{class:""}),v=C+l,D={active:v===S,stepNumber:v+1,stepIndex:v,key:v,prefixCls:I,iconPrefix:a,progressDot:h,stepIcon:y,icons:d,onStepClick:o};return x==="error"&&l===S-1&&(f.class=`${I}-next-error`),f.status||(v===S?f.status=x:v$(f,W)),g(U,z(z(z({},f),D),{},{__legacy:!1}),null))},b=(m,l)=>r(s({},m.props),l,c=>J(m,c));return()=>{var m;const{prefixCls:l,direction:c,type:I,labelPlacement:a,iconPrefix:x,status:S,size:C,current:d,progressDot:y=e.progressDot,initial:w,icons:$,items:u,isInline:h,itemRender:f}=i,v=gi(i,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),D=I==="navigation",W=h||y,_=h?"horizontal":c,X=h?void 0:C,H=W?"vertical":a,N=A(l,`${l}-${c}`,{[`${l}-${X}`]:X,[`${l}-label-${H}`]:_==="horizontal",[`${l}-dot`]:!!W,[`${l}-navigation`]:D,[`${l}-inline`]:h});return g("div",z({class:N},v),[u.filter(E=>E).map((E,Y)=>r(E,Y)),q((m=e.default)===null||m===void 0?void 0:m.call(e)).map(b)])}}}),hi=i=>{const{componentCls:t,stepsIconCustomTop:e,stepsIconCustomSize:n,stepsIconCustomFontSize:o}=i;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:e,width:n,height:n,fontSize:o,lineHeight:`${n}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Si=hi,ui=i=>{const{componentCls:t,stepsIconSize:e,lineHeight:n,stepsSmallIconSize:o}=i;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e/2+i.controlHeightLG,padding:`${i.paddingXXS}px ${i.paddingLG}px`},"&-content":{display:"block",width:(e/2+i.controlHeightLG)*2,marginTop:i.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:i.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:i.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:i.controlHeightLG+(e-o)/2}}}}}},fi=ui,bi=i=>{const{componentCls:t,stepsNavContentMaxWidth:e,stepsNavArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:r}=i;return{[`&${t}-navigation`]:{paddingTop:i.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-i.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-i.margin,paddingBottom:i.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:e},[`${t}-item-title`]:s(s({maxWidth:"100%",paddingInlineEnd:0},Z),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${i.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:i.fontSizeIcon,height:i.fontSizeIcon,borderTop:`${i.lineWidth}px ${i.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${i.lineWidth}px ${i.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:i.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:i.lineWidth*3,height:`calc(100% - ${i.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:i.controlHeight*.25,height:i.controlHeight*.25,marginBottom:i.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Ii=bi,yi=i=>{const{antCls:t,componentCls:e}=i;return{[`&${e}-with-progress`]:{[`${e}-item`]:{paddingTop:i.paddingXXS,[`&-process ${e}-item-container ${e}-item-icon ${e}-icon`]:{color:i.processIconColor}},[`&${e}-vertical > ${e}-item `]:{paddingInlineStart:i.paddingXXS,[`> ${e}-item-container > ${e}-item-tail`]:{top:i.marginXXS,insetInlineStart:i.stepsIconSize/2-i.lineWidth+i.paddingXXS}},[`&, &${e}-small`]:{[`&${e}-horizontal ${e}-item:first-child`]:{paddingBottom:i.paddingXXS,paddingInlineStart:i.paddingXXS}},[`&${e}-small${e}-vertical > ${e}-item > ${e}-item-container > ${e}-item-tail`]:{insetInlineStart:i.stepsSmallIconSize/2-i.lineWidth+i.paddingXXS},[`&${e}-label-vertical`]:{[`${e}-item ${e}-item-tail`]:{top:i.margin-2*i.lineWidth}},[`${e}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(i.stepsIconSize-i.stepsProgressSize-i.lineWidth*2)/2,insetInlineStart:(i.stepsIconSize-i.stepsProgressSize-i.lineWidth*2)/2}}}}},Ci=yi,vi=i=>{const{componentCls:t,descriptionWidth:e,lineHeight:n,stepsCurrentDotSize:o,stepsDotSize:r,motionDurationSlow:b}=i;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:Math.floor((i.stepsDotSize-i.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${e/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${i.marginSM*2}px)`,height:i.lineWidth*3,marginInlineStart:i.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(i.descriptionWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${b}`,"&::after":{position:"absolute",top:-i.marginSM,insetInlineStart:(r-i.controlHeightLG*1.5)/2,width:i.controlHeightLG*1.5,height:i.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:e},[`&-process ${t}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(i.descriptionWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(i.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(i.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(i.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+i.paddingXS}px 0 ${i.paddingXS}px`,"&::after":{marginInlineStart:(r-i.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(i.controlHeightSM-r)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(i.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(i.controlHeightSM-r)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},xi=vi,wi=i=>{const{componentCls:t}=i;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},zi=wi,Ti=i=>{const{componentCls:t,stepsSmallIconSize:e,fontSizeSM:n,fontSize:o,colorTextDescription:r}=i;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:i.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:e,height:e,marginTop:0,marginBottom:0,marginInline:`0 ${i.marginXS}px`,fontSize:n,lineHeight:`${e}px`,textAlign:"center",borderRadius:e},[`${t}-item-title`]:{paddingInlineEnd:i.paddingSM,fontSize:o,lineHeight:`${e}px`,"&::after":{top:e/2}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:e/2-i.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:e,lineHeight:`${e}px`,transform:"none"}}}}},Di=Ti,Pi=i=>{const{componentCls:t,stepsSmallIconSize:e,stepsIconSize:n}=i;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:i.margin},[`${t}-item-content`]:{display:"block",minHeight:i.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${n}px`},[`${t}-item-description`]:{paddingBottom:i.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.stepsIconSize/2-i.lineWidth,width:i.lineWidth,height:"100%",padding:`${n+i.marginXXS*1.5}px 0 ${i.marginXXS*1.5}px`,"&::after":{width:i.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.stepsSmallIconSize/2-i.lineWidth,padding:`${e+i.marginXXS*1.5}px 0 ${i.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${e}px`}}}}},Wi=Pi,Xi=i=>{const{componentCls:t,inlineDotSize:e,inlineTitleColor:n,inlineTailColor:o}=i,r=i.paddingXS+i.lineWidth,b={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:n}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${r}px ${i.paddingXXS}px 0`,margin:`0 ${i.marginXXS/2}px`,borderRadius:i.borderRadiusSM,cursor:"pointer",transition:`background-color ${i.motionDurationMid}`,"&:hover":{background:i.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:i.fontSizeSM/4}},"&-content":{width:"auto",marginTop:i.marginXS-i.lineWidth},"&-title":{color:n,fontSize:i.fontSizeSM,lineHeight:i.lineHeightSM,fontWeight:"normal",marginBottom:i.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+e/2,transform:"translateY(-50%)","&:after":{width:"100%",height:i.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":s({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i.colorBorderBg,border:`${i.lineWidth}px ${i.lineType} ${o}`}},b),"&-finish":s({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${i.lineWidth}px ${i.lineType} ${o}`}},b),"&-error":b,"&-active, &-process":s({[`${t}-item-icon`]:{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,top:0}},b),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:n}}}}}},Hi=Xi;var B;(function(i){i.wait="wait",i.process="process",i.finish="finish",i.error="error"})(B||(B={}));const R=(i,t)=>{const e=`${t.componentCls}-item`,n=`${i}IconColor`,o=`${i}TitleColor`,r=`${i}DescriptionColor`,b=`${i}TailColor`,m=`${i}IconBgColor`,l=`${i}IconBorderColor`,c=`${i}DotColor`;return{[`${e}-${i} ${e}-icon`]:{backgroundColor:t[m],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[n],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${e}-${i}${e}-custom ${e}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-title`]:{color:t[o],"&::after":{backgroundColor:t[b]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-description`]:{color:t[r]},[`${e}-${i} > ${e}-container > ${e}-tail::after`]:{backgroundColor:t[b]}}},Bi=i=>{const{componentCls:t,motionDurationSlow:e}=i,n=`${t}-item`;return s(s(s(s(s(s({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none"},[`${n}-icon, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[`${n}-icon`]:{width:i.stepsIconSize,height:i.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:i.marginXS,fontSize:i.stepsIconFontSize,fontFamily:i.fontFamily,lineHeight:`${i.stepsIconSize}px`,textAlign:"center",borderRadius:i.stepsIconSize,border:`${i.lineWidth}px ${i.lineType} transparent`,transition:`background-color ${e}, border-color ${e}`,[`${t}-icon`]:{position:"relative",top:i.stepsIconTop,color:i.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:i.stepsIconSize/2-i.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:i.lineWidth,background:i.colorSplit,borderRadius:i.lineWidth,transition:`background ${e}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:i.padding,color:i.colorText,fontSize:i.fontSizeLG,lineHeight:`${i.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:i.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:i.lineWidth,background:i.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:i.marginXS,color:i.colorTextDescription,fontWeight:"normal",fontSize:i.fontSize},[`${n}-description`]:{color:i.colorTextDescription,fontSize:i.fontSize}},R(B.wait,i)),R(B.process,i)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:i.fontWeightStrong}}),R(B.finish,i)),R(B.error,i)),{[`${n}${t}-next-error > ${t}-item-title::after`]:{background:i.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},Mi=i=>{const{componentCls:t,motionDurationSlow:e}=i;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${e}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:i.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:i.colorPrimary,[`${t}-icon`]:{color:i.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:i.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:i.descriptionWidth,whiteSpace:"normal"}}}}},Ni=i=>{const{componentCls:t}=i;return{[t]:s(s(s(s(s(s(s(s(s(s(s(s(s({},ti(i)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Bi(i)),Mi(i)),Si(i)),Di(i)),Wi(i)),fi(i)),xi(i)),Ii(i)),zi(i)),Ci(i)),Hi(i))}},Ri=k("Steps",i=>{const{wireframe:t,colorTextDisabled:e,fontSizeHeading3:n,fontSize:o,controlHeight:r,controlHeightLG:b,colorTextLightSolid:m,colorText:l,colorPrimary:c,colorTextLabel:I,colorTextDescription:a,colorTextQuaternary:x,colorFillContent:S,controlItemBgActive:C,colorError:d,colorBgContainer:y,colorBorderSecondary:w}=i,$=i.controlHeight,u=i.colorSplit,h=ii(i,{processTailColor:u,stepsNavArrowColor:e,stepsIconSize:$,stepsIconCustomSize:$,stepsIconCustomTop:0,stepsIconCustomFontSize:b/2,stepsIconTop:-.5,stepsIconFontSize:o,stepsTitleLineHeight:r,stepsSmallIconSize:n,stepsDotSize:r/4,stepsCurrentDotSize:b/4,stepsNavContentMaxWidth:"auto",processIconColor:m,processTitleColor:l,processDescriptionColor:l,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?e:I,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:u,waitIconBgColor:t?y:S,waitIconBorderColor:t?e:"transparent",waitDotColor:e,finishIconColor:c,finishTitleColor:l,finishDescriptionColor:a,finishTailColor:c,finishIconBgColor:t?y:C,finishIconBorderColor:t?c:C,finishDotColor:c,errorIconColor:m,errorTitleColor:d,errorDescriptionColor:d,errorTailColor:u,errorIconBgColor:d,errorIconBorderColor:d,errorDotColor:d,stepsNavActiveColor:c,stepsProgressSize:b,inlineDotSize:6,inlineTitleColor:x,inlineTailColor:w});return[Ni(h)]},{descriptionWidth:140}),Ai=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:K(),items:li(),labelPlacement:P(),status:P(),size:P(),direction:P(),progressDot:si([Boolean,Function]),type:P(),onChange:T(),"onUpdate:current":T()}),O=L({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:ei(Ai(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(i,t){let{attrs:e,slots:n,emit:o}=t;const{prefixCls:r,direction:b,configProvider:m}=ni("steps",i),[l,c]=Ri(r),[,I]=oi(),a=ri(),x=M(()=>i.responsive&&a.value.xs?"vertical":i.direction),S=M(()=>m.getPrefixCls("",i.iconPrefix)),C=u=>{o("update:current",u),o("change",u)},d=M(()=>i.type==="inline"),y=M(()=>d.value?void 0:i.percent),w=u=>{let{node:h,status:f}=u;if(f==="process"&&i.percent!==void 0){const v=i.size==="small"?I.value.controlHeight:I.value.controlHeightLG;return g("div",{class:`${r.value}-progress-icon`},[g(ai,{type:"circle",percent:y.value,size:v,strokeWidth:4,format:()=>null},null),h])}return h},$=M(()=>({finish:g(ci,{class:`${r.value}-finish-icon`},null),error:g(di,{class:`${r.value}-error-icon`},null)}));return()=>{const u=A({[`${r.value}-rtl`]:b.value==="rtl",[`${r.value}-with-progress`]:y.value!==void 0},e.class,c.value),h=(f,v)=>f.description?g(pi,{title:f.description},{default:()=>[v]}):v;return l(g($i,z(z(z({icons:$.value},e),F(i,["percent","responsive"])),{},{items:i.items,direction:x.value,prefixCls:r.value,iconPrefix:S.value,class:u,onChange:C,isInline:d.value,itemRender:d.value?h:void 0}),s({stepIcon:w},n)))}}}),j=L(s(s({compatConfig:{MODE:3}},U),{name:"AStep",props:V()})),_i=s(O,{Step:j,install:i=>(i.component(O.name,O),i.component(j.name,j),i)});export{_i as A,j as S}; -//# sourceMappingURL=index.f36b2f2c.js.map +import{d as L,aj as A,b as g,al as z,ak as F,aM as P,av as p,dQ as Q,aO as T,aN as K,aR as q,U as s,aF as J,ao as Z,ad as k,ae as ii,ap as ti,aq as ei,ai as ni,a9 as oi,aP as ri,f as M,au as li,b7 as si,cP as ai,dR as ci,b0 as di,aW as pi}from"./index.d0f12294.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="4b979ba1-26ec-4536-b6e3-bec6e5bc00e9",i._sentryDebugIdIdentifier="sentry-dbid-4b979ba1-26ec-4536-b6e3-bec6e5bc00e9")}catch{}})();function G(i){return typeof i=="string"}function mi(){}const V=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:P(),iconPrefix:String,icon:p.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:p.any,title:p.any,subTitle:p.any,progressDot:Q(p.oneOfType([p.looseBool,p.func])),tailContent:p.any,icons:p.shape({finish:p.any,error:p.any}).loose,onClick:T(),onStepClick:T(),stepIcon:T(),itemRender:T(),__legacy:K()}),U=L({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:V(),setup(i,t){let{slots:e,emit:n,attrs:o}=t;const r=m=>{n("click",m),n("stepClick",i.stepIndex)},b=m=>{let{icon:l,title:c,description:I}=m;const{prefixCls:a,stepNumber:x,status:S,iconPrefix:C,icons:d,progressDot:y=e.progressDot,stepIcon:w=e.stepIcon}=i;let $;const u=A(`${a}-icon`,`${C}icon`,{[`${C}icon-${l}`]:l&&G(l),[`${C}icon-check`]:!l&&S==="finish"&&(d&&!d.finish||!d),[`${C}icon-cross`]:!l&&S==="error"&&(d&&!d.error||!d)}),h=g("span",{class:`${a}-icon-dot`},null);return y?typeof y=="function"?$=g("span",{class:`${a}-icon`},[y({iconDot:h,index:x-1,status:S,title:c,description:I,prefixCls:a})]):$=g("span",{class:`${a}-icon`},[h]):l&&!G(l)?$=g("span",{class:`${a}-icon`},[l]):d&&d.finish&&S==="finish"?$=g("span",{class:`${a}-icon`},[d.finish]):d&&d.error&&S==="error"?$=g("span",{class:`${a}-icon`},[d.error]):l||S==="finish"||S==="error"?$=g("span",{class:u},null):$=g("span",{class:`${a}-icon`},[x]),w&&($=w({index:x-1,status:S,title:c,description:I,node:$})),$};return()=>{var m,l,c,I;const{prefixCls:a,itemWidth:x,active:S,status:C="wait",tailContent:d,adjustMarginRight:y,disabled:w,title:$=(m=e.title)===null||m===void 0?void 0:m.call(e),description:u=(l=e.description)===null||l===void 0?void 0:l.call(e),subTitle:h=(c=e.subTitle)===null||c===void 0?void 0:c.call(e),icon:f=(I=e.icon)===null||I===void 0?void 0:I.call(e),onClick:v,onStepClick:D}=i,W=C||"wait",_=A(`${a}-item`,`${a}-item-${W}`,{[`${a}-item-custom`]:f,[`${a}-item-active`]:S,[`${a}-item-disabled`]:w===!0}),X={};x&&(X.width=x),y&&(X.marginRight=y);const H={onClick:v||mi};D&&!w&&(H.role="button",H.tabindex=0,H.onClick=r);const N=g("div",z(z({},F(o,["__legacy"])),{},{class:[_,o.class],style:[o.style,X]}),[g("div",z(z({},H),{},{class:`${a}-item-container`}),[g("div",{class:`${a}-item-tail`},[d]),g("div",{class:`${a}-item-icon`},[b({icon:f,title:$,description:u})]),g("div",{class:`${a}-item-content`},[g("div",{class:`${a}-item-title`},[$,h&&g("div",{title:typeof h=="string"?h:void 0,class:`${a}-item-subtitle`},[h])]),u&&g("div",{class:`${a}-item-description`},[u])])])]);return i.itemRender?i.itemRender(N):N}}});var gi=globalThis&&globalThis.__rest||function(i,t){var e={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&t.indexOf(n)<0&&(e[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(i);o[]),icons:p.shape({finish:p.any,error:p.any}).loose,stepIcon:T(),isInline:p.looseBool,itemRender:T()},emits:["change"],setup(i,t){let{slots:e,emit:n}=t;const o=m=>{const{current:l}=i;l!==m&&n("change",m)},r=(m,l,c)=>{const{prefixCls:I,iconPrefix:a,status:x,current:S,initial:C,icons:d,stepIcon:y=e.stepIcon,isInline:w,itemRender:$,progressDot:u=e.progressDot}=i,h=w||u,f=s(s({},m),{class:""}),v=C+l,D={active:v===S,stepNumber:v+1,stepIndex:v,key:v,prefixCls:I,iconPrefix:a,progressDot:h,stepIcon:y,icons:d,onStepClick:o};return x==="error"&&l===S-1&&(f.class=`${I}-next-error`),f.status||(v===S?f.status=x:v$(f,W)),g(U,z(z(z({},f),D),{},{__legacy:!1}),null))},b=(m,l)=>r(s({},m.props),l,c=>J(m,c));return()=>{var m;const{prefixCls:l,direction:c,type:I,labelPlacement:a,iconPrefix:x,status:S,size:C,current:d,progressDot:y=e.progressDot,initial:w,icons:$,items:u,isInline:h,itemRender:f}=i,v=gi(i,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),D=I==="navigation",W=h||y,_=h?"horizontal":c,X=h?void 0:C,H=W?"vertical":a,N=A(l,`${l}-${c}`,{[`${l}-${X}`]:X,[`${l}-label-${H}`]:_==="horizontal",[`${l}-dot`]:!!W,[`${l}-navigation`]:D,[`${l}-inline`]:h});return g("div",z({class:N},v),[u.filter(E=>E).map((E,Y)=>r(E,Y)),q((m=e.default)===null||m===void 0?void 0:m.call(e)).map(b)])}}}),hi=i=>{const{componentCls:t,stepsIconCustomTop:e,stepsIconCustomSize:n,stepsIconCustomFontSize:o}=i;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:e,width:n,height:n,fontSize:o,lineHeight:`${n}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Si=hi,ui=i=>{const{componentCls:t,stepsIconSize:e,lineHeight:n,stepsSmallIconSize:o}=i;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e/2+i.controlHeightLG,padding:`${i.paddingXXS}px ${i.paddingLG}px`},"&-content":{display:"block",width:(e/2+i.controlHeightLG)*2,marginTop:i.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:i.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:i.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:i.controlHeightLG+(e-o)/2}}}}}},fi=ui,bi=i=>{const{componentCls:t,stepsNavContentMaxWidth:e,stepsNavArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:r}=i;return{[`&${t}-navigation`]:{paddingTop:i.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-i.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-i.margin,paddingBottom:i.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:e},[`${t}-item-title`]:s(s({maxWidth:"100%",paddingInlineEnd:0},Z),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${i.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:i.fontSizeIcon,height:i.fontSizeIcon,borderTop:`${i.lineWidth}px ${i.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${i.lineWidth}px ${i.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:i.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:i.lineWidth*3,height:`calc(100% - ${i.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:i.controlHeight*.25,height:i.controlHeight*.25,marginBottom:i.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Ii=bi,yi=i=>{const{antCls:t,componentCls:e}=i;return{[`&${e}-with-progress`]:{[`${e}-item`]:{paddingTop:i.paddingXXS,[`&-process ${e}-item-container ${e}-item-icon ${e}-icon`]:{color:i.processIconColor}},[`&${e}-vertical > ${e}-item `]:{paddingInlineStart:i.paddingXXS,[`> ${e}-item-container > ${e}-item-tail`]:{top:i.marginXXS,insetInlineStart:i.stepsIconSize/2-i.lineWidth+i.paddingXXS}},[`&, &${e}-small`]:{[`&${e}-horizontal ${e}-item:first-child`]:{paddingBottom:i.paddingXXS,paddingInlineStart:i.paddingXXS}},[`&${e}-small${e}-vertical > ${e}-item > ${e}-item-container > ${e}-item-tail`]:{insetInlineStart:i.stepsSmallIconSize/2-i.lineWidth+i.paddingXXS},[`&${e}-label-vertical`]:{[`${e}-item ${e}-item-tail`]:{top:i.margin-2*i.lineWidth}},[`${e}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(i.stepsIconSize-i.stepsProgressSize-i.lineWidth*2)/2,insetInlineStart:(i.stepsIconSize-i.stepsProgressSize-i.lineWidth*2)/2}}}}},Ci=yi,vi=i=>{const{componentCls:t,descriptionWidth:e,lineHeight:n,stepsCurrentDotSize:o,stepsDotSize:r,motionDurationSlow:b}=i;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:Math.floor((i.stepsDotSize-i.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${e/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${i.marginSM*2}px)`,height:i.lineWidth*3,marginInlineStart:i.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(i.descriptionWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${b}`,"&::after":{position:"absolute",top:-i.marginSM,insetInlineStart:(r-i.controlHeightLG*1.5)/2,width:i.controlHeightLG*1.5,height:i.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:e},[`&-process ${t}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(i.descriptionWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(i.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(i.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(i.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+i.paddingXS}px 0 ${i.paddingXS}px`,"&::after":{marginInlineStart:(r-i.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(i.controlHeightSM-r)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(i.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(i.controlHeightSM-r)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},xi=vi,wi=i=>{const{componentCls:t}=i;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},zi=wi,Ti=i=>{const{componentCls:t,stepsSmallIconSize:e,fontSizeSM:n,fontSize:o,colorTextDescription:r}=i;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:i.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:e,height:e,marginTop:0,marginBottom:0,marginInline:`0 ${i.marginXS}px`,fontSize:n,lineHeight:`${e}px`,textAlign:"center",borderRadius:e},[`${t}-item-title`]:{paddingInlineEnd:i.paddingSM,fontSize:o,lineHeight:`${e}px`,"&::after":{top:e/2}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:e/2-i.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:e,lineHeight:`${e}px`,transform:"none"}}}}},Di=Ti,Pi=i=>{const{componentCls:t,stepsSmallIconSize:e,stepsIconSize:n}=i;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:i.margin},[`${t}-item-content`]:{display:"block",minHeight:i.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${n}px`},[`${t}-item-description`]:{paddingBottom:i.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.stepsIconSize/2-i.lineWidth,width:i.lineWidth,height:"100%",padding:`${n+i.marginXXS*1.5}px 0 ${i.marginXXS*1.5}px`,"&::after":{width:i.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.stepsSmallIconSize/2-i.lineWidth,padding:`${e+i.marginXXS*1.5}px 0 ${i.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${e}px`}}}}},Wi=Pi,Xi=i=>{const{componentCls:t,inlineDotSize:e,inlineTitleColor:n,inlineTailColor:o}=i,r=i.paddingXS+i.lineWidth,b={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:n}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${r}px ${i.paddingXXS}px 0`,margin:`0 ${i.marginXXS/2}px`,borderRadius:i.borderRadiusSM,cursor:"pointer",transition:`background-color ${i.motionDurationMid}`,"&:hover":{background:i.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:i.fontSizeSM/4}},"&-content":{width:"auto",marginTop:i.marginXS-i.lineWidth},"&-title":{color:n,fontSize:i.fontSizeSM,lineHeight:i.lineHeightSM,fontWeight:"normal",marginBottom:i.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+e/2,transform:"translateY(-50%)","&:after":{width:"100%",height:i.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":s({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i.colorBorderBg,border:`${i.lineWidth}px ${i.lineType} ${o}`}},b),"&-finish":s({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${i.lineWidth}px ${i.lineType} ${o}`}},b),"&-error":b,"&-active, &-process":s({[`${t}-item-icon`]:{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,top:0}},b),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:n}}}}}},Hi=Xi;var B;(function(i){i.wait="wait",i.process="process",i.finish="finish",i.error="error"})(B||(B={}));const R=(i,t)=>{const e=`${t.componentCls}-item`,n=`${i}IconColor`,o=`${i}TitleColor`,r=`${i}DescriptionColor`,b=`${i}TailColor`,m=`${i}IconBgColor`,l=`${i}IconBorderColor`,c=`${i}DotColor`;return{[`${e}-${i} ${e}-icon`]:{backgroundColor:t[m],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[n],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${e}-${i}${e}-custom ${e}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-title`]:{color:t[o],"&::after":{backgroundColor:t[b]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-description`]:{color:t[r]},[`${e}-${i} > ${e}-container > ${e}-tail::after`]:{backgroundColor:t[b]}}},Bi=i=>{const{componentCls:t,motionDurationSlow:e}=i,n=`${t}-item`;return s(s(s(s(s(s({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none"},[`${n}-icon, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[`${n}-icon`]:{width:i.stepsIconSize,height:i.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:i.marginXS,fontSize:i.stepsIconFontSize,fontFamily:i.fontFamily,lineHeight:`${i.stepsIconSize}px`,textAlign:"center",borderRadius:i.stepsIconSize,border:`${i.lineWidth}px ${i.lineType} transparent`,transition:`background-color ${e}, border-color ${e}`,[`${t}-icon`]:{position:"relative",top:i.stepsIconTop,color:i.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:i.stepsIconSize/2-i.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:i.lineWidth,background:i.colorSplit,borderRadius:i.lineWidth,transition:`background ${e}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:i.padding,color:i.colorText,fontSize:i.fontSizeLG,lineHeight:`${i.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:i.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:i.lineWidth,background:i.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:i.marginXS,color:i.colorTextDescription,fontWeight:"normal",fontSize:i.fontSize},[`${n}-description`]:{color:i.colorTextDescription,fontSize:i.fontSize}},R(B.wait,i)),R(B.process,i)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:i.fontWeightStrong}}),R(B.finish,i)),R(B.error,i)),{[`${n}${t}-next-error > ${t}-item-title::after`]:{background:i.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},Mi=i=>{const{componentCls:t,motionDurationSlow:e}=i;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${e}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:i.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:i.colorPrimary,[`${t}-icon`]:{color:i.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:i.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:i.descriptionWidth,whiteSpace:"normal"}}}}},Ni=i=>{const{componentCls:t}=i;return{[t]:s(s(s(s(s(s(s(s(s(s(s(s(s({},ti(i)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Bi(i)),Mi(i)),Si(i)),Di(i)),Wi(i)),fi(i)),xi(i)),Ii(i)),zi(i)),Ci(i)),Hi(i))}},Ri=k("Steps",i=>{const{wireframe:t,colorTextDisabled:e,fontSizeHeading3:n,fontSize:o,controlHeight:r,controlHeightLG:b,colorTextLightSolid:m,colorText:l,colorPrimary:c,colorTextLabel:I,colorTextDescription:a,colorTextQuaternary:x,colorFillContent:S,controlItemBgActive:C,colorError:d,colorBgContainer:y,colorBorderSecondary:w}=i,$=i.controlHeight,u=i.colorSplit,h=ii(i,{processTailColor:u,stepsNavArrowColor:e,stepsIconSize:$,stepsIconCustomSize:$,stepsIconCustomTop:0,stepsIconCustomFontSize:b/2,stepsIconTop:-.5,stepsIconFontSize:o,stepsTitleLineHeight:r,stepsSmallIconSize:n,stepsDotSize:r/4,stepsCurrentDotSize:b/4,stepsNavContentMaxWidth:"auto",processIconColor:m,processTitleColor:l,processDescriptionColor:l,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?e:I,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:u,waitIconBgColor:t?y:S,waitIconBorderColor:t?e:"transparent",waitDotColor:e,finishIconColor:c,finishTitleColor:l,finishDescriptionColor:a,finishTailColor:c,finishIconBgColor:t?y:C,finishIconBorderColor:t?c:C,finishDotColor:c,errorIconColor:m,errorTitleColor:d,errorDescriptionColor:d,errorTailColor:u,errorIconBgColor:d,errorIconBorderColor:d,errorDotColor:d,stepsNavActiveColor:c,stepsProgressSize:b,inlineDotSize:6,inlineTitleColor:x,inlineTailColor:w});return[Ni(h)]},{descriptionWidth:140}),Ai=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:K(),items:li(),labelPlacement:P(),status:P(),size:P(),direction:P(),progressDot:si([Boolean,Function]),type:P(),onChange:T(),"onUpdate:current":T()}),O=L({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:ei(Ai(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(i,t){let{attrs:e,slots:n,emit:o}=t;const{prefixCls:r,direction:b,configProvider:m}=ni("steps",i),[l,c]=Ri(r),[,I]=oi(),a=ri(),x=M(()=>i.responsive&&a.value.xs?"vertical":i.direction),S=M(()=>m.getPrefixCls("",i.iconPrefix)),C=u=>{o("update:current",u),o("change",u)},d=M(()=>i.type==="inline"),y=M(()=>d.value?void 0:i.percent),w=u=>{let{node:h,status:f}=u;if(f==="process"&&i.percent!==void 0){const v=i.size==="small"?I.value.controlHeight:I.value.controlHeightLG;return g("div",{class:`${r.value}-progress-icon`},[g(ai,{type:"circle",percent:y.value,size:v,strokeWidth:4,format:()=>null},null),h])}return h},$=M(()=>({finish:g(ci,{class:`${r.value}-finish-icon`},null),error:g(di,{class:`${r.value}-error-icon`},null)}));return()=>{const u=A({[`${r.value}-rtl`]:b.value==="rtl",[`${r.value}-with-progress`]:y.value!==void 0},e.class,c.value),h=(f,v)=>f.description?g(pi,{title:f.description},{default:()=>[v]}):v;return l(g($i,z(z(z({icons:$.value},e),F(i,["percent","responsive"])),{},{items:i.items,direction:x.value,prefixCls:r.value,iconPrefix:S.value,class:u,onChange:C,isInline:d.value,itemRender:d.value?h:void 0}),s({stepIcon:w},n)))}}}),j=L(s(s({compatConfig:{MODE:3}},U),{name:"AStep",props:V()})),_i=s(O,{Step:j,install:i=>(i.component(O.name,O),i.component(j.name,j),i)});export{_i as A,j as S}; +//# sourceMappingURL=index.2862b277.js.map diff --git a/abstra_statics/dist/assets/index.126762e2.js b/abstra_statics/dist/assets/index.289665f1.js similarity index 79% rename from abstra_statics/dist/assets/index.126762e2.js rename to abstra_statics/dist/assets/index.289665f1.js index 645aaae6f0..e8842626a5 100644 --- a/abstra_statics/dist/assets/index.126762e2.js +++ b/abstra_statics/dist/assets/index.289665f1.js @@ -1,4 +1,4 @@ -import{ad as U,ae as Y,U as _,ap as Z,af as K,bw as Q,d as ee,ai as ne,R as w,f as oe,aj as te,b as s,b0 as le,aA as ie,aF as ae,aY as se,a_ as re,a$ as ce,al as j,aZ as de,bH as ue,dm as ge,bI as pe,bJ as fe,dn as me,dp as ve,dq as $e,dr as ye,av as v}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="adc5e59c-baca-4a82-bcb5-41430529619b",e._sentryDebugIdIdentifier="sentry-dbid-adc5e59c-baca-4a82-bcb5-41430529619b")}catch{}})();const B=(e,n,o,i,a)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${n}`,[`${a}-icon`]:{color:o}}),be=e=>{const{componentCls:n,motionDurationSlow:o,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:r,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:f,paddingContentVerticalSM:m,alertPaddingHorizontal:y,paddingMD:h,paddingContentHorizontalLG:C}=e;return{[n]:_(_({},Z(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${m}px ${y}px`,wordWrap:"break-word",borderRadius:$,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:i,lineHeight:0},["&-description"]:{display:"none",fontSize:u,lineHeight:g},"&-message":{color:f},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c}, +import{ad as U,ae as Y,U as _,ap as Z,af as K,bw as Q,d as ee,ai as ne,R as w,f as oe,aj as te,b as s,b0 as le,aA as ie,aF as ae,aY as se,a_ as re,a$ as ce,al as j,aZ as de,bH as ue,dm as ge,bI as fe,bJ as pe,dn as me,dp as ve,dq as $e,dr as ye,av as v}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="48f2f25c-4888-4884-96fe-d157effeba14",e._sentryDebugIdIdentifier="sentry-dbid-48f2f25c-4888-4884-96fe-d157effeba14")}catch{}})();const B=(e,n,o,i,a)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${n}`,[`${a}-icon`]:{color:o}}),be=e=>{const{componentCls:n,motionDurationSlow:o,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:r,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:y,paddingMD:h,paddingContentHorizontalLG:C}=e;return{[n]:_(_({},Z(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${m}px ${y}px`,wordWrap:"break-word",borderRadius:$,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:i,lineHeight:0},["&-description"]:{display:"none",fontSize:u,lineHeight:g},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c}, padding-top ${o} ${c}, padding-bottom ${o} ${c}, - margin-bottom ${o} ${c}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",paddingInline:C,paddingBlock:h,[`${n}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:i,color:f,fontSize:r},[`${n}-description`]:{display:"block"}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},he=e=>{const{componentCls:n,colorSuccess:o,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:r,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:y}=e;return{[n]:{"&-success":B(a,i,o,e,n),"&-info":B(y,m,f,e,n),"&-warning":B(g,r,u,e,n),"&-error":_(_({},B(d,c,$,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},Ce=e=>{const{componentCls:n,iconCls:o,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:r,colorIconHover:g}=e;return{[n]:{["&-action"]:{marginInlineStart:a},[`${n}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:r,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:r,transition:`color ${i}`,"&:hover":{color:g}}}}},Ie=e=>[be(e),he(e),Ce(e)],Se=U("Alert",e=>{const{fontSizeHeading3:n}=e,o=Y(e,{alertIconSizeLG:n,alertPaddingHorizontal:12});return[Ie(o)]}),xe={success:ue,info:ge,error:pe,warning:fe},we={success:me,info:ve,error:$e,warning:ye},Be=Q("success","info","warning","error"),_e=()=>({type:v.oneOf(Be),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),He=ee({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:_e(),setup(e,n){let{slots:o,emit:i,attrs:a,expose:u}=n;const{prefixCls:r,direction:g}=ne("alert",e),[$,c]=Se(r),d=w(!1),f=w(!1),m=w(),y=l=>{l.preventDefault();const p=m.value;p.style.height=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,d.value=!0,i("close",l)},h=()=>{var l;d.value=!1,f.value=!0,(l=e.afterClose)===null||l===void 0||l.call(e)},C=oe(()=>{const{type:l}=e;return l!==void 0?l:e.banner?"warning":"info"});u({animationEnd:h});const k=w({});return()=>{var l,p,H,T,A,E,z,D,O,F;const{banner:P,closeIcon:R=(l=o.closeIcon)===null||l===void 0?void 0:l.call(o)}=e;let{closable:L,showIcon:b}=e;const M=(p=e.closeText)!==null&&p!==void 0?p:(H=o.closeText)===null||H===void 0?void 0:H.call(o),I=(T=e.description)!==null&&T!==void 0?T:(A=o.description)===null||A===void 0?void 0:A.call(o),W=(E=e.message)!==null&&E!==void 0?E:(z=o.message)===null||z===void 0?void 0:z.call(o),S=(D=e.icon)!==null&&D!==void 0?D:(O=o.icon)===null||O===void 0?void 0:O.call(o),G=(F=o.action)===null||F===void 0?void 0:F.call(o);b=P&&b===void 0?!0:b;const N=(I?we:xe)[C.value]||null;M&&(L=!0);const t=r.value,V=te(t,{[`${t}-${C.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!I,[`${t}-no-icon`]:!b,[`${t}-banner`]:!!P,[`${t}-closable`]:L,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),X=L?s("button",{type:"button",onClick:y,class:`${t}-close-icon`,tabindex:0},[M?s("span",{class:`${t}-close-text`},[M]):R===void 0?s(le,null,null):R]):null,q=S&&(ie(S)?ae(S,{class:`${t}-icon`}):s("span",{class:`${t}-icon`},[S]))||s(N,{class:`${t}-icon`},null),J=se(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:h,onBeforeLeave:x=>{x.style.maxHeight=`${x.offsetHeight}px`},onLeave:x=>{x.style.maxHeight="0px"}});return $(f.value?null:s(de,J,{default:()=>[re(s("div",j(j({role:"alert"},a),{},{style:[a.style,k.value],class:[a.class,V],"data-show":!d.value,ref:m}),[b?q:null,s("div",{class:`${t}-content`},[W?s("div",{class:`${t}-message`},[W]):null,I?s("div",{class:`${t}-description`},[I]):null]),G?s("div",{class:`${t}-action`},[G]):null,X]),[[ce,!d.value]])]}))}}}),Ae=K(He);export{Ae as A}; -//# sourceMappingURL=index.126762e2.js.map + margin-bottom ${o} ${c}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",paddingInline:C,paddingBlock:h,[`${n}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:i,color:p,fontSize:r},[`${n}-description`]:{display:"block"}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},he=e=>{const{componentCls:n,colorSuccess:o,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:r,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:m,colorInfoBg:y}=e;return{[n]:{"&-success":B(a,i,o,e,n),"&-info":B(y,m,p,e,n),"&-warning":B(g,r,u,e,n),"&-error":_(_({},B(d,c,$,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},Ce=e=>{const{componentCls:n,iconCls:o,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:r,colorIconHover:g}=e;return{[n]:{["&-action"]:{marginInlineStart:a},[`${n}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:r,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:r,transition:`color ${i}`,"&:hover":{color:g}}}}},Ie=e=>[be(e),he(e),Ce(e)],Se=U("Alert",e=>{const{fontSizeHeading3:n}=e,o=Y(e,{alertIconSizeLG:n,alertPaddingHorizontal:12});return[Ie(o)]}),xe={success:ue,info:ge,error:fe,warning:pe},we={success:me,info:ve,error:$e,warning:ye},Be=Q("success","info","warning","error"),_e=()=>({type:v.oneOf(Be),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),He=ee({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:_e(),setup(e,n){let{slots:o,emit:i,attrs:a,expose:u}=n;const{prefixCls:r,direction:g}=ne("alert",e),[$,c]=Se(r),d=w(!1),p=w(!1),m=w(),y=l=>{l.preventDefault();const f=m.value;f.style.height=`${f.offsetHeight}px`,f.style.height=`${f.offsetHeight}px`,d.value=!0,i("close",l)},h=()=>{var l;d.value=!1,p.value=!0,(l=e.afterClose)===null||l===void 0||l.call(e)},C=oe(()=>{const{type:l}=e;return l!==void 0?l:e.banner?"warning":"info"});u({animationEnd:h});const k=w({});return()=>{var l,f,H,T,A,E,z,D,O,F;const{banner:P,closeIcon:R=(l=o.closeIcon)===null||l===void 0?void 0:l.call(o)}=e;let{closable:L,showIcon:b}=e;const M=(f=e.closeText)!==null&&f!==void 0?f:(H=o.closeText)===null||H===void 0?void 0:H.call(o),I=(T=e.description)!==null&&T!==void 0?T:(A=o.description)===null||A===void 0?void 0:A.call(o),W=(E=e.message)!==null&&E!==void 0?E:(z=o.message)===null||z===void 0?void 0:z.call(o),S=(D=e.icon)!==null&&D!==void 0?D:(O=o.icon)===null||O===void 0?void 0:O.call(o),G=(F=o.action)===null||F===void 0?void 0:F.call(o);b=P&&b===void 0?!0:b;const N=(I?we:xe)[C.value]||null;M&&(L=!0);const t=r.value,V=te(t,{[`${t}-${C.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!I,[`${t}-no-icon`]:!b,[`${t}-banner`]:!!P,[`${t}-closable`]:L,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),X=L?s("button",{type:"button",onClick:y,class:`${t}-close-icon`,tabindex:0},[M?s("span",{class:`${t}-close-text`},[M]):R===void 0?s(le,null,null):R]):null,q=S&&(ie(S)?ae(S,{class:`${t}-icon`}):s("span",{class:`${t}-icon`},[S]))||s(N,{class:`${t}-icon`},null),J=se(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:h,onBeforeLeave:x=>{x.style.maxHeight=`${x.offsetHeight}px`},onLeave:x=>{x.style.maxHeight="0px"}});return $(p.value?null:s(de,J,{default:()=>[re(s("div",j(j({role:"alert"},a),{},{style:[a.style,k.value],class:[a.class,V],"data-show":!d.value,ref:m}),[b?q:null,s("div",{class:`${t}-content`},[W?s("div",{class:`${t}-message`},[W]):null,I?s("div",{class:`${t}-description`},[I]):null]),G?s("div",{class:`${t}-action`},[G]):null,X]),[[ce,!d.value]])]}))}}}),Ae=K(He);export{Ae as A}; +//# sourceMappingURL=index.289665f1.js.map diff --git a/abstra_statics/dist/assets/index.37c7ea66.js b/abstra_statics/dist/assets/index.37c7ea66.js deleted file mode 100644 index 99b7e7aa56..0000000000 --- a/abstra_statics/dist/assets/index.37c7ea66.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d as V,ai as W,dO as L,dP as M,f as o,e as O,g as U,aR as q,b as f,U as m,aS as H,al as j,cW as h,av as G,bw as B,aN as J,aj as K}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="58ed2b4f-693b-4d19-9dd0-b239052c5c4c",e._sentryDebugIdIdentifier="sentry-dbid-58ed2b4f-693b-4d19-9dd0-b239052c5c4c")}catch{}})();const Q={small:8,middle:16,large:24},X=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:G.oneOf(B("horizontal","vertical")).def("horizontal"),align:G.oneOf(B("start","end","center","baseline")),wrap:J()});function Y(e){return typeof e=="string"?Q[e]:e||0}const r=V({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:X(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:w}=W("space",e),[E,F]=L(n),x=M(),s=o(()=>{var t,a,i;return(i=(t=e.size)!==null&&t!==void 0?t:(a=y==null?void 0:y.value)===null||a===void 0?void 0:a.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();U(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(t=>Y(t))},{immediate:!0});const z=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),P=o(()=>K(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:w.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),R=o(()=>w.value==="rtl"?"marginLeft":"marginRight"),k=o(()=>{const t={};return x.value&&(t.columnGap=`${b.value}px`,t.rowGap=`${u.value}px`),m(m({},t),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var t,a;const{wrap:i,direction:T="horizontal"}=e,_=(t=l.default)===null||t===void 0?void 0:t.call(l),C=q(_),I=C.length;if(I===0)return null;const d=(a=l.split)===null||a===void 0?void 0:a.call(l),A=`${n.value}-item`,D=b.value,S=I-1;return f("div",j(j({},g),{},{class:[P.value,g.class],style:[k.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return x.value||(T==="vertical"?v({prefixCls:String,href:String,separator:z.any,dropdownProps:re(),overlay:z.any,onClick:ie()}),M=D({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Pe(),slots:Object,setup(e,a){let{slots:t,attrs:r,emit:n}=a;const{prefixCls:s}=L("breadcrumb",e),h=(b,f)=>{const p=j(t,e,"overlay");return p?o(ce,v(v({},e.dropdownProps),{},{overlay:p,placement:"bottom"}),{default:()=>[o("span",{class:`${f}-overlay-link`},[b,o(se,null,null)])]}):b},S=b=>{n("click",b)};return()=>{var b;const f=(b=j(t,e,"separator"))!==null&&b!==void 0?b:"/",p=j(t,e),{class:u,style:g}=r,d=He(r,["class","style"]);let m;return e.href!==void 0?m=o("a",v({class:`${s.value}-link`,onClick:S},d),[p]):m=o("span",v({class:`${s.value}-link`,onClick:S},d),[p]),m=h(m,s.value),p!=null?o("li",{class:u,style:g},[m,f&&o("span",{class:`${s.value}-separator`},[f])]):null}}}),Ae=e=>{const{componentCls:a,iconCls:t}=e;return{[a]:C(C({},ne(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[t]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:C({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},de(e)),["li:last-child"]:{color:e.breadcrumbLastItemColor,[`& > ${a}-separator`]:{display:"none"}},[`${a}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${a}-link`]:{[` +import{d as D,ai as L,bU as j,b as o,al as v,av as z,at as re,ds as ie,bo as se,bR as ce,ad as ae,ae as te,U as C,dt as de,ap as ne,aD as W,az as ue,du as ge,bz as be,aQ as le,dv as me,ao as Z,af as pe,R as fe,dw as ve,f as he,aj as Se,am as ye,bF as A,aR as Oe,dx as $e,bM as Ce,bP as _e}from"./index.d0f12294.js";import"./index.3e715bc1.js";import{A as we}from"./index.a82e0ed1.js";import{A as xe}from"./Avatar.f6415f7c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="697b61e1-b06f-4e33-9e3a-dac54d57a9c1",e._sentryDebugIdIdentifier="sentry-dbid-697b61e1-b06f-4e33-9e3a-dac54d57a9c1")}catch{}})();var He=globalThis&&globalThis.__rest||function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n({prefixCls:String,href:String,separator:z.any,dropdownProps:re(),overlay:z.any,onClick:ie()}),M=D({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Pe(),slots:Object,setup(e,a){let{slots:t,attrs:r,emit:n}=a;const{prefixCls:s}=L("breadcrumb",e),h=(b,f)=>{const p=j(t,e,"overlay");return p?o(ce,v(v({},e.dropdownProps),{},{overlay:p,placement:"bottom"}),{default:()=>[o("span",{class:`${f}-overlay-link`},[b,o(se,null,null)])]}):b},S=b=>{n("click",b)};return()=>{var b;const f=(b=j(t,e,"separator"))!==null&&b!==void 0?b:"/",p=j(t,e),{class:u,style:g}=r,d=He(r,["class","style"]);let m;return e.href!==void 0?m=o("a",v({class:`${s.value}-link`,onClick:S},d),[p]):m=o("span",v({class:`${s.value}-link`,onClick:S},d),[p]),m=h(m,s.value),p!=null?o("li",{class:u,style:g},[m,f&&o("span",{class:`${s.value}-separator`},[f])]):null}}}),Ae=e=>{const{componentCls:a,iconCls:t}=e;return{[a]:C(C({},ne(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[t]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:C({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},de(e)),["li:last-child"]:{color:e.breadcrumbLastItemColor,[`& > ${a}-separator`]:{display:"none"}},[`${a}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${a}-link`]:{[` > ${t} + span, > ${t} + a `]:{marginInlineStart:e.marginXXS}},[`${a}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Te=ae("Breadcrumb",e=>{const a=te(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[Ae(a)]}),Be=()=>({prefixCls:String,routes:{type:Array},params:z.any,separator:z.any,itemRender:{type:Function}});function Re(e,a){if(!e.breadcrumbName)return null;const t=Object.keys(a).join("|");return e.breadcrumbName.replace(new RegExp(`:(${t})`,"g"),(n,s)=>a[s]||n)}function K(e){const{route:a,params:t,routes:r,paths:n}=e,s=r.indexOf(a)===r.length-1,h=Re(a,t);return s?o("span",null,[h]):o("a",{href:`#/${n.join("/")}`},[h])}const T=D({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:Be(),slots:Object,setup(e,a){let{slots:t,attrs:r}=a;const{prefixCls:n,direction:s}=L("breadcrumb",e),[h,S]=Te(n),b=(u,g)=>(u=(u||"").replace(/^\//,""),Object.keys(g).forEach(d=>{u=u.replace(`:${d}`,g[d])}),u),f=(u,g,d)=>{const m=[...u],y=b(g||"",d);return y&&m.push(y),m},p=u=>{let{routes:g=[],params:d={},separator:m,itemRender:y=K}=u;const _=[];return g.map(O=>{const w=b(O.path,d);w&&_.push(w);const $=[..._];let l=null;O.children&&O.children.length&&(l=o(be,{items:O.children.map(c=>({key:c.path||c.breadcrumbName,label:y({route:c,params:d,routes:g,paths:f($,c.path,d)})}))},null));const i={separator:m};return l&&(i.overlay=l),o(M,v(v({},i),{},{key:w||O.breadcrumbName}),{default:()=>[y({route:O,params:d,routes:g,paths:$})]})})};return()=>{var u;let g;const{routes:d,params:m={}}=e,y=W(j(t,e)),_=(u=j(t,e,"separator"))!==null&&u!==void 0?u:"/",O=e.itemRender||t.itemRender||K;d&&d.length>0?g=p({routes:d,params:m,separator:_,itemRender:O}):y.length&&(g=y.map(($,l)=>(ue(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),ge($,{separator:_,key:l}))));const w={[n.value]:!0,[`${n.value}-rtl`]:s.value==="rtl",[`${r.class}`]:!!r.class,[S.value]:!0};return h(o("nav",v(v({},r),{},{class:w}),[o("ol",null,[g])]))}}});var Ie=globalThis&&globalThis.__rest||function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n({prefixCls:String}),G=D({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:je(),setup(e,a){let{slots:t,attrs:r}=a;const{prefixCls:n}=L("breadcrumb",e);return()=>{var s;const{separator:h,class:S}=r,b=Ie(r,["separator","class"]),f=W((s=t.default)===null||s===void 0?void 0:s.call(t));return o("span",v({class:[`${n.value}-separator`,S]},b),[f.length>0?f:"/"])}}});T.Item=M;T.Separator=G;T.install=function(e){return e.component(T.name,T),e.component(M.name,M),e.component(G.name,G),e};var ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const Me=ze;function k(e){for(var a=1;a{const{componentCls:a,antCls:t}=e;return{[a]:C(C({},ne(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${a}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},["&.has-footer"]:{paddingBottom:0},[`${a}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,["&-button"]:C(C({},me(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${t}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${t}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${a}-heading`]:{display:"flex",justifyContent:"space-between",["&-left"]:{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},["&-title"]:C({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Z),[`${t}-avatar`]:{marginRight:e.marginSM},["&-sub-title"]:C({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Z),["&-extra"]:{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap",["> *"]:{marginLeft:e.marginSM,whiteSpace:"unset"},["> *:first-child"]:{marginLeft:0}}},[`${a}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${a}-footer`]:{marginTop:e.marginMD,[`${t}-tabs`]:{[`> ${t}-tabs-nav`]:{margin:0,["&::before"]:{border:"none"}},[`${t}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${a}-compact ${a}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Ve=ae("PageHeader",e=>{const a=te(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[Ue(a)]}),Ge=()=>({backIcon:A(),prefixCls:String,title:A(),subTitle:A(),breadcrumb:z.object,tags:A(),footer:A(),extra:A(),avatar:re(),ghost:{type:Boolean,default:void 0},onBack:Function}),We=D({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:Ge(),slots:Object,setup(e,a){let{emit:t,slots:r,attrs:n}=a;const{prefixCls:s,direction:h,pageHeader:S}=L("page-header",e),[b,f]=Ve(s),p=fe(!1),u=ve(),g=l=>{let{width:i}=l;u.value||(p.value=i<768)},d=he(()=>{var l,i,c;return(c=(l=e.ghost)!==null&&l!==void 0?l:(i=S==null?void 0:S.value)===null||i===void 0?void 0:i.ghost)!==null&&c!==void 0?c:!0}),m=()=>{var l,i,c;return(c=(l=e.backIcon)!==null&&l!==void 0?l:(i=r.backIcon)===null||i===void 0?void 0:i.call(r))!==null&&c!==void 0?c:h.value==="rtl"?o(Fe,null,null):o(Le,null,null)},y=l=>!l||!e.onBack?null:o(_e,{componentName:"PageHeader",children:i=>{let{back:c}=i;return o("div",{class:`${s.value}-back`},[o(Ce,{onClick:x=>{t("back",x)},class:`${s.value}-back-button`,"aria-label":c},{default:()=>[l]})])}},null),_=()=>{var l;return e.breadcrumb?o(T,e.breadcrumb,null):(l=r.breadcrumb)===null||l===void 0?void 0:l.call(r)},O=()=>{var l,i,c,x,H,B,E,N,X;const{avatar:F}=e,R=(l=e.title)!==null&&l!==void 0?l:(i=r.title)===null||i===void 0?void 0:i.call(r),I=(c=e.subTitle)!==null&&c!==void 0?c:(x=r.subTitle)===null||x===void 0?void 0:x.call(r),U=(H=e.tags)!==null&&H!==void 0?H:(B=r.tags)===null||B===void 0?void 0:B.call(r),V=(E=e.extra)!==null&&E!==void 0?E:(N=r.extra)===null||N===void 0?void 0:N.call(r),P=`${s.value}-heading`,J=R||I||U||V;if(!J)return null;const oe=m(),Y=y(oe);return o("div",{class:P},[(Y||F||J)&&o("div",{class:`${P}-left`},[Y,F?o(xe,F,null):(X=r.avatar)===null||X===void 0?void 0:X.call(r),R&&o("span",{class:`${P}-title`,title:typeof R=="string"?R:void 0},[R]),I&&o("span",{class:`${P}-sub-title`,title:typeof I=="string"?I:void 0},[I]),U&&o("span",{class:`${P}-tags`},[U])]),V&&o("span",{class:`${P}-extra`},[o(we,null,{default:()=>[V]})])])},w=()=>{var l,i;const c=(l=e.footer)!==null&&l!==void 0?l:Oe((i=r.footer)===null||i===void 0?void 0:i.call(r));return $e(c)?null:o("div",{class:`${s.value}-footer`},[c])},$=l=>o("div",{class:`${s.value}-content`},[l]);return()=>{var l,i;const c=((l=e.breadcrumb)===null||l===void 0?void 0:l.routes)||r.breadcrumb,x=e.footer||r.footer,H=W((i=r.default)===null||i===void 0?void 0:i.call(r)),B=Se(s.value,{"has-breadcrumb":c,"has-footer":x,[`${s.value}-ghost`]:d.value,[`${s.value}-rtl`]:h.value==="rtl",[`${s.value}-compact`]:p.value},n.class,f.value);return b(o(ye,{onResize:g},{default:()=>[o("div",v(v({},n),{},{class:B}),[_(),O(),H.length?$(H):null,w()])]}))}}}),Ke=pe(We);export{M as A,T as B,G as a,Ke as b}; -//# sourceMappingURL=index.d667cd0d.js.map +//# sourceMappingURL=index.3b2f4dca.js.map diff --git a/abstra_statics/dist/assets/index.d33f3e49.js b/abstra_statics/dist/assets/index.3e715bc1.js similarity index 79% rename from abstra_statics/dist/assets/index.d33f3e49.js rename to abstra_statics/dist/assets/index.3e715bc1.js index 53b38ead7b..9713c97940 100644 --- a/abstra_statics/dist/assets/index.d33f3e49.js +++ b/abstra_statics/dist/assets/index.3e715bc1.js @@ -1,2 +1,2 @@ -import{u as w,A as r,a as A}from"./Avatar.8da44d42.js";import{d as I,ai as $,f as D,aL as k,bU as G,aD as O,aF as _,b as l,cO as j,al as c}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8d2c2c9a-aba5-44fe-8db5-2c4afa04c1e0",e._sentryDebugIdIdentifier="sentry-dbid-8d2c2c9a-aba5-44fe-8db5-2c4afa04c1e0")}catch{}})();const E=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),N=I({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:E(),setup(e,n){let{slots:m,attrs:t}=n;const{prefixCls:y,direction:h}=$("avatar",e),i=D(()=>`${y.value}-group`),[v,b]=w(y);return k(()=>{const u={size:e.size,shape:e.shape};A(u)}),()=>{const{maxPopoverPlacement:u="top",maxCount:a,maxStyle:x,maxPopoverTrigger:S="hover",shape:C}=e,g={[i.value]:!0,[`${i.value}-rtl`]:h.value==="rtl",[`${t.class}`]:!!t.class,[b.value]:!0},P=G(m,e),s=O(P).map((o,p)=>_(o,{key:`avatar-key-${p}`})),d=s.length;if(a&&a[l(r,{style:x,shape:C},{default:()=>[`+${d-a}`]})]})),v(l("div",c(c({},t),{},{class:g,style:t.style}),[o]))}return v(l("div",c(c({},t),{},{class:g,style:t.style}),[s]))}}}),f=N;r.Group=f;r.install=function(e){return e.component(r.name,r),e.component(f.name,f),e};export{f as G}; -//# sourceMappingURL=index.d33f3e49.js.map +import{u as w,A as r,a as A}from"./Avatar.f6415f7c.js";import{d as I,ai as $,f as D,aL as k,bU as G,aD as O,aF as _,b as l,cO as j,al as c}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e9ee80db-219b-4b54-a98f-a1f976cd2226",e._sentryDebugIdIdentifier="sentry-dbid-e9ee80db-219b-4b54-a98f-a1f976cd2226")}catch{}})();const E=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),N=I({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:E(),setup(e,n){let{slots:m,attrs:t}=n;const{prefixCls:y,direction:h}=$("avatar",e),i=D(()=>`${y.value}-group`),[v,b]=w(y);return k(()=>{const u={size:e.size,shape:e.shape};A(u)}),()=>{const{maxPopoverPlacement:u="top",maxCount:a,maxStyle:x,maxPopoverTrigger:S="hover",shape:C}=e,g={[i.value]:!0,[`${i.value}-rtl`]:h.value==="rtl",[`${t.class}`]:!!t.class,[b.value]:!0},P=G(m,e),s=O(P).map((o,p)=>_(o,{key:`avatar-key-${p}`})),d=s.length;if(a&&a[l(r,{style:x,shape:C},{default:()=>[`+${d-a}`]})]})),v(l("div",c(c({},t),{},{class:g,style:t.style}),[o]))}return v(l("div",c(c({},t),{},{class:g,style:t.style}),[s]))}}}),f=N;r.Group=f;r.install=function(e){return e.component(r.name,r),e.component(f.name,f),e};export{f as G}; +//# sourceMappingURL=index.3e715bc1.js.map diff --git a/abstra_statics/dist/assets/index.61f90e53.js b/abstra_statics/dist/assets/index.61f90e53.js new file mode 100644 index 0000000000..f39c3642a7 --- /dev/null +++ b/abstra_statics/dist/assets/index.61f90e53.js @@ -0,0 +1,2 @@ +import{B as n,R as o}from"./Badge.f6241be2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2a4c1545-8a8c-4c94-85a0-1623f9510559",e._sentryDebugIdIdentifier="sentry-dbid-2a4c1545-8a8c-4c94-85a0-1623f9510559")}catch{}})();n.install=function(e){return e.component(n.name,n),e.component(o.name,o),e}; +//# sourceMappingURL=index.61f90e53.js.map diff --git a/abstra_statics/dist/assets/index.73b06b4b.js b/abstra_statics/dist/assets/index.73b06b4b.js deleted file mode 100644 index db637b3ad3..0000000000 --- a/abstra_statics/dist/assets/index.73b06b4b.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a1 as f,a2 as y,a3 as S,U as n,a4 as i,a5 as h,a6 as z,a7 as b,a8 as g,a9 as C}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="f322f3d7-57ad-4c25-997a-cc252c48b5b1",o._sentryDebugIdIdentifier="sentry-dbid-f322f3d7-57ad-4c25-997a-cc252c48b5b1")}catch{}})();const c=(o,e)=>new f(o).setAlpha(e).toRgbString(),a=(o,e)=>new f(o).lighten(e).toHexString(),B=o=>{const e=y(o,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},M=(o,e)=>{const r=o||"#000",t=e||"#fff";return{colorBgBase:r,colorTextBase:t,colorText:c(t,.85),colorTextSecondary:c(t,.65),colorTextTertiary:c(t,.45),colorTextQuaternary:c(t,.25),colorFill:c(t,.18),colorFillSecondary:c(t,.12),colorFillTertiary:c(t,.08),colorFillQuaternary:c(t,.04),colorBgElevated:a(r,12),colorBgContainer:a(r,8),colorBgLayout:a(r,0),colorBgSpotlight:a(r,26),colorBorder:a(r,26),colorBorderSecondary:a(r,19)}},p=(o,e)=>{const r=Object.keys(S).map(s=>{const l=y(o[s],{theme:"dark"});return new Array(10).fill(1).reduce((d,A,u)=>(d[`${s}-${u+1}`]=l[u],d),{})}).reduce((s,l)=>(s=n(n({},s),l),s),{}),t=e!=null?e:i(o);return n(n(n({},t),r),h(o,{generateColorPalettes:B,generateNeutralColorPalettes:M}))},v=p;function w(o){const{sizeUnit:e,sizeStep:r}=o,t=r-2;return{sizeXXL:e*(t+10),sizeXL:e*(t+6),sizeLG:e*(t+2),sizeMD:e*(t+2),sizeMS:e*(t+1),size:e*t,sizeSM:e*t,sizeXS:e*(t-1),sizeXXS:e*(t-1)}}const x=(o,e)=>{const r=e!=null?e:i(o),t=r.fontSizeSM,s=r.controlHeight-4;return n(n(n(n(n({},r),w(e!=null?e:o)),b(t)),{controlHeight:s}),z(n(n({},r),{controlHeight:s})))},T=x;function m(){const[o,e,r]=C();return{theme:o,token:e,hashId:r}}const X={defaultConfig:g,defaultSeed:g.token,useToken:m,defaultAlgorithm:i,darkAlgorithm:v,compactAlgorithm:T};export{X as t}; -//# sourceMappingURL=index.73b06b4b.js.map diff --git a/abstra_statics/dist/assets/index.2753fdb2.js b/abstra_statics/dist/assets/index.7c84a9f5.js similarity index 97% rename from abstra_statics/dist/assets/index.2753fdb2.js rename to abstra_statics/dist/assets/index.7c84a9f5.js index 51e6778893..32412ce75e 100644 --- a/abstra_statics/dist/assets/index.2753fdb2.js +++ b/abstra_statics/dist/assets/index.7c84a9f5.js @@ -1,2 +1,2 @@ -import{U as B,av as d,at as j,au as Se,aO as ke,d as q,R as O,X as ue,K as W,g as E,ah as fe,aj as G,b as u,aZ as ne,a_ as oe,a$ as ae,al as D,ak as pe,b8 as $e,aq as me,e as xe,cl as Oe,ad as De,ae as Pe,af as _e,f as N,D as Ie,ai as Ne,c8 as Te,W as Me,bp as je,bU as K,aY as le,dz as re,b0 as Be}from"./index.8c3f27aa.js";import{i as ie}from"./Badge.7a29ebdb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1a84c6cf-15c2-4636-9586-96aa155e28f5",e._sentryDebugIdIdentifier="sentry-dbid-1a84c6cf-15c2-4636-9586-96aa155e28f5")}catch{}})();const ye=()=>({prefixCls:String,width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:j(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:Se(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ke(),maskMotion:j()}),Ee=()=>B(B({},ye()),{forceRender:{type:Boolean,default:void 0},getContainer:d.oneOfType([d.string,d.func,d.object,d.looseBool])}),Ae=()=>B(B({},ye()),{getContainer:Function,getOpenCount:Function,scrollLocker:d.any,inline:Boolean});function ze(e){return Array.isArray(e)?e:[e]}const ve={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},Fe=Object.keys(ve).filter(e=>{if(typeof document>"u")return!1;const o=document.getElementsByTagName("html")[0];return e in(o?o.style:{})})[0];ve[Fe];const Ve=!(typeof window<"u"&&window.document&&window.document.createElement);var We=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{W(()=>{var a;const{open:s,getContainer:f,showMask:k,autofocus:y}=e,p=f==null?void 0:f();_(e),s&&(p&&(p.parentNode,document.body),W(()=>{y&&h()}),k&&((a=e.scrollLocker)===null||a===void 0||a.lock()))})}),E(()=>e.level,()=>{_(e)},{flush:"post"}),E(()=>e.open,()=>{const{open:a,getContainer:s,scrollLocker:f,showMask:k,autofocus:y}=e,p=s==null?void 0:s();p&&(p.parentNode,document.body),a?(y&&h(),k&&(f==null||f.lock())):f==null||f.unLock()},{flush:"post"}),fe(()=>{var a;const{open:s}=e;s&&(document.body.style.touchAction=""),(a=e.scrollLocker)===null||a===void 0||a.unLock()}),E(()=>e.placement,a=>{a&&(w.value=null)});const h=()=>{var a,s;(s=(a=S.value)===null||a===void 0?void 0:a.focus)===null||s===void 0||s.call(a)},v=a=>{r("close",a)},g=a=>{a.keyCode===$e.ESC&&(a.stopPropagation(),v(a))},C=()=>{const{open:a,afterVisibleChange:s}=e;s&&s(!!a)},_=a=>{let{level:s,getContainer:f}=a;if(Ve)return;const k=f==null?void 0:f(),y=k?k.parentNode:null;m=[],s==="all"?(y?Array.prototype.slice.call(y.children):[]).forEach($=>{$.nodeName!=="SCRIPT"&&$.nodeName!=="STYLE"&&$.nodeName!=="LINK"&&$!==k&&m.push($)}):s&&ze(s).forEach(p=>{document.querySelectorAll(p).forEach($=>{m.push($)})})},T=a=>{r("handleClick",a)},I=O(!1);return E(S,()=>{W(()=>{I.value=!0})}),()=>{var a,s;const{width:f,height:k,open:y,prefixCls:p,placement:$,level:A,levelMove:z,ease:Z,duration:J,getContainer:Q,onChange:ee,afterVisibleChange:te,showMask:F,maskClosable:L,maskStyle:R,keyboard:H,getOpenCount:n,scrollLocker:l,contentWrapperStyle:c,style:x,class:M,rootClassName:X,rootStyle:Y,maskMotion:he,motion:U,inline:ge}=e,be=We(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),V=y&&I.value,we=G(p,{[`${p}-${$}`]:!0,[`${p}-open`]:V,[`${p}-inline`]:ge,"no-mask":!F,[X]:!0}),Ce=typeof U=="function"?U($):U;return u("div",D(D({},pe(be,["autofocus"])),{},{tabindex:-1,class:we,style:Y,ref:S,onKeydown:V&&H?g:void 0}),[u(ne,he,{default:()=>[F&&oe(u("div",{class:`${p}-mask`,onClick:L?v:void 0,style:R,ref:P},null),[[ae,V]])]}),u(ne,D(D({},Ce),{},{onAfterEnter:C,onAfterLeave:C}),{default:()=>[oe(u("div",{class:`${p}-content-wrapper`,style:[c],ref:i},[u("div",{class:[`${p}-content`,M],style:x,ref:w},[(a=t.default)===null||a===void 0?void 0:a.call(t)]),t.handler?u("div",{onClick:T,ref:b},[(s=t.handler)===null||s===void 0?void 0:s.call(t)]):null]),[[ae,V]])]})])}}}),se=Le;var de=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,o){let{emit:r,slots:t}=o;const i=xe(null),S=b=>{r("handleClick",b)},P=b=>{r("close",b)};return()=>{const{getContainer:b,wrapperClassName:w,rootClassName:m,rootStyle:h,forceRender:v}=e,g=de(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let C=null;if(!b)return u(se,D(D({},g),{},{rootClassName:m,rootStyle:h,open:e.open,onClose:P,onHandleClick:S,inline:!0}),t);const _=!!t.handler||v;return(_||e.open||i.value)&&(C=u(Oe,{autoLock:!0,visible:e.open,forceRender:_,getContainer:b,wrapperClassName:w},{default:T=>{var{visible:I,afterClose:a}=T,s=de(T,["visible","afterClose"]);return u(se,D(D(D({ref:i},g),s),{},{rootClassName:m,rootStyle:h,open:I!==void 0?I:e.open,afterVisibleChange:a!==void 0?a:e.afterVisibleChange,onClose:P,onHandleClick:S}),t)}})),C}}}),He=Re,Xe=e=>{const{componentCls:o,motionDurationSlow:r}=e,t={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${r}`}}};return{[o]:{[`${o}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${r}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${o}-panel-motion`]:{"&-left":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},Ye=Xe,Ue=e=>{const{componentCls:o,zIndexPopup:r,colorBgMask:t,colorBgElevated:i,motionDurationSlow:S,motionDurationMid:P,padding:b,paddingLG:w,fontSizeLG:m,lineHeightLG:h,lineWidth:v,lineType:g,colorSplit:C,marginSM:_,colorIcon:T,colorIconHover:I,colorText:a,fontWeightStrong:s,drawerFooterPaddingVertical:f,drawerFooterPaddingHorizontal:k}=e,y=`${o}-content-wrapper`;return{[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:t,pointerEvents:"auto"},[y]:{position:"absolute",zIndex:r,transition:`all ${S}`,"&-hidden":{display:"none"}},[`&-left > ${y}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${y}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${y}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${y}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${b}px ${w}px`,fontSize:m,lineHeight:h,borderBottom:`${v}px ${g} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-block",marginInlineEnd:_,color:T,fontWeight:s,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${P}`,textRendering:"auto","&:focus, &:hover":{color:I,textDecoration:"none"}},[`${o}-title`]:{flex:1,margin:0,color:a,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:h},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:w,overflow:"auto"},[`${o}-footer`]:{flexShrink:0,padding:`${f}px ${k}px`,borderTop:`${v}px ${g} ${C}`},"&-rtl":{direction:"rtl"}}}},Ke=De("Drawer",e=>{const o=Pe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Ue(o),Ye(o)]},e=>({zIndexPopup:e.zIndexPopupBase}));var Ge=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:d.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:j(),rootClassName:String,rootStyle:j(),size:{type:String},drawerStyle:j(),headerStyle:j(),bodyStyle:j(),contentWrapperStyle:{type:Object,default:void 0},title:d.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),zIndex:Number,prefixCls:String,push:d.oneOfType([d.looseBool,{type:Object}]),placement:d.oneOf(qe),keyboard:{type:Boolean,default:void 0},extra:d.any,footer:d.any,footerStyle:j(),level:d.any,levelMove:{type:[Number,Array,Function]},handle:d.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),Je=q({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:me(Ze(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:ce}),slots:Object,setup(e,o){let{emit:r,slots:t,attrs:i}=o;const S=O(!1),P=O(!1),b=O(null),w=O(!1),m=O(!1),h=N(()=>{var n;return(n=e.open)!==null&&n!==void 0?n:e.visible});E(h,()=>{h.value?w.value=!0:m.value=!1},{immediate:!0}),E([h,w],()=>{h.value&&w.value&&(m.value=!0)},{immediate:!0});const v=Ie("parentDrawerOpts",null),{prefixCls:g,getPopupContainer:C,direction:_}=Ne("drawer",e),[T,I]=Ke(g),a=N(()=>e.getContainer===void 0&&(C==null?void 0:C.value)?()=>C.value(document.body):e.getContainer);Te(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Me("parentDrawerOpts",{setPush:()=>{S.value=!0},setPull:()=>{S.value=!1,W(()=>{k()})}}),ue(()=>{h.value&&v&&v.setPush()}),fe(()=>{v&&v.setPull()}),E(m,()=>{v&&(m.value?v.setPush():v.setPull())},{flush:"post"});const k=()=>{var n,l;(l=(n=b.value)===null||n===void 0?void 0:n.domFocus)===null||l===void 0||l.call(n)},y=n=>{r("update:visible",!1),r("update:open",!1),r("close",n)},p=n=>{var l;n||(P.value===!1&&(P.value=!0),e.destroyOnClose&&(w.value=!1)),(l=e.afterVisibleChange)===null||l===void 0||l.call(e,n),r("afterVisibleChange",n),r("afterOpenChange",n)},$=N(()=>{const{push:n,placement:l}=e;let c;return typeof n=="boolean"?c=n?ce.distance:0:c=n.distance,c=parseFloat(String(c||0)),l==="left"||l==="right"?`translateX(${l==="left"?c:-c}px)`:l==="top"||l==="bottom"?`translateY(${l==="top"?c:-c}px)`:null}),A=N(()=>{var n;return(n=e.width)!==null&&n!==void 0?n:e.size==="large"?736:378}),z=N(()=>{var n;return(n=e.height)!==null&&n!==void 0?n:e.size==="large"?736:378}),Z=N(()=>{const{mask:n,placement:l}=e;if(!m.value&&!n)return{};const c={};return l==="left"||l==="right"?c.width=ie(A.value)?`${A.value}px`:A.value:c.height=ie(z.value)?`${z.value}px`:z.value,c}),J=N(()=>{const{zIndex:n,contentWrapperStyle:l}=e,c=Z.value;return[{zIndex:n,transform:S.value?$.value:void 0},B({},l),c]}),Q=n=>{const{closable:l,headerStyle:c}=e,x=K(t,e,"extra"),M=K(t,e,"title");return!M&&!l?null:u("div",{class:G(`${n}-header`,{[`${n}-header-close-only`]:l&&!M&&!x}),style:c},[u("div",{class:`${n}-header-title`},[ee(n),M&&u("div",{class:`${n}-title`},[M])]),x&&u("div",{class:`${n}-extra`},[x])])},ee=n=>{var l;const{closable:c}=e,x=t.closeIcon?(l=t.closeIcon)===null||l===void 0?void 0:l.call(t):e.closeIcon;return c&&u("button",{key:"closer",onClick:y,"aria-label":"Close",class:`${n}-close`},[x===void 0?u(Be,null,null):x])},te=n=>{var l;if(P.value&&!e.forceRender&&!w.value)return null;const{bodyStyle:c,drawerStyle:x}=e;return u("div",{class:`${n}-wrapper-body`,style:x},[Q(n),u("div",{key:"body",class:`${n}-body`,style:c},[(l=t.default)===null||l===void 0?void 0:l.call(t)]),F(n)])},F=n=>{const l=K(t,e,"footer");if(!l)return null;const c=`${n}-footer`;return u("div",{class:c,style:e.footerStyle},[l])},L=N(()=>G({"no-mask":!e.mask,[`${g.value}-rtl`]:_.value==="rtl"},e.rootClassName,I.value)),R=N(()=>le(re(g.value,"mask-motion"))),H=n=>le(re(g.value,`panel-motion-${n}`));return()=>{const{width:n,height:l,placement:c,mask:x,forceRender:M}=e,X=Ge(e,["width","height","placement","mask","forceRender"]),Y=B(B(B({},i),pe(X,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:M,onClose:y,afterVisibleChange:p,handler:!1,prefixCls:g.value,open:m.value,showMask:x,placement:c,ref:b});return T(u(je,null,{default:()=>[u(He,D(D({},Y),{},{maskMotion:R.value,motion:H,width:A.value,height:z.value,getContainer:a.value,rootClassName:L.value,rootStyle:e.rootStyle,contentWrapperStyle:J.value}),{handler:e.handle?()=>e.handle:t.handle,default:()=>te(g.value)})]}))}}}),tt=_e(Je);export{tt as A}; -//# sourceMappingURL=index.2753fdb2.js.map +import{U as B,av as d,at as j,au as Se,aO as ke,d as q,R as O,X as ue,K as W,g as E,ah as fe,aj as G,b as u,aZ as ne,a_ as oe,a$ as ae,al as D,ak as pe,b8 as $e,aq as me,e as xe,cl as Oe,ad as De,ae as Pe,af as _e,f as N,D as Ie,ai as Ne,c8 as Te,W as Me,bp as je,bU as K,aY as le,dz as re,b0 as Be}from"./index.d0f12294.js";import{i as ie}from"./Badge.f6241be2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e5c33a98-1df2-4449-8512-faf1d8350dbe",e._sentryDebugIdIdentifier="sentry-dbid-e5c33a98-1df2-4449-8512-faf1d8350dbe")}catch{}})();const ye=()=>({prefixCls:String,width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:j(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:Se(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ke(),maskMotion:j()}),Ee=()=>B(B({},ye()),{forceRender:{type:Boolean,default:void 0},getContainer:d.oneOfType([d.string,d.func,d.object,d.looseBool])}),Ae=()=>B(B({},ye()),{getContainer:Function,getOpenCount:Function,scrollLocker:d.any,inline:Boolean});function ze(e){return Array.isArray(e)?e:[e]}const ve={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},Fe=Object.keys(ve).filter(e=>{if(typeof document>"u")return!1;const o=document.getElementsByTagName("html")[0];return e in(o?o.style:{})})[0];ve[Fe];const Ve=!(typeof window<"u"&&window.document&&window.document.createElement);var We=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{W(()=>{var a;const{open:s,getContainer:f,showMask:k,autofocus:y}=e,p=f==null?void 0:f();_(e),s&&(p&&(p.parentNode,document.body),W(()=>{y&&h()}),k&&((a=e.scrollLocker)===null||a===void 0||a.lock()))})}),E(()=>e.level,()=>{_(e)},{flush:"post"}),E(()=>e.open,()=>{const{open:a,getContainer:s,scrollLocker:f,showMask:k,autofocus:y}=e,p=s==null?void 0:s();p&&(p.parentNode,document.body),a?(y&&h(),k&&(f==null||f.lock())):f==null||f.unLock()},{flush:"post"}),fe(()=>{var a;const{open:s}=e;s&&(document.body.style.touchAction=""),(a=e.scrollLocker)===null||a===void 0||a.unLock()}),E(()=>e.placement,a=>{a&&(w.value=null)});const h=()=>{var a,s;(s=(a=S.value)===null||a===void 0?void 0:a.focus)===null||s===void 0||s.call(a)},v=a=>{r("close",a)},g=a=>{a.keyCode===$e.ESC&&(a.stopPropagation(),v(a))},C=()=>{const{open:a,afterVisibleChange:s}=e;s&&s(!!a)},_=a=>{let{level:s,getContainer:f}=a;if(Ve)return;const k=f==null?void 0:f(),y=k?k.parentNode:null;m=[],s==="all"?(y?Array.prototype.slice.call(y.children):[]).forEach($=>{$.nodeName!=="SCRIPT"&&$.nodeName!=="STYLE"&&$.nodeName!=="LINK"&&$!==k&&m.push($)}):s&&ze(s).forEach(p=>{document.querySelectorAll(p).forEach($=>{m.push($)})})},T=a=>{r("handleClick",a)},I=O(!1);return E(S,()=>{W(()=>{I.value=!0})}),()=>{var a,s;const{width:f,height:k,open:y,prefixCls:p,placement:$,level:A,levelMove:z,ease:Z,duration:J,getContainer:Q,onChange:ee,afterVisibleChange:te,showMask:F,maskClosable:L,maskStyle:R,keyboard:H,getOpenCount:n,scrollLocker:l,contentWrapperStyle:c,style:x,class:M,rootClassName:X,rootStyle:Y,maskMotion:he,motion:U,inline:ge}=e,be=We(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),V=y&&I.value,we=G(p,{[`${p}-${$}`]:!0,[`${p}-open`]:V,[`${p}-inline`]:ge,"no-mask":!F,[X]:!0}),Ce=typeof U=="function"?U($):U;return u("div",D(D({},pe(be,["autofocus"])),{},{tabindex:-1,class:we,style:Y,ref:S,onKeydown:V&&H?g:void 0}),[u(ne,he,{default:()=>[F&&oe(u("div",{class:`${p}-mask`,onClick:L?v:void 0,style:R,ref:P},null),[[ae,V]])]}),u(ne,D(D({},Ce),{},{onAfterEnter:C,onAfterLeave:C}),{default:()=>[oe(u("div",{class:`${p}-content-wrapper`,style:[c],ref:i},[u("div",{class:[`${p}-content`,M],style:x,ref:w},[(a=t.default)===null||a===void 0?void 0:a.call(t)]),t.handler?u("div",{onClick:T,ref:b},[(s=t.handler)===null||s===void 0?void 0:s.call(t)]):null]),[[ae,V]])]})])}}}),se=Le;var de=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,o){let{emit:r,slots:t}=o;const i=xe(null),S=b=>{r("handleClick",b)},P=b=>{r("close",b)};return()=>{const{getContainer:b,wrapperClassName:w,rootClassName:m,rootStyle:h,forceRender:v}=e,g=de(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let C=null;if(!b)return u(se,D(D({},g),{},{rootClassName:m,rootStyle:h,open:e.open,onClose:P,onHandleClick:S,inline:!0}),t);const _=!!t.handler||v;return(_||e.open||i.value)&&(C=u(Oe,{autoLock:!0,visible:e.open,forceRender:_,getContainer:b,wrapperClassName:w},{default:T=>{var{visible:I,afterClose:a}=T,s=de(T,["visible","afterClose"]);return u(se,D(D(D({ref:i},g),s),{},{rootClassName:m,rootStyle:h,open:I!==void 0?I:e.open,afterVisibleChange:a!==void 0?a:e.afterVisibleChange,onClose:P,onHandleClick:S}),t)}})),C}}}),He=Re,Xe=e=>{const{componentCls:o,motionDurationSlow:r}=e,t={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${r}`}}};return{[o]:{[`${o}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${r}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${o}-panel-motion`]:{"&-left":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[t,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[t,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},Ye=Xe,Ue=e=>{const{componentCls:o,zIndexPopup:r,colorBgMask:t,colorBgElevated:i,motionDurationSlow:S,motionDurationMid:P,padding:b,paddingLG:w,fontSizeLG:m,lineHeightLG:h,lineWidth:v,lineType:g,colorSplit:C,marginSM:_,colorIcon:T,colorIconHover:I,colorText:a,fontWeightStrong:s,drawerFooterPaddingVertical:f,drawerFooterPaddingHorizontal:k}=e,y=`${o}-content-wrapper`;return{[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:t,pointerEvents:"auto"},[y]:{position:"absolute",zIndex:r,transition:`all ${S}`,"&-hidden":{display:"none"}},[`&-left > ${y}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${y}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${y}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${y}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${b}px ${w}px`,fontSize:m,lineHeight:h,borderBottom:`${v}px ${g} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-block",marginInlineEnd:_,color:T,fontWeight:s,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${P}`,textRendering:"auto","&:focus, &:hover":{color:I,textDecoration:"none"}},[`${o}-title`]:{flex:1,margin:0,color:a,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:h},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:w,overflow:"auto"},[`${o}-footer`]:{flexShrink:0,padding:`${f}px ${k}px`,borderTop:`${v}px ${g} ${C}`},"&-rtl":{direction:"rtl"}}}},Ke=De("Drawer",e=>{const o=Pe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Ue(o),Ye(o)]},e=>({zIndexPopup:e.zIndexPopupBase}));var Ge=globalThis&&globalThis.__rest||function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:d.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:j(),rootClassName:String,rootStyle:j(),size:{type:String},drawerStyle:j(),headerStyle:j(),bodyStyle:j(),contentWrapperStyle:{type:Object,default:void 0},title:d.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),zIndex:Number,prefixCls:String,push:d.oneOfType([d.looseBool,{type:Object}]),placement:d.oneOf(qe),keyboard:{type:Boolean,default:void 0},extra:d.any,footer:d.any,footerStyle:j(),level:d.any,levelMove:{type:[Number,Array,Function]},handle:d.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),Je=q({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:me(Ze(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:ce}),slots:Object,setup(e,o){let{emit:r,slots:t,attrs:i}=o;const S=O(!1),P=O(!1),b=O(null),w=O(!1),m=O(!1),h=N(()=>{var n;return(n=e.open)!==null&&n!==void 0?n:e.visible});E(h,()=>{h.value?w.value=!0:m.value=!1},{immediate:!0}),E([h,w],()=>{h.value&&w.value&&(m.value=!0)},{immediate:!0});const v=Ie("parentDrawerOpts",null),{prefixCls:g,getPopupContainer:C,direction:_}=Ne("drawer",e),[T,I]=Ke(g),a=N(()=>e.getContainer===void 0&&(C==null?void 0:C.value)?()=>C.value(document.body):e.getContainer);Te(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Me("parentDrawerOpts",{setPush:()=>{S.value=!0},setPull:()=>{S.value=!1,W(()=>{k()})}}),ue(()=>{h.value&&v&&v.setPush()}),fe(()=>{v&&v.setPull()}),E(m,()=>{v&&(m.value?v.setPush():v.setPull())},{flush:"post"});const k=()=>{var n,l;(l=(n=b.value)===null||n===void 0?void 0:n.domFocus)===null||l===void 0||l.call(n)},y=n=>{r("update:visible",!1),r("update:open",!1),r("close",n)},p=n=>{var l;n||(P.value===!1&&(P.value=!0),e.destroyOnClose&&(w.value=!1)),(l=e.afterVisibleChange)===null||l===void 0||l.call(e,n),r("afterVisibleChange",n),r("afterOpenChange",n)},$=N(()=>{const{push:n,placement:l}=e;let c;return typeof n=="boolean"?c=n?ce.distance:0:c=n.distance,c=parseFloat(String(c||0)),l==="left"||l==="right"?`translateX(${l==="left"?c:-c}px)`:l==="top"||l==="bottom"?`translateY(${l==="top"?c:-c}px)`:null}),A=N(()=>{var n;return(n=e.width)!==null&&n!==void 0?n:e.size==="large"?736:378}),z=N(()=>{var n;return(n=e.height)!==null&&n!==void 0?n:e.size==="large"?736:378}),Z=N(()=>{const{mask:n,placement:l}=e;if(!m.value&&!n)return{};const c={};return l==="left"||l==="right"?c.width=ie(A.value)?`${A.value}px`:A.value:c.height=ie(z.value)?`${z.value}px`:z.value,c}),J=N(()=>{const{zIndex:n,contentWrapperStyle:l}=e,c=Z.value;return[{zIndex:n,transform:S.value?$.value:void 0},B({},l),c]}),Q=n=>{const{closable:l,headerStyle:c}=e,x=K(t,e,"extra"),M=K(t,e,"title");return!M&&!l?null:u("div",{class:G(`${n}-header`,{[`${n}-header-close-only`]:l&&!M&&!x}),style:c},[u("div",{class:`${n}-header-title`},[ee(n),M&&u("div",{class:`${n}-title`},[M])]),x&&u("div",{class:`${n}-extra`},[x])])},ee=n=>{var l;const{closable:c}=e,x=t.closeIcon?(l=t.closeIcon)===null||l===void 0?void 0:l.call(t):e.closeIcon;return c&&u("button",{key:"closer",onClick:y,"aria-label":"Close",class:`${n}-close`},[x===void 0?u(Be,null,null):x])},te=n=>{var l;if(P.value&&!e.forceRender&&!w.value)return null;const{bodyStyle:c,drawerStyle:x}=e;return u("div",{class:`${n}-wrapper-body`,style:x},[Q(n),u("div",{key:"body",class:`${n}-body`,style:c},[(l=t.default)===null||l===void 0?void 0:l.call(t)]),F(n)])},F=n=>{const l=K(t,e,"footer");if(!l)return null;const c=`${n}-footer`;return u("div",{class:c,style:e.footerStyle},[l])},L=N(()=>G({"no-mask":!e.mask,[`${g.value}-rtl`]:_.value==="rtl"},e.rootClassName,I.value)),R=N(()=>le(re(g.value,"mask-motion"))),H=n=>le(re(g.value,`panel-motion-${n}`));return()=>{const{width:n,height:l,placement:c,mask:x,forceRender:M}=e,X=Ge(e,["width","height","placement","mask","forceRender"]),Y=B(B(B({},i),pe(X,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:M,onClose:y,afterVisibleChange:p,handler:!1,prefixCls:g.value,open:m.value,showMask:x,placement:c,ref:b});return T(u(je,null,{default:()=>[u(He,D(D({},Y),{},{maskMotion:R.value,motion:H,width:A.value,height:z.value,getContainer:a.value,rootClassName:L.value,rootStyle:e.rootStyle,contentWrapperStyle:J.value}),{handler:e.handle?()=>e.handle:t.handle,default:()=>te(g.value)})]}))}}}),tt=_e(Je);export{tt as A}; +//# sourceMappingURL=index.7c84a9f5.js.map diff --git a/abstra_statics/dist/assets/index.d2b068b5.js b/abstra_statics/dist/assets/index.81ae2c34.js similarity index 84% rename from abstra_statics/dist/assets/index.d2b068b5.js rename to abstra_statics/dist/assets/index.81ae2c34.js index ee5a5686de..ce3a7ee704 100644 --- a/abstra_statics/dist/assets/index.d2b068b5.js +++ b/abstra_statics/dist/assets/index.81ae2c34.js @@ -1,2 +1,2 @@ -import{d as J,ai as Q,b as r,av as A,D as ve,e as W,aD as le,aF as fe,al as T,aj as oe,dk as $e,dH as pe,dI as ye,ad as he,ae as Se,U as w,ap as be,aq as xe,W as Ie,bB as te,f as C,g as Ce,aP as _e,dJ as Le,bQ as ze,dl as we,by as Me,aN as ie,au as Pe,bF as D,at as ne,b7 as q,aO as Te,dG as ae}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="46beeff9-4aa5-4b4a-b06f-af23ff4619ea",e._sentryDebugIdIdentifier="sentry-dbid-46beeff9-4aa5-4b4a-b06f-af23ff4619ea")}catch{}})();const Ee=()=>({avatar:A.any,description:A.any,prefixCls:String,title:A.any}),Ae=J({compatConfig:{MODE:3},name:"AListItemMeta",props:Ee(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:i}=t;const{prefixCls:l}=Q("list",e);return()=>{var o,c,v,a,h,d;const u=`${l.value}-item-meta`,g=(o=e.title)!==null&&o!==void 0?o:(c=i.title)===null||c===void 0?void 0:c.call(i),s=(v=e.description)!==null&&v!==void 0?v:(a=i.description)===null||a===void 0?void 0:a.call(i),p=(h=e.avatar)!==null&&h!==void 0?h:(d=i.avatar)===null||d===void 0?void 0:d.call(i),f=r("div",{class:`${l.value}-item-meta-content`},[g&&r("h4",{class:`${l.value}-item-meta-title`},[g]),s&&r("div",{class:`${l.value}-item-meta-description`},[s])]);return r("div",{class:u},[p&&r("div",{class:`${l.value}-item-meta-avatar`},[p]),(g||s)&&f])}}}),re=Symbol("ListContextKey");var Be=globalThis&&globalThis.__rest||function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o({prefixCls:String,extra:A.any,actions:A.array,grid:Object,colStyle:{type:Object,default:void 0}}),je=J({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:Ae,props:Oe(),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;const{itemLayout:o,grid:c}=ve(re,{grid:W(),itemLayout:W()}),{prefixCls:v}=Q("list",e),a=()=>{var d;const u=((d=i.default)===null||d===void 0?void 0:d.call(i))||[];let g;return u.forEach(s=>{pe(s)&&!ye(s)&&(g=!0)}),g&&u.length>1},h=()=>{var d,u;const g=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i);return o.value==="vertical"?!!g:!a()};return()=>{var d,u,g,s,p;const{class:f}=l,x=Be(l,["class"]),y=v.value,L=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i),B=(g=i.default)===null||g===void 0?void 0:g.call(i);let $=(s=e.actions)!==null&&s!==void 0?s:le((p=i.actions)===null||p===void 0?void 0:p.call(i));$=$&&!Array.isArray($)?[$]:$;const M=$&&$.length>0&&r("ul",{class:`${y}-item-action`,key:"actions"},[$.map((I,E)=>r("li",{key:`${y}-item-action-${E}`},[I,E!==$.length-1&&r("em",{class:`${y}-item-action-split`},null)]))]),O=c.value?"div":"li",j=r(O,T(T({},x),{},{class:oe(`${y}-item`,{[`${y}-item-no-flex`]:!h()},f)}),{default:()=>[o.value==="vertical"&&L?[r("div",{class:`${y}-item-main`,key:"content"},[B,M]),r("div",{class:`${y}-item-extra`,key:"extra"},[L])]:[B,M,fe(L,{key:"extra"})]]});return c.value?r($e,{flex:1,style:e.colStyle},{default:()=>[j]}):j}}}),He=e=>{const{listBorderedCls:t,componentCls:i,paddingLG:l,margin:o,padding:c,listItemPaddingSM:v,marginLG:a,borderRadiusLG:h}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:h,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:l},[`${i}-pagination`]:{margin:`${o}px ${a}px`}},[`${t}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:v}},[`${t}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:`${c}px ${l}px`}}}},De=e=>{const{componentCls:t,screenSM:i,screenMD:l,marginLG:o,marginSM:c,margin:v}=e;return{[`@media screen and (max-width:${l})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${i})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:c}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${v}px`}}}}}},We=e=>{const{componentCls:t,antCls:i,controlHeight:l,minHeight:o,paddingSM:c,marginLG:v,padding:a,listItemPadding:h,colorPrimary:d,listItemPaddingSM:u,listItemPaddingLG:g,paddingXS:s,margin:p,colorText:f,colorTextDescription:x,motionDurationSlow:y,lineWidth:L}=e;return{[`${t}`]:w(w({},be(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:c},[`${t}-pagination`]:{marginBlockStart:v,textAlign:"end",[`${i}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:h,color:f,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:f},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:f,transition:`all ${y}`,["&:hover"]:{color:d}}},[`${t}-item-meta-description`]:{color:x,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${s}px`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:L,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${i}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:v},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:c,color:f,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:l},[`${t}-split${t}-something-after-last-item ${i}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Ge=he("List",e=>{const t=Se(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[We(t),He(t),De(t)]},{contentWidth:220}),Ne=()=>({bordered:ie(),dataSource:Pe(),extra:D(),grid:ne(),itemLayout:String,loading:q([Boolean,Object]),loadMore:D(),pagination:q([Boolean,Object]),prefixCls:String,rowKey:q([String,Number,Function]),renderItem:Te(),size:String,split:ie(),header:D(),footer:D(),locale:ne()}),_=J({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:je,props:xe(Ne(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;var o,c;Ie(re,{grid:te(e,"grid"),itemLayout:te(e,"itemLayout")});const v={current:1,total:0},{prefixCls:a,direction:h,renderEmpty:d}=Q("list",e),[u,g]=Ge(a),s=C(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),p=W((o=s.value.defaultCurrent)!==null&&o!==void 0?o:1),f=W((c=s.value.defaultPageSize)!==null&&c!==void 0?c:10);Ce(s,()=>{"current"in s.value&&(p.value=s.value.current),"pageSize"in s.value&&(f.value=s.value.pageSize)});const x=[],y=n=>(m,S)=>{p.value=m,f.value=S,s.value[n]&&s.value[n](m,S)},L=y("onChange"),B=y("onShowSizeChange"),$=C(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),M=C(()=>$.value&&$.value.spinning),O=C(()=>{let n="";switch(e.size){case"large":n="lg";break;case"small":n="sm";break}return n}),j=C(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${O.value}`]:O.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:M.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:h.value==="rtl"})),I=C(()=>{const n=w(w(w({},v),{total:e.dataSource.length,current:p.value,pageSize:f.value}),e.pagination||{}),m=Math.ceil(n.total/n.pageSize);return n.current>m&&(n.current=m),n}),E=C(()=>{let n=[...e.dataSource];return e.pagination&&e.dataSource.length>(I.value.current-1)*I.value.pageSize&&(n=[...e.dataSource].splice((I.value.current-1)*I.value.pageSize,I.value.pageSize)),n}),se=_e(),G=Le(()=>{for(let n=0;n{if(!e.grid)return;const n=G.value&&e.grid[G.value]?e.grid[G.value]:e.grid.column;if(n)return{width:`${100/n}%`,maxWidth:`${100/n}%`}}),ce=(n,m)=>{var S;const P=(S=e.renderItem)!==null&&S!==void 0?S:i.renderItem;if(!P)return null;let b;const z=typeof e.rowKey;return z==="function"?b=e.rowKey(n):z==="string"||z==="number"?b=n[e.rowKey]:b=n.key,b||(b=`list-item-${m}`),x[m]=b,P({item:n,index:m})};return()=>{var n,m,S,P,b,z,N,K;const U=(n=e.loadMore)!==null&&n!==void 0?n:(m=i.loadMore)===null||m===void 0?void 0:m.call(i),X=(S=e.footer)!==null&&S!==void 0?S:(P=i.footer)===null||P===void 0?void 0:P.call(i),Y=(b=e.header)!==null&&b!==void 0?b:(z=i.header)===null||z===void 0?void 0:z.call(i),Z=le((N=i.default)===null||N===void 0?void 0:N.call(i)),ue=!!(U||e.pagination||X),ge=oe(w(w({},j.value),{[`${a.value}-something-after-last-item`]:ue}),l.class,g.value),k=e.pagination?r("div",{class:`${a.value}-pagination`},[r(ze,T(T({},I.value),{},{onChange:L,onShowSizeChange:B}),null)]):null;let R=M.value&&r("div",{style:{minHeight:"53px"}},null);if(E.value.length>0){x.length=0;const ee=E.value.map((F,V)=>ce(F,V)),me=ee.map((F,V)=>r("div",{key:x[V],style:de.value},[F]));R=e.grid?r(we,{gutter:e.grid.gutter},{default:()=>[me]}):r("ul",{class:`${a.value}-items`},[ee])}else!Z.length&&!M.value&&(R=r("div",{class:`${a.value}-empty-text`},[((K=e.locale)===null||K===void 0?void 0:K.emptyText)||d("List")]));const H=I.value.position||"bottom";return u(r("div",T(T({},l),{},{class:ge}),[(H==="top"||H==="both")&&k,Y&&r("div",{class:`${a.value}-header`},[Y]),r(Me,$.value,{default:()=>[R,Z]}),X&&r("div",{class:`${a.value}-footer`},[X]),U||(H==="bottom"||H==="both")&&k]))}}});_.install=function(e){return e.component(_.name,_),e.component(_.Item.name,_.Item),e.component(_.Item.Meta.name,_.Item.Meta),e};const Xe=_;export{Xe as A,Ae as I,je as a}; -//# sourceMappingURL=index.d2b068b5.js.map +import{d as J,ai as Q,b as r,av as A,D as ve,e as W,aD as le,aF as $e,al as T,aj as oe,dk as fe,dH as pe,dI as ye,ad as he,ae as Se,U as w,ap as be,aq as xe,W as Ie,bB as te,f as C,g as Ce,aP as _e,dJ as Le,bQ as ze,dl as we,by as Me,aN as ie,au as Pe,bF as D,at as ne,b7 as q,aO as Te,dG as ae}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9805786c-eb3d-4858-81cb-7958ce1bf5ea",e._sentryDebugIdIdentifier="sentry-dbid-9805786c-eb3d-4858-81cb-7958ce1bf5ea")}catch{}})();const Ee=()=>({avatar:A.any,description:A.any,prefixCls:String,title:A.any}),Ae=J({compatConfig:{MODE:3},name:"AListItemMeta",props:Ee(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:i}=t;const{prefixCls:l}=Q("list",e);return()=>{var o,c,v,a,h,d;const u=`${l.value}-item-meta`,g=(o=e.title)!==null&&o!==void 0?o:(c=i.title)===null||c===void 0?void 0:c.call(i),s=(v=e.description)!==null&&v!==void 0?v:(a=i.description)===null||a===void 0?void 0:a.call(i),p=(h=e.avatar)!==null&&h!==void 0?h:(d=i.avatar)===null||d===void 0?void 0:d.call(i),$=r("div",{class:`${l.value}-item-meta-content`},[g&&r("h4",{class:`${l.value}-item-meta-title`},[g]),s&&r("div",{class:`${l.value}-item-meta-description`},[s])]);return r("div",{class:u},[p&&r("div",{class:`${l.value}-item-meta-avatar`},[p]),(g||s)&&$])}}}),re=Symbol("ListContextKey");var Be=globalThis&&globalThis.__rest||function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o({prefixCls:String,extra:A.any,actions:A.array,grid:Object,colStyle:{type:Object,default:void 0}}),je=J({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:Ae,props:Oe(),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;const{itemLayout:o,grid:c}=ve(re,{grid:W(),itemLayout:W()}),{prefixCls:v}=Q("list",e),a=()=>{var d;const u=((d=i.default)===null||d===void 0?void 0:d.call(i))||[];let g;return u.forEach(s=>{pe(s)&&!ye(s)&&(g=!0)}),g&&u.length>1},h=()=>{var d,u;const g=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i);return o.value==="vertical"?!!g:!a()};return()=>{var d,u,g,s,p;const{class:$}=l,x=Be(l,["class"]),y=v.value,L=(d=e.extra)!==null&&d!==void 0?d:(u=i.extra)===null||u===void 0?void 0:u.call(i),B=(g=i.default)===null||g===void 0?void 0:g.call(i);let f=(s=e.actions)!==null&&s!==void 0?s:le((p=i.actions)===null||p===void 0?void 0:p.call(i));f=f&&!Array.isArray(f)?[f]:f;const M=f&&f.length>0&&r("ul",{class:`${y}-item-action`,key:"actions"},[f.map((I,E)=>r("li",{key:`${y}-item-action-${E}`},[I,E!==f.length-1&&r("em",{class:`${y}-item-action-split`},null)]))]),O=c.value?"div":"li",j=r(O,T(T({},x),{},{class:oe(`${y}-item`,{[`${y}-item-no-flex`]:!h()},$)}),{default:()=>[o.value==="vertical"&&L?[r("div",{class:`${y}-item-main`,key:"content"},[B,M]),r("div",{class:`${y}-item-extra`,key:"extra"},[L])]:[B,M,$e(L,{key:"extra"})]]});return c.value?r(fe,{flex:1,style:e.colStyle},{default:()=>[j]}):j}}}),He=e=>{const{listBorderedCls:t,componentCls:i,paddingLG:l,margin:o,padding:c,listItemPaddingSM:v,marginLG:a,borderRadiusLG:h}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:h,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:l},[`${i}-pagination`]:{margin:`${o}px ${a}px`}},[`${t}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:v}},[`${t}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:`${c}px ${l}px`}}}},De=e=>{const{componentCls:t,screenSM:i,screenMD:l,marginLG:o,marginSM:c,margin:v}=e;return{[`@media screen and (max-width:${l})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${i})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:c}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${v}px`}}}}}},We=e=>{const{componentCls:t,antCls:i,controlHeight:l,minHeight:o,paddingSM:c,marginLG:v,padding:a,listItemPadding:h,colorPrimary:d,listItemPaddingSM:u,listItemPaddingLG:g,paddingXS:s,margin:p,colorText:$,colorTextDescription:x,motionDurationSlow:y,lineWidth:L}=e;return{[`${t}`]:w(w({},be(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:c},[`${t}-pagination`]:{marginBlockStart:v,textAlign:"end",[`${i}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:h,color:$,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:$},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:$,transition:`all ${y}`,["&:hover"]:{color:d}}},[`${t}-item-meta-description`]:{color:x,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${s}px`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:L,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${i}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:v},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:c,color:$,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:l},[`${t}-split${t}-something-after-last-item ${i}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Ge=he("List",e=>{const t=Se(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[We(t),He(t),De(t)]},{contentWidth:220}),Ne=()=>({bordered:ie(),dataSource:Pe(),extra:D(),grid:ne(),itemLayout:String,loading:q([Boolean,Object]),loadMore:D(),pagination:q([Boolean,Object]),prefixCls:String,rowKey:q([String,Number,Function]),renderItem:Te(),size:String,split:ie(),header:D(),footer:D(),locale:ne()}),_=J({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:je,props:xe(Ne(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:i,attrs:l}=t;var o,c;Ie(re,{grid:te(e,"grid"),itemLayout:te(e,"itemLayout")});const v={current:1,total:0},{prefixCls:a,direction:h,renderEmpty:d}=Q("list",e),[u,g]=Ge(a),s=C(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),p=W((o=s.value.defaultCurrent)!==null&&o!==void 0?o:1),$=W((c=s.value.defaultPageSize)!==null&&c!==void 0?c:10);Ce(s,()=>{"current"in s.value&&(p.value=s.value.current),"pageSize"in s.value&&($.value=s.value.pageSize)});const x=[],y=n=>(m,S)=>{p.value=m,$.value=S,s.value[n]&&s.value[n](m,S)},L=y("onChange"),B=y("onShowSizeChange"),f=C(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),M=C(()=>f.value&&f.value.spinning),O=C(()=>{let n="";switch(e.size){case"large":n="lg";break;case"small":n="sm";break}return n}),j=C(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${O.value}`]:O.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:M.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:h.value==="rtl"})),I=C(()=>{const n=w(w(w({},v),{total:e.dataSource.length,current:p.value,pageSize:$.value}),e.pagination||{}),m=Math.ceil(n.total/n.pageSize);return n.current>m&&(n.current=m),n}),E=C(()=>{let n=[...e.dataSource];return e.pagination&&e.dataSource.length>(I.value.current-1)*I.value.pageSize&&(n=[...e.dataSource].splice((I.value.current-1)*I.value.pageSize,I.value.pageSize)),n}),se=_e(),G=Le(()=>{for(let n=0;n{if(!e.grid)return;const n=G.value&&e.grid[G.value]?e.grid[G.value]:e.grid.column;if(n)return{width:`${100/n}%`,maxWidth:`${100/n}%`}}),ce=(n,m)=>{var S;const P=(S=e.renderItem)!==null&&S!==void 0?S:i.renderItem;if(!P)return null;let b;const z=typeof e.rowKey;return z==="function"?b=e.rowKey(n):z==="string"||z==="number"?b=n[e.rowKey]:b=n.key,b||(b=`list-item-${m}`),x[m]=b,P({item:n,index:m})};return()=>{var n,m,S,P,b,z,N,K;const U=(n=e.loadMore)!==null&&n!==void 0?n:(m=i.loadMore)===null||m===void 0?void 0:m.call(i),X=(S=e.footer)!==null&&S!==void 0?S:(P=i.footer)===null||P===void 0?void 0:P.call(i),Y=(b=e.header)!==null&&b!==void 0?b:(z=i.header)===null||z===void 0?void 0:z.call(i),Z=le((N=i.default)===null||N===void 0?void 0:N.call(i)),ue=!!(U||e.pagination||X),ge=oe(w(w({},j.value),{[`${a.value}-something-after-last-item`]:ue}),l.class,g.value),k=e.pagination?r("div",{class:`${a.value}-pagination`},[r(ze,T(T({},I.value),{},{onChange:L,onShowSizeChange:B}),null)]):null;let R=M.value&&r("div",{style:{minHeight:"53px"}},null);if(E.value.length>0){x.length=0;const ee=E.value.map((F,V)=>ce(F,V)),me=ee.map((F,V)=>r("div",{key:x[V],style:de.value},[F]));R=e.grid?r(we,{gutter:e.grid.gutter},{default:()=>[me]}):r("ul",{class:`${a.value}-items`},[ee])}else!Z.length&&!M.value&&(R=r("div",{class:`${a.value}-empty-text`},[((K=e.locale)===null||K===void 0?void 0:K.emptyText)||d("List")]));const H=I.value.position||"bottom";return u(r("div",T(T({},l),{},{class:ge}),[(H==="top"||H==="both")&&k,Y&&r("div",{class:`${a.value}-header`},[Y]),r(Me,f.value,{default:()=>[R,Z]}),X&&r("div",{class:`${a.value}-footer`},[X]),U||(H==="bottom"||H==="both")&&k]))}}});_.install=function(e){return e.component(_.name,_),e.component(_.Item.name,_.Item),e.component(_.Item.Meta.name,_.Item.Meta),e};const Xe=_;export{Xe as A,Ae as I,je as a}; +//# sourceMappingURL=index.81ae2c34.js.map diff --git a/abstra_statics/dist/assets/index.2d55f403.js b/abstra_statics/dist/assets/index.a26d75c2.js similarity index 62% rename from abstra_statics/dist/assets/index.2d55f403.js rename to abstra_statics/dist/assets/index.a26d75c2.js index 15de5d1eae..2d09bf76d3 100644 --- a/abstra_statics/dist/assets/index.2d55f403.js +++ b/abstra_statics/dist/assets/index.a26d75c2.js @@ -1,2 +1,2 @@ -import{C as o}from"./Card.c4293d90.js";import{d as b,ai as g,bU as i,b as r,bF as c,f as y}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fc7fc500-a320-483a-a69c-29327e9b3200",e._sentryDebugIdIdentifier="sentry-dbid-fc7fc500-a320-483a-a69c-29327e9b3200")}catch{}})();const _=()=>({prefixCls:String,title:c(),description:c(),avatar:c()}),d=b({compatConfig:{MODE:3},name:"ACardMeta",props:_(),slots:Object,setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e);return()=>{const l={[`${t.value}-meta`]:!0},s=i(a,e,"avatar"),f=i(a,e,"title"),v=i(a,e,"description"),C=s?r("div",{class:`${t.value}-meta-avatar`},[s]):null,m=f?r("div",{class:`${t.value}-meta-title`},[f]):null,p=v?r("div",{class:`${t.value}-meta-description`},[v]):null,D=m||p?r("div",{class:`${t.value}-meta-detail`},[m,p]):null;return r("div",{class:l},[C,D])}}}),M=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),u=b({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:M(),setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e),l=y(()=>({[`${t.value}-grid`]:!0,[`${t.value}-grid-hoverable`]:e.hoverable}));return()=>{var s;return r("div",{class:l.value},[(s=a.default)===null||s===void 0?void 0:s.call(a)])}}});o.Meta=d;o.Grid=u;o.install=function(e){return e.component(o.name,o),e.component(d.name,d),e.component(u.name,u),e};export{u as G,d as M}; -//# sourceMappingURL=index.2d55f403.js.map +import{C as o}from"./Card.2a8fe028.js";import{d as b,ai as g,bU as i,b as r,bF as d,f as y}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="60ce18a7-d506-41be-af47-0fd721492fb3",e._sentryDebugIdIdentifier="sentry-dbid-60ce18a7-d506-41be-af47-0fd721492fb3")}catch{}})();const _=()=>({prefixCls:String,title:d(),description:d(),avatar:d()}),c=b({compatConfig:{MODE:3},name:"ACardMeta",props:_(),slots:Object,setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e);return()=>{const l={[`${t.value}-meta`]:!0},s=i(a,e,"avatar"),f=i(a,e,"title"),v=i(a,e,"description"),C=s?r("div",{class:`${t.value}-meta-avatar`},[s]):null,m=f?r("div",{class:`${t.value}-meta-title`},[f]):null,p=v?r("div",{class:`${t.value}-meta-description`},[v]):null,D=m||p?r("div",{class:`${t.value}-meta-detail`},[m,p]):null;return r("div",{class:l},[C,D])}}}),M=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),u=b({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:M(),setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e),l=y(()=>({[`${t.value}-grid`]:!0,[`${t.value}-grid-hoverable`]:e.hoverable}));return()=>{var s;return r("div",{class:l.value},[(s=a.default)===null||s===void 0?void 0:s.call(a)])}}});o.Meta=c;o.Grid=u;o.install=function(e){return e.component(o.name,o),e.component(c.name,c),e.component(u.name,u),e};export{u as G,c as M}; +//# sourceMappingURL=index.a26d75c2.js.map diff --git a/abstra_statics/dist/assets/index.d18d35d7.js b/abstra_statics/dist/assets/index.a552d580.js similarity index 75% rename from abstra_statics/dist/assets/index.d18d35d7.js rename to abstra_statics/dist/assets/index.a552d580.js index 9bf0502f9c..4d8ecb84cb 100644 --- a/abstra_statics/dist/assets/index.d18d35d7.js +++ b/abstra_statics/dist/assets/index.a552d580.js @@ -1,2 +1,2 @@ -import{ad as S,ae as w,U as s,ap as y,af as z,d as C,ai as M,f as d,aD as I,b as c,al as u}from"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="d0ba639a-ab9f-469d-b997-b96cbc5505e1",t._sentryDebugIdIdentifier="sentry-dbid-d0ba639a-ab9f-469d-b997-b96cbc5505e1")}catch{}})();const D=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:i}=t;return{[e]:s(s({},y(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStart:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:o}}})}},B=S("Divider",t=>{const e=w(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[D(e)]},{sizePaddingEdgeHorizontal:0}),E=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),G=C({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:E(),setup(t,e){let{slots:o,attrs:r}=e;const{prefixCls:i,direction:b}=M("divider",t),[v,g]=B(i),h=d(()=>t.orientation==="left"&&t.orientationMargin!=null),f=d(()=>t.orientation==="right"&&t.orientationMargin!=null),p=d(()=>{const{type:n,dashed:l,plain:x}=t,a=i.value;return{[a]:!0,[g.value]:!!g.value,[`${a}-${n}`]:!0,[`${a}-dashed`]:!!l,[`${a}-plain`]:!!x,[`${a}-rtl`]:b.value==="rtl",[`${a}-no-default-orientation-margin-left`]:h.value,[`${a}-no-default-orientation-margin-right`]:f.value}}),$=d(()=>{const n=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return s(s({},h.value&&{marginLeft:n}),f.value&&{marginRight:n})}),m=d(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var n;const l=I((n=o.default)===null||n===void 0?void 0:n.call(o));return v(c("div",u(u({},r),{},{class:[p.value,l.length?`${i.value}-with-text ${i.value}-with-text${m.value}`:"",r.class],role:"separator"}),[l.length?c("span",{class:`${i.value}-inner-text`,style:$.value},[l]):null]))}}}),W=z(G);export{W as A}; -//# sourceMappingURL=index.d18d35d7.js.map +import{ad as S,ae as w,U as s,ap as y,af as z,d as C,ai as M,f as d,aD as I,b as c,al as u}from"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5fc18561-e5ed-4878-9e22-247d8f2d4588",t._sentryDebugIdIdentifier="sentry-dbid-5fc18561-e5ed-4878-9e22-247d8f2d4588")}catch{}})();const D=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:i}=t;return{[e]:s(s({},y(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStart:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:o}}})}},B=S("Divider",t=>{const e=w(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[D(e)]},{sizePaddingEdgeHorizontal:0}),E=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),G=C({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:E(),setup(t,e){let{slots:o,attrs:r}=e;const{prefixCls:i,direction:v}=M("divider",t),[b,f]=B(i),g=d(()=>t.orientation==="left"&&t.orientationMargin!=null),h=d(()=>t.orientation==="right"&&t.orientationMargin!=null),p=d(()=>{const{type:n,dashed:l,plain:x}=t,a=i.value;return{[a]:!0,[f.value]:!!f.value,[`${a}-${n}`]:!0,[`${a}-dashed`]:!!l,[`${a}-plain`]:!!x,[`${a}-rtl`]:v.value==="rtl",[`${a}-no-default-orientation-margin-left`]:g.value,[`${a}-no-default-orientation-margin-right`]:h.value}}),$=d(()=>{const n=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return s(s({},g.value&&{marginLeft:n}),h.value&&{marginRight:n})}),m=d(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var n;const l=I((n=o.default)===null||n===void 0?void 0:n.call(o));return b(c("div",u(u({},r),{},{class:[p.value,l.length?`${i.value}-with-text ${i.value}-with-text${m.value}`:"",r.class],role:"separator"}),[l.length?c("span",{class:`${i.value}-inner-text`,style:$.value},[l]):null]))}}}),W=z(G);export{W as A}; +//# sourceMappingURL=index.a552d580.js.map diff --git a/abstra_statics/dist/assets/index.a82e0ed1.js b/abstra_statics/dist/assets/index.a82e0ed1.js new file mode 100644 index 0000000000..b37b8dbbd9 --- /dev/null +++ b/abstra_statics/dist/assets/index.a82e0ed1.js @@ -0,0 +1,2 @@ +import{d as V,ai as W,dO as L,dP as M,f as o,e as O,g as U,aR as q,b as m,U as f,aS as H,al as j,cW as h,av as G,bw as B,aN as J,aj as K}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="16962379-db4b-4178-bd30-22363aadbb80",e._sentryDebugIdIdentifier="sentry-dbid-16962379-db4b-4178-bd30-22363aadbb80")}catch{}})();const Q={small:8,middle:16,large:24},X=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:G.oneOf(B("horizontal","vertical")).def("horizontal"),align:G.oneOf(B("start","end","center","baseline")),wrap:J()});function Y(e){return typeof e=="string"?Q[e]:e||0}const r=V({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:X(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:b,direction:w}=W("space",e),[E,F]=L(n),x=M(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=b==null?void 0:b.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),y=O(),u=O();U(s,()=>{[y.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>Y(a))},{immediate:!0});const z=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),P=o(()=>K(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:w.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),R=o(()=>w.value==="rtl"?"marginLeft":"marginRight"),k=o(()=>{const a={};return x.value&&(a.columnGap=`${y.value}px`,a.rowGap=`${u.value}px`),f(f({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:T="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),C=q(_),I=C.length;if(I===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),A=`${n.value}-item`,D=y.value,S=I-1;return m("div",j(j({},g),{},{class:[P.value,g.class],style:[k.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return x.value||(T==="vertical"?v{const{itemPrefixCls:t,component:n,span:o,labelStyle:l,contentStyle:a,bordered:d,label:r,content:s,colon:u}=e,p=n;return d?i(p,{class:[{[`${t}-item-label`]:I(r),[`${t}-item-content`]:I(s)}],colSpan:o},{default:()=>[I(r)&&i("span",{style:l},[r]),I(s)&&i("span",{style:a},[s])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(r||r===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:l},[r]),(s||s===0)&&i("span",{class:`${t}-item-content`,style:a},[s])])]})},j=fe,be=e=>{const t=(u,p,D)=>{let{colon:f,prefixCls:h,bordered:m}=p,{component:y,type:w,showLabel:L,showContent:P,labelStyle:g,contentStyle:S}=D;return u.map((b,C)=>{var $,v;const M=b.props||{},{prefixCls:_=h,span:O=1,labelStyle:R=M["label-style"],contentStyle:H=M["content-style"],label:W=(v=($=b.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=M,N=Y(b),z=Z(b),E=k(b),{key:T}=b;return typeof y=="string"?i(j,{key:`${w}-${String(T)||C}`,class:z,style:E,labelStyle:c(c({},g),R),contentStyle:c(c({},S),H),span:O,colon:f,component:y,itemPrefixCls:_,bordered:m,label:L?W:null,content:P?N:null},null):[i(j,{key:`label-${String(T)||C}`,class:z,style:c(c(c({},g),E),R),span:1,colon:f,component:y[0],itemPrefixCls:_,bordered:m,label:W},null),i(j,{key:`content-${String(T)||C}`,class:z,style:c(c(c({},S),E),H),span:O*2-1,component:y[1],itemPrefixCls:_,bordered:m,content:N},null)]})},{prefixCls:n,vertical:o,row:l,index:a,bordered:d}=e,{labelStyle:r,contentStyle:s}=J(q,{labelStyle:A({}),contentStyle:A({})});return o?i(Q,null,[i("tr",{key:`label-${a}`,class:`${n}-row`},[t(l,e,{component:"th",type:"label",showLabel:!0,labelStyle:r.value,contentStyle:s.value})]),i("tr",{key:`content-${a}`,class:`${n}-row`},[t(l,e,{component:"td",type:"content",showContent:!0,labelStyle:r.value,contentStyle:s.value})])]):i("tr",{key:a,class:`${n}-row`},[t(l,e,{component:d?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:r.value,contentStyle:s.value})])},me=be,ye=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:l,descriptionsBg:a}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:a,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},ge=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:l,descriptionsItemLabelColonMarginLeft:a,descriptionsTitleMarginBottom:d}=e;return{[t]:c(c(c({},le(e)),ye(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:d},[`${t}-title`]:c(c({},ne),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${a}px ${l}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Se=ee("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,l=`${e.paddingXS}px ${e.padding}px`,a=`${e.padding}px ${e.paddingLG}px`,d=`${e.paddingSM}px ${e.paddingLG}px`,r=e.padding,s=e.marginXS,u=e.marginXXS/2,p=te(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:r,descriptionsSmallPadding:l,descriptionsDefaultPadding:a,descriptionsMiddlePadding:d,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[ge(p)]});B.any;const $e=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),ve=K({compatConfig:{MODE:3},name:"ADescriptionsItem",props:$e(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),V={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function xe(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=pe(e,{span:t}),ue()),o}function he(e,t){const n=ce(e),o=[];let l=[],a=t;return n.forEach((d,r)=>{var s;const u=(s=d.props)===null||s===void 0?void 0:s.span,p=u||1;if(r===n.length-1){l.push(U(d,a,u)),o.push(l);return}p({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>V},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),q=Symbol("descriptionsContext"),x=K({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:Ce(),slots:Object,Item:ve,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l,direction:a}=oe("descriptions",e);let d;const r=A({}),[s,u]=Se(l),p=ie();ae(()=>{d=p.value.subscribe(f=>{typeof e.column=="object"&&(r.value=f)})}),se(()=>{p.value.unsubscribe(d)}),re(q,{labelStyle:F(e,"labelStyle"),contentStyle:F(e,"contentStyle")});const D=de(()=>xe(e.column,r.value));return()=>{var f,h,m;const{size:y,bordered:w=!1,layout:L="horizontal",colon:P=!0,title:g=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:S=(h=n.extra)===null||h===void 0?void 0:h.call(n)}=e,b=(m=n.default)===null||m===void 0?void 0:m.call(n),C=he(b,D.value);return s(i("div",G(G({},o),{},{class:[l.value,{[`${l.value}-${y}`]:y!=="default",[`${l.value}-bordered`]:!!w,[`${l.value}-rtl`]:a.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${l.value}-header`},[g&&i("div",{class:`${l.value}-title`},[g]),S&&i("div",{class:`${l.value}-extra`},[S])]),i("div",{class:`${l.value}-view`},[i("table",null,[i("tbody",null,[C.map(($,v)=>i(me,{key:v,index:v,colon:P,prefixCls:l.value,vertical:L==="vertical",bordered:w,row:$},null))])])])]))}}});x.install=function(e){return e.component(x.name,x),e.component(x.Item.name,x.Item),e};const Ie=x;export{Ie as A,ve as D}; -//# sourceMappingURL=index.a0ca3dcb.js.map +import{b as i,D as J,e as A,aS as Q,aK as Y,dC as Z,dD as k,U as c,ad as ee,ae as te,ao as ne,ap as le,av as B,d as K,ai as oe,dE as ie,dF as ae,ar as se,W as re,bB as F,f as de,al as G,aD as ce,dG as X,aF as pe,az as ue}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="639087a1-8658-4856-895d-fb556000d339",e._sentryDebugIdIdentifier="sentry-dbid-639087a1-8658-4856-895d-fb556000d339")}catch{}})();function I(e){return e!=null}const fe=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:l,contentStyle:a,bordered:d,label:r,content:s,colon:u}=e,p=n;return d?i(p,{class:[{[`${t}-item-label`]:I(r),[`${t}-item-content`]:I(s)}],colSpan:o},{default:()=>[I(r)&&i("span",{style:l},[r]),I(s)&&i("span",{style:a},[s])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(r||r===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:l},[r]),(s||s===0)&&i("span",{class:`${t}-item-content`,style:a},[s])])]})},j=fe,be=e=>{const t=(u,p,D)=>{let{colon:f,prefixCls:h,bordered:m}=p,{component:y,type:w,showLabel:L,showContent:P,labelStyle:g,contentStyle:S}=D;return u.map((b,C)=>{var $,v;const M=b.props||{},{prefixCls:_=h,span:O=1,labelStyle:R=M["label-style"],contentStyle:H=M["content-style"],label:W=(v=($=b.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=M,N=Y(b),z=Z(b),E=k(b),{key:T}=b;return typeof y=="string"?i(j,{key:`${w}-${String(T)||C}`,class:z,style:E,labelStyle:c(c({},g),R),contentStyle:c(c({},S),H),span:O,colon:f,component:y,itemPrefixCls:_,bordered:m,label:L?W:null,content:P?N:null},null):[i(j,{key:`label-${String(T)||C}`,class:z,style:c(c(c({},g),E),R),span:1,colon:f,component:y[0],itemPrefixCls:_,bordered:m,label:W},null),i(j,{key:`content-${String(T)||C}`,class:z,style:c(c(c({},S),E),H),span:O*2-1,component:y[1],itemPrefixCls:_,bordered:m,content:N},null)]})},{prefixCls:n,vertical:o,row:l,index:a,bordered:d}=e,{labelStyle:r,contentStyle:s}=J(q,{labelStyle:A({}),contentStyle:A({})});return o?i(Q,null,[i("tr",{key:`label-${a}`,class:`${n}-row`},[t(l,e,{component:"th",type:"label",showLabel:!0,labelStyle:r.value,contentStyle:s.value})]),i("tr",{key:`content-${a}`,class:`${n}-row`},[t(l,e,{component:"td",type:"content",showContent:!0,labelStyle:r.value,contentStyle:s.value})])]):i("tr",{key:a,class:`${n}-row`},[t(l,e,{component:d?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:r.value,contentStyle:s.value})])},me=be,ye=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:l,descriptionsBg:a}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:a,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},ge=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:l,descriptionsItemLabelColonMarginLeft:a,descriptionsTitleMarginBottom:d}=e;return{[t]:c(c(c({},le(e)),ye(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:d},[`${t}-title`]:c(c({},ne),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${a}px ${l}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Se=ee("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,l=`${e.paddingXS}px ${e.padding}px`,a=`${e.padding}px ${e.paddingLG}px`,d=`${e.paddingSM}px ${e.paddingLG}px`,r=e.padding,s=e.marginXS,u=e.marginXXS/2,p=te(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:r,descriptionsSmallPadding:l,descriptionsDefaultPadding:a,descriptionsMiddlePadding:d,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[ge(p)]});B.any;const $e=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),ve=K({compatConfig:{MODE:3},name:"ADescriptionsItem",props:$e(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),V={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function xe(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=pe(e,{span:t}),ue()),o}function he(e,t){const n=ce(e),o=[];let l=[],a=t;return n.forEach((d,r)=>{var s;const u=(s=d.props)===null||s===void 0?void 0:s.span,p=u||1;if(r===n.length-1){l.push(U(d,a,u)),o.push(l);return}p({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>V},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),q=Symbol("descriptionsContext"),x=K({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:Ce(),slots:Object,Item:ve,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l,direction:a}=oe("descriptions",e);let d;const r=A({}),[s,u]=Se(l),p=ie();ae(()=>{d=p.value.subscribe(f=>{typeof e.column=="object"&&(r.value=f)})}),se(()=>{p.value.unsubscribe(d)}),re(q,{labelStyle:F(e,"labelStyle"),contentStyle:F(e,"contentStyle")});const D=de(()=>xe(e.column,r.value));return()=>{var f,h,m;const{size:y,bordered:w=!1,layout:L="horizontal",colon:P=!0,title:g=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:S=(h=n.extra)===null||h===void 0?void 0:h.call(n)}=e,b=(m=n.default)===null||m===void 0?void 0:m.call(n),C=he(b,D.value);return s(i("div",G(G({},o),{},{class:[l.value,{[`${l.value}-${y}`]:y!=="default",[`${l.value}-bordered`]:!!w,[`${l.value}-rtl`]:a.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${l.value}-header`},[g&&i("div",{class:`${l.value}-title`},[g]),S&&i("div",{class:`${l.value}-extra`},[S])]),i("div",{class:`${l.value}-view`},[i("table",null,[i("tbody",null,[C.map(($,v)=>i(me,{key:v,index:v,colon:P,prefixCls:l.value,vertical:L==="vertical",bordered:w,row:$},null))])])])]))}}});x.install=function(e){return e.component(x.name,x),e.component(x.Item.name,x.Item),e};const Ie=x;export{Ie as A,ve as D}; +//# sourceMappingURL=index.c44d2714.js.map diff --git a/abstra_statics/dist/assets/index.c7e8afe7.js b/abstra_statics/dist/assets/index.c7e8afe7.js new file mode 100644 index 0000000000..36a5073ef7 --- /dev/null +++ b/abstra_statics/dist/assets/index.c7e8afe7.js @@ -0,0 +1,2 @@ +import{a1 as f,a2 as y,a3 as S,U as n,a4 as i,a5 as b,a6 as h,a7 as z,a8 as g,a9 as C}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="2bc52b17-db9e-4387-bea6-3c865cc69362",o._sentryDebugIdIdentifier="sentry-dbid-2bc52b17-db9e-4387-bea6-3c865cc69362")}catch{}})();const c=(o,e)=>new f(o).setAlpha(e).toRgbString(),l=(o,e)=>new f(o).lighten(e).toHexString(),B=o=>{const e=y(o,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},M=(o,e)=>{const r=o||"#000",t=e||"#fff";return{colorBgBase:r,colorTextBase:t,colorText:c(t,.85),colorTextSecondary:c(t,.65),colorTextTertiary:c(t,.45),colorTextQuaternary:c(t,.25),colorFill:c(t,.18),colorFillSecondary:c(t,.12),colorFillTertiary:c(t,.08),colorFillQuaternary:c(t,.04),colorBgElevated:l(r,12),colorBgContainer:l(r,8),colorBgLayout:l(r,0),colorBgSpotlight:l(r,26),colorBorder:l(r,26),colorBorderSecondary:l(r,19)}},p=(o,e)=>{const r=Object.keys(S).map(s=>{const a=y(o[s],{theme:"dark"});return new Array(10).fill(1).reduce((d,A,u)=>(d[`${s}-${u+1}`]=a[u],d),{})}).reduce((s,a)=>(s=n(n({},s),a),s),{}),t=e!=null?e:i(o);return n(n(n({},t),r),b(o,{generateColorPalettes:B,generateNeutralColorPalettes:M}))},v=p;function w(o){const{sizeUnit:e,sizeStep:r}=o,t=r-2;return{sizeXXL:e*(t+10),sizeXL:e*(t+6),sizeLG:e*(t+2),sizeMD:e*(t+2),sizeMS:e*(t+1),size:e*t,sizeSM:e*t,sizeXS:e*(t-1),sizeXXS:e*(t-1)}}const x=(o,e)=>{const r=e!=null?e:i(o),t=r.fontSizeSM,s=r.controlHeight-4;return n(n(n(n(n({},r),w(e!=null?e:o)),z(t)),{controlHeight:s}),h(n(n({},r),{controlHeight:s})))},T=x;function m(){const[o,e,r]=C();return{theme:o,token:e,hashId:r}}const X={defaultConfig:g,defaultSeed:g.token,useToken:m,defaultAlgorithm:i,darkAlgorithm:v,compactAlgorithm:T};export{X as t}; +//# sourceMappingURL=index.c7e8afe7.js.map diff --git a/abstra_statics/dist/assets/index.c8ad961f.js b/abstra_statics/dist/assets/index.c8ad961f.js deleted file mode 100644 index 91ed8bd7f0..0000000000 --- a/abstra_statics/dist/assets/index.c8ad961f.js +++ /dev/null @@ -1,2 +0,0 @@ -import{B as n,R as t}from"./Badge.7a29ebdb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="1e5e8691-3d51-42f9-ab7c-932c4cac6dcf",e._sentryDebugIdIdentifier="sentry-dbid-1e5e8691-3d51-42f9-ab7c-932c4cac6dcf")}catch{}})();n.install=function(e){return e.component(n.name,n),e.component(t.name,t),e}; -//# sourceMappingURL=index.c8ad961f.js.map diff --git a/abstra_statics/dist/assets/index.8c3f27aa.js b/abstra_statics/dist/assets/index.d0f12294.js similarity index 99% rename from abstra_statics/dist/assets/index.8c3f27aa.js rename to abstra_statics/dist/assets/index.d0f12294.js index 7066dfeab8..f39f311867 100644 --- a/abstra_statics/dist/assets/index.8c3f27aa.js +++ b/abstra_statics/dist/assets/index.d0f12294.js @@ -1,4 +1,4 @@ -var nQ=Object.defineProperty;var rQ=(e,t,n)=>t in e?nQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wn=(e,t,n)=>(rQ(e,typeof t!="symbol"?t+"":t,n),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b5e0e302-6dd3-429c-acd9-73337e36dd06",e._sentryDebugIdIdentifier="sentry-dbid-b5e0e302-6dd3-429c-acd9-73337e36dd06")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const L8=Object.prototype.toString;function F8(e){switch(L8.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return $u(e,Error)}}function pf(e,t){return L8.call(e)===`[object ${t}]`}function Xw(e){return pf(e,"ErrorEvent")}function A2(e){return pf(e,"DOMError")}function iQ(e){return pf(e,"DOMException")}function pl(e){return pf(e,"String")}function Jw(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ex(e){return e===null||Jw(e)||typeof e!="object"&&typeof e!="function"}function Op(e){return pf(e,"Object")}function Tb(e){return typeof Event<"u"&&$u(e,Event)}function oQ(e){return typeof Element<"u"&&$u(e,Element)}function aQ(e){return pf(e,"RegExp")}function wb(e){return Boolean(e&&e.then&&typeof e.then=="function")}function sQ(e){return Op(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function lQ(e){return typeof e=="number"&&e!==e}function $u(e,t){try{return e instanceof t}catch{return!1}}function B8(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function sp(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function N2(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rcQ(e,r,n))}function uQ(e,t,n=250,r,i,o,l){if(!o.exception||!o.exception.values||!l||!$u(l.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=dQ(aC(e,t,i,l.originalException,r,o.exception.values,s,0),n))}function aC(e,t,n,r,i,o,l,s){if(o.length>=n+1)return o;let u=[...o];if($u(r[i],Error)){D2(l,s);const a=e(t,r[i]),c=u.length;M2(a,i,c,s),u=aC(e,t,n,r[i],i,[a,...u],a,c)}return Array.isArray(r.errors)&&r.errors.forEach((a,c)=>{if($u(a,Error)){D2(l,s);const d=e(t,a),p=u.length;M2(d,`errors[${c}]`,p,s),u=aC(e,t,n,a,i,[d,...u],d,p)}}),u}function D2(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function M2(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function dQ(e,t){return e.map(n=>(n.value&&(n.value=sp(n.value,t)),n))}function O_(e){return e&&e.Math==Math?e:void 0}const Kn=typeof globalThis=="object"&&O_(globalThis)||typeof window=="object"&&O_(window)||typeof self=="object"&&O_(self)||typeof global=="object"&&O_(global)||function(){return this}()||{};function tx(){return Kn}function U8(e,t,n){const r=n||Kn,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const nx=tx(),pQ=80;function H8(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,l=0;const s=" > ",u=s.length;let a;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||pQ;for(;n&&o++1&&l+i.length*u+a.length>=d));)i.push(a),l+=a.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function fQ(e,t){const n=e,r=[];let i,o,l,s,u;if(!n||!n.tagName)return"";if(nx.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(a&&a.length)a.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&pl(i))for(o=i.split(/\s+/),u=0;u"u"||__SENTRY_DEBUG__,hQ="Sentry Logger ",sC=["debug","info","warn","error","log","assert","trace"],mv={};function Ob(e){if(!("console"in Kn))return e();const t=Kn.console,n={},r=Object.keys(mv);r.forEach(i=>{const o=mv[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function _Q(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Kg?sC.forEach(n=>{t[n]=(...r)=>{e&&Ob(()=>{Kn.console[n](`${hQ}[${n}]:`,...r)})}}):sC.forEach(n=>{t[n]=()=>{}}),t}const zt=_Q(),vQ=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bQ(e){return e==="http"||e==="https"}function Zg(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:l,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${l}`}function SQ(e){const t=vQ.exec(e);if(!t){Ob(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o,l="",s]=t.slice(1);let u="",a=s;const c=a.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),a=c.pop()),a){const d=a.match(/^\d+/);d&&(a=d[0])}return V8({host:o,pass:i,path:u,projectId:a,port:l,protocol:n,publicKey:r})}function V8(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function yQ(e){if(!Kg)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(l=>e[l]?!1:(zt.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:n.match(/^\d+$/)?bQ(r)?t&&isNaN(parseInt(t,10))?(zt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(zt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(zt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function EQ(e){const t=typeof e=="string"?SQ(e):V8(e);if(!(!t||!yQ(t)))return t}class us extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function yi(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&z8(i,r),e[t]=i}function Lu(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Kg&&zt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function z8(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Lu(e,"__sentry_original__",t)}catch{}}function rx(e){return e.__sentry_original__}function CQ(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function G8(e){if(F8(e))return{message:e.message,name:e.name,stack:e.stack,...k2(e)};if(Tb(e)){const t={type:e.type,target:P2(e.target),currentTarget:P2(e.currentTarget),...k2(e)};return typeof CustomEvent<"u"&&$u(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function P2(e){try{return oQ(e)?H8(e):Object.prototype.toString.call(e)}catch{return""}}function k2(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function TQ(e,t=40){const n=Object.keys(G8(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return sp(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:sp(i,t)}return""}function sl(e){return lC(e,new Map)}function lC(e,t){if(wQ(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=lC(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(lC(i,t))}),r}return e}function wQ(e){if(!Op(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const j8=50,$2=/\(error: (.*)\)/,L2=/captureMessage|captureException/;function Y8(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(` +var nQ=Object.defineProperty;var rQ=(e,t,n)=>t in e?nQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wn=(e,t,n)=>(rQ(e,typeof t!="symbol"?t+"":t,n),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a1f0b2ea-ec87-4ebe-854e-21ea2b5aed5b",e._sentryDebugIdIdentifier="sentry-dbid-a1f0b2ea-ec87-4ebe-854e-21ea2b5aed5b")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const L8=Object.prototype.toString;function F8(e){switch(L8.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return $u(e,Error)}}function pf(e,t){return L8.call(e)===`[object ${t}]`}function Xw(e){return pf(e,"ErrorEvent")}function A2(e){return pf(e,"DOMError")}function iQ(e){return pf(e,"DOMException")}function pl(e){return pf(e,"String")}function Jw(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ex(e){return e===null||Jw(e)||typeof e!="object"&&typeof e!="function"}function Op(e){return pf(e,"Object")}function Tb(e){return typeof Event<"u"&&$u(e,Event)}function oQ(e){return typeof Element<"u"&&$u(e,Element)}function aQ(e){return pf(e,"RegExp")}function wb(e){return Boolean(e&&e.then&&typeof e.then=="function")}function sQ(e){return Op(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function lQ(e){return typeof e=="number"&&e!==e}function $u(e,t){try{return e instanceof t}catch{return!1}}function B8(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function sp(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function N2(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rcQ(e,r,n))}function uQ(e,t,n=250,r,i,o,l){if(!o.exception||!o.exception.values||!l||!$u(l.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=dQ(aC(e,t,i,l.originalException,r,o.exception.values,s,0),n))}function aC(e,t,n,r,i,o,l,s){if(o.length>=n+1)return o;let u=[...o];if($u(r[i],Error)){D2(l,s);const a=e(t,r[i]),c=u.length;M2(a,i,c,s),u=aC(e,t,n,r[i],i,[a,...u],a,c)}return Array.isArray(r.errors)&&r.errors.forEach((a,c)=>{if($u(a,Error)){D2(l,s);const d=e(t,a),p=u.length;M2(d,`errors[${c}]`,p,s),u=aC(e,t,n,a,i,[d,...u],d,p)}}),u}function D2(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function M2(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function dQ(e,t){return e.map(n=>(n.value&&(n.value=sp(n.value,t)),n))}function O_(e){return e&&e.Math==Math?e:void 0}const Kn=typeof globalThis=="object"&&O_(globalThis)||typeof window=="object"&&O_(window)||typeof self=="object"&&O_(self)||typeof global=="object"&&O_(global)||function(){return this}()||{};function tx(){return Kn}function U8(e,t,n){const r=n||Kn,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const nx=tx(),pQ=80;function H8(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,l=0;const s=" > ",u=s.length;let a;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||pQ;for(;n&&o++1&&l+i.length*u+a.length>=d));)i.push(a),l+=a.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function fQ(e,t){const n=e,r=[];let i,o,l,s,u;if(!n||!n.tagName)return"";if(nx.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(a&&a.length)a.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&pl(i))for(o=i.split(/\s+/),u=0;u"u"||__SENTRY_DEBUG__,hQ="Sentry Logger ",sC=["debug","info","warn","error","log","assert","trace"],mv={};function Ob(e){if(!("console"in Kn))return e();const t=Kn.console,n={},r=Object.keys(mv);r.forEach(i=>{const o=mv[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function _Q(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Kg?sC.forEach(n=>{t[n]=(...r)=>{e&&Ob(()=>{Kn.console[n](`${hQ}[${n}]:`,...r)})}}):sC.forEach(n=>{t[n]=()=>{}}),t}const zt=_Q(),vQ=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bQ(e){return e==="http"||e==="https"}function Zg(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:l,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${l}`}function SQ(e){const t=vQ.exec(e);if(!t){Ob(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o,l="",s]=t.slice(1);let u="",a=s;const c=a.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),a=c.pop()),a){const d=a.match(/^\d+/);d&&(a=d[0])}return V8({host:o,pass:i,path:u,projectId:a,port:l,protocol:n,publicKey:r})}function V8(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function yQ(e){if(!Kg)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(l=>e[l]?!1:(zt.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:n.match(/^\d+$/)?bQ(r)?t&&isNaN(parseInt(t,10))?(zt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(zt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(zt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function EQ(e){const t=typeof e=="string"?SQ(e):V8(e);if(!(!t||!yQ(t)))return t}class us extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function yi(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&z8(i,r),e[t]=i}function Lu(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Kg&&zt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function z8(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Lu(e,"__sentry_original__",t)}catch{}}function rx(e){return e.__sentry_original__}function CQ(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function G8(e){if(F8(e))return{message:e.message,name:e.name,stack:e.stack,...k2(e)};if(Tb(e)){const t={type:e.type,target:P2(e.target),currentTarget:P2(e.currentTarget),...k2(e)};return typeof CustomEvent<"u"&&$u(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function P2(e){try{return oQ(e)?H8(e):Object.prototype.toString.call(e)}catch{return""}}function k2(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function TQ(e,t=40){const n=Object.keys(G8(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return sp(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:sp(i,t)}return""}function sl(e){return lC(e,new Map)}function lC(e,t){if(wQ(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=lC(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(lC(i,t))}),r}return e}function wQ(e){if(!Op(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const j8=50,$2=/\(error: (.*)\)/,L2=/captureMessage|captureException/;function Y8(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(` `);for(let l=r;l1024)continue;const u=$2.test(s)?s.replace($2,"$1"):s;if(!u.match(/\S*Error: /)){for(const a of t){const c=a(u);if(c){i.push(c);break}}if(i.length>=j8)break}}return OQ(i)}}function xQ(e){return Array.isArray(e)?Y8(...e):e}function OQ(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),L2.test(t[t.length-1].function||"")&&(t.pop(),L2.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,j8).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const TE="";function xc(e){try{return!e||typeof e!="function"?TE:e.name||TE}catch{return TE}}const k0={},F2={};function ed(e,t){k0[e]=k0[e]||[],k0[e].push(t)}function td(e,t){F2[e]||(t(),F2[e]=!0)}function La(e,t){const n=e&&k0[e];if(!!n)for(const r of n)try{r(t)}catch(i){Kg&&zt.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${xc(r)} @@ -42,7 +42,7 @@ Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options Sentry.init({ replaysSessionSampleRate: ${a} })`),this._initialOptions.sessionSampleRate=a),typeof c=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: -Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${dM}`:dM),this._isInitialized&&BD())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return pM}set _isInitialized(t){pM=t}setupOnce(){!BD()||(this._setup(),setTimeout(()=>this._initialize()))}start(){!this._replay||this._replay.start()}startBuffering(){!this._replay||this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){!this._replay||(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=Tle(this._initialOptions);this._replay=new ic({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=Ka().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Zb.__initStatic();function Tle(e){const t=Ka(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...ms(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&og(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(og(()=>{console.warn("SDK client is not available.")}),r)}function fM(e){return[...Cle,...e.map(t=>t.toLowerCase())]}var wle=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};wle.SENTRY_RELEASE={id:"77c1001591fff922ea45dd83d03249c1bc837d9e"};var so=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xle(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ole(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}const Ile=Object.prototype.toString;function Rle(e,t){return Ile.call(e)===`[object ${t}]`}function bF(e){return Rle(e,"Object")}function zx(e){return Boolean(e&&e.then&&typeof e.then=="function")}function W_(e){return e&&e.Math==Math?e:void 0}const pa=typeof globalThis=="object"&&W_(globalThis)||typeof window=="object"&&W_(window)||typeof self=="object"&&W_(self)||typeof global=="object"&&W_(global)||function(){return this}()||{};function SF(e,t,n){const r=n||pa,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Ale=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nle="Sentry Logger ",mM=["debug","info","warn","error","log","assert","trace"],gM={};function uh(e){if(!("console"in pa))return e();const t=pa.console,n={},r=Object.keys(gM);r.forEach(i=>{const o=gM[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Dle(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ale?mM.forEach(n=>{t[n]=(...r)=>{e&&uh(()=>{pa.console[n](`${Nle}[${n}]:`,...r)})}}):mM.forEach(n=>{t[n]=()=>{}}),t}const cl=Dle();function Su(e){return KC(e,new Map)}function KC(e,t){if(Mle(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=KC(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(KC(i,t))}),r}return e}function Mle(e){if(!bF(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function _s(){const e=pa,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function yF(e){return Array.isArray(e)?e:[e]}var Js;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Js||(Js={}));class oc{constructor(t){oc.prototype.__init.call(this),oc.prototype.__init2.call(this),oc.prototype.__init3.call(this),oc.prototype.__init4.call(this),this._state=Js.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new oc((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(l){i(l)}},o=>{if(!n)i(o);else try{r(n(o))}catch(l){i(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new oc((n,r)=>{let i,o;return this.then(l=>{o=!1,i=l,t&&t()},l=>{o=!0,i=l,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Js.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Js.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Js.PENDING){if(zx(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Js.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Js.RESOLVED&&n[1](this._value),this._state===Js.REJECTED&&n[2](this._value),n[0]=!0)})}}}const EF=1e3;function Gx(){return Date.now()/EF}function Ple(){const{performance:e}=pa;if(!e||!e.now)return Gx;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/EF}const jx=Ple();(()=>{const{performance:e}=pa;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i"u"||__SENTRY_DEBUG__,CF="production";function kle(){return SF("globalEventProcessors",()=>[])}function ZC(e,t,n,r=0){return new oc((i,o)=>{const l=e[r];if(t===null||typeof l!="function")i(t);else{const s=l({...t},n);U0&&l.id&&s===null&&cl.log(`Event processor "${l.id}" dropped event`),zx(s)?s.then(u=>ZC(e,u,n,r+1).then(i)).then(null,o):ZC(e,s,n,r+1).then(i).then(null,o)}})}function $le(e){const t=jx(),n={sid:_s(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Fle(n)};return e&&Qb(n,e),n}function Qb(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||jx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:_s()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Lle(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Qb(e,n)}function Fle(e){return Su({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Ble=1;function Ule(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:l,tags:s,origin:u}=ug(e);return Su({data:r,op:i,parent_span_id:o,span_id:t,status:l,tags:s,trace_id:n,origin:u})}function ug(e){return Hle(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Hle(e){return typeof e.getSpanJSON=="function"}function Vle(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Ble)}function zle(e){if(!!e)return Gle(e)?{captureContext:e}:Yle(e)?{captureContext:e}:e}function Gle(e){return e instanceof xu||typeof e=="function"}const jle=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Yle(e){return Object.keys(e).some(t=>jle.includes(t))}function Wle(e,t){return Yx().captureException(e,zle(t))}function TF(){return Yx().getClient()}function qle(){return Yx().getScope()}function wF(e){return e.transaction}function Kle(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},l=Su({environment:r.environment||CF,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function Zle(e){const t=TF();if(!t)return{};const n=Kle(ug(e).trace_id||"",t,qle()),r=wF(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:l}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const s=ug(r);return l&&l!=="url"&&(n.transaction=s.description),n.sampled=String(Vle(r)),t.emit&&t.emit("createDsc",n),n}function Qle(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;Xle(e,t),r&&tce(e,r),nce(e,n),Jle(e,i),ece(e,o)}function Xle(e,t){const{extra:n,tags:r,user:i,contexts:o,level:l,transactionName:s}=t,u=Su(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const a=Su(r);a&&Object.keys(a).length&&(e.tags={...a,...e.tags});const c=Su(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const d=Su(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),l&&(e.level=l),s&&(e.transaction=s)}function Jle(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ece(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function tce(e,t){e.contexts={trace:Ule(t),...e.contexts};const n=wF(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Zle(t),...e.sdkProcessingMetadata};const r=ug(n).description;r&&(e.tags={transaction:r,...e.tags})}}function nce(e,t){e.fingerprint=e.fingerprint?yF(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const rce=100;class xu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=hM()}static clone(t){return t?t.clone():new xu}clone(){const t=new xu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Qb(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof xu){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(bF(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=hM(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:rce;if(r<=0)return this;const i={timestamp:Gx(),...t},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:o,_user:l,_level:s,_fingerprint:u,_eventProcessors:a,_propagationContext:c,_sdkProcessingMetadata:d,_transactionName:p,_span:f}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:o,user:l,level:s,fingerprint:u||[],eventProcessors:a,propagationContext:c,sdkProcessingMetadata:d,transactionName:p,span:f}}applyToEvent(t,n={},r=[]){Qle(t,this.getScopeData());const i=[...r,...kle(),...this._eventProcessors];return ZC(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:_s();if(!this._client)return cl.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:_s();if(!this._client)return cl.warn("No client configured on scope - will not capture message!"),i;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:_s();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(cl.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function hM(){return{traceId:_s(),spanId:_s().substring(16)}}const ice="7.119.2",xF=parseFloat(ice),oce=100;class OF{constructor(t,n,r,i=xF){this._version=i;let o;n?o=n:(o=new xu,o.setClient(t));let l;r?l=r:(l=new xu,l.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=l}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:_s(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:_s(),o=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:_s();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:l=oce}=i.getOptions&&i.getOptions()||{};if(l<=0)return;const u={timestamp:Gx(),...t},a=o?uh(()=>o(u,n)):u;a!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",a,n),r.addBreadcrumb(a,l))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=_M(this);try{t(this)}finally{_M(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return U0&&cl.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return U0&&!r&&(this.getClient()?cl.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${dM}`:dM),this._isInitialized&&BD())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return pM}set _isInitialized(t){pM=t}setupOnce(){!BD()||(this._setup(),setTimeout(()=>this._initialize()))}start(){!this._replay||this._replay.start()}startBuffering(){!this._replay||this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){!this._replay||(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=Tle(this._initialOptions);this._replay=new ic({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=Ka().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Zb.__initStatic();function Tle(e){const t=Ka(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...ms(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&og(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(og(()=>{console.warn("SDK client is not available.")}),r)}function fM(e){return[...Cle,...e.map(t=>t.toLowerCase())]}var wle=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};wle.SENTRY_RELEASE={id:"a6a8f6f37f1ddb4de5f0385bfc54d40c194485e0"};var so=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xle(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ole(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}const Ile=Object.prototype.toString;function Rle(e,t){return Ile.call(e)===`[object ${t}]`}function bF(e){return Rle(e,"Object")}function zx(e){return Boolean(e&&e.then&&typeof e.then=="function")}function W_(e){return e&&e.Math==Math?e:void 0}const pa=typeof globalThis=="object"&&W_(globalThis)||typeof window=="object"&&W_(window)||typeof self=="object"&&W_(self)||typeof global=="object"&&W_(global)||function(){return this}()||{};function SF(e,t,n){const r=n||pa,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Ale=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nle="Sentry Logger ",mM=["debug","info","warn","error","log","assert","trace"],gM={};function uh(e){if(!("console"in pa))return e();const t=pa.console,n={},r=Object.keys(gM);r.forEach(i=>{const o=gM[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Dle(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ale?mM.forEach(n=>{t[n]=(...r)=>{e&&uh(()=>{pa.console[n](`${Nle}[${n}]:`,...r)})}}):mM.forEach(n=>{t[n]=()=>{}}),t}const cl=Dle();function Su(e){return KC(e,new Map)}function KC(e,t){if(Mle(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=KC(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(KC(i,t))}),r}return e}function Mle(e){if(!bF(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function _s(){const e=pa,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function yF(e){return Array.isArray(e)?e:[e]}var Js;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Js||(Js={}));class oc{constructor(t){oc.prototype.__init.call(this),oc.prototype.__init2.call(this),oc.prototype.__init3.call(this),oc.prototype.__init4.call(this),this._state=Js.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new oc((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(l){i(l)}},o=>{if(!n)i(o);else try{r(n(o))}catch(l){i(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new oc((n,r)=>{let i,o;return this.then(l=>{o=!1,i=l,t&&t()},l=>{o=!0,i=l,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Js.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Js.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Js.PENDING){if(zx(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Js.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Js.RESOLVED&&n[1](this._value),this._state===Js.REJECTED&&n[2](this._value),n[0]=!0)})}}}const EF=1e3;function Gx(){return Date.now()/EF}function Ple(){const{performance:e}=pa;if(!e||!e.now)return Gx;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/EF}const jx=Ple();(()=>{const{performance:e}=pa;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i"u"||__SENTRY_DEBUG__,CF="production";function kle(){return SF("globalEventProcessors",()=>[])}function ZC(e,t,n,r=0){return new oc((i,o)=>{const l=e[r];if(t===null||typeof l!="function")i(t);else{const s=l({...t},n);U0&&l.id&&s===null&&cl.log(`Event processor "${l.id}" dropped event`),zx(s)?s.then(u=>ZC(e,u,n,r+1).then(i)).then(null,o):ZC(e,s,n,r+1).then(i).then(null,o)}})}function $le(e){const t=jx(),n={sid:_s(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Fle(n)};return e&&Qb(n,e),n}function Qb(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||jx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:_s()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Lle(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Qb(e,n)}function Fle(e){return Su({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Ble=1;function Ule(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:l,tags:s,origin:u}=ug(e);return Su({data:r,op:i,parent_span_id:o,span_id:t,status:l,tags:s,trace_id:n,origin:u})}function ug(e){return Hle(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Hle(e){return typeof e.getSpanJSON=="function"}function Vle(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Ble)}function zle(e){if(!!e)return Gle(e)?{captureContext:e}:Yle(e)?{captureContext:e}:e}function Gle(e){return e instanceof xu||typeof e=="function"}const jle=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Yle(e){return Object.keys(e).some(t=>jle.includes(t))}function Wle(e,t){return Yx().captureException(e,zle(t))}function TF(){return Yx().getClient()}function qle(){return Yx().getScope()}function wF(e){return e.transaction}function Kle(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},l=Su({environment:r.environment||CF,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function Zle(e){const t=TF();if(!t)return{};const n=Kle(ug(e).trace_id||"",t,qle()),r=wF(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:l}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const s=ug(r);return l&&l!=="url"&&(n.transaction=s.description),n.sampled=String(Vle(r)),t.emit&&t.emit("createDsc",n),n}function Qle(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;Xle(e,t),r&&tce(e,r),nce(e,n),Jle(e,i),ece(e,o)}function Xle(e,t){const{extra:n,tags:r,user:i,contexts:o,level:l,transactionName:s}=t,u=Su(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const a=Su(r);a&&Object.keys(a).length&&(e.tags={...a,...e.tags});const c=Su(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const d=Su(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),l&&(e.level=l),s&&(e.transaction=s)}function Jle(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ece(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function tce(e,t){e.contexts={trace:Ule(t),...e.contexts};const n=wF(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Zle(t),...e.sdkProcessingMetadata};const r=ug(n).description;r&&(e.tags={transaction:r,...e.tags})}}function nce(e,t){e.fingerprint=e.fingerprint?yF(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const rce=100;class xu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=hM()}static clone(t){return t?t.clone():new xu}clone(){const t=new xu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Qb(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof xu){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(bF(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=hM(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:rce;if(r<=0)return this;const i={timestamp:Gx(),...t},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:o,_user:l,_level:s,_fingerprint:u,_eventProcessors:a,_propagationContext:c,_sdkProcessingMetadata:d,_transactionName:p,_span:f}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:o,user:l,level:s,fingerprint:u||[],eventProcessors:a,propagationContext:c,sdkProcessingMetadata:d,transactionName:p,span:f}}applyToEvent(t,n={},r=[]){Qle(t,this.getScopeData());const i=[...r,...kle(),...this._eventProcessors];return ZC(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:_s();if(!this._client)return cl.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:_s();if(!this._client)return cl.warn("No client configured on scope - will not capture message!"),i;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:_s();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(cl.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function hM(){return{traceId:_s(),spanId:_s().substring(16)}}const ice="7.119.2",xF=parseFloat(ice),oce=100;class OF{constructor(t,n,r,i=xF){this._version=i;let o;n?o=n:(o=new xu,o.setClient(t));let l;r?l=r:(l=new xu,l.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=l}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:_s(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:_s(),o=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:_s();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:l=oce}=i.getOptions&&i.getOptions()||{};if(l<=0)return;const u={timestamp:Gx(),...t},a=o?uh(()=>o(u,n)):u;a!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",a,n),r.addBreadcrumb(a,l))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=_M(this);try{t(this)}finally{_M(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return U0&&cl.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return U0&&!r&&(this.getClient()?cl.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):cl.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Lle(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=CF}=r&&r.getOptions()||{},{userAgent:l}=pa.navigator||{},s=$le({release:i,environment:o,user:n.getUser(),...l&&{userAgent:l},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&Qb(u,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=Xb().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);U0&&cl.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Xb(){return pa.__SENTRY__=pa.__SENTRY__||{extensions:{},hub:void 0},pa}function _M(e){const t=Xb(),n=QC(t);return IF(t,e),n}function Yx(){const e=Xb();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return ace(e)}function ace(e=Xb()){return(!sce(e)||QC(e).isOlderThan(xF))&&IF(e,new OF),QC(e)}function sce(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function QC(e){return SF("hub",()=>new OF,e)}function IF(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function lce(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=TF(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const H0="sentry.source",XC="sentry.origin";function cce(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}const RF=["activate","mount","update"],uce=/(?:^|[-_])(\w)/g,dce=e=>e.replace(uce,t=>t.toUpperCase()).replace(/[-_]/g,""),pce="",UE="",fce=(e,t)=>e.repeat?e.repeat(t):e,Mm=(e,t)=>{if(!e)return UE;if(e.$root===e)return pce;if(!e.$options)return UE;const n=e.$options;let r=n.name||n._componentTag;const i=n.__file;if(!r&&i){const o=i.match(/([^/\\]+)\.vue$/);o&&(r=o[1])}return(r?`<${dce(r)}>`:UE)+(i&&t!==!1?` at ${i}`:"")},mce=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return` @@ -52,7 +52,7 @@ found in ${t.map((i,o)=>`${(o===0?"---> ":fce(" ",5+o*2))+(Array.isArray(i)?`${Mm(i[0])}... (${i[1]} recursive calls)`:Mm(i))}`).join(` `)}`}return` -(found in ${Mm(e)})`},gce=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(o,l,s)=>{const u=Mm(l,!1),a=l?mce(l):"",c={componentName:u,lifecycleHook:s,trace:a};if(t.attachProps&&l&&(l.$options&&l.$options.propsData?c.propsData=l.$options.propsData:l.$props&&(c.propsData=l.$props)),setTimeout(()=>{Wle(o,{captureContext:{contexts:{vue:c}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,o,l,s),t.logErrors){const d=typeof console<"u",p=`Error in ${s}: "${o&&o.toString()}"`;r?r.call(null,p,l,a):d&&!i&&uh(()=>{console.error(`[Vue warn]: ${p}${a}`)})}}},hce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vM="ui.vue",_ce={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function vce(){return $c().getTransaction()}function bce(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const Sce=e=>{const t=(e.hooks||[]).concat(RF).filter((r,i,o)=>o.indexOf(r)===i),n={};for(const r of t){const i=_ce[r];if(!i){hce&&cl.warn(`Unknown hook: ${r}`);continue}for(const o of i)n[o]=function(){const l=this.$root===this;l&&vC()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||X2({name:"Application Render",op:`${vM}.render`,origin:"auto.ui.vue"}));const s=Mm(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;if(!(!l&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},o==i[0]){if(this.$root&&this.$root.$_sentryRootSpan||vC()){const c=this.$_sentrySpans[r];c&&c.end(),this.$_sentrySpans[r]=X2({name:`Vue <${s}>`,op:`${vM}.${r}`,origin:"auto.ui.vue"})}}else{const a=this.$_sentrySpans[r];if(!a)return;a.end(),bce(this,jx(),e.timeout)}}}return n},yce=pa,Ece={Vue:yce.Vue,attachProps:!0,logErrors:!0,hooks:RF,timeout:2e3,trackComponents:!1},AF="Vue",Cce=(e={})=>({name:AF,setupOnce(){},setup(t){Tce(t,e)}}),NF=Cce;cce(AF,NF);function Tce(e,t){const n={...Ece,...e.getOptions(),...t};if(!n.Vue&&!n.app){uh(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?yF(n.app).forEach(i=>bM(i,n)):n.Vue&&bM(n.Vue,n)}const bM=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&uh(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),gce(e,t),lce(t)&&e.mixin(Sce({...t,...t.tracingOptions}))};function wce(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:ig}],version:ig}},defaultIntegrations:[...v3(),NF()],...e};pre(t)}function xce(e,t={}){return(n,r=!0,i=!0)=>{r&&Wn&&Wn.location&&n({name:Wn.location.pathname,op:"pageload",attributes:{[XC]:"auto.pageload.vue",[H0]:"url"}}),Oce(e,{routeLabel:t.routeLabel||"name",instrumentNavigation:i,instrumentPageLoad:r},n)}}function Oce(e,t,n){e.onError(r=>r6(r,{mechanism:{handled:!1}})),e.beforeEach((r,i,o)=>{const l=i.name==null&&i.matched.length===0,s={[XC]:"auto.navigation.vue"};for(const c of Object.keys(r.params))s[`params.${c}`]=r.params[c];for(const c of Object.keys(r.query)){const d=r.query[c];d&&(s[`query.${c}`]=d)}let u=r.path,a="url";if(r.name&&t.routeLabel!=="path"?(u=r.name.toString(),a="custom"):r.matched[0]&&r.matched[0].path&&(u=r.matched[0].path,a="route"),t.instrumentPageLoad&&l){const c=vce();c&&((ug(c).data||{})[H0]!=="custom"&&(c.updateName(u),c.setAttribute(H0,a)),c.setAttributes({...s,[XC]:"auto.pageload.vue"}))}t.instrumentNavigation&&!l&&(s[H0]=a,n({name:u,op:"navigation",attributes:s})),o&&o()})}const yXe=(e,t)=>{wce({app:e,dsn:"https://92a7a6b6bf4d455dab113338d8518956@o1317386.ingest.sentry.io/6570769",replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new nne({routingInstrumentation:xce(t)}),new Zb],enabled:!0,tracesSampleRate:1,release:"77c1001591fff922ea45dd83d03249c1bc837d9e"})},EXe=(e,t)=>{Object.keys(t).forEach(n=>{e.component(n,t[n])})},aa=class{static init(){aa.createContainer(),aa.addStylesheetToDocument()}static createContainer(){aa.toastContainer=document.createElement("div"),Object.assign(aa.toastContainer.style,Ice),document.body.appendChild(aa.toastContainer)}static addStylesheetToDocument(){const t=document.createElement("style");t.innerHTML=Rce,document.head.appendChild(t)}static info(t,n=1e4){aa.showMessage(t,n)}static error(t,n=1e4){aa.showMessage(t,n,{"background-color":"#ffaaaa","font-family":"monospace",color:"#000000"})}static showMessage(t,n,r={}){if(!aa.toastContainer)throw new Error("Toast not initialized");if(!t.trim())return;const i=aa.makeToastMessageElement(t);Object.assign(i.style,r),aa.toastContainer.appendChild(i),setTimeout(()=>i.remove(),n)}static makeToastMessageElement(t){const n=document.createElement("div");return n.innerHTML=t,n.classList.add("abstra-toast-message"),n.onclick=n.remove,n}};let HE=aa;wn(HE,"toastContainer",null);const Ice={position:"fixed",bottom:"10px",right:"0",left:"0",display:"flex",flexDirection:"column",alignItems:"center"},Rce=` +(found in ${Mm(e)})`},gce=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(o,l,s)=>{const u=Mm(l,!1),a=l?mce(l):"",c={componentName:u,lifecycleHook:s,trace:a};if(t.attachProps&&l&&(l.$options&&l.$options.propsData?c.propsData=l.$options.propsData:l.$props&&(c.propsData=l.$props)),setTimeout(()=>{Wle(o,{captureContext:{contexts:{vue:c}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,o,l,s),t.logErrors){const d=typeof console<"u",p=`Error in ${s}: "${o&&o.toString()}"`;r?r.call(null,p,l,a):d&&!i&&uh(()=>{console.error(`[Vue warn]: ${p}${a}`)})}}},hce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vM="ui.vue",_ce={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function vce(){return $c().getTransaction()}function bce(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const Sce=e=>{const t=(e.hooks||[]).concat(RF).filter((r,i,o)=>o.indexOf(r)===i),n={};for(const r of t){const i=_ce[r];if(!i){hce&&cl.warn(`Unknown hook: ${r}`);continue}for(const o of i)n[o]=function(){const l=this.$root===this;l&&vC()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||X2({name:"Application Render",op:`${vM}.render`,origin:"auto.ui.vue"}));const s=Mm(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;if(!(!l&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},o==i[0]){if(this.$root&&this.$root.$_sentryRootSpan||vC()){const c=this.$_sentrySpans[r];c&&c.end(),this.$_sentrySpans[r]=X2({name:`Vue <${s}>`,op:`${vM}.${r}`,origin:"auto.ui.vue"})}}else{const a=this.$_sentrySpans[r];if(!a)return;a.end(),bce(this,jx(),e.timeout)}}}return n},yce=pa,Ece={Vue:yce.Vue,attachProps:!0,logErrors:!0,hooks:RF,timeout:2e3,trackComponents:!1},AF="Vue",Cce=(e={})=>({name:AF,setupOnce(){},setup(t){Tce(t,e)}}),NF=Cce;cce(AF,NF);function Tce(e,t){const n={...Ece,...e.getOptions(),...t};if(!n.Vue&&!n.app){uh(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?yF(n.app).forEach(i=>bM(i,n)):n.Vue&&bM(n.Vue,n)}const bM=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&uh(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),gce(e,t),lce(t)&&e.mixin(Sce({...t,...t.tracingOptions}))};function wce(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:ig}],version:ig}},defaultIntegrations:[...v3(),NF()],...e};pre(t)}function xce(e,t={}){return(n,r=!0,i=!0)=>{r&&Wn&&Wn.location&&n({name:Wn.location.pathname,op:"pageload",attributes:{[XC]:"auto.pageload.vue",[H0]:"url"}}),Oce(e,{routeLabel:t.routeLabel||"name",instrumentNavigation:i,instrumentPageLoad:r},n)}}function Oce(e,t,n){e.onError(r=>r6(r,{mechanism:{handled:!1}})),e.beforeEach((r,i,o)=>{const l=i.name==null&&i.matched.length===0,s={[XC]:"auto.navigation.vue"};for(const c of Object.keys(r.params))s[`params.${c}`]=r.params[c];for(const c of Object.keys(r.query)){const d=r.query[c];d&&(s[`query.${c}`]=d)}let u=r.path,a="url";if(r.name&&t.routeLabel!=="path"?(u=r.name.toString(),a="custom"):r.matched[0]&&r.matched[0].path&&(u=r.matched[0].path,a="route"),t.instrumentPageLoad&&l){const c=vce();c&&((ug(c).data||{})[H0]!=="custom"&&(c.updateName(u),c.setAttribute(H0,a)),c.setAttributes({...s,[XC]:"auto.pageload.vue"}))}t.instrumentNavigation&&!l&&(s[H0]=a,n({name:u,op:"navigation",attributes:s})),o&&o()})}const yXe=(e,t)=>{wce({app:e,dsn:"https://92a7a6b6bf4d455dab113338d8518956@o1317386.ingest.sentry.io/6570769",replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new nne({routingInstrumentation:xce(t)}),new Zb],enabled:!0,tracesSampleRate:1,release:"a6a8f6f37f1ddb4de5f0385bfc54d40c194485e0"})},EXe=(e,t)=>{Object.keys(t).forEach(n=>{e.component(n,t[n])})},aa=class{static init(){aa.createContainer(),aa.addStylesheetToDocument()}static createContainer(){aa.toastContainer=document.createElement("div"),Object.assign(aa.toastContainer.style,Ice),document.body.appendChild(aa.toastContainer)}static addStylesheetToDocument(){const t=document.createElement("style");t.innerHTML=Rce,document.head.appendChild(t)}static info(t,n=1e4){aa.showMessage(t,n)}static error(t,n=1e4){aa.showMessage(t,n,{"background-color":"#ffaaaa","font-family":"monospace",color:"#000000"})}static showMessage(t,n,r={}){if(!aa.toastContainer)throw new Error("Toast not initialized");if(!t.trim())return;const i=aa.makeToastMessageElement(t);Object.assign(i.style,r),aa.toastContainer.appendChild(i),setTimeout(()=>i.remove(),n)}static makeToastMessageElement(t){const n=document.createElement("div");return n.innerHTML=t,n.classList.add("abstra-toast-message"),n.onclick=n.remove,n}};let HE=aa;wn(HE,"toastContainer",null);const Ice={position:"fixed",bottom:"10px",right:"0",left:"0",display:"flex",flexDirection:"column",alignItems:"center"},Rce=` .abstra-toast-message { padding: 15px; margin-top: 5px; @@ -559,7 +559,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{color:e.colorTextDisabled}}}}}},R8e=I8e,A8e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:i,lineHeight:o}=e,l=`${t}-list-item`,s=`${l}-actions`,u=`${l}-action`,a=Math.round(i*o);return{[`${t}-wrapper`]:{[`${t}-list`]:I(I({},Yu()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*i,marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:I(I({},El),{padding:`0 ${e.paddingXS}px`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{[u]:{opacity:0},[`${u}${n}-btn-sm`]:{height:a,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${u}:focus, &.picture ${u} - `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:i+e.paddingXS,fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${u}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},N8e=A8e,H4=new Yt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),V4=new Yt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),D8e=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:H4},[`${n}-leave`]:{animationName:V4}}},H4,V4]},M8e=D8e,P8e=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i}=e,o=`${t}-list`,l=`${o}-item`;return{[`${t}-wrapper`]:{[`${o}${o}-picture, ${o}${o}-picture-card`]:{[l]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:I(I({},El),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:i,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{["svg path[fill='#e6f7ff']"]:{fill:e.colorErrorBg},["svg path[fill='#1890ff']"]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:i}}}}}},k8e=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i}=e,o=`${t}-list`,l=`${o}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:I(I({},Yu()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card`]:{[`${o}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Cn(i).setAlpha(.65).toRgbString(),"&:hover":{color:i}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},$8e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},L8e=$8e,F8e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:I(I({},Pn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},B8e=Ln("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightLG:o}=e,l=Math.round(n*r),s=Wt(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+i,uploadPicCardSize:o*2.55});return[F8e(s),R8e(s),P8e(s),k8e(s),N8e(s),M8e(s),L8e(s),jS(s)]});var U8e=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function s(c){try{a(r.next(c))}catch(d){l(d)}}function u(c){try{a(r.throw(c))}catch(d){l(d)}}function a(c){c.done?o(c.value):i(c.value).then(s,u)}a((r=r.apply(e,t||[])).next())})},H8e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var D;return(D=u.value)!==null&&D!==void 0?D:d.value}),[f,g]=ti(e.defaultFileList||[],{value:xt(e,"fileList"),postState:D=>{const B=Date.now();return(D!=null?D:[]).map((P,$)=>(!P.uid&&!Object.isFrozen(P)&&(P.uid=`__AUTO__${B}_${$}__`),P))}}),m=Ie("drop"),h=Ie(null);_t(()=>{Br(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Br(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Br(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const v=(D,B,P)=>{var $,M;let L=[...B];e.maxCount===1?L=L.slice(-1):e.maxCount&&(L=L.slice(0,e.maxCount)),g(L);const H={file:D,fileList:L};P&&(H.event=P),($=e["onUpdate:fileList"])===null||$===void 0||$.call(e,H.fileList),(M=e.onChange)===null||M===void 0||M.call(e,H),o.onFieldChange()},b=(D,B)=>U8e(this,void 0,void 0,function*(){const{beforeUpload:P,transformFile:$}=e;let M=D;if(P){const L=yield P(D,B);if(L===!1)return!1;if(delete D[xm],L===xm)return Object.defineProperty(D,xm,{value:!0,configurable:!0}),!1;typeof L=="object"&&L&&(M=L)}return $&&(M=yield $(M)),M}),S=D=>{const B=D.filter(M=>!M.file[xm]);if(!B.length)return;const P=B.map(M=>D0(M.file));let $=[...f.value];P.forEach(M=>{$=M0(M,$)}),P.forEach((M,L)=>{let H=M;if(B[L].parsedFile)M.status="uploading";else{const{originFileObj:U}=M;let j;try{j=new File([U],U.name,{type:U.type})}catch{j=new Blob([U],{type:U.type}),j.name=U.name,j.lastModifiedDate=new Date,j.lastModified=new Date().getTime()}j.uid=M.uid,H=j}v(H,$)})},y=(D,B,P)=>{try{typeof D=="string"&&(D=JSON.parse(D))}catch{}if(!Z1(B,f.value))return;const $=D0(B);$.status="done",$.percent=100,$.response=D,$.xhr=P;const M=M0($,f.value);v($,M)},C=(D,B)=>{if(!Z1(B,f.value))return;const P=D0(B);P.status="uploading",P.percent=D.percent;const $=M0(P,f.value);v(P,$,D)},w=(D,B,P)=>{if(!Z1(P,f.value))return;const $=D0(P);$.error=D,$.response=B,$.status="error";const M=M0($,f.value);v($,M)},T=D=>{let B;const P=e.onRemove||e.remove;Promise.resolve(typeof P=="function"?P(D):P).then($=>{var M,L;if($===!1)return;const H=h8e(D,f.value);H&&(B=I(I({},D),{status:"removed"}),(M=f.value)===null||M===void 0||M.forEach(U=>{const j=B.uid!==void 0?"uid":"name";U[j]===B[j]&&!Object.isFrozen(U)&&(U.status="removed")}),(L=h.value)===null||L===void 0||L.abort(B),v(B,H))})},O=D=>{var B;m.value=D.type,D.type==="drop"&&((B=e.onDrop)===null||B===void 0||B.call(e,D))};i({onBatchStart:S,onSuccess:y,onProgress:C,onError:w,fileList:f,upload:h});const[R]=Za("Upload",ga.Upload,k(()=>e.locale)),N=(D,B)=>{const{removeIcon:P,previewIcon:$,downloadIcon:M,previewFile:L,onPreview:H,onDownload:U,isImageUrl:j,progress:G,itemRender:K,iconRender:Q,showUploadList:ne}=e,{showDownloadIcon:ae,showPreviewIcon:q,showRemoveIcon:ee}=typeof ne=="boolean"?{}:ne;return ne?x(O8e,{prefixCls:l.value,listType:e.listType,items:f.value,previewFile:L,onPreview:H,onDownload:U,onRemove:T,showRemoveIcon:!p.value&&ee,showPreviewIcon:q,showDownloadIcon:ae,removeIcon:P,previewIcon:$,downloadIcon:M,iconRender:Q,locale:R.value,isImageUrl:j,progress:G,itemRender:K,appendActionVisible:B,appendAction:D},I({},n)):D==null?void 0:D()};return()=>{var D,B,P;const{listType:$,type:M}=e,{class:L,style:H}=r,U=H8e(r,["class","style"]),j=I(I(I({onBatchStart:S,onError:w,onProgress:C,onSuccess:y},U),e),{id:(D=e.id)!==null&&D!==void 0?D:o.id.value,prefixCls:l.value,beforeUpload:b,onChange:void 0,disabled:p.value});delete j.remove,(!n.default||p.value)&&delete j.id;const G={[`${l.value}-rtl`]:s.value==="rtl"};if(M==="drag"){const ae=Fe(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:f.value.some(q=>q.status==="uploading"),[`${l.value}-drag-hover`]:m.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"},r.class,c.value);return a(x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,L,c.value)}),[x("div",{class:ae,onDrop:O,onDragover:O,onDragleave:O,style:r.style},[x($4,Z(Z({},j),{},{ref:h,class:`${l.value}-btn`}),Z({default:()=>[x("div",{class:`${l.value}-drag-container`},[(B=n.default)===null||B===void 0?void 0:B.call(n)])]},n))]),N()]))}const K=Fe(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${$}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"}),Q=li((P=n.default)===null||P===void 0?void 0:P.call(n)),ne=ae=>x("div",{class:K,style:ae},[x($4,Z(Z({},j),{},{ref:h}),n)]);return a($==="picture-card"?x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,G,r.class,c.value)}),[N(ne,!!(Q&&Q.length))]):x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,r.class,c.value)}),[ne(Q&&Q.length?void 0:{display:"none"}),N()]))}}});var z4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{height:i}=e,o=z4(e,["height"]),{style:l}=r,s=z4(r,["style"]),u=I(I(I({},o),s),{type:"drag",style:I(I({},l),{height:typeof i=="number"?`${i}px`:i})});return x(cv,u,n)}}}),V8e=uv,OG=I(cv,{Dragger:uv,LIST_IGNORE:xm,install(e){return e.component(cv.name,cv),e.component(uv.name,uv),e}});var z8e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:n}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:t}}]}},name:"close-circle",theme:"twotone"};const G8e=z8e;var j8e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:n}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:t}}]}},name:"edit",theme:"twotone"};const Y8e=j8e;var W8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const q8e=W8e;var K8e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const Z8e=K8e,IG=["wrap","nowrap","wrap-reverse"],RG=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],AG=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Q8e=(e,t)=>{const n={};return IG.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},X8e=(e,t)=>{const n={};return AG.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},J8e=(e,t)=>{const n={};return RG.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function e6e(e,t){return Fe(I(I(I({},Q8e(e,t)),X8e(e,t)),J8e(e,t)))}const t6e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},n6e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},r6e=e=>{const{componentCls:t}=e,n={};return IG.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},i6e=e=>{const{componentCls:t}=e,n={};return AG.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},o6e=e=>{const{componentCls:t}=e,n={};return RG.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},a6e=Ln("Flex",e=>{const t=Wt(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[t6e(t),n6e(t),r6e(t),i6e(t),o6e(t)]});function G4(e){return["small","middle","large"].includes(e)}const s6e=()=>({prefixCls:Bt(),vertical:nt(),wrap:Bt(),justify:Bt(),align:Bt(),flex:rn([Number,String]),gap:rn([Number,String]),component:wr()});var l6e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var c;return[l.value,u.value,e6e(l.value,e),{[`${l.value}-rtl`]:o.value==="rtl",[`${l.value}-gap-${e.gap}`]:G4(e.gap),[`${l.value}-vertical`]:(c=e.vertical)!==null&&c!==void 0?c:i==null?void 0:i.value.vertical}]});return()=>{var c;const{flex:d,gap:p,component:f="div"}=e,g=l6e(e,["flex","gap","component"]),m={};return d&&(m.flex=d),p&&!G4(p)&&(m.gap=`${p}px`),s(x(f,Z({class:[r.class,a.value],style:[r.style,m]},kn(g,["justify","wrap","align","vertical"])),{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}))}}}),u6e=ba(c6e),d6e=["width","height","fill","transform"],p6e={key:0},f6e=Ce("path",{d:"M204.41,51.63a108,108,0,1,0,0,152.74A107.38,107.38,0,0,0,204.41,51.63Zm-17,17A83.85,83.85,0,0,1,196.26,79L169,111.09l-23.3-65.21A83.52,83.52,0,0,1,187.43,68.6Zm-118.85,0a83.44,83.44,0,0,1,51.11-24.2l14.16,39.65L65.71,71.61C66.64,70.59,67.59,69.59,68.58,68.6ZM48,153.7a84.48,84.48,0,0,1,3.4-60.3L92.84,101Zm20.55,33.7A83.94,83.94,0,0,1,59.74,177L87,144.91l23.3,65.21A83.53,83.53,0,0,1,68.58,187.4Zm36.36-63.61,15.18-17.85,23.06,4.21,7.88,22.06-15.17,17.85-23.06-4.21Zm82.49,63.61a83.49,83.49,0,0,1-51.11,24.2L122.15,172l68.14,12.44C189.36,185.41,188.41,186.41,187.43,187.4ZM163.16,155,208,102.3a84.43,84.43,0,0,1-3.41,60.3Z"},null,-1),m6e=[f6e],g6e={key:1},h6e=Ce("path",{d:"M195.88,60.12a96,96,0,1,0,0,135.76A96,96,0,0,0,195.88,60.12Zm-55.34,103h0l-36.68-6.69h0L91.32,121.3l24.14-28.41h0l36.68,6.69,12.54,35.12Z",opacity:"0.2"},null,-1),_6e=Ce("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),v6e=[h6e,_6e],b6e={key:2},S6e=Ce("path",{d:"M232,128A104,104,0,0,0,54.46,54.46,104,104,0,0,0,128,232h.09A104,104,0,0,0,232,128ZM49.18,88.92l51.21,9.35L46.65,161.53A88.39,88.39,0,0,1,49.18,88.92Zm160.17,5.54a88.41,88.41,0,0,1-2.53,72.62l-51.21-9.35Zm-8.08-15.2L167.55,119,139.63,40.78a87.38,87.38,0,0,1,50.6,25A88.74,88.74,0,0,1,201.27,79.26ZM122.43,40.19l17.51,49L58.3,74.32a89.28,89.28,0,0,1,7.47-8.55A87.37,87.37,0,0,1,122.43,40.19ZM54.73,176.74,88.45,137l27.92,78.18a88,88,0,0,1-61.64-38.48Zm78.84,39.06-17.51-49L139.14,171h0l58.52,10.69a87.5,87.5,0,0,1-64.13,34.12Z"},null,-1),y6e=[S6e],E6e={key:3},C6e=Ce("path",{d:"M200.12,55.88A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.88Zm-102,66.67,19.65-23.14,29.86,5.46,10.21,28.58-19.65,23.14-29.86-5.46ZM209.93,90.69a90.24,90.24,0,0,1-2,78.63l-56.14-10.24Zm-6.16-11.28-36.94,43.48L136.66,38.42a89.31,89.31,0,0,1,55,25.94A91.33,91.33,0,0,1,203.77,79.41Zm-139.41-15A89.37,89.37,0,0,1,123.81,38.1L143,91.82,54.75,75.71A91.2,91.2,0,0,1,64.36,64.36ZM48,86.68l56.14,10.24L46.07,165.31a90.24,90.24,0,0,1,2-78.63Zm4.21,89.91,36.94-43.48,30.17,84.47a89.31,89.31,0,0,1-55-25.94A91.33,91.33,0,0,1,52.23,176.59Zm139.41,15a89.32,89.32,0,0,1-59.45,26.26L113,164.18l88.24,16.11A91.2,91.2,0,0,1,191.64,191.64Z"},null,-1),T6e=[C6e],w6e={key:4},x6e=Ce("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),O6e=[x6e],I6e={key:5},R6e=Ce("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm10.37,114.27-61-11.14L210.4,87a92.26,92.26,0,0,1-1.32,84.52ZM95.87,122.13,117,97.24l32.14,5.86,11,30.77L139,158.76l-32.14-5.86ZM206.24,79.58l-40.13,47.25L133.75,36.2a92.09,92.09,0,0,1,72.49,43.38ZM63,63a91.31,91.31,0,0,1,62.26-26.88L146,94.41,51.32,77.11A92.94,92.94,0,0,1,63,63Zm-16,21.49,61,11.14L45.6,169a92.26,92.26,0,0,1,1.32-84.52Zm2.84,92,40.13-47.25,32.36,90.63a92.09,92.09,0,0,1-72.49-43.38Zm143.29,16.63a91.31,91.31,0,0,1-62.26,26.88L110,161.59l94.72,17.3A92.94,92.94,0,0,1,193.05,193.05Z"},null,-1),A6e=[R6e],N6e={name:"PhAperture"},D6e=we({...N6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",p6e,m6e)):l.value==="duotone"?(oe(),de("g",g6e,v6e)):l.value==="fill"?(oe(),de("g",b6e,y6e)):l.value==="light"?(oe(),de("g",E6e,T6e)):l.value==="regular"?(oe(),de("g",w6e,O6e)):l.value==="thin"?(oe(),de("g",I6e,A6e)):ft("",!0)],16,d6e))}}),M6e=["width","height","fill","transform"],P6e={key:0},k6e=Ce("path",{d:"M47.51,112.49a12,12,0,0,1,17-17L116,147V32a12,12,0,0,1,24,0V147l51.51-51.52a12,12,0,0,1,17,17l-72,72a12,12,0,0,1-17,0ZM216,204H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),$6e=[k6e],L6e={key:1},F6e=Ce("path",{d:"M200,112l-72,72L56,112Z",opacity:"0.2"},null,-1),B6e=Ce("path",{d:"M122.34,189.66a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,200,104H136V32a8,8,0,0,0-16,0v72H56a8,8,0,0,0-5.66,13.66ZM180.69,120,128,172.69,75.31,120ZM224,216a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,216Z"},null,-1),U6e=[F6e,B6e],H6e={key:2},V6e=Ce("path",{d:"M50.34,117.66A8,8,0,0,1,56,104h64V32a8,8,0,0,1,16,0v72h64a8,8,0,0,1,5.66,13.66l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),z6e=[V6e],G6e={key:3},j6e=Ce("path",{d:"M51.76,116.24a6,6,0,0,1,8.48-8.48L122,169.51V32a6,6,0,0,1,12,0V169.51l61.76-61.75a6,6,0,0,1,8.48,8.48l-72,72a6,6,0,0,1-8.48,0ZM216,210H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),Y6e=[j6e],W6e={key:4},q6e=Ce("path",{d:"M50.34,117.66a8,8,0,0,1,11.32-11.32L120,164.69V32a8,8,0,0,1,16,0V164.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),K6e=[q6e],Z6e={key:5},Q6e=Ce("path",{d:"M53.17,114.83a4,4,0,0,1,5.66-5.66L124,174.34V32a4,4,0,0,1,8,0V174.34l65.17-65.17a4,4,0,1,1,5.66,5.66l-72,72a4,4,0,0,1-5.66,0ZM216,212H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),X6e=[Q6e],J6e={name:"PhArrowLineDown"},e3e=we({...J6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",P6e,$6e)):l.value==="duotone"?(oe(),de("g",L6e,U6e)):l.value==="fill"?(oe(),de("g",H6e,z6e)):l.value==="light"?(oe(),de("g",G6e,Y6e)):l.value==="regular"?(oe(),de("g",W6e,K6e)):l.value==="thin"?(oe(),de("g",Z6e,X6e)):ft("",!0)],16,M6e))}}),t3e=["width","height","fill","transform"],n3e={key:0},r3e=Ce("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"},null,-1),i3e=[r3e],o3e={key:1},a3e=Ce("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"},null,-1),s3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),l3e=[a3e,s3e],c3e={key:2},u3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"},null,-1),d3e=[u3e],p3e={key:3},f3e=Ce("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"},null,-1),m3e=[f3e],g3e={key:4},h3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),_3e=[h3e],v3e={key:5},b3e=Ce("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"},null,-1),S3e=[b3e],y3e={name:"PhCamera"},E3e=we({...y3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",n3e,i3e)):l.value==="duotone"?(oe(),de("g",o3e,l3e)):l.value==="fill"?(oe(),de("g",c3e,d3e)):l.value==="light"?(oe(),de("g",p3e,m3e)):l.value==="regular"?(oe(),de("g",g3e,_3e)):l.value==="thin"?(oe(),de("g",v3e,S3e)):ft("",!0)],16,t3e))}}),C3e=["width","height","fill","transform"],T3e={key:0},w3e=Ce("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4Zm-32-92v20a12,12,0,0,1-12,12H148a12,12,0,0,1-7.76-21.14,28.07,28.07,0,0,0-29,2.73A12,12,0,0,1,96.79,94.4a52.28,52.28,0,0,1,61.14-.91A12,12,0,0,1,180,100Zm-18.41,52.8a12,12,0,0,1-2.38,16.8,51.71,51.71,0,0,1-31.13,10.34,52.3,52.3,0,0,1-30-9.44A12,12,0,0,1,76,164V144a12,12,0,0,1,12-12h20a12,12,0,0,1,7.76,21.14,28.07,28.07,0,0,0,29-2.73A12,12,0,0,1,161.59,152.8Z"},null,-1),x3e=[w3e],O3e={key:1},I3e=Ce("path",{d:"M224,80V192a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64H80L96,40h64l16,24h32A16,16,0,0,1,224,80Z",opacity:"0.2"},null,-1),R3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),A3e=[I3e,R3e],N3e={key:2},D3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56ZM156.81,166.4A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61,8,8,0,0,1,9.62,12.79ZM176,120a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Z"},null,-1),M3e=[D3e],P3e={key:3},k3e=Ce("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM174,96v24a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h10l-2-2.09a34.12,34.12,0,0,0-44.38-3.12,6,6,0,1,1-7.22-9.59,46.2,46.2,0,0,1,60.14,4.27.47.47,0,0,0,.1.1L162,105V96a6,6,0,0,1,12,0Zm-17.2,60.4a6,6,0,0,1-1.19,8.4,46.18,46.18,0,0,1-60.14-4.27l-.1-.1L94,159v9a6,6,0,0,1-12,0V144a6,6,0,0,1,6-6h24a6,6,0,0,1,0,12H102l2,2.09a34.12,34.12,0,0,0,44.38,3.12A6,6,0,0,1,156.8,156.4Z"},null,-1),$3e=[k3e],L3e={key:4},F3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),B3e=[F3e],U3e={key:5},H3e=Ce("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM172,96v24a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h14.66l-5.27-5.52a36.12,36.12,0,0,0-47-3.29,4,4,0,1,1-4.8-6.39,44.17,44.17,0,0,1,57.51,4.09L164,110V96a4,4,0,0,1,8,0Zm-16.8,61.6a4,4,0,0,1-.8,5.6,44.15,44.15,0,0,1-57.51-4.09L92,154v14a4,4,0,0,1-8,0V144a4,4,0,0,1,4-4h24a4,4,0,0,1,0,8H97.34l5.27,5.52a36.12,36.12,0,0,0,47,3.29A4,4,0,0,1,155.2,157.6Z"},null,-1),V3e=[H3e],z3e={name:"PhCameraRotate"},G3e=we({...z3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",T3e,x3e)):l.value==="duotone"?(oe(),de("g",O3e,A3e)):l.value==="fill"?(oe(),de("g",N3e,M3e)):l.value==="light"?(oe(),de("g",P3e,$3e)):l.value==="regular"?(oe(),de("g",L3e,B3e)):l.value==="thin"?(oe(),de("g",U3e,V3e)):ft("",!0)],16,C3e))}}),j3e=["width","height","fill","transform"],Y3e={key:0},W3e=Ce("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"},null,-1),q3e=[W3e],K3e={key:1},Z3e=Ce("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"},null,-1),Q3e=Ce("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),X3e=[Z3e,Q3e],J3e={key:2},eFe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),tFe=[eFe],nFe={key:3},rFe=Ce("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"},null,-1),iFe=[rFe],oFe={key:4},aFe=Ce("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1),sFe=[aFe],lFe={key:5},cFe=Ce("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"},null,-1),uFe=[cFe],dFe={name:"PhCheck"},pFe=we({...dFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",Y3e,q3e)):l.value==="duotone"?(oe(),de("g",K3e,X3e)):l.value==="fill"?(oe(),de("g",J3e,tFe)):l.value==="light"?(oe(),de("g",nFe,iFe)):l.value==="regular"?(oe(),de("g",oFe,sFe)):l.value==="thin"?(oe(),de("g",lFe,uFe)):ft("",!0)],16,j3e))}}),fFe=["width","height","fill","transform"],mFe={key:0},gFe=Ce("path",{d:"M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z"},null,-1),hFe=[gFe],_Fe={key:1},vFe=Ce("path",{d:"M240,128l-48,40H64L16,128,64,88H192Z",opacity:"0.2"},null,-1),bFe=Ce("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),SFe=[vFe,bFe],yFe={key:2},EFe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z"},null,-1),CFe=[EFe],TFe={key:3},wFe=Ce("path",{d:"M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z"},null,-1),xFe=[wFe],OFe={key:4},IFe=Ce("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),RFe=[IFe],AFe={key:5},NFe=Ce("path",{d:"M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z"},null,-1),DFe=[NFe],MFe={name:"PhCode"},PFe=we({...MFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",mFe,hFe)):l.value==="duotone"?(oe(),de("g",_Fe,SFe)):l.value==="fill"?(oe(),de("g",yFe,CFe)):l.value==="light"?(oe(),de("g",TFe,xFe)):l.value==="regular"?(oe(),de("g",OFe,RFe)):l.value==="thin"?(oe(),de("g",AFe,DFe)):ft("",!0)],16,fFe))}}),kFe=["width","height","fill","transform"],$Fe={key:0},LFe=Ce("path",{d:"M76,92A16,16,0,1,1,60,76,16,16,0,0,1,76,92Zm52-16a16,16,0,1,0,16,16A16,16,0,0,0,128,76Zm68,32a16,16,0,1,0-16-16A16,16,0,0,0,196,108ZM60,148a16,16,0,1,0,16,16A16,16,0,0,0,60,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,128,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,196,148Z"},null,-1),FFe=[LFe],BFe={key:1},UFe=Ce("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"},null,-1),HFe=Ce("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),VFe=[UFe,HFe],zFe={key:2},GFe=Ce("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM68,168a12,12,0,1,1,12-12A12,12,0,0,1,68,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,68,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,128,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,128,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,188,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,188,112Z"},null,-1),jFe=[GFe],YFe={key:3},WFe=Ce("path",{d:"M70,92A10,10,0,1,1,60,82,10,10,0,0,1,70,92Zm58-10a10,10,0,1,0,10,10A10,10,0,0,0,128,82Zm68,20a10,10,0,1,0-10-10A10,10,0,0,0,196,102ZM60,154a10,10,0,1,0,10,10A10,10,0,0,0,60,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,128,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,196,154Z"},null,-1),qFe=[WFe],KFe={key:4},ZFe=Ce("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),QFe=[ZFe],XFe={key:5},JFe=Ce("path",{d:"M68,92a8,8,0,1,1-8-8A8,8,0,0,1,68,92Zm60-8a8,8,0,1,0,8,8A8,8,0,0,0,128,84Zm68,16a8,8,0,1,0-8-8A8,8,0,0,0,196,100ZM60,156a8,8,0,1,0,8,8A8,8,0,0,0,60,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,128,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,196,156Z"},null,-1),eBe=[JFe],tBe={name:"PhDotsSix"},nBe=we({...tBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",$Fe,FFe)):l.value==="duotone"?(oe(),de("g",BFe,VFe)):l.value==="fill"?(oe(),de("g",zFe,jFe)):l.value==="light"?(oe(),de("g",YFe,qFe)):l.value==="regular"?(oe(),de("g",KFe,QFe)):l.value==="thin"?(oe(),de("g",XFe,eBe)):ft("",!0)],16,kFe))}}),rBe=["width","height","fill","transform"],iBe={key:0},oBe=Ce("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"},null,-1),aBe=[oBe],sBe={key:1},lBe=Ce("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"},null,-1),cBe=Ce("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),uBe=[lBe,cBe],dBe={key:2},pBe=Ce("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),fBe=[pBe],mBe={key:3},gBe=Ce("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"},null,-1),hBe=[gBe],_Be={key:4},vBe=Ce("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),bBe=[vBe],SBe={key:5},yBe=Ce("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"},null,-1),EBe=[yBe],CBe={name:"PhDownload"},TBe=we({...CBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",iBe,aBe)):l.value==="duotone"?(oe(),de("g",sBe,uBe)):l.value==="fill"?(oe(),de("g",dBe,fBe)):l.value==="light"?(oe(),de("g",mBe,hBe)):l.value==="regular"?(oe(),de("g",_Be,bBe)):l.value==="thin"?(oe(),de("g",SBe,EBe)):ft("",!0)],16,rBe))}}),wBe=["width","height","fill","transform"],xBe={key:0},OBe=Ce("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM183,80H160V57ZM116,212V192h8a12,12,0,0,0,0-24h-8V152h8a12,12,0,0,0,0-24h-8V116a12,12,0,0,0-24,0v12H84a12,12,0,0,0,0,24h8v16H84a12,12,0,0,0,0,24h8v20H60V44h76V92a12,12,0,0,0,12,12h48V212Z"},null,-1),IBe=[OBe],RBe={key:1},ABe=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),NBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),DBe=[ABe,NBe],MBe={key:2},PBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H92a4,4,0,0,0,4-4V208H88.27A8.17,8.17,0,0,1,80,200.53,8,8,0,0,1,88,192h8V176H88.27A8.17,8.17,0,0,1,80,168.53,8,8,0,0,1,88,160h8V144H88.27A8.17,8.17,0,0,1,80,136.53,8,8,0,0,1,88,128h8v-7.73a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v8h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v20a4,4,0,0,0,4,4h84a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"},null,-1),kBe=[PBe],$Be={key:3},LBe=Ce("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H110V198h10a6,6,0,0,0,0-12H110V166h10a6,6,0,0,0,0-12H110V134h10a6,6,0,0,0,0-12H110V112a6,6,0,0,0-12,0v10H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"},null,-1),FBe=[LBe],BBe={key:4},UBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),HBe=[UBe],VBe={key:5},zBe=Ce("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H108V196h12a4,4,0,0,0,0-8H108V164h12a4,4,0,0,0,0-8H108V132h12a4,4,0,0,0,0-8H108V112a4,4,0,0,0-8,0v12H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"},null,-1),GBe=[zBe],jBe={name:"PhFileArchive"},YBe=we({...jBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",xBe,IBe)):l.value==="duotone"?(oe(),de("g",RBe,DBe)):l.value==="fill"?(oe(),de("g",MBe,kBe)):l.value==="light"?(oe(),de("g",$Be,FBe)):l.value==="regular"?(oe(),de("g",BBe,HBe)):l.value==="thin"?(oe(),de("g",VBe,GBe)):ft("",!0)],16,wBe))}}),WBe=["width","height","fill","transform"],qBe={key:0},KBe=Ce("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160Zm-52,67a56,56,0,0,0-50.65,32.09A40,40,0,0,0,60,236h48a56,56,0,0,0,0-112Zm0,88H60a16,16,0,0,1-6.54-30.6,12,12,0,0,0,22.67-4.32,32.78,32.78,0,0,1,.92-5.3c.12-.36.22-.72.31-1.09A32,32,0,1,1,108,212Z"},null,-1),ZBe=[KBe],QBe={key:1},XBe=Ce("path",{d:"M208,88H152V32ZM108,136a44,44,0,0,0-42.34,32v0H60a28,28,0,0,0,0,56h48a44,44,0,0,0,0-88Z",opacity:"0.2"},null,-1),JBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),e9e=[XBe,JBe],t9e={key:2},n9e=Ce("path",{d:"M160,181a52.06,52.06,0,0,1-52,51H60.72C40.87,232,24,215.77,24,195.92a36,36,0,0,1,19.28-31.79,4,4,0,0,1,5.77,4.33,63.53,63.53,0,0,0-1,11.15A8.22,8.22,0,0,0,55.55,188,8,8,0,0,0,64,180a47.55,47.55,0,0,1,4.37-20h0A48,48,0,0,1,160,181Zm56-93V216a16,16,0,0,1-16,16H176a8,8,0,0,1,0-16h24V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"},null,-1),r9e=[n9e],i9e={key:3},o9e=Ce("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM108,130a50,50,0,0,0-46.66,32H60a34,34,0,0,0,0,68h48a50,50,0,0,0,0-100Zm0,88H60a22,22,0,0,1-1.65-43.94c-.06.47-.1.93-.15,1.4a6,6,0,1,0,12,1.08A38.57,38.57,0,0,1,71.3,170a5.71,5.71,0,0,0,.24-.86A38,38,0,1,1,108,218Z"},null,-1),a9e=[o9e],s9e={key:4},l9e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),c9e=[l9e],u9e={key:5},d9e=Ce("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM108,132a47.72,47.72,0,0,0-45.3,32H60a32,32,0,0,0,0,64h48a48,48,0,0,0,0-96Zm0,88H60a24,24,0,0,1,0-48h.66c-.2,1.2-.35,2.41-.46,3.64a4,4,0,0,0,8,.72,41.2,41.2,0,0,1,1.23-6.92,4.68,4.68,0,0,0,.21-.73A40,40,0,1,1,108,220Z"},null,-1),p9e=[d9e],f9e={name:"PhFileCloud"},m9e=we({...f9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",qBe,ZBe)):l.value==="duotone"?(oe(),de("g",QBe,e9e)):l.value==="fill"?(oe(),de("g",t9e,r9e)):l.value==="light"?(oe(),de("g",i9e,a9e)):l.value==="regular"?(oe(),de("g",s9e,c9e)):l.value==="thin"?(oe(),de("g",u9e,p9e)):ft("",!0)],16,WBe))}}),g9e=["width","height","fill","transform"],h9e={key:0},_9e=Ce("path",{d:"M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"},null,-1),v9e=[_9e],b9e={key:1},S9e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),y9e=Ce("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),E9e=[S9e,y9e],C9e={key:2},T9e=Ce("path",{d:"M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z"},null,-1),w9e=[T9e],x9e={key:3},O9e=Ce("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"},null,-1),I9e=[O9e],R9e={key:4},A9e=Ce("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),N9e=[A9e],D9e={key:5},M9e=Ce("path",{d:"M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z"},null,-1),P9e=[M9e],k9e={name:"PhFileDoc"},$9e=we({...k9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",h9e,v9e)):l.value==="duotone"?(oe(),de("g",b9e,E9e)):l.value==="fill"?(oe(),de("g",C9e,w9e)):l.value==="light"?(oe(),de("g",x9e,I9e)):l.value==="regular"?(oe(),de("g",R9e,N9e)):l.value==="thin"?(oe(),de("g",D9e,P9e)):ft("",!0)],16,g9e))}}),L9e=["width","height","fill","transform"],F9e={key:0},B9e=Ce("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"},null,-1),U9e=[B9e],H9e={key:1},V9e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),z9e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),G9e=[V9e,z9e],j9e={key:2},Y9e=Ce("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"},null,-1),W9e=[Y9e],q9e={key:3},K9e=Ce("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),Z9e=[K9e],Q9e={key:4},X9e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),J9e=[X9e],e5e={key:5},t5e=Ce("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),n5e=[t5e],r5e={name:"PhFilePdf"},i5e=we({...r5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",F9e,U9e)):l.value==="duotone"?(oe(),de("g",H9e,G9e)):l.value==="fill"?(oe(),de("g",j9e,W9e)):l.value==="light"?(oe(),de("g",q9e,Z9e)):l.value==="regular"?(oe(),de("g",Q9e,J9e)):l.value==="thin"?(oe(),de("g",e5e,n5e)):ft("",!0)],16,L9e))}}),o5e=["width","height","fill","transform"],a5e={key:0},s5e=Ce("path",{d:"M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z"},null,-1),l5e=[s5e],c5e={key:1},u5e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),d5e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),p5e=[u5e,d5e],f5e={key:2},m5e=Ce("path",{d:"M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"},null,-1),g5e=[m5e],h5e={key:3},_5e=Ce("path",{d:"M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),v5e=[_5e],b5e={key:4},S5e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),y5e=[S5e],E5e={key:5},C5e=Ce("path",{d:"M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),T5e=[C5e],w5e={name:"PhFilePpt"},x5e=we({...w5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",a5e,l5e)):l.value==="duotone"?(oe(),de("g",c5e,p5e)):l.value==="fill"?(oe(),de("g",f5e,g5e)):l.value==="light"?(oe(),de("g",h5e,v5e)):l.value==="regular"?(oe(),de("g",b5e,y5e)):l.value==="thin"?(oe(),de("g",E5e,T5e)):ft("",!0)],16,o5e))}}),O5e=["width","height","fill","transform"],I5e={key:0},R5e=Ce("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"},null,-1),A5e=[R5e],N5e={key:1},D5e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),M5e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),P5e=[D5e,M5e],k5e={key:2},$5e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"},null,-1),L5e=[$5e],F5e={key:3},B5e=Ce("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"},null,-1),U5e=[B5e],H5e={key:4},V5e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),z5e=[V5e],G5e={key:5},j5e=Ce("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"},null,-1),Y5e=[j5e],W5e={name:"PhFileText"},q5e=we({...W5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",I5e,A5e)):l.value==="duotone"?(oe(),de("g",N5e,P5e)):l.value==="fill"?(oe(),de("g",k5e,L5e)):l.value==="light"?(oe(),de("g",F5e,U5e)):l.value==="regular"?(oe(),de("g",H5e,z5e)):l.value==="thin"?(oe(),de("g",G5e,Y5e)):ft("",!0)],16,O5e))}}),K5e=["width","height","fill","transform"],Z5e={key:0},Q5e=Ce("path",{d:"M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"},null,-1),X5e=[Q5e],J5e={key:1},eUe=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),tUe=Ce("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),nUe=[eUe,tUe],rUe={key:2},iUe=Ce("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z"},null,-1),oUe=[iUe],aUe={key:3},sUe=Ce("path",{d:"M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z"},null,-1),lUe=[sUe],cUe={key:4},uUe=Ce("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),dUe=[uUe],pUe={key:5},fUe=Ce("path",{d:"M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z"},null,-1),mUe=[fUe],gUe={name:"PhFileXls"},hUe=we({...gUe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",Z5e,X5e)):l.value==="duotone"?(oe(),de("g",J5e,nUe)):l.value==="fill"?(oe(),de("g",rUe,oUe)):l.value==="light"?(oe(),de("g",aUe,lUe)):l.value==="regular"?(oe(),de("g",cUe,dUe)):l.value==="thin"?(oe(),de("g",pUe,mUe)):ft("",!0)],16,K5e))}}),_Ue=["width","height","fill","transform"],vUe={key:0},bUe=Ce("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"},null,-1),SUe=[bUe],yUe={key:1},EUe=Ce("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),CUe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),TUe=[EUe,CUe],wUe={key:2},xUe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"},null,-1),OUe=[xUe],IUe={key:3},RUe=Ce("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"},null,-1),AUe=[RUe],NUe={key:4},DUe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),MUe=[DUe],PUe={key:5},kUe=Ce("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"},null,-1),$Ue=[kUe],LUe={name:"PhImage"},FUe=we({...LUe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",vUe,SUe)):l.value==="duotone"?(oe(),de("g",yUe,TUe)):l.value==="fill"?(oe(),de("g",wUe,OUe)):l.value==="light"?(oe(),de("g",IUe,AUe)):l.value==="regular"?(oe(),de("g",NUe,MUe)):l.value==="thin"?(oe(),de("g",PUe,$Ue)):ft("",!0)],16,_Ue))}}),BUe=["width","height","fill","transform"],UUe={key:0},HUe=Ce("path",{d:"M160,88a16,16,0,1,1,16,16A16,16,0,0,1,160,88Zm76-32V160a20,20,0,0,1-20,20H204v20a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V88A20,20,0,0,1,40,68H60V56A20,20,0,0,1,80,36H216A20,20,0,0,1,236,56ZM180,180H80a20,20,0,0,1-20-20V92H44V196H180Zm-21.66-24L124,121.66,89.66,156ZM212,60H84v67.72l25.86-25.86a20,20,0,0,1,28.28,0L192.28,156H212Z"},null,-1),VUe=[HUe],zUe={key:1},GUe=Ce("path",{d:"M224,56v82.06l-23.72-23.72a8,8,0,0,0-11.31,0L163.31,140,113.66,90.34a8,8,0,0,0-11.32,0L64,128.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),jUe=Ce("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),YUe=[GUe,jUe],WUe={key:2},qUe=Ce("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM172,72a12,12,0,1,1-12,12A12,12,0,0,1,172,72Zm12,128H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V120.69l30.34-30.35a8,8,0,0,1,11.32,0L163.31,140,189,114.34a8,8,0,0,1,11.31,0L216,130.07V168Z"},null,-1),KUe=[qUe],ZUe={key:3},QUe=Ce("path",{d:"M216,42H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V182h18a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM70,56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v67.57L204.53,110.1a14,14,0,0,0-19.8,0l-21.42,21.41L117.9,86.1a14,14,0,0,0-19.8,0L70,114.2ZM186,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H58v82a14,14,0,0,0,14,14H186Zm30-30H72a2,2,0,0,1-2-2V131.17l36.58-36.58a2,2,0,0,1,2.83,0l49.66,49.66a6,6,0,0,0,8.49,0l25.65-25.66a2,2,0,0,1,2.83,0l22,22V168A2,2,0,0,1,216,170ZM162,84a10,10,0,1,1,10,10A10,10,0,0,1,162,84Z"},null,-1),XUe=[QUe],JUe={key:4},eHe=Ce("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),tHe=[eHe],nHe={key:5},rHe=Ce("path",{d:"M216,44H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180h20a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM68,56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v72.4l-16.89-16.89a12,12,0,0,0-17,0l-22.83,22.83L116.49,87.51a12,12,0,0,0-17,0L68,119ZM188,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H60v84a12,12,0,0,0,12,12H188Zm28-28H72a4,4,0,0,1-4-4V130.34l37.17-37.17a4,4,0,0,1,5.66,0l49.66,49.66a4,4,0,0,0,5.65,0l25.66-25.66a4,4,0,0,1,5.66,0L220,139.71V168A4,4,0,0,1,216,172ZM164,84a8,8,0,1,1,8,8A8,8,0,0,1,164,84Z"},null,-1),iHe=[rHe],oHe={name:"PhImages"},aHe=we({...oHe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",UUe,VUe)):l.value==="duotone"?(oe(),de("g",zUe,YUe)):l.value==="fill"?(oe(),de("g",WUe,KUe)):l.value==="light"?(oe(),de("g",ZUe,XUe)):l.value==="regular"?(oe(),de("g",JUe,tHe)):l.value==="thin"?(oe(),de("g",nHe,iHe)):ft("",!0)],16,BUe))}}),sHe=["width","height","fill","transform"],lHe={key:0},cHe=Ce("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"},null,-1),uHe=[cHe],dHe={key:1},pHe=Ce("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),fHe=Ce("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"},null,-1),mHe=[pHe,fHe],gHe={key:2},hHe=Ce("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"},null,-1),_He=[hHe],vHe={key:3},bHe=Ce("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),SHe=[bHe],yHe={key:4},EHe=Ce("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"},null,-1),CHe=[EHe],THe={key:5},wHe=Ce("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),xHe=[wHe],OHe={name:"PhInfo"},IHe=we({...OHe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",lHe,uHe)):l.value==="duotone"?(oe(),de("g",dHe,mHe)):l.value==="fill"?(oe(),de("g",gHe,_He)):l.value==="light"?(oe(),de("g",vHe,SHe)):l.value==="regular"?(oe(),de("g",yHe,CHe)):l.value==="thin"?(oe(),de("g",THe,xHe)):ft("",!0)],16,sHe))}}),RHe=["width","height","fill","transform"],AHe={key:0},NHe=Ce("path",{d:"M168,120a12,12,0,0,1-5.12,9.83l-40,28A12,12,0,0,1,104,148V92a12,12,0,0,1,18.88-9.83l40,28A12,12,0,0,1,168,120Zm68-56V176a28,28,0,0,1-28,28H48a28,28,0,0,1-28-28V64A28,28,0,0,1,48,36H208A28,28,0,0,1,236,64Zm-24,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V176a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4ZM160,216H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Z"},null,-1),DHe=[NHe],MHe={key:1},PHe=Ce("path",{d:"M208,48H48A16,16,0,0,0,32,64V176a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48ZM112,152V88l48,32Z",opacity:"0.2"},null,-1),kHe=Ce("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),$He=[PHe,kHe],LHe={key:2},FHe=Ce("path",{d:"M168,224a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224ZM232,64V176a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V64A24,24,0,0,1,48,40H208A24,24,0,0,1,232,64Zm-68,56a8,8,0,0,0-3.41-6.55l-40-28A8,8,0,0,0,108,92v56a8,8,0,0,0,12.59,6.55l40-28A8,8,0,0,0,164,120Z"},null,-1),BHe=[FHe],UHe={key:3},HHe=Ce("path",{d:"M163.33,115l-48-32A6,6,0,0,0,106,88v64a6,6,0,0,0,9.33,5l48-32a6,6,0,0,0,0-10ZM118,140.79V99.21L149.18,120ZM208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V64A10,10,0,0,1,48,54H208a10,10,0,0,1,10,10Zm-52,48a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,224Z"},null,-1),VHe=[HHe],zHe={key:4},GHe=Ce("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),jHe=[GHe],YHe={key:5},WHe=Ce("path",{d:"M162.22,116.67l-48-32A4,4,0,0,0,108,88v64a4,4,0,0,0,2.11,3.53,4,4,0,0,0,4.11-.2l48-32a4,4,0,0,0,0-6.66ZM116,144.53V95.47L152.79,120ZM208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V64A12,12,0,0,1,48,52H208a12,12,0,0,1,12,12Zm-56,48a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,224Z"},null,-1),qHe=[WHe],KHe={name:"PhMonitorPlay"},ZHe=we({...KHe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",AHe,DHe)):l.value==="duotone"?(oe(),de("g",MHe,$He)):l.value==="fill"?(oe(),de("g",LHe,BHe)):l.value==="light"?(oe(),de("g",UHe,VHe)):l.value==="regular"?(oe(),de("g",zHe,jHe)):l.value==="thin"?(oe(),de("g",YHe,qHe)):ft("",!0)],16,RHe))}}),QHe=["width","height","fill","transform"],XHe={key:0},JHe=Ce("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"},null,-1),eVe=[JHe],tVe={key:1},nVe=Ce("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"},null,-1),rVe=Ce("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),iVe=[nVe,rVe],oVe={key:2},aVe=Ce("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"},null,-1),sVe=[aVe],lVe={key:3},cVe=Ce("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"},null,-1),uVe=[cVe],dVe={key:4},pVe=Ce("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),fVe=[pVe],mVe={key:5},gVe=Ce("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"},null,-1),hVe=[gVe],_Ve={name:"PhPause"},vVe=we({..._Ve,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",XHe,eVe)):l.value==="duotone"?(oe(),de("g",tVe,iVe)):l.value==="fill"?(oe(),de("g",oVe,sVe)):l.value==="light"?(oe(),de("g",lVe,uVe)):l.value==="regular"?(oe(),de("g",dVe,fVe)):l.value==="thin"?(oe(),de("g",mVe,hVe)):ft("",!0)],16,QHe))}}),bVe=["width","height","fill","transform"],SVe={key:0},yVe=Ce("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"},null,-1),EVe=[yVe],CVe={key:1},TVe=Ce("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"},null,-1),wVe=Ce("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),xVe=[TVe,wVe],OVe={key:2},IVe=Ce("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"},null,-1),RVe=[IVe],AVe={key:3},NVe=Ce("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"},null,-1),DVe=[NVe],MVe={key:4},PVe=Ce("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),kVe=[PVe],$Ve={key:5},LVe=Ce("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"},null,-1),FVe=[LVe],BVe={name:"PhPlay"},UVe=we({...BVe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",SVe,EVe)):l.value==="duotone"?(oe(),de("g",CVe,xVe)):l.value==="fill"?(oe(),de("g",OVe,RVe)):l.value==="light"?(oe(),de("g",AVe,DVe)):l.value==="regular"?(oe(),de("g",MVe,kVe)):l.value==="thin"?(oe(),de("g",$Ve,FVe)):ft("",!0)],16,bVe))}}),HVe=["width","height","fill","transform"],VVe={key:0},zVe=Ce("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"},null,-1),GVe=[zVe],jVe={key:1},YVe=Ce("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"},null,-1),WVe=Ce("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),qVe=[YVe,WVe],KVe={key:2},ZVe=Ce("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"},null,-1),QVe=[ZVe],XVe={key:3},JVe=Ce("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"},null,-1),eze=[JVe],tze={key:4},nze=Ce("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),rze=[nze],ize={key:5},oze=Ce("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"},null,-1),aze=[oze],sze={name:"PhTrash"},lze=we({...sze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",VVe,GVe)):l.value==="duotone"?(oe(),de("g",jVe,qVe)):l.value==="fill"?(oe(),de("g",KVe,QVe)):l.value==="light"?(oe(),de("g",XVe,eze)):l.value==="regular"?(oe(),de("g",tze,rze)):l.value==="thin"?(oe(),de("g",ize,aze)):ft("",!0)],16,HVe))}}),cze=["width","height","fill","transform"],uze={key:0},dze=Ce("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"},null,-1),pze=[dze],fze={key:1},mze=Ce("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),gze=Ce("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),hze=[mze,gze],_ze={key:2},vze=Ce("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"},null,-1),bze=[vze],Sze={key:3},yze=Ce("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"},null,-1),Eze=[yze],Cze={key:4},Tze=Ce("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),wze=[Tze],xze={key:5},Oze=Ce("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"},null,-1),Ize=[Oze],Rze={name:"PhUploadSimple"},Aze=we({...Rze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",uze,pze)):l.value==="duotone"?(oe(),de("g",fze,hze)):l.value==="fill"?(oe(),de("g",_ze,bze)):l.value==="light"?(oe(),de("g",Sze,Eze)):l.value==="regular"?(oe(),de("g",Cze,wze)):l.value==="thin"?(oe(),de("g",xze,Ize)):ft("",!0)],16,cze))}}),Nze=["width","height","fill","transform"],Dze={key:0},Mze=Ce("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"},null,-1),Pze=[Mze],kze={key:1},$ze=Ce("path",{d:"M208,96v64H48V96Z",opacity:"0.2"},null,-1),Lze=Ce("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),Fze=[$ze,Lze],Bze={key:2},Uze=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"},null,-1),Hze=[Uze],Vze={key:3},zze=Ce("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"},null,-1),Gze=[zze],jze={key:4},Yze=Ce("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),Wze=[Yze],qze={key:5},Kze=Ce("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"},null,-1),Zze=[Kze],Qze={name:"PhWaveform"},Xze=we({...Qze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",Dze,Pze)):l.value==="duotone"?(oe(),de("g",kze,Fze)):l.value==="fill"?(oe(),de("g",Bze,Hze)):l.value==="light"?(oe(),de("g",Vze,Gze)):l.value==="regular"?(oe(),de("g",jze,Wze)):l.value==="thin"?(oe(),de("g",qze,Zze)):ft("",!0)],16,Nze))}}),Jze=["width","height","fill","transform"],eGe={key:0},tGe=Ce("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"},null,-1),nGe=[tGe],rGe={key:1},iGe=Ce("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),oGe=Ce("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),aGe=[iGe,oGe],sGe={key:2},lGe=Ce("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),cGe=[lGe],uGe={key:3},dGe=Ce("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"},null,-1),pGe=[dGe],fGe={key:4},mGe=Ce("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),gGe=[mGe],hGe={key:5},_Ge=Ce("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"},null,-1),vGe=[_Ge],bGe={name:"PhX"},SGe=we({...bGe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",eGe,nGe)):l.value==="duotone"?(oe(),de("g",rGe,aGe)):l.value==="fill"?(oe(),de("g",sGe,cGe)):l.value==="light"?(oe(),de("g",uGe,pGe)):l.value==="regular"?(oe(),de("g",fGe,gGe)):l.value==="thin"?(oe(),de("g",hGe,vGe)):ft("",!0)],16,Jze))}}),yGe={key:0,class:"label"},EGe={key:0},CGe=we({__name:"Label",props:{label:{},required:{type:Boolean},hint:{}},setup(e){return(t,n)=>t.label?(oe(),de("h3",yGe,[Jn(Xt(t.label)+" ",1),t.required?(oe(),de("span",EGe," * ")):ft("",!0),t.hint?(oe(),An(We(Ua),{key:1,class:"hint",title:t.hint},{default:fn(()=>[x(We(IHe),{size:"16px",height:"100%"})]),_:1},8,["title"])):ft("",!0)])):ft("",!0)}});const Fn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Hn=Fn(CGe,[["__scopeId","data-v-16be3530"]]),TGe={class:"appointment-input"},wGe={style:{position:"relative","min-width":"200px","min-height":"200px",height:"100%","overflow-y":"auto"}},xGe={style:{display:"flex","flex-direction":"column",position:"absolute",top:"0",bottom:"0",left:"0",right:"0",gap:"4px"}},OGe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e;function r(m){return ir(m.begin)}function i(){return n.userProps.value?r(n.userProps.slots[n.userProps.value]):r(n.userProps.slots.sort((m,h)=>new Date(m.begin).getTime()-new Date(h.begin).getTime())[0])}const o=i(),l=Ie(o),s=k(()=>{const m=l.value;return n.userProps.slots.reduce((h,v,b)=>new Date(v.begin).getDate()===m.date()&&new Date(v.begin).getMonth()===m.month()&&new Date(v.begin).getFullYear()===m.year()?[...h,{slot:v,idx:b}]:h,[])}),u=k(()=>{const{min:m,max:h}=n.userProps.slots.reduce((v,b)=>{const S=ir(b.start).startOf("day"),y=ir(b.end).startOf("day");return(!v.min||S.isBefore(v.min))&&(v.min=S),(!v.max||y.isAfter(v.max))&&(v.max=y),v},{min:null,max:null});return[m,h.add(1,"day")]});function a(m){const h=m.month(),v=m.year(),b=n.userProps.slots.find(S=>{const y=ir(S.begin);return y.month()===h&&y.year()===v});return ir((b==null?void 0:b.begin)||m)}const c=Ie(!1);function d(m){if(c.value){c.value=!1;return}l.value=m}function p(m){c.value=!0;const h=ir(m);l.value=a(h)}function f(m){t("update:value",m)}function g(m){return!n.userProps.slots.some(h=>m.isSame(ir(h.begin),"day"))}return(m,h)=>(oe(),de(tt,null,[x(Hn,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ce("div",TGe,[x(We(BIe),{value:l.value,"disabled-date":g,fullscreen:!1,"valid-range":u.value,"default-value":We(o),onSelect:d,onPanelChange:p},null,8,["value","valid-range","default-value"]),s.value.length>0?(oe(),An(We(u6e),{key:0,vertical:"",gap:"small"},{default:fn(()=>[x(We(iA),{level:4},{default:fn(()=>[Jn("Available slots")]),_:1}),Ce("div",wGe,[Ce("div",xGe,[(oe(!0),de(tt,null,Pi(s.value,({slot:v,idx:b})=>(oe(),An(We(br),{key:b,type:b===m.userProps.value?"primary":"default",onClick:S=>f(b)},{default:fn(()=>[Jn(Xt(We(ir)(v.begin).format("hh:mm A"))+" - "+Xt(We(ir)(v.end).format("hh:mm A")),1)]),_:2},1032,["type","onClick"]))),128))])])]),_:1})):(oe(),An(We(dc),{key:1,description:"No slots available"}))])],64))}});const IGe=Fn(OGe,[["__scopeId","data-v-6d1cdd29"]]),RGe={class:"container"},AGe=we({__name:"FileIcon",props:{ctrl:{},file:{},size:{}},setup(e){return(t,n)=>(oe(),de("div",RGe,[(oe(),An(Au(t.ctrl.iconPreview(t.file)),{size:t.size},null,8,["size"]))]))}});const NG=Fn(AGe,[["__scopeId","data-v-27e5e807"]]),NGe="modulepreload",DGe=function(e){return"/"+e},j4={},my=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=DGe(o),o in j4)return;j4[o]=!0;const l=o.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===o&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const a=document.createElement("link");if(a.rel=l?"stylesheet":NGe,l||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),l)return new Promise((c,d)=>{a.addEventListener("load",c),a.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},MGe={key:0},PGe=Ce("p",null,"Unsupported file type",-1),kGe=[PGe],$Ge=["src"],LGe={key:2,style:{width:"100%",height:"auto"},controls:"",preload:"metadata"},FGe=["src","type"],BGe={key:3,style:{width:"100%"},controls:"",preload:"metadata"},UGe=["src","type"],HGe=["src","type"],VGe={key:5},DG=we({__name:"Preview",props:{ctrl:{}},setup(e){const t=e,n=Ie({hasPreview:!1,filename:"",src:"",previewType:"",file:t.ctrl.state.value.file}),r=Ie();Ve(t.ctrl.state,async()=>{const o=t.ctrl.state.value.file;if(n.value.file=o,n.value.hasPreview=t.ctrl.hasPreview(o),n.value.filename=t.ctrl.fileName(o),n.value.src=t.ctrl.fileSrc(o),n.value.previewType=t.ctrl.typeof(o.type),n.value.previewType==="Code"||n.value.previewType==="Text"){const l=await t.ctrl.fetchTextContent(o);i(r.value,l)}});const i=async(o,l,s)=>{(await my(()=>import("./editor.main.99d6f79a.js"),["assets/editor.main.99d6f79a.js","assets/toggleHighContrast.5028b4ff.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(o,{language:s,value:l,minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!1,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}})};return(o,l)=>o.ctrl.state.value.open?(oe(),An(We(Lo),{key:0,open:!0,title:n.value.filename,onCancel:o.ctrl.close,style:{"max-width":"80dvw","min-width":"40dvw",height:"auto"}},{footer:fn(()=>[]),default:fn(()=>[n.value.hasPreview?n.value.previewType==="Image"?(oe(),de("img",{key:1,style:{width:"100%"},src:n.value.src},null,8,$Ge)):n.value.previewType==="Video"?(oe(),de("video",LGe,[Ce("source",{src:n.value.src,type:n.value.file.type},null,8,FGe)])):n.value.previewType==="Audio"?(oe(),de("audio",BGe,[Ce("source",{src:n.value.src,type:n.value.file.type},null,8,UGe)])):n.value.previewType==="PDF"?(oe(),de("embed",{key:4,style:{width:"100%","min-height":"60dvh"},src:n.value.src,type:n.value.file.type},null,8,HGe)):n.value.previewType==="Text"||n.value.previewType==="Code"?(oe(),de("div",VGe,[Ce("div",{ref_key:"editor",ref:r,style:{width:"100%","min-height":"40dvh"}},null,512)])):ft("",!0):(oe(),de("div",MGe,kGe))]),_:1},8,["title","onCancel"])):ft("",!0)}}),zGe=["Text","Image","Code","PDF","Video","Audio"];function GGe(e){return zGe.includes(e)}const jGe={Text:q5e,Image:FUe,Code:PFe,PDF:i5e,Video:ZHe,Audio:Xze,Archive:YBe,Document:$9e,Presentation:x5e,Spreadsheet:hUe,Unknown:m9e};class MG{constructor(){wn(this,"state");wn(this,"open",t=>{this.state.value={open:!0,file:t}});wn(this,"close",()=>{this.state.value.open=!1});wn(this,"hasPreview",t=>{const n=this.typeof(t.type);if(!GGe(n))return!1;switch(n){case"Text":case"Image":case"Code":return!0;case"PDF":return window.navigator.pdfViewerEnabled;case"Video":return document.createElement("video").canPlayType(t.type||"")!=="";case"Audio":return document.createElement("audio").canPlayType(t.type||"")!==""}});wn(this,"fileName",t=>(t==null?void 0:t.name)||"");wn(this,"fileSrc",t=>t==null?void 0:t.response[0]);wn(this,"fileThumbnail",t=>this.hasPreview(t)?this.fileSrc(t):"");wn(this,"typeof",t=>{if(!t)return"Unknown";if(t==="application/pdf")return"PDF";switch(t.split("/")[0]){case"audio":return"Audio";case"video":return"Video";case"image":return"Image"}if(t.includes("spreadsheet")||t.includes("excel")||t.includes(".sheet"))return"Spreadsheet";if(t.includes(".document"))return"Document";if(t.includes(".presentation"))return"Presentation";switch(t){case"text/plain":case"text/markdown":case"text/csv":return"Text";case"application/zip":case"application/vnd.rar":case"application/x-7z-compressed":case"application/x-tar":case"application/gzip":return"Archive";case"text/html":case"text/css":case"text/x-python-script":case"application/javascript":case"application/typescript":case"application/json":case"application/xml":case"application/x-yaml":case"application/toml":return"Code"}return"Unknown"});wn(this,"handlePreview",t=>{this.hasPreview(t)&&this.open(t)});wn(this,"fetchTextContent",async t=>{const n=this.fileSrc(t);return await(await window.fetch(n)).text()});wn(this,"iconPreview",t=>{const n=this.typeof(t.type);return jGe[n]});this.state=Ie({open:!1,file:{uid:"",name:"",status:"done",response:[],url:"",type:"",size:0}})}}const YGe=[{key:"en",value:"English"},{key:"pt",value:"Portuguese"},{key:"es",value:"Spanish"},{key:"de",value:"German"},{key:"fr",value:"French"},{key:"hi",value:"Hindi"}],P0={i18n_camera_input_take_photo:()=>({en:"Take photo",pt:"Tirar foto",es:"Tomar foto",de:"Foto aufnehmen",fr:"Prendre une photo",hi:"\u092B\u094B\u091F\u094B \u0932\u0947\u0902"}),i18n_camera_input_try_again:()=>({en:"Try again",pt:"Tentar novamente",es:"Intentar de nuevo",de:"Erneut versuchen",fr:"R\xE9essayer",hi:"\u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902"}),i18n_upload_area_click_or_drop_files:()=>({en:"Click or drag file here to upload",pt:"Clique ou arraste o arquivo aqui para fazer upload",es:"Haz clic o arrastra el archivo aqu\xED para subirlo",de:"Klicken oder ziehen Sie die Datei hierher, um sie hochzuladen",fr:"Cliquez ou faites glisser le fichier ici pour le t\xE9l\xE9charger",hi:"\u0905\u092A\u0932\u094B\u0921 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092F\u0939\u093E\u0901 \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902 \u092F\u093E \u092B\u093C\u093E\u0907\u0932 \u0916\u0940\u0902\u091A\u0947\u0902"}),i18n_upload_area_drop_here:()=>({en:"Drop files",pt:"Solte os arquivos",es:"Suelta los archivos",de:"Dateien ablegen",fr:"D\xE9poser les fichiers",hi:"\u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u0921\u094D\u0930\u0949\u092A \u0915\u0930\u0947\u0902"}),i18n_upload_area_rejected_file_extension:e=>({en:`Invalid file extension. Expected formats: ${e.formats}`,pt:`Extens\xE3o de arquivo inv\xE1lida. Formatos aceitos: ${e.formats}`,es:`Extensi\xF3n de archivo inv\xE1lida. Formatos aceptados: ${e.formats}`,de:`Ung\xFCltige Dateierweiterung. Akzeptierte Formate: ${e.formats}`,fr:`Extension de fichier invalide. Formats accept\xE9s: ${e.formats}`,hi:`\u0905\u092E\u093E\u0928\u094D\u092F \u092B\u093C\u093E\u0907\u0932 \u090F\u0915\u094D\u0938\u091F\u0947\u0902\u0936\u0928\u0964 \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092B\u093C\u0949\u0930\u094D\u092E\u0947\u091F\u094D\u0938: ${e.formats}`}),i18n_upload_max_size_excided:e=>({en:`File ${e.fileName} exceeds size limit of ${e.maxSize}MB`,pt:`Arquivo ${e.fileName} excede o limite de tamanho de ${e.maxSize}MB`,es:`El archivo ${e.fileName} excede el l\xEDmite de tama\xF1o de ${e.maxSize}MB`,de:`Die Datei ${e.fileName} \xFCberschreitet das Gr\xF6\xDFenlimit von ${e.maxSize}MB`,fr:`Le fichier ${e.fileName} d\xE9passe la limite de taille de ${e.maxSize}MB`,hi:`\u092B\u093C\u093E\u0907\u0932 ${e.fileName} ${e.maxSize}MB \u0915\u0940 \u0938\u0940\u092E\u093E \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\u0948`}),i18n_upload_failed:e=>({en:`File upload failed for ${e.fileName}`,pt:`Falha ao enviar arquivo ${e.fileName}`,es:`Error al subir archivo ${e.fileName}`,de:`Datei-Upload fehlgeschlagen f\xFCr ${e.fileName}`,fr:`\xC9chec du t\xE9l\xE9chargement du fichier ${e.fileName}`,hi:`${e.fileName} \u0915\u0947 \u0932\u093F\u090F \u092B\u093C\u093E\u0907\u0932 \u0905\u092A\u0932\u094B\u0921 \u0935\u093F\u092B\u0932 \u0930\u0939\u093E`}),i18n_login_with_this_project:()=>({en:"Use this project",pt:"Usar este projeto",es:"Usar este proyecto",de:"Dieses Projekt verwenden",fr:"Utiliser ce projet",hi:"\u0907\u0938 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_watermark_text:()=>({en:"Coded in Python with",pt:"Escrito em Python com",es:"Escrito en Python con",de:"In Python mit",fr:"Cod\xE9 en Python avec",hi:"\u092A\u093E\u092F\u0925\u0928 \u092E\u0947\u0902 \u0932\u093F\u0916\u093E \u0917\u092F\u093E"}),i18n_error_invalid_email:()=>({en:"This email is invalid.",pt:"Este email \xE9 inv\xE1lido.",es:"Este email es inv\xE1lido.",de:"Diese E-Mail ist ung\xFCltig.",fr:"Cet email est invalide.",hi:"\u092F\u0939 \u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_required_field:()=>({en:"This field is required.",pt:"Este campo \xE9 obrigat\xF3rio.",es:"Este campo es obligatorio.",de:"Dieses Feld ist erforderlich.",fr:"Ce champ est obligatoire.",hi:"\u092F\u0939 \u092B\u093C\u0940\u0932\u094D\u0921 \u0906\u0935\u0936\u094D\u092F\u0915 \u0939\u0948\u0964"}),i18n_error_invalid_cnpj:()=>({en:"This CNPJ is invalid.",pt:"Este CNPJ \xE9 inv\xE1lido.",es:"Este CNPJ es inv\xE1lido.",de:"Diese CNPJ ist ung\xFCltig.",fr:"Ce CNPJ est invalide.",hi:"\u092F\u0939 CNPJ \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_cpf:()=>({en:"This CPF is invalid.",pt:"Este CPF \xE9 inv\xE1lido.",es:"Este CPF es inv\xE1lido.",de:"Diese CPF ist ung\xFCltig.",fr:"Ce CPF est invalide.",hi:"\u092F\u0939 CPF \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_phone_number:()=>({en:"This phone number is invalid.",pt:"Este n\xFAmero de telefone \xE9 inv\xE1lido.",es:"Este n\xFAmero de tel\xE9fono es inv\xE1lido.",de:"Diese Telefonnummer ist ung\xFCltig.",fr:"Ce num\xE9ro de t\xE9l\xE9phone est invalide.",hi:"\u092F\u0939 \u092B\u093C\u094B\u0928 \u0928\u0902\u092C\u0930 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_country_code:()=>({en:"This country code is invalid.",pt:"Este c\xF3digo de pa\xEDs \xE9 inv\xE1lido.",es:"Este c\xF3digo de pa\xEDs es inv\xE1lido.",de:"Dieser L\xE4ndercode ist ung\xFCltig.",fr:"Ce code de pays est invalide.",hi:"\u092F\u0939 \u0926\u0947\u0936 \u0915\u094B\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_min_list:e=>({en:`The minimum number of items is ${e.min}.`,pt:`O n\xFAmero m\xEDnimo de itens \xE9 ${e.min}.`,es:`El n\xFAmero m\xEDnimo de \xEDtems es ${e.min}.`,de:`Die Mindestanzahl an Elementen betr\xE4gt ${e.min}.`,fr:`Le nombre minimum d'\xE9l\xE9ments est ${e.min}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.min} \u0939\u0948\u0964`}),i18n_error_max_list:e=>({en:`The maximum number of items is ${e.max}.`,pt:`O n\xFAmero m\xE1ximo de itens \xE9 ${e.max}.`,es:`El n\xFAmero m\xE1ximo de \xEDtems es ${e.max}.`,de:`Die maximale Anzahl an Elementen betr\xE4gt ${e.max}.`,fr:`Le nombre maximum d'\xE9l\xE9ments est ${e.max}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0905\u0927\u093F\u0915\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.max} \u0939\u0948\u0964`}),i18n_error_invalid_list_item:()=>({en:"Some fields are invalid.",pt:"Alguns campos s\xE3o inv\xE1lidos.",es:"Algunos campos son inv\xE1lidos.",de:"Einige Felder sind ung\xFCltig.",fr:"Certains champs sont invalides.",hi:"\u0915\u0941\u091B \u092B\u093C\u0940\u0932\u094D\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0902\u0964"}),i18n_error_min_number:e=>({en:`The minimum value is ${e.min}.`,pt:`O valor m\xEDnimo \xE9 ${e.min}.`,es:`El valor m\xEDnimo es ${e.min}.`,de:`Der Mindestwert betr\xE4gt ${e.min}.`,fr:`La valeur minimale est ${e.min}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u092E\u0942\u0932\u094D\u092F ${e.min} \u0939\u0948\u0964`}),i18n_error_max_number:e=>({en:`The maximum value is ${e.max}.`,pt:`O valor m\xE1ximo \xE9 ${e.max}.`,es:`El valor m\xE1ximo es ${e.max}.`,de:`Der maximale Wert betr\xE4gt ${e.max}.`,fr:`La valeur maximale est ${e.max}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u092E\u0942$\u0932\u094D\u092F ${e.max} \u0939\u0948\u0964`}),i18n_error_max_amount:e=>({en:`The maximum amount is ${e.max} ${e.currency}.`,pt:`O valor m\xE1ximo \xE9 ${e.max} ${e.currency}.`,es:`El valor m\xE1ximo es ${e.max} ${e.currency}.`,de:`Der maximale Betrag betr\xE4gt ${e.max} ${e.currency}.`,fr:`Le montant maximum est ${e.max} ${e.currency}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u0930\u093E\u0936\u093F ${e.max} ${e.currency} \u0939\u0948\u0964`}),i18n_error_min_amount:e=>({en:`The minimum amount is ${e.min} ${e.currency}.`,pt:`O valor m\xEDnimo \xE9 ${e.min} ${e.currency}.`,es:`El valor m\xEDnimo es ${e.min} ${e.currency}.`,de:`Der minimale Betrag betr\xE4gt ${e.min} ${e.currency}.`,fr:`Le montant minimum est ${e.min} ${e.currency}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0930\u093E\u0936\u093F ${e.min} ${e.currency} \u0939\u0948\u0964`}),i18n_generic_validation_error:()=>({en:"There are errors in the form.",pt:"Existem erros no formul\xE1rio.",es:"Hay errores en el formulario.",de:"Es gibt Fehler im Formular.",fr:"Il y a des erreurs dans le formulaire.",hi:"\u092B\u0949\u0930\u094D\u092E \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F\u092F\u093E\u0902 \u0939\u0948\u0902\u0964"}),i18n_back_action:()=>({en:"Back",pt:"Voltar",es:"Volver",de:"Zur\xFCck",fr:"Retour",hi:"\u0935\u093E\u092A\u0938"}),i18n_start_action:()=>({en:"Start",pt:"Iniciar",es:"Comenzar",de:"Starten",fr:"D\xE9marrer",hi:"\u0936\u0941\u0930\u0942"}),i18n_restart_action:()=>({en:"Restart",pt:"Reiniciar",es:"Reiniciar",de:"Neustarten",fr:"Red\xE9marrer",hi:"\u092A\u0941\u0928\u0903 \u0906\u0930\u0902\u092D \u0915\u0930\u0947\u0902"}),i18n_next_action:()=>({en:"Next",pt:"Pr\xF3ximo",es:"Siguiente",de:"N\xE4chster",fr:"Suivant",hi:"\u0905\u0917\u0932\u093E"}),i18n_end_message:()=>({en:"Thank you",pt:"Obrigado",es:"Gracias",de:"Danke",fr:"Merci",hi:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926"}),i18n_error_message:()=>({en:"Oops... something went wrong.",pt:"Oops... algo deu errado.",es:"Oops... algo sali\xF3 mal.",de:"Oops... etwas ist schief gelaufen.",fr:"Oops... quelque chose s'est mal pass\xE9.",hi:"\u0909\u0939... \u0915\u0941\u091B \u0917\u0932\u0924 \u0939\u094B \u0917\u092F\u093E\u0964"}),i18n_lock_failed_running:()=>({en:"This form is already being filled",pt:"Este formul\xE1rio j\xE1 est\xE1 sendo preenchido",es:"Este formulario ya est\xE1 siendo completado",de:"Dieses Formular wird bereits ausgef\xFCllt",fr:"Ce formulaire est d\xE9j\xE0 en cours de remplissage",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930 \u0930\u0939\u093E \u0939\u0948"}),i18n_lock_failed_not_running:()=>({en:"This form was already filled",pt:"Este formul\xE1rio j\xE1 foi preenchido",es:"Este formulario ya fue completado",de:"Dieses Formular wurde bereits ausgef\xFCllt",fr:"Ce formulaire a d\xE9j\xE0 \xE9t\xE9 rempli",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930\u093E \u0917\u092F\u093E \u0925\u093E"}),i18n_auth_validate_your_email:()=>({en:"Validate your email",pt:"Valide seu email",es:"Valida tu email",de:"\xDCberpr\xFCfen Sie Ihre E-Mail",fr:"Validez votre email",hi:"\u0905\u092A\u0928\u093E \u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_info_description:()=>({en:"Please enter your work email and continue to receive a verification code.",pt:"Por favor, insira seu email de trabalho e continue para receber um c\xF3digo de verifica\xE7\xE3o.",es:"Por favor, introduce tu email de trabajo y contin\xFAa para recibir un c\xF3digo de verificaci\xF3n.",de:"Bitte geben Sie Ihre Arbeits-E-Mail-Adresse ein und fahren Sie fort, um einen Best\xE4tigungscode zu erhalten.",fr:"Veuillez entrer votre email de travail et continuer pour recevoir un code de v\xE9rification.",hi:"\u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u093E \u0915\u093E\u092E \u0915\u093E \u0908\u092E\u0947\u0932 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902 \u0914\u0930 \u090F\u0915 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902\u0964"}),i18n_auth_validate_your_email_login:e=>({en:`Login to ${e.brandName||"Abstra Project"}`,pt:`Entrar na ${e.brandName||"Abstra Project"}`,es:`Iniciar sesi\xF3n en ${e.brandName||"Abstra Project"}`,de:`Anmelden bei ${e.brandName||"Abstra Project"}`,fr:`Se connecter \xE0 ${e.brandName||"Abstra Project"}`,hi:`${e.brandName||"Abstra Project"} \u092E\u0947\u0902 \u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902`}),i18n_auth_enter_your_work_email:()=>({en:"Work email address",pt:"Endere\xE7o de email de trabalho",es:"Direcci\xF3n de correo electr\xF3nico de trabajo",de:"Arbeits-E-Mail-Adresse",fr:"Adresse e-mail professionnelle",hi:"\u0915\u093E\u092E \u0915\u093E \u0908\u092E\u0947\u0932 \u092A\u0924\u093E"}),i18n_auth_enter_your_email:()=>({en:"Email address",pt:"Endere\xE7o de email",es:"Direcci\xF3n de correo electr\xF3nico",de:"E-Mail-Adresse",fr:"Adresse e-mail",hi:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E"}),i18n_auth_enter_your_token:()=>({en:"Type your verification code",pt:"Digite seu c\xF3digo de verifica\xE7\xE3o",es:"Escribe tu c\xF3digo de verificaci\xF3n",de:"Geben Sie Ihren Best\xE4tigungscode ein",fr:"Tapez votre code de v\xE9rification",hi:"\u0905\u092A\u0928\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u091F\u093E\u0907\u092A \u0915\u0930\u0947\u0902"}),i18n_connectors_ask_for_access:e=>({en:`I would like to connect my ${e} account`,pt:`Gostaria de conectar minha conta ${e}`,es:`Me gustar\xEDa conectar mi cuenta de ${e}`,de:`Ich m\xF6chte mein ${e}-Konto verbinden`,fr:`Je voudrais connecter mon compte ${e}`,hi:`\u092E\u0948\u0902 \u0905\u092A\u0928\u093E ${e} \u0916\u093E\u0924\u093E \u0915\u0928\u0947\u0915\u094D\u091F \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0942\u0902\u0917\u093E`}),i18n_create_or_choose_project:()=>({en:"Select or create a new project",pt:"Selecione ou crie um novo projeto",es:"Selecciona o crea un nuevo proyecto",de:"W\xE4hlen oder erstellen Sie ein neues Projekt",fr:"S\xE9lectionnez ou cr\xE9ez un nouveau projet",hi:"\u090F\u0915 \u0928\u092F\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902 \u092F\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_organization:()=>({en:"Organization",pt:"Organiza\xE7\xE3o",es:"Organizaci\xF3n",de:"Organisation",fr:"Organisation",hi:"\u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_choose_organization:()=>({en:"Choose an organization",pt:"Escolha uma organiza\xE7\xE3o",es:"Elige una organizaci\xF3n",de:"W\xE4hlen Sie eine Organisation",fr:"Choisissez une organisation",hi:"\u090F\u0915 \u0938\u0902\u0917\u0920\u0928 \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_new_organization:()=>({en:"New organization",pt:"Nova organiza\xE7\xE3o",es:"Nueva organizaci\xF3n",de:"Neue Organisation",fr:"Nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_existing_organizations:()=>({en:"Existing organizations",pt:"Organiza\xE7\xF5es existentes",es:"Organizaciones existentes",de:"Bestehende Organisationen",fr:"Organisations existantes",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_organization_name:()=>({en:"Organization name",pt:"Nome da organiza\xE7\xE3o",es:"Nombre de la organizaci\xF3n",de:"Organisationsname",fr:"Nom de l'organisation",hi:"\u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_organization_name:()=>({en:"Choose a name for your new organization",pt:"Escolha um nome para a sua nova organiza\xE7\xE3o",es:"Elige un nombre para tu nueva organizaci\xF3n",de:"W\xE4hlen Sie einen Namen f\xFCr Ihre neue Organisation",fr:"Choisissez un nom pour votre nouvelle organisation",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project:()=>({en:"Project",pt:"Projeto",es:"Proyecto",de:"Projekt",fr:"Projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_choose_project:()=>({en:"Choose a project",pt:"Escolha um projeto",es:"Elige un proyecto",de:"W\xE4hlen Sie ein Projekt",fr:"Choisissez un projet",hi:"\u090F\u0915 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project_name:()=>({en:"Project name",pt:"Nome do projeto",es:"Nombre del proyecto",de:"Projektname",fr:"Nom du projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_project_name:()=>({en:"Choose a name for your new project",pt:"Escolha um nome para o seu novo projeto",es:"Elige un nombre para tu nuevo proyecto",de:"W\xE4hlen Sie einen Namen f\xFCr Ihr neues Projekt",fr:"Choisissez un nom pour votre nouveau projet",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_create_new_organization:()=>({en:"Create new organization",pt:"Criar nova organiza\xE7\xE3o",es:"Crear nueva organizaci\xF3n",de:"Neue Organisation erstellen",fr:"Cr\xE9er une nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928 \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_new_project:()=>({en:"New project",pt:"Novo projeto",es:"Nuevo proyecto",de:"Neues Projekt",fr:"Nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_existing_projects:()=>({en:"Existing projects",pt:"Projetos existentes",es:"Proyectos existentes",de:"Bestehende Projekte",fr:"Projets existants",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_create_new_project:()=>({en:"Create new project",pt:"Criar novo projeto",es:"Crear nuevo proyecto",de:"Neues Projekt erstellen",fr:"Cr\xE9er un nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_api_key_info:()=>({en:"Use this API key to access your cloud resources.",pt:"Use esta chave de API para acessar seus recursos na nuvem.",es:"Utiliza esta clave de API para acceder a tus recursos en la nube.",de:"Verwenden Sie diesen API-Schl\xFCssel, um auf Ihre Cloud-Ressourcen zuzugreifen.",fr:"Utilisez cette cl\xE9 API pour acc\xE9der \xE0 vos ressources cloud.",hi:"\u0905\u092A\u0928\u0947 \u0915\u094D\u0932\u093E\u0909\u0921 \u0938\u0902\u0938\u093E\u0927\u0928\u094B\u0902 \u0924\u0915 \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0907\u0938 API \u0915\u0941\u0902\u091C\u0940 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902\u0964"}),i18n_get_api_key_api_key_warning:()=>({en:"This is a secret key. Do not share it with anyone and make sure to store it in a safe place.",pt:"Esta \xE9 uma chave secreta. N\xE3o a compartilhe com ningu\xE9m e certifique-se de armazen\xE1-la em um local seguro.",es:"Esta es una clave secreta. No la compartas con nadie y aseg\xFArate de guardarla en un lugar seguro.",de:"Dies ist ein geheimer Schl\xFCssel. Teilen Sie es nicht mit anderen und stellen Sie sicher, dass Sie es an einem sicheren Ort aufbewahren.",fr:"C'est une cl\xE9 secr\xE8te. Ne le partagez avec personne et assurez-vous de le stocker dans un endroit s\xFBr.",hi:"\u092F\u0939 \u090F\u0915 \u0917\u0941\u092A\u094D\u0924 \u0915\u0941\u0902\u091C\u0940 \u0939\u0948\u0964 \u0907\u0938\u0947 \u0915\u093F\u0938\u0940 \u0915\u0947 \u0938\u093E\u0925 \u0938\u093E\u091D\u093E \u0928 \u0915\u0930\u0947\u0902 \u0914\u0930 \u0938\u0941\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u0930\u0947\u0902 \u0915\u093F \u0906\u092A \u0907\u0938\u0947 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0938\u094D\u0925\u093E\u0928 \u092A\u0930 \u0938\u094D\u091F\u094B\u0930 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_invalid_email:()=>({en:"Invalid email, please try again.",pt:"Email inv\xE1lido, tente novamente.",es:"Email inv\xE1lido, int\xE9ntalo de nuevo.",de:"E-Mail ung\xFCltig, bitte versuchen Sie es erneut.",fr:"Email invalide, veuillez r\xE9essayer.",hi:"\u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_send_code:()=>({en:"Send verification code",pt:"Enviar c\xF3digo de verifica\xE7\xE3o",es:"Enviar c\xF3digo de verificaci\xF3n",de:"Best\xE4tigungscode senden",fr:"Envoyer le code de v\xE9rification",hi:"\u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_label:e=>({en:`Check ${e.email}'s inbox and enter your verification code below`,pt:`Verifique a caixa de entrada de ${e.email} e insira o c\xF3digo de verifica\xE7\xE3o abaixo`,es:`Revisa la bandeja de entrada de ${e.email} y escribe el c\xF3digo de verificaci\xF3n abajo`,de:`\xDCberpr\xFCfen Sie den Posteingang von ${e.email} und geben Sie den Best\xE4tigungscode unten ein`,fr:`V\xE9rifiez la bo\xEEte de r\xE9ception de ${e.email} et entrez le code de v\xE9rification ci-dessous`,hi:`\u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 ${e.email} \u0915\u0940 \u0907\u0928\u092C\u0949\u0915\u094D\u0938 \u0914\u0930 \u0928\u0940\u091A\u0947 \u0905\u092A\u0928\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902`}),i18n_auth_token_development_warning:()=>({en:"You\u2019re in development mode, any token will work",pt:"Voc\xEA est\xE1 em modo de desenvolvimento, qualquer token funcionar\xE1",es:"Est\xE1s en modo de desarrollo, cualquier token funcionar\xE1",de:"Sie sind im Entwicklungsmodus, jeder Token funktioniert",fr:"Vous \xEAtes en mode d\xE9veloppement, n\u2019importe quel token fonctionnera",hi:"\u0906\u092A \u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0939\u0948\u0902, \u0915\u094B\u0908 \u092D\u0940 \u091F\u094B\u0915\u0928 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E"}),i18n_auth_token_expired:()=>({en:"Token has expired, please retry sending it.",pt:"Token expirou, tente reenviar.",es:"Token ha expirado, int\xE9ntalo reenvi\xE1ndolo.",de:"Token ist abgelaufen, bitte versuchen Sie es erneut zu senden.",fr:"Token est expir\xE9, essayez de le renvoyer.",hi:"\u091F\u094B\u0915\u0928 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924, \u0907\u0938\u0947 \u092B\u093F\u0930 \u0938\u0947 \u092D\u0947\u091C\u0928\u0947 \u0915\u093E \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_token_invalid:()=>({en:"Invalid token, please try again or go back and change you email address.",pt:"Token inv\xE1lido, tente novamente ou volte e altere o seu endere\xE7o de email.",es:"Token inv\xE1lido, por favor intenta de nuevo o vuelve y cambia tu direcci\xF3n de correo electr\xF3nico.",de:"Token ung\xFCltig, bitte versuchen Sie es erneut oder gehen Sie zur\xFCck und \xE4ndern Sie Ihre E-Mail Adresse.",fr:"Token invalide, veuillez r\xE9essayer ou revenir en arri\xE8re et changez votre adresse e-mail.",hi:"\u091F\u094B\u0915\u0928 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0935\u093E\u092A\u0938 \u091C\u093E\u090F\u0902 \u0914\u0930 \u0906\u092A\u0915\u093E \u0908\u092E\u0947\u0932 \u092A\u0924\u093E \u092C\u0926\u0932\u0947\u0902\u0964"}),i18n_auth_token_verify_email:()=>({en:"Verify email",pt:"Verificar email",es:"Verificar email",de:"E-Mail verifizieren",fr:"V\xE9rifier email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_edit_email:()=>({en:"Use another email",pt:"Usar outro email",es:"Usar otro email",de:"Eine andere E-Mail-Adresse verwenden",fr:"Utiliser un autre email",hi:"\u0926\u0942\u0938\u0930\u093E \u0908\u092E\u0947\u0932 \u092A\u094D\u0930\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_auth_token_resend_email:()=>({en:"Send new code",pt:"Enviar novo c\xF3digo",es:"Enviar nuevo c\xF3digo",de:"Neuen Code senden",fr:"Envoyer un nouveau code",hi:"\u0928\u092F\u093E \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_footer_alternative_email:()=>({en:"If you haven't received the verification code, please check your spam folder",pt:"Se voc\xEA n\xE3o recebeu o c\xF3digo de verifica\xE7\xE3o, verifique sua caixa de spam",es:"Si no has recibido el c\xF3digo de verificaci\xF3n, por favor revisa tu carpeta de spam",de:"Wenn Sie den Best\xE4tigungscode nicht erhalten haben, \xFCberpr\xFCfen Sie bitte Ihren Spam-Ordner",fr:"Si vous n'avez pas re\xE7u le code de v\xE9rification, veuillez v\xE9rifier votre dossier de spam",hi:"\u092F\u0926\u093F \u0906\u092A\u0928\u0947 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u0947 \u0938\u094D\u092A\u0948\u092E \u092B\u093C\u094B\u0932\u094D\u0921\u0930 \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902"}),i18n_local_auth_info_description:()=>({en:"In development mode any email and code will be accepted.",pt:"No modo de desenvolvimento qualquer email e c\xF3digo ser\xE3o aceitos.",es:"En modo de desarrollo cualquier email y c\xF3digo ser\xE1n aceptados.",de:"Im Entwicklungsmodus werden jede E-Mail und jeder Code akzeptiert.",fr:"En mode d\xE9veloppement, tout email et code seront accept\xE9s.",hi:"\u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0908\u092E\u0947\u0932 \u0914\u0930 \u0915\u094B\u0921 \u0915\u094B \u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0915\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E\u0964"}),i18n_local_auth_info_authenticate:()=>({en:"Validate email",pt:"Validar email",es:"Validar email",de:"E-Mail best\xE4tigen",fr:"Valider email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_error_invalid_date:()=>({en:"Invalid date",pt:"Data inv\xE1lida",es:"Fecha no v\xE1lida",de:"Ung\xFCltiges Datum",fr:"Date invalide",hi:"\u0905\u0935\u0948\u0927 \u0924\u093F\u0925\u093F"}),i18n_camera_permission_denied:()=>({en:"Camera access denied",pt:"Acesso \xE0 c\xE2mera negado",es:"Acceso a la c\xE1mara denegado",de:"Kamerazugriff verweigert",fr:"Acc\xE8s \xE0 la cam\xE9ra refus\xE9",hi:"\u0915\u0948\u092E\u0930\u093E \u090F\u0915\u094D\u0938\u0947\u0938 \u0928\u093E\u0907\u091F\u0947\u0921"}),i18n_no_camera_found:()=>({en:"No camera found",pt:"Nenhuma c\xE2mera encontrada",es:"No se encontr\xF3 ninguna c\xE1mara",de:"Keine Kamera gefunden",fr:"Aucune cam\xE9ra trouv\xE9e",hi:"\u0915\u094B\u0908 \u0915\u0948\u092E\u0930\u093E \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_camera_already_in_use:()=>({en:"Camera is already in use",pt:"C\xE2mera j\xE1 est\xE1 em uso",es:"La c\xE1mara ya est\xE1 en uso",de:"Kamera wird bereits verwendet",fr:"La cam\xE9ra est d\xE9j\xE0 utilis\xE9e",hi:"\u0915\u0948\u092E\u0930\u093E \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u0909\u092A\u092F\u094B\u0917 \u092E\u0947\u0902 \u0939\u0948"}),i18n_permission_error:()=>({en:"An error occurred while accessing the camera",pt:"Ocorreu um erro ao acessar a c\xE2mera",es:"Se produjo un error al acceder a la c\xE1mara",de:"Beim Zugriff auf die Kamera ist ein Fehler aufgetreten",fr:"Une erreur s'est produite lors de l'acc\xE8s \xE0 la cam\xE9ra",hi:"\u0915\u0948\u092E\u0930\u093E \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0924\u0947 \u0938\u092E\u092F \u090F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F \u0906\u0908"}),i18n_access_denied:()=>({en:"Access denied",pt:"Acesso negado",es:"Acceso denegado",de:"Zugriff verweigert",fr:"Acc\xE8s refus\xE9",hi:"\u092A\u0939\u0941\u0902\u091A \u0928\u093F\u0937\u0947\u0927\u093F\u0924"}),i18n_access_denied_message:()=>({en:"You do not have the necessary permissions to access this page. Please contact the administrator to request access.",pt:"Voc\xEA n\xE3o tem as permiss\xF5es necess\xE1rias para acessar esta p\xE1gina. Entre em contato com o administrador para solicitar acesso.",es:"No tienes los permisos necesarios para acceder a esta p\xE1gina. Ponte en contacto con el administrador para solicitar acceso.",de:"Sie haben nicht die erforderlichen Berechtigungen, um auf diese Seite zuzugreifen. Bitte kontaktieren Sie den Administrator, um Zugriff anzufordern.",fr:"Vous n'avez pas les autorisations n\xE9cessaires pour acc\xE9der \xE0 cette page. Veuillez contacter l'administrateur pour demander l'acc\xE8s.",hi:"\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u0907\u0938 \u092A\u0947\u091C \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0906\u0935\u0936\u094D\u092F\u0915 \u0905\u0928\u0941\u092E\u0924\u093F\u092F\u093E\u0901 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0936\u093E\u0938\u0915 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_internal_error:()=>({en:"Internal error",pt:"Erro interno",es:"Error interno",de:"Interner Fehler",fr:"Erreur interne",hi:"\u0906\u0902\u0924\u0930\u093F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F"}),i18n_internal_error_message:()=>({en:"An unknown error ocurred. Please try again or contact support.",pt:"Ocorreu um erro desconhecido. Tente novamente ou entre em contato com o suporte.",es:"Se ha producido un error desconocido. Int\xE9ntalo de nuevo o ponte en contacto con el soporte.",de:"Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut oder kontaktieren Sie den Support.",fr:"Une erreur inconnue s\u2019est produite. Veuillez r\xE9essayer ou contacter le support.",hi:"\u090F\u0915 \u0905\u091C\u094D\u091E\u093E\u0924 \u0924\u094D\u0930\u0941\u091F\u093F \u0939\u0941\u0908\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0938\u092E\u0930\u094D\u0925\u0928 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_page_not_found:()=>({en:"Page not found",pt:"P\xE1gina n\xE3o encontrada",es:"P\xE1gina no encontrada",de:"Seite nicht gefunden",fr:"Page non trouv\xE9e",hi:"\u092A\u0943\u0937\u094D\u0920 \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_page_not_found_message:()=>({en:"The page you are looking for does not exist. Please check the URL and try again.",pt:"A p\xE1gina que voc\xEA est\xE1 procurando n\xE3o existe. Verifique a URL e tente novamente.",es:"La p\xE1gina que buscas no existe. Por favor, verifica la URL e int\xE9ntalo de nuevo.",de:"Die von Ihnen gesuchte Seite existiert nicht. Bitte \xFCberpr\xFCfen Sie die URL und versuchen Sie es erneut.",fr:"La page que vous recherchez n\u2019existe pas. Veuillez v\xE9rifier l\u2019URL et r\xE9essayer.",hi:"\u0906\u092A \u091C\u093F\u0938 \u092A\u0943\u0937\u094D\u0920 \u0915\u0940 \u0916\u094B\u091C \u0915\u0930 \u0930\u0939\u0947 \u0939\u0948\u0902, \u0935\u0939 \u092E\u094C\u091C\u0942\u0926 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E URL \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 \u0914\u0930 \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_error_invalid_file_format:e=>({en:`Invalid file extension. Expected formats: ${e.acceptedFormats}`,pt:`Extens\xE3o de arquivo inv\xE1lida. Formatos aceitos: ${e.acceptedFormats}`,es:`Extensi\xF3n de archivo inv\xE1lida. Formatos aceptados: ${e.acceptedFormats}`,de:`Ung\xFCltige Dateierweiterung. Akzeptierte Formate: ${e.acceptedFormats}`,fr:`Extension de fichier invalide. Formats accept\xE9s: ${e.acceptedFormats}`,hi:`\u0905\u092E\u093E\u0928\u094D\u092F \u092B\u093C\u093E\u0907\u0932 \u090F\u0915\u094D\u0938\u091F\u0947\u0902\u0936\u0928\u0964 \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092B\u093C\u0949\u0930\u094D\u092E\u0947\u091F\u094D\u0938: ${e.acceptedFormats}`})},WGe="en";class qGe{getBrowserLocale(){return navigator.language.split(/[-_]/)[0]}getSupportedLocale(t){return YGe.includes(t)?t:WGe}translate(t,n=null,...r){if(!(t in P0))throw new Error(`Missing translation for key ${t} in locale ${n}`);if(n==null){const i=this.getBrowserLocale(),o=Mo.getSupportedLocale(i);return P0[t](...r)[o]}return P0[t](...r)[n]}translateIfFound(t,n,...r){return t in P0?this.translate(t,n,...r):t}}const Mo=new qGe,Q1={txt:"text/plain",md:"text/markdown",csv:"text/csv",html:"text/html",css:"text/css",py:"text/x-python-script",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",mp3:"audio/mp3",wav:"audio/wav",flac:"audio/flac",aac:"audio/aac",ogg:"audio/ogg",wma:"audio/x-ms-wma",avi:"video/avi",mp4:"video/mp4",mkv:"video/x-matroska",mov:"video/quicktime",webm:"video/webm",flv:"video/x-flv",wmv:"video/x-ms-wmv",m4v:"video/x-m4v",zip:"application/zip",rar:"application/vnd.rar","7z":"application/x-7z-compressed",tar:"application/x-tar",gzip:"application/gzip",js:"application/javascript",ts:"application/typescript",json:"application/json",xml:"application/xml",yaml:"application/x-yaml",toml:"application/toml",pdf:"application/pdf",xls:"application/vnd.ms-excel",doc:"application/msword",ppt:"application/vnd.ms-powerpoint",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",image:"image/*",video:"video/*",audio:"audio/*",text:"text/*",application:"application/*",unknown:"*"},KGe=e=>{const t=e==null?void 0:e.replace(".","");return t in Q1?Q1[t]:Q1.unknown};class PG{constructor(t,n,r,i,o,l,s,u){wn(this,"initialFileList",()=>this.value.map(t=>{const n=new File([],t);return{uid:t,name:t.split("/").pop()||t,status:"done",response:[t],url:t,type:KGe(t.split(".").pop()),size:n.size}}).map(t=>({...t,thumbUrl:this.thumbnail(t)})));wn(this,"emitValue",t=>{this.value=t,this.emit("update:value",t)});wn(this,"emitErrors",t=>{this.emit("update:errors",t)});wn(this,"handleReject",()=>{var n;const t=((n=this.acceptedFormats)==null?void 0:n.join(", "))||"*";this.emitErrors([Mo.translate("i18n_upload_area_rejected_file_extension",this.locale,{formats:t})])});wn(this,"beforeUpload",t=>this.maxFileSize&&t.size&&t.size/1024/1024>this.maxFileSize?(this.emitErrors([Mo.translate("i18n_upload_max_size_excided",this.locale,{fileName:t.name,maxSize:this.maxFileSize})]),OG.LIST_IGNORE):!0);wn(this,"handleChange",t=>{t.file.status==="done"&&(t.file.thumbUrl=this.thumbnail(t.file));const r=t.fileList.filter(i=>i.status==="done").map(i=>i.response[0])||[];this.emitValue(r),t.file.status==="error"&&this.emitErrors([Mo.translate("i18n_upload_failed",this.locale,{fileName:t.file.name})])});this.emit=t,this.value=n,this.thumbnail=r,this.locale=i,this.acceptedFormats=o,this.acceptedMimeTypes=l,this.maxFileSize=s,this.multiple=u}get accept(){return this.acceptedMimeTypes||"*"}get action(){return"/_files/"}get method(){return"PUT"}get headers(){return{cache:"no-cache",mode:"cors"}}get progress(){return{strokeWidth:5,showInfo:!0,format:t=>`${(t==null?void 0:t.toFixed(0))||0}%`}}get maxCount(){return this.multiple?void 0:1}}const ZGe=we({__name:"CardList",props:{value:{},errors:{},locale:{},acceptedFormats:{},acceptedMimeTypes:{},maxFileSize:{},multiple:{type:Boolean},disabled:{type:Boolean},capture:{type:Boolean}},emits:["update:value","update:errors"],setup(e,{expose:t,emit:n}){const r=e,i=Ie(null),o=new MG,l=new PG(n,r.value,o.fileThumbnail,r.locale,r.acceptedFormats,r.acceptedMimeTypes,r.maxFileSize,r.multiple),s=Ie(l.initialFileList()),u=k(()=>r.multiple||s.value.length===0);return t({uploadRef:i}),(a,c)=>(oe(),de(tt,null,[x(We(OG),{ref_key:"uploadRef",ref:i,capture:a.capture,fileList:s.value,"onUpdate:fileList":c[0]||(c[0]=d=>s.value=d),accept:We(l).accept,action:We(l).action,method:We(l).method,"max-count":We(l).maxCount,headers:We(l).headers,progress:We(l).progress,"before-upload":We(l).beforeUpload,onChange:We(l).handleChange,onReject:We(l).handleReject,onPreview:We(o).handlePreview,multiple:a.multiple,disabled:a.disabled,"show-upload-list":!0,"list-type":"picture-card"},{iconRender:fn(({file:d})=>[x(NG,{file:d,ctrl:We(o),size:20},null,8,["file","ctrl"])]),default:fn(()=>[u.value?Ct(a.$slots,"ui",{key:0},void 0,!0):ft("",!0)]),_:3},8,["capture","fileList","accept","action","method","max-count","headers","progress","before-upload","onChange","onReject","onPreview","multiple","disabled"]),x(DG,{ctrl:We(o)},null,8,["ctrl"])],64))}});const kG=Fn(ZGe,[["__scopeId","data-v-441daa1d"]]);var $G={},gy={};gy.byteLength=JGe;gy.toByteArray=t7e;gy.fromByteArray=i7e;var ps=[],la=[],QGe=typeof Uint8Array<"u"?Uint8Array:Array,X1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Fd=0,XGe=X1.length;Fd0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function JGe(e){var t=LG(e),n=t[0],r=t[1];return(n+r)*3/4-r}function e7e(e,t,n){return(t+n)*3/4-n}function t7e(e){var t,n=LG(e),r=n[0],i=n[1],o=new QGe(e7e(e,r,i)),l=0,s=i>0?r-4:r,u;for(u=0;u>16&255,o[l++]=t>>8&255,o[l++]=t&255;return i===2&&(t=la[e.charCodeAt(u)]<<2|la[e.charCodeAt(u+1)]>>4,o[l++]=t&255),i===1&&(t=la[e.charCodeAt(u)]<<10|la[e.charCodeAt(u+1)]<<4|la[e.charCodeAt(u+2)]>>2,o[l++]=t>>8&255,o[l++]=t&255),o}function n7e(e){return ps[e>>18&63]+ps[e>>12&63]+ps[e>>6&63]+ps[e&63]}function r7e(e,t,n){for(var r,i=[],o=t;os?s:l+o));return r===1?(t=e[n-1],i.push(ps[t>>2]+ps[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(ps[t>>10]+ps[t>>4&63]+ps[t<<2&63]+"=")),i.join("")}var cA={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */cA.read=function(e,t,n,r,i){var o,l,s=i*8-r-1,u=(1<>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=o*256+e[t+d],d+=p,c-=8);for(l=o&(1<<-c)-1,o>>=-c,c+=r;c>0;l=l*256+e[t+d],d+=p,c-=8);if(o===0)o=1-a;else{if(o===u)return l?NaN:(f?-1:1)*(1/0);l=l+Math.pow(2,r),o=o-a}return(f?-1:1)*l*Math.pow(2,o-r)};cA.write=function(e,t,n,r,i,o){var l,s,u,a=o*8-i-1,c=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,g=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-l))<1&&(l--,u*=2),l+d>=1?t+=p/u:t+=p*Math.pow(2,1-d),t*u>=2&&(l++,u/=2),l+d>=c?(s=0,l=c):l+d>=1?(s=(t*u-1)*Math.pow(2,i),l=l+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[n+f]=s&255,f+=g,s/=256,i-=8);for(l=l<0;e[n+f]=l&255,f+=g,l/=256,a-=8);e[n+f-g]|=m*128};/*! + `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:i+e.paddingXS,fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${u}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},N8e=A8e,H4=new Yt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),V4=new Yt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),D8e=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:H4},[`${n}-leave`]:{animationName:V4}}},H4,V4]},M8e=D8e,P8e=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i}=e,o=`${t}-list`,l=`${o}-item`;return{[`${t}-wrapper`]:{[`${o}${o}-picture, ${o}${o}-picture-card`]:{[l]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:I(I({},El),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:i,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{["svg path[fill='#e6f7ff']"]:{fill:e.colorErrorBg},["svg path[fill='#1890ff']"]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:i}}}}}},k8e=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i}=e,o=`${t}-list`,l=`${o}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:I(I({},Yu()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card`]:{[`${o}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Cn(i).setAlpha(.65).toRgbString(),"&:hover":{color:i}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},$8e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},L8e=$8e,F8e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:I(I({},Pn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},B8e=Ln("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightLG:o}=e,l=Math.round(n*r),s=Wt(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+i,uploadPicCardSize:o*2.55});return[F8e(s),R8e(s),P8e(s),k8e(s),N8e(s),M8e(s),L8e(s),jS(s)]});var U8e=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function s(c){try{a(r.next(c))}catch(d){l(d)}}function u(c){try{a(r.throw(c))}catch(d){l(d)}}function a(c){c.done?o(c.value):i(c.value).then(s,u)}a((r=r.apply(e,t||[])).next())})},H8e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var D;return(D=u.value)!==null&&D!==void 0?D:d.value}),[f,g]=ti(e.defaultFileList||[],{value:xt(e,"fileList"),postState:D=>{const B=Date.now();return(D!=null?D:[]).map((P,$)=>(!P.uid&&!Object.isFrozen(P)&&(P.uid=`__AUTO__${B}_${$}__`),P))}}),m=Ie("drop"),h=Ie(null);_t(()=>{Br(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Br(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Br(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const v=(D,B,P)=>{var $,M;let L=[...B];e.maxCount===1?L=L.slice(-1):e.maxCount&&(L=L.slice(0,e.maxCount)),g(L);const H={file:D,fileList:L};P&&(H.event=P),($=e["onUpdate:fileList"])===null||$===void 0||$.call(e,H.fileList),(M=e.onChange)===null||M===void 0||M.call(e,H),o.onFieldChange()},b=(D,B)=>U8e(this,void 0,void 0,function*(){const{beforeUpload:P,transformFile:$}=e;let M=D;if(P){const L=yield P(D,B);if(L===!1)return!1;if(delete D[xm],L===xm)return Object.defineProperty(D,xm,{value:!0,configurable:!0}),!1;typeof L=="object"&&L&&(M=L)}return $&&(M=yield $(M)),M}),S=D=>{const B=D.filter(M=>!M.file[xm]);if(!B.length)return;const P=B.map(M=>D0(M.file));let $=[...f.value];P.forEach(M=>{$=M0(M,$)}),P.forEach((M,L)=>{let H=M;if(B[L].parsedFile)M.status="uploading";else{const{originFileObj:U}=M;let j;try{j=new File([U],U.name,{type:U.type})}catch{j=new Blob([U],{type:U.type}),j.name=U.name,j.lastModifiedDate=new Date,j.lastModified=new Date().getTime()}j.uid=M.uid,H=j}v(H,$)})},y=(D,B,P)=>{try{typeof D=="string"&&(D=JSON.parse(D))}catch{}if(!Z1(B,f.value))return;const $=D0(B);$.status="done",$.percent=100,$.response=D,$.xhr=P;const M=M0($,f.value);v($,M)},C=(D,B)=>{if(!Z1(B,f.value))return;const P=D0(B);P.status="uploading",P.percent=D.percent;const $=M0(P,f.value);v(P,$,D)},w=(D,B,P)=>{if(!Z1(P,f.value))return;const $=D0(P);$.error=D,$.response=B,$.status="error";const M=M0($,f.value);v($,M)},T=D=>{let B;const P=e.onRemove||e.remove;Promise.resolve(typeof P=="function"?P(D):P).then($=>{var M,L;if($===!1)return;const H=h8e(D,f.value);H&&(B=I(I({},D),{status:"removed"}),(M=f.value)===null||M===void 0||M.forEach(U=>{const j=B.uid!==void 0?"uid":"name";U[j]===B[j]&&!Object.isFrozen(U)&&(U.status="removed")}),(L=h.value)===null||L===void 0||L.abort(B),v(B,H))})},O=D=>{var B;m.value=D.type,D.type==="drop"&&((B=e.onDrop)===null||B===void 0||B.call(e,D))};i({onBatchStart:S,onSuccess:y,onProgress:C,onError:w,fileList:f,upload:h});const[R]=Za("Upload",ga.Upload,k(()=>e.locale)),N=(D,B)=>{const{removeIcon:P,previewIcon:$,downloadIcon:M,previewFile:L,onPreview:H,onDownload:U,isImageUrl:j,progress:G,itemRender:K,iconRender:Q,showUploadList:ne}=e,{showDownloadIcon:ae,showPreviewIcon:q,showRemoveIcon:ee}=typeof ne=="boolean"?{}:ne;return ne?x(O8e,{prefixCls:l.value,listType:e.listType,items:f.value,previewFile:L,onPreview:H,onDownload:U,onRemove:T,showRemoveIcon:!p.value&&ee,showPreviewIcon:q,showDownloadIcon:ae,removeIcon:P,previewIcon:$,downloadIcon:M,iconRender:Q,locale:R.value,isImageUrl:j,progress:G,itemRender:K,appendActionVisible:B,appendAction:D},I({},n)):D==null?void 0:D()};return()=>{var D,B,P;const{listType:$,type:M}=e,{class:L,style:H}=r,U=H8e(r,["class","style"]),j=I(I(I({onBatchStart:S,onError:w,onProgress:C,onSuccess:y},U),e),{id:(D=e.id)!==null&&D!==void 0?D:o.id.value,prefixCls:l.value,beforeUpload:b,onChange:void 0,disabled:p.value});delete j.remove,(!n.default||p.value)&&delete j.id;const G={[`${l.value}-rtl`]:s.value==="rtl"};if(M==="drag"){const ae=Fe(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:f.value.some(q=>q.status==="uploading"),[`${l.value}-drag-hover`]:m.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"},r.class,c.value);return a(x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,L,c.value)}),[x("div",{class:ae,onDrop:O,onDragover:O,onDragleave:O,style:r.style},[x($4,Z(Z({},j),{},{ref:h,class:`${l.value}-btn`}),Z({default:()=>[x("div",{class:`${l.value}-drag-container`},[(B=n.default)===null||B===void 0?void 0:B.call(n)])]},n))]),N()]))}const K=Fe(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${$}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"}),Q=li((P=n.default)===null||P===void 0?void 0:P.call(n)),ne=ae=>x("div",{class:K,style:ae},[x($4,Z(Z({},j),{},{ref:h}),n)]);return a($==="picture-card"?x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,G,r.class,c.value)}),[N(ne,!!(Q&&Q.length))]):x("span",Z(Z({},r),{},{class:Fe(`${l.value}-wrapper`,G,r.class,c.value)}),[ne(Q&&Q.length?void 0:{display:"none"}),N()]))}}});var z4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{height:i}=e,o=z4(e,["height"]),{style:l}=r,s=z4(r,["style"]),u=I(I(I({},o),s),{type:"drag",style:I(I({},l),{height:typeof i=="number"?`${i}px`:i})});return x(cv,u,n)}}}),V8e=uv,OG=I(cv,{Dragger:uv,LIST_IGNORE:xm,install(e){return e.component(cv.name,cv),e.component(uv.name,uv),e}});var z8e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:n}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:t}}]}},name:"close-circle",theme:"twotone"};const G8e=z8e;var j8e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:n}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:t}}]}},name:"edit",theme:"twotone"};const Y8e=j8e;var W8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const q8e=W8e;var K8e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const Z8e=K8e,IG=["wrap","nowrap","wrap-reverse"],RG=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],AG=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Q8e=(e,t)=>{const n={};return IG.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},X8e=(e,t)=>{const n={};return AG.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},J8e=(e,t)=>{const n={};return RG.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function e6e(e,t){return Fe(I(I(I({},Q8e(e,t)),X8e(e,t)),J8e(e,t)))}const t6e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},n6e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},r6e=e=>{const{componentCls:t}=e,n={};return IG.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},i6e=e=>{const{componentCls:t}=e,n={};return AG.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},o6e=e=>{const{componentCls:t}=e,n={};return RG.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},a6e=Ln("Flex",e=>{const t=Wt(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[t6e(t),n6e(t),r6e(t),i6e(t),o6e(t)]});function G4(e){return["small","middle","large"].includes(e)}const s6e=()=>({prefixCls:Bt(),vertical:nt(),wrap:Bt(),justify:Bt(),align:Bt(),flex:rn([Number,String]),gap:rn([Number,String]),component:wr()});var l6e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var c;return[l.value,u.value,e6e(l.value,e),{[`${l.value}-rtl`]:o.value==="rtl",[`${l.value}-gap-${e.gap}`]:G4(e.gap),[`${l.value}-vertical`]:(c=e.vertical)!==null&&c!==void 0?c:i==null?void 0:i.value.vertical}]});return()=>{var c;const{flex:d,gap:p,component:f="div"}=e,g=l6e(e,["flex","gap","component"]),m={};return d&&(m.flex=d),p&&!G4(p)&&(m.gap=`${p}px`),s(x(f,Z({class:[r.class,a.value],style:[r.style,m]},kn(g,["justify","wrap","align","vertical"])),{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}))}}}),u6e=ba(c6e),d6e=["width","height","fill","transform"],p6e={key:0},f6e=Ce("path",{d:"M204.41,51.63a108,108,0,1,0,0,152.74A107.38,107.38,0,0,0,204.41,51.63Zm-17,17A83.85,83.85,0,0,1,196.26,79L169,111.09l-23.3-65.21A83.52,83.52,0,0,1,187.43,68.6Zm-118.85,0a83.44,83.44,0,0,1,51.11-24.2l14.16,39.65L65.71,71.61C66.64,70.59,67.59,69.59,68.58,68.6ZM48,153.7a84.48,84.48,0,0,1,3.4-60.3L92.84,101Zm20.55,33.7A83.94,83.94,0,0,1,59.74,177L87,144.91l23.3,65.21A83.53,83.53,0,0,1,68.58,187.4Zm36.36-63.61,15.18-17.85,23.06,4.21,7.88,22.06-15.17,17.85-23.06-4.21Zm82.49,63.61a83.49,83.49,0,0,1-51.11,24.2L122.15,172l68.14,12.44C189.36,185.41,188.41,186.41,187.43,187.4ZM163.16,155,208,102.3a84.43,84.43,0,0,1-3.41,60.3Z"},null,-1),m6e=[f6e],g6e={key:1},h6e=Ce("path",{d:"M195.88,60.12a96,96,0,1,0,0,135.76A96,96,0,0,0,195.88,60.12Zm-55.34,103h0l-36.68-6.69h0L91.32,121.3l24.14-28.41h0l36.68,6.69,12.54,35.12Z",opacity:"0.2"},null,-1),_6e=Ce("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),v6e=[h6e,_6e],b6e={key:2},S6e=Ce("path",{d:"M232,128A104,104,0,0,0,54.46,54.46,104,104,0,0,0,128,232h.09A104,104,0,0,0,232,128ZM49.18,88.92l51.21,9.35L46.65,161.53A88.39,88.39,0,0,1,49.18,88.92Zm160.17,5.54a88.41,88.41,0,0,1-2.53,72.62l-51.21-9.35Zm-8.08-15.2L167.55,119,139.63,40.78a87.38,87.38,0,0,1,50.6,25A88.74,88.74,0,0,1,201.27,79.26ZM122.43,40.19l17.51,49L58.3,74.32a89.28,89.28,0,0,1,7.47-8.55A87.37,87.37,0,0,1,122.43,40.19ZM54.73,176.74,88.45,137l27.92,78.18a88,88,0,0,1-61.64-38.48Zm78.84,39.06-17.51-49L139.14,171h0l58.52,10.69a87.5,87.5,0,0,1-64.13,34.12Z"},null,-1),y6e=[S6e],E6e={key:3},C6e=Ce("path",{d:"M200.12,55.88A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.88Zm-102,66.67,19.65-23.14,29.86,5.46,10.21,28.58-19.65,23.14-29.86-5.46ZM209.93,90.69a90.24,90.24,0,0,1-2,78.63l-56.14-10.24Zm-6.16-11.28-36.94,43.48L136.66,38.42a89.31,89.31,0,0,1,55,25.94A91.33,91.33,0,0,1,203.77,79.41Zm-139.41-15A89.37,89.37,0,0,1,123.81,38.1L143,91.82,54.75,75.71A91.2,91.2,0,0,1,64.36,64.36ZM48,86.68l56.14,10.24L46.07,165.31a90.24,90.24,0,0,1,2-78.63Zm4.21,89.91,36.94-43.48,30.17,84.47a89.31,89.31,0,0,1-55-25.94A91.33,91.33,0,0,1,52.23,176.59Zm139.41,15a89.32,89.32,0,0,1-59.45,26.26L113,164.18l88.24,16.11A91.2,91.2,0,0,1,191.64,191.64Z"},null,-1),T6e=[C6e],w6e={key:4},x6e=Ce("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"},null,-1),O6e=[x6e],I6e={key:5},R6e=Ce("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm10.37,114.27-61-11.14L210.4,87a92.26,92.26,0,0,1-1.32,84.52ZM95.87,122.13,117,97.24l32.14,5.86,11,30.77L139,158.76l-32.14-5.86ZM206.24,79.58l-40.13,47.25L133.75,36.2a92.09,92.09,0,0,1,72.49,43.38ZM63,63a91.31,91.31,0,0,1,62.26-26.88L146,94.41,51.32,77.11A92.94,92.94,0,0,1,63,63Zm-16,21.49,61,11.14L45.6,169a92.26,92.26,0,0,1,1.32-84.52Zm2.84,92,40.13-47.25,32.36,90.63a92.09,92.09,0,0,1-72.49-43.38Zm143.29,16.63a91.31,91.31,0,0,1-62.26,26.88L110,161.59l94.72,17.3A92.94,92.94,0,0,1,193.05,193.05Z"},null,-1),A6e=[R6e],N6e={name:"PhAperture"},D6e=we({...N6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",p6e,m6e)):l.value==="duotone"?(oe(),de("g",g6e,v6e)):l.value==="fill"?(oe(),de("g",b6e,y6e)):l.value==="light"?(oe(),de("g",E6e,T6e)):l.value==="regular"?(oe(),de("g",w6e,O6e)):l.value==="thin"?(oe(),de("g",I6e,A6e)):ft("",!0)],16,d6e))}}),M6e=["width","height","fill","transform"],P6e={key:0},k6e=Ce("path",{d:"M47.51,112.49a12,12,0,0,1,17-17L116,147V32a12,12,0,0,1,24,0V147l51.51-51.52a12,12,0,0,1,17,17l-72,72a12,12,0,0,1-17,0ZM216,204H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"},null,-1),$6e=[k6e],L6e={key:1},F6e=Ce("path",{d:"M200,112l-72,72L56,112Z",opacity:"0.2"},null,-1),B6e=Ce("path",{d:"M122.34,189.66a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,200,104H136V32a8,8,0,0,0-16,0v72H56a8,8,0,0,0-5.66,13.66ZM180.69,120,128,172.69,75.31,120ZM224,216a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,216Z"},null,-1),U6e=[F6e,B6e],H6e={key:2},V6e=Ce("path",{d:"M50.34,117.66A8,8,0,0,1,56,104h64V32a8,8,0,0,1,16,0v72h64a8,8,0,0,1,5.66,13.66l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),z6e=[V6e],G6e={key:3},j6e=Ce("path",{d:"M51.76,116.24a6,6,0,0,1,8.48-8.48L122,169.51V32a6,6,0,0,1,12,0V169.51l61.76-61.75a6,6,0,0,1,8.48,8.48l-72,72a6,6,0,0,1-8.48,0ZM216,210H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"},null,-1),Y6e=[j6e],W6e={key:4},q6e=Ce("path",{d:"M50.34,117.66a8,8,0,0,1,11.32-11.32L120,164.69V32a8,8,0,0,1,16,0V164.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-72,72a8,8,0,0,1-11.32,0ZM216,208H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"},null,-1),K6e=[q6e],Z6e={key:5},Q6e=Ce("path",{d:"M53.17,114.83a4,4,0,0,1,5.66-5.66L124,174.34V32a4,4,0,0,1,8,0V174.34l65.17-65.17a4,4,0,1,1,5.66,5.66l-72,72a4,4,0,0,1-5.66,0ZM216,212H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"},null,-1),X6e=[Q6e],J6e={name:"PhArrowLineDown"},e3e=we({...J6e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",P6e,$6e)):l.value==="duotone"?(oe(),de("g",L6e,U6e)):l.value==="fill"?(oe(),de("g",H6e,z6e)):l.value==="light"?(oe(),de("g",G6e,Y6e)):l.value==="regular"?(oe(),de("g",W6e,K6e)):l.value==="thin"?(oe(),de("g",Z6e,X6e)):ft("",!0)],16,M6e))}}),t3e=["width","height","fill","transform"],n3e={key:0},r3e=Ce("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"},null,-1),i3e=[r3e],o3e={key:1},a3e=Ce("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"},null,-1),s3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),l3e=[a3e,s3e],c3e={key:2},u3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"},null,-1),d3e=[u3e],p3e={key:3},f3e=Ce("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"},null,-1),m3e=[f3e],g3e={key:4},h3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),_3e=[h3e],v3e={key:5},b3e=Ce("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"},null,-1),S3e=[b3e],y3e={name:"PhCamera"},E3e=we({...y3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",n3e,i3e)):l.value==="duotone"?(oe(),de("g",o3e,l3e)):l.value==="fill"?(oe(),de("g",c3e,d3e)):l.value==="light"?(oe(),de("g",p3e,m3e)):l.value==="regular"?(oe(),de("g",g3e,_3e)):l.value==="thin"?(oe(),de("g",v3e,S3e)):ft("",!0)],16,t3e))}}),C3e=["width","height","fill","transform"],T3e={key:0},w3e=Ce("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4Zm-32-92v20a12,12,0,0,1-12,12H148a12,12,0,0,1-7.76-21.14,28.07,28.07,0,0,0-29,2.73A12,12,0,0,1,96.79,94.4a52.28,52.28,0,0,1,61.14-.91A12,12,0,0,1,180,100Zm-18.41,52.8a12,12,0,0,1-2.38,16.8,51.71,51.71,0,0,1-31.13,10.34,52.3,52.3,0,0,1-30-9.44A12,12,0,0,1,76,164V144a12,12,0,0,1,12-12h20a12,12,0,0,1,7.76,21.14,28.07,28.07,0,0,0,29-2.73A12,12,0,0,1,161.59,152.8Z"},null,-1),x3e=[w3e],O3e={key:1},I3e=Ce("path",{d:"M224,80V192a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64H80L96,40h64l16,24h32A16,16,0,0,1,224,80Z",opacity:"0.2"},null,-1),R3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),A3e=[I3e,R3e],N3e={key:2},D3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56ZM156.81,166.4A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61,8,8,0,0,1,9.62,12.79ZM176,120a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Z"},null,-1),M3e=[D3e],P3e={key:3},k3e=Ce("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM174,96v24a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h10l-2-2.09a34.12,34.12,0,0,0-44.38-3.12,6,6,0,1,1-7.22-9.59,46.2,46.2,0,0,1,60.14,4.27.47.47,0,0,0,.1.1L162,105V96a6,6,0,0,1,12,0Zm-17.2,60.4a6,6,0,0,1-1.19,8.4,46.18,46.18,0,0,1-60.14-4.27l-.1-.1L94,159v9a6,6,0,0,1-12,0V144a6,6,0,0,1,6-6h24a6,6,0,0,1,0,12H102l2,2.09a34.12,34.12,0,0,0,44.38,3.12A6,6,0,0,1,156.8,156.4Z"},null,-1),$3e=[k3e],L3e={key:4},F3e=Ce("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM176,96v24a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h5.15a32.12,32.12,0,0,0-40.34-1.61A8,8,0,0,1,99.19,97.6,48.21,48.21,0,0,1,160,100.23V96a8,8,0,0,1,16,0Zm-17.61,59.2a8,8,0,0,1-1.58,11.2A48.21,48.21,0,0,1,96,163.77V168a8,8,0,0,1-16,0V144a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16h-5.15a32.12,32.12,0,0,0,40.34,1.61A8,8,0,0,1,158.39,155.2Z"},null,-1),B3e=[F3e],U3e={key:5},H3e=Ce("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM172,96v24a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h14.66l-5.27-5.52a36.12,36.12,0,0,0-47-3.29,4,4,0,1,1-4.8-6.39,44.17,44.17,0,0,1,57.51,4.09L164,110V96a4,4,0,0,1,8,0Zm-16.8,61.6a4,4,0,0,1-.8,5.6,44.15,44.15,0,0,1-57.51-4.09L92,154v14a4,4,0,0,1-8,0V144a4,4,0,0,1,4-4h24a4,4,0,0,1,0,8H97.34l5.27,5.52a36.12,36.12,0,0,0,47,3.29A4,4,0,0,1,155.2,157.6Z"},null,-1),V3e=[H3e],z3e={name:"PhCameraRotate"},G3e=we({...z3e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",T3e,x3e)):l.value==="duotone"?(oe(),de("g",O3e,A3e)):l.value==="fill"?(oe(),de("g",N3e,M3e)):l.value==="light"?(oe(),de("g",P3e,$3e)):l.value==="regular"?(oe(),de("g",L3e,B3e)):l.value==="thin"?(oe(),de("g",U3e,V3e)):ft("",!0)],16,C3e))}}),j3e=["width","height","fill","transform"],Y3e={key:0},W3e=Ce("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"},null,-1),q3e=[W3e],K3e={key:1},Z3e=Ce("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"},null,-1),Q3e=Ce("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),X3e=[Z3e,Q3e],J3e={key:2},eFe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"},null,-1),tFe=[eFe],nFe={key:3},rFe=Ce("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"},null,-1),iFe=[rFe],oFe={key:4},aFe=Ce("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1),sFe=[aFe],lFe={key:5},cFe=Ce("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"},null,-1),uFe=[cFe],dFe={name:"PhCheck"},pFe=we({...dFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",Y3e,q3e)):l.value==="duotone"?(oe(),de("g",K3e,X3e)):l.value==="fill"?(oe(),de("g",J3e,tFe)):l.value==="light"?(oe(),de("g",nFe,iFe)):l.value==="regular"?(oe(),de("g",oFe,sFe)):l.value==="thin"?(oe(),de("g",lFe,uFe)):ft("",!0)],16,j3e))}}),fFe=["width","height","fill","transform"],mFe={key:0},gFe=Ce("path",{d:"M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z"},null,-1),hFe=[gFe],_Fe={key:1},vFe=Ce("path",{d:"M240,128l-48,40H64L16,128,64,88H192Z",opacity:"0.2"},null,-1),bFe=Ce("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),SFe=[vFe,bFe],yFe={key:2},EFe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z"},null,-1),CFe=[EFe],TFe={key:3},wFe=Ce("path",{d:"M67.84,92.61,25.37,128l42.47,35.39a6,6,0,1,1-7.68,9.22l-48-40a6,6,0,0,1,0-9.22l48-40a6,6,0,0,1,7.68,9.22Zm176,30.78-48-40a6,6,0,1,0-7.68,9.22L230.63,128l-42.47,35.39a6,6,0,1,0,7.68,9.22l48-40a6,6,0,0,0,0-9.22Zm-81.79-89A6,6,0,0,0,154.36,38l-64,176A6,6,0,0,0,94,221.64a6.15,6.15,0,0,0,2,.36,6,6,0,0,0,5.64-3.95l64-176A6,6,0,0,0,162.05,34.36Z"},null,-1),xFe=[wFe],OFe={key:4},IFe=Ce("path",{d:"M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z"},null,-1),RFe=[IFe],AFe={key:5},NFe=Ce("path",{d:"M66.56,91.07,22.25,128l44.31,36.93A4,4,0,0,1,64,172a3.94,3.94,0,0,1-2.56-.93l-48-40a4,4,0,0,1,0-6.14l48-40a4,4,0,0,1,5.12,6.14Zm176,33.86-48-40a4,4,0,1,0-5.12,6.14L233.75,128l-44.31,36.93a4,4,0,1,0,5.12,6.14l48-40a4,4,0,0,0,0-6.14ZM161.37,36.24a4,4,0,0,0-5.13,2.39l-64,176a4,4,0,0,0,2.39,5.13A4.12,4.12,0,0,0,96,220a4,4,0,0,0,3.76-2.63l64-176A4,4,0,0,0,161.37,36.24Z"},null,-1),DFe=[NFe],MFe={name:"PhCode"},PFe=we({...MFe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",mFe,hFe)):l.value==="duotone"?(oe(),de("g",_Fe,SFe)):l.value==="fill"?(oe(),de("g",yFe,CFe)):l.value==="light"?(oe(),de("g",TFe,xFe)):l.value==="regular"?(oe(),de("g",OFe,RFe)):l.value==="thin"?(oe(),de("g",AFe,DFe)):ft("",!0)],16,fFe))}}),kFe=["width","height","fill","transform"],$Fe={key:0},LFe=Ce("path",{d:"M76,92A16,16,0,1,1,60,76,16,16,0,0,1,76,92Zm52-16a16,16,0,1,0,16,16A16,16,0,0,0,128,76Zm68,32a16,16,0,1,0-16-16A16,16,0,0,0,196,108ZM60,148a16,16,0,1,0,16,16A16,16,0,0,0,60,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,128,148Zm68,0a16,16,0,1,0,16,16A16,16,0,0,0,196,148Z"},null,-1),FFe=[LFe],BFe={key:1},UFe=Ce("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"},null,-1),HFe=Ce("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),VFe=[UFe,HFe],zFe={key:2},GFe=Ce("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM68,168a12,12,0,1,1,12-12A12,12,0,0,1,68,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,68,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,128,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,128,112Zm60,56a12,12,0,1,1,12-12A12,12,0,0,1,188,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,188,112Z"},null,-1),jFe=[GFe],YFe={key:3},WFe=Ce("path",{d:"M70,92A10,10,0,1,1,60,82,10,10,0,0,1,70,92Zm58-10a10,10,0,1,0,10,10A10,10,0,0,0,128,82Zm68,20a10,10,0,1,0-10-10A10,10,0,0,0,196,102ZM60,154a10,10,0,1,0,10,10A10,10,0,0,0,60,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,128,154Zm68,0a10,10,0,1,0,10,10A10,10,0,0,0,196,154Z"},null,-1),qFe=[WFe],KFe={key:4},ZFe=Ce("path",{d:"M72,92A12,12,0,1,1,60,80,12,12,0,0,1,72,92Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,128,80Zm68,24a12,12,0,1,0-12-12A12,12,0,0,0,196,104ZM60,152a12,12,0,1,0,12,12A12,12,0,0,0,60,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,128,152Zm68,0a12,12,0,1,0,12,12A12,12,0,0,0,196,152Z"},null,-1),QFe=[ZFe],XFe={key:5},JFe=Ce("path",{d:"M68,92a8,8,0,1,1-8-8A8,8,0,0,1,68,92Zm60-8a8,8,0,1,0,8,8A8,8,0,0,0,128,84Zm68,16a8,8,0,1,0-8-8A8,8,0,0,0,196,100ZM60,156a8,8,0,1,0,8,8A8,8,0,0,0,60,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,128,156Zm68,0a8,8,0,1,0,8,8A8,8,0,0,0,196,156Z"},null,-1),eBe=[JFe],tBe={name:"PhDotsSix"},nBe=we({...tBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",$Fe,FFe)):l.value==="duotone"?(oe(),de("g",BFe,VFe)):l.value==="fill"?(oe(),de("g",zFe,jFe)):l.value==="light"?(oe(),de("g",YFe,qFe)):l.value==="regular"?(oe(),de("g",KFe,QFe)):l.value==="thin"?(oe(),de("g",XFe,eBe)):ft("",!0)],16,kFe))}}),rBe=["width","height","fill","transform"],iBe={key:0},oBe=Ce("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"},null,-1),aBe=[oBe],sBe={key:1},lBe=Ce("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"},null,-1),cBe=Ce("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),uBe=[lBe,cBe],dBe={key:2},pBe=Ce("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),fBe=[pBe],mBe={key:3},gBe=Ce("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"},null,-1),hBe=[gBe],_Be={key:4},vBe=Ce("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"},null,-1),bBe=[vBe],SBe={key:5},yBe=Ce("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"},null,-1),EBe=[yBe],CBe={name:"PhDownload"},TBe=we({...CBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",iBe,aBe)):l.value==="duotone"?(oe(),de("g",sBe,uBe)):l.value==="fill"?(oe(),de("g",dBe,fBe)):l.value==="light"?(oe(),de("g",mBe,hBe)):l.value==="regular"?(oe(),de("g",_Be,bBe)):l.value==="thin"?(oe(),de("g",SBe,EBe)):ft("",!0)],16,rBe))}}),wBe=["width","height","fill","transform"],xBe={key:0},OBe=Ce("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM183,80H160V57ZM116,212V192h8a12,12,0,0,0,0-24h-8V152h8a12,12,0,0,0,0-24h-8V116a12,12,0,0,0-24,0v12H84a12,12,0,0,0,0,24h8v16H84a12,12,0,0,0,0,24h8v20H60V44h76V92a12,12,0,0,0,12,12h48V212Z"},null,-1),IBe=[OBe],RBe={key:1},ABe=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),NBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),DBe=[ABe,NBe],MBe={key:2},PBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H92a4,4,0,0,0,4-4V208H88.27A8.17,8.17,0,0,1,80,200.53,8,8,0,0,1,88,192h8V176H88.27A8.17,8.17,0,0,1,80,168.53,8,8,0,0,1,88,160h8V144H88.27A8.17,8.17,0,0,1,80,136.53,8,8,0,0,1,88,128h8v-7.73a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v8h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v16h7.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53h-8v20a4,4,0,0,0,4,4h84a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"},null,-1),kBe=[PBe],$Be={key:3},LBe=Ce("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H110V198h10a6,6,0,0,0,0-12H110V166h10a6,6,0,0,0,0-12H110V134h10a6,6,0,0,0,0-12H110V112a6,6,0,0,0-12,0v10H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H88a6,6,0,0,0,0,12H98v20H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"},null,-1),FBe=[LBe],BBe={key:4},UBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H112V200h8a8,8,0,0,0,0-16h-8V168h8a8,8,0,0,0,0-16h-8V136h8a8,8,0,0,0,0-16h-8v-8a8,8,0,0,0-16,0v8H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H88a8,8,0,0,0,0,16h8v16H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),HBe=[UBe],VBe={key:5},zBe=Ce("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H108V196h12a4,4,0,0,0,0-8H108V164h12a4,4,0,0,0,0-8H108V132h12a4,4,0,0,0,0-8H108V112a4,4,0,0,0-8,0v12H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H88a4,4,0,0,0,0,8h12v24H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"},null,-1),GBe=[zBe],jBe={name:"PhFileArchive"},YBe=we({...jBe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",xBe,IBe)):l.value==="duotone"?(oe(),de("g",RBe,DBe)):l.value==="fill"?(oe(),de("g",MBe,kBe)):l.value==="light"?(oe(),de("g",$Be,FBe)):l.value==="regular"?(oe(),de("g",BBe,HBe)):l.value==="thin"?(oe(),de("g",VBe,GBe)):ft("",!0)],16,wBe))}}),WBe=["width","height","fill","transform"],qBe={key:0},KBe=Ce("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160Zm-52,67a56,56,0,0,0-50.65,32.09A40,40,0,0,0,60,236h48a56,56,0,0,0,0-112Zm0,88H60a16,16,0,0,1-6.54-30.6,12,12,0,0,0,22.67-4.32,32.78,32.78,0,0,1,.92-5.3c.12-.36.22-.72.31-1.09A32,32,0,1,1,108,212Z"},null,-1),ZBe=[KBe],QBe={key:1},XBe=Ce("path",{d:"M208,88H152V32ZM108,136a44,44,0,0,0-42.34,32v0H60a28,28,0,0,0,0,56h48a44,44,0,0,0,0-88Z",opacity:"0.2"},null,-1),JBe=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),e9e=[XBe,JBe],t9e={key:2},n9e=Ce("path",{d:"M160,181a52.06,52.06,0,0,1-52,51H60.72C40.87,232,24,215.77,24,195.92a36,36,0,0,1,19.28-31.79,4,4,0,0,1,5.77,4.33,63.53,63.53,0,0,0-1,11.15A8.22,8.22,0,0,0,55.55,188,8,8,0,0,0,64,180a47.55,47.55,0,0,1,4.37-20h0A48,48,0,0,1,160,181Zm56-93V216a16,16,0,0,1-16,16H176a8,8,0,0,1,0-16h24V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"},null,-1),r9e=[n9e],i9e={key:3},o9e=Ce("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H176a6,6,0,0,0,0,12h24a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM108,130a50,50,0,0,0-46.66,32H60a34,34,0,0,0,0,68h48a50,50,0,0,0,0-100Zm0,88H60a22,22,0,0,1-1.65-43.94c-.06.47-.1.93-.15,1.4a6,6,0,1,0,12,1.08A38.57,38.57,0,0,1,71.3,170a5.71,5.71,0,0,0,.24-.86A38,38,0,1,1,108,218Z"},null,-1),a9e=[o9e],s9e={key:4},l9e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H176a8,8,0,0,0,0,16h24a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM108,128a52,52,0,0,0-48,32,36,36,0,0,0,0,72h48a52,52,0,0,0,0-104Zm0,88H60a20,20,0,0,1-3.81-39.64,8,8,0,0,0,16,.36,38,38,0,0,1,1.06-6.09,7.56,7.56,0,0,0,.27-1A36,36,0,1,1,108,216Z"},null,-1),c9e=[l9e],u9e={key:5},d9e=Ce("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H176a4,4,0,0,0,0,8h24a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM108,132a47.72,47.72,0,0,0-45.3,32H60a32,32,0,0,0,0,64h48a48,48,0,0,0,0-96Zm0,88H60a24,24,0,0,1,0-48h.66c-.2,1.2-.35,2.41-.46,3.64a4,4,0,0,0,8,.72,41.2,41.2,0,0,1,1.23-6.92,4.68,4.68,0,0,0,.21-.73A40,40,0,1,1,108,220Z"},null,-1),p9e=[d9e],f9e={name:"PhFileCloud"},m9e=we({...f9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",qBe,ZBe)):l.value==="duotone"?(oe(),de("g",QBe,e9e)):l.value==="fill"?(oe(),de("g",t9e,r9e)):l.value==="light"?(oe(),de("g",i9e,a9e)):l.value==="regular"?(oe(),de("g",s9e,c9e)):l.value==="thin"?(oe(),de("g",u9e,p9e)):ft("",!0)],16,WBe))}}),g9e=["width","height","fill","transform"],h9e={key:0},_9e=Ce("path",{d:"M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"},null,-1),v9e=[_9e],b9e={key:1},S9e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),y9e=Ce("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),E9e=[S9e,y9e],C9e={key:2},T9e=Ce("path",{d:"M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z"},null,-1),w9e=[T9e],x9e={key:3},O9e=Ce("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"},null,-1),I9e=[O9e],R9e={key:4},A9e=Ce("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"},null,-1),N9e=[A9e],D9e={key:5},M9e=Ce("path",{d:"M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z"},null,-1),P9e=[M9e],k9e={name:"PhFileDoc"},$9e=we({...k9e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",h9e,v9e)):l.value==="duotone"?(oe(),de("g",b9e,E9e)):l.value==="fill"?(oe(),de("g",C9e,w9e)):l.value==="light"?(oe(),de("g",x9e,I9e)):l.value==="regular"?(oe(),de("g",R9e,N9e)):l.value==="thin"?(oe(),de("g",D9e,P9e)):ft("",!0)],16,g9e))}}),L9e=["width","height","fill","transform"],F9e={key:0},B9e=Ce("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"},null,-1),U9e=[B9e],H9e={key:1},V9e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),z9e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),G9e=[V9e,z9e],j9e={key:2},Y9e=Ce("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"},null,-1),W9e=[Y9e],q9e={key:3},K9e=Ce("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),Z9e=[K9e],Q9e={key:4},X9e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),J9e=[X9e],e5e={key:5},t5e=Ce("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),n5e=[t5e],r5e={name:"PhFilePdf"},i5e=we({...r5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",F9e,U9e)):l.value==="duotone"?(oe(),de("g",H9e,G9e)):l.value==="fill"?(oe(),de("g",j9e,W9e)):l.value==="light"?(oe(),de("g",q9e,Z9e)):l.value==="regular"?(oe(),de("g",Q9e,J9e)):l.value==="thin"?(oe(),de("g",e5e,n5e)):ft("",!0)],16,L9e))}}),o5e=["width","height","fill","transform"],a5e={key:0},s5e=Ce("path",{d:"M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z"},null,-1),l5e=[s5e],c5e={key:1},u5e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),d5e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),p5e=[u5e,d5e],f5e={key:2},m5e=Ce("path",{d:"M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"},null,-1),g5e=[m5e],h5e={key:3},_5e=Ce("path",{d:"M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"},null,-1),v5e=[_5e],b5e={key:4},S5e=Ce("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"},null,-1),y5e=[S5e],E5e={key:5},C5e=Ce("path",{d:"M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"},null,-1),T5e=[C5e],w5e={name:"PhFilePpt"},x5e=we({...w5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",a5e,l5e)):l.value==="duotone"?(oe(),de("g",c5e,p5e)):l.value==="fill"?(oe(),de("g",f5e,g5e)):l.value==="light"?(oe(),de("g",h5e,v5e)):l.value==="regular"?(oe(),de("g",b5e,y5e)):l.value==="thin"?(oe(),de("g",E5e,T5e)):ft("",!0)],16,o5e))}}),O5e=["width","height","fill","transform"],I5e={key:0},R5e=Ce("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"},null,-1),A5e=[R5e],N5e={key:1},D5e=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),M5e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),P5e=[D5e,M5e],k5e={key:2},$5e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"},null,-1),L5e=[$5e],F5e={key:3},B5e=Ce("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"},null,-1),U5e=[B5e],H5e={key:4},V5e=Ce("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"},null,-1),z5e=[V5e],G5e={key:5},j5e=Ce("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"},null,-1),Y5e=[j5e],W5e={name:"PhFileText"},q5e=we({...W5e,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",I5e,A5e)):l.value==="duotone"?(oe(),de("g",N5e,P5e)):l.value==="fill"?(oe(),de("g",k5e,L5e)):l.value==="light"?(oe(),de("g",F5e,U5e)):l.value==="regular"?(oe(),de("g",H5e,z5e)):l.value==="thin"?(oe(),de("g",G5e,Y5e)):ft("",!0)],16,O5e))}}),K5e=["width","height","fill","transform"],Z5e={key:0},Q5e=Ce("path",{d:"M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"},null,-1),X5e=[Q5e],J5e={key:1},eUe=Ce("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),tUe=Ce("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),nUe=[eUe,tUe],rUe={key:2},iUe=Ce("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z"},null,-1),oUe=[iUe],aUe={key:3},sUe=Ce("path",{d:"M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z"},null,-1),lUe=[sUe],cUe={key:4},uUe=Ce("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"},null,-1),dUe=[uUe],pUe={key:5},fUe=Ce("path",{d:"M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z"},null,-1),mUe=[fUe],gUe={name:"PhFileXls"},hUe=we({...gUe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",Z5e,X5e)):l.value==="duotone"?(oe(),de("g",J5e,nUe)):l.value==="fill"?(oe(),de("g",rUe,oUe)):l.value==="light"?(oe(),de("g",aUe,lUe)):l.value==="regular"?(oe(),de("g",cUe,dUe)):l.value==="thin"?(oe(),de("g",pUe,mUe)):ft("",!0)],16,K5e))}}),_Ue=["width","height","fill","transform"],vUe={key:0},bUe=Ce("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"},null,-1),SUe=[bUe],yUe={key:1},EUe=Ce("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),CUe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),TUe=[EUe,CUe],wUe={key:2},xUe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"},null,-1),OUe=[xUe],IUe={key:3},RUe=Ce("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"},null,-1),AUe=[RUe],NUe={key:4},DUe=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"},null,-1),MUe=[DUe],PUe={key:5},kUe=Ce("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"},null,-1),$Ue=[kUe],LUe={name:"PhImage"},FUe=we({...LUe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",vUe,SUe)):l.value==="duotone"?(oe(),de("g",yUe,TUe)):l.value==="fill"?(oe(),de("g",wUe,OUe)):l.value==="light"?(oe(),de("g",IUe,AUe)):l.value==="regular"?(oe(),de("g",NUe,MUe)):l.value==="thin"?(oe(),de("g",PUe,$Ue)):ft("",!0)],16,_Ue))}}),BUe=["width","height","fill","transform"],UUe={key:0},HUe=Ce("path",{d:"M160,88a16,16,0,1,1,16,16A16,16,0,0,1,160,88Zm76-32V160a20,20,0,0,1-20,20H204v20a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V88A20,20,0,0,1,40,68H60V56A20,20,0,0,1,80,36H216A20,20,0,0,1,236,56ZM180,180H80a20,20,0,0,1-20-20V92H44V196H180Zm-21.66-24L124,121.66,89.66,156ZM212,60H84v67.72l25.86-25.86a20,20,0,0,1,28.28,0L192.28,156H212Z"},null,-1),VUe=[HUe],zUe={key:1},GUe=Ce("path",{d:"M224,56v82.06l-23.72-23.72a8,8,0,0,0-11.31,0L163.31,140,113.66,90.34a8,8,0,0,0-11.32,0L64,128.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"},null,-1),jUe=Ce("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),YUe=[GUe,jUe],WUe={key:2},qUe=Ce("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM172,72a12,12,0,1,1-12,12A12,12,0,0,1,172,72Zm12,128H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V120.69l30.34-30.35a8,8,0,0,1,11.32,0L163.31,140,189,114.34a8,8,0,0,1,11.31,0L216,130.07V168Z"},null,-1),KUe=[qUe],ZUe={key:3},QUe=Ce("path",{d:"M216,42H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V182h18a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM70,56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v67.57L204.53,110.1a14,14,0,0,0-19.8,0l-21.42,21.41L117.9,86.1a14,14,0,0,0-19.8,0L70,114.2ZM186,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H58v82a14,14,0,0,0,14,14H186Zm30-30H72a2,2,0,0,1-2-2V131.17l36.58-36.58a2,2,0,0,1,2.83,0l49.66,49.66a6,6,0,0,0,8.49,0l25.65-25.66a2,2,0,0,1,2.83,0l22,22V168A2,2,0,0,1,216,170ZM162,84a10,10,0,1,1,10,10A10,10,0,0,1,162,84Z"},null,-1),XUe=[QUe],JUe={key:4},eHe=Ce("path",{d:"M216,40H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V184h16a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,56H216v62.75l-10.07-10.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L72,109.37ZM184,200H40V88H56v80a16,16,0,0,0,16,16H184Zm32-32H72V132l36-36,49.66,49.66a8,8,0,0,0,11.31,0L194.63,120,216,141.38V168ZM160,84a12,12,0,1,1,12,12A12,12,0,0,1,160,84Z"},null,-1),tHe=[eHe],nHe={key:5},rHe=Ce("path",{d:"M216,44H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180h20a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM68,56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v72.4l-16.89-16.89a12,12,0,0,0-17,0l-22.83,22.83L116.49,87.51a12,12,0,0,0-17,0L68,119ZM188,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H60v84a12,12,0,0,0,12,12H188Zm28-28H72a4,4,0,0,1-4-4V130.34l37.17-37.17a4,4,0,0,1,5.66,0l49.66,49.66a4,4,0,0,0,5.65,0l25.66-25.66a4,4,0,0,1,5.66,0L220,139.71V168A4,4,0,0,1,216,172ZM164,84a8,8,0,1,1,8,8A8,8,0,0,1,164,84Z"},null,-1),iHe=[rHe],oHe={name:"PhImages"},aHe=we({...oHe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",UUe,VUe)):l.value==="duotone"?(oe(),de("g",zUe,YUe)):l.value==="fill"?(oe(),de("g",WUe,KUe)):l.value==="light"?(oe(),de("g",ZUe,XUe)):l.value==="regular"?(oe(),de("g",JUe,tHe)):l.value==="thin"?(oe(),de("g",nHe,iHe)):ft("",!0)],16,BUe))}}),sHe=["width","height","fill","transform"],lHe={key:0},cHe=Ce("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"},null,-1),uHe=[cHe],dHe={key:1},pHe=Ce("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),fHe=Ce("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"},null,-1),mHe=[pHe,fHe],gHe={key:2},hHe=Ce("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"},null,-1),_He=[hHe],vHe={key:3},bHe=Ce("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),SHe=[bHe],yHe={key:4},EHe=Ce("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"},null,-1),CHe=[EHe],THe={key:5},wHe=Ce("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),xHe=[wHe],OHe={name:"PhInfo"},IHe=we({...OHe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",lHe,uHe)):l.value==="duotone"?(oe(),de("g",dHe,mHe)):l.value==="fill"?(oe(),de("g",gHe,_He)):l.value==="light"?(oe(),de("g",vHe,SHe)):l.value==="regular"?(oe(),de("g",yHe,CHe)):l.value==="thin"?(oe(),de("g",THe,xHe)):ft("",!0)],16,sHe))}}),RHe=["width","height","fill","transform"],AHe={key:0},NHe=Ce("path",{d:"M168,120a12,12,0,0,1-5.12,9.83l-40,28A12,12,0,0,1,104,148V92a12,12,0,0,1,18.88-9.83l40,28A12,12,0,0,1,168,120Zm68-56V176a28,28,0,0,1-28,28H48a28,28,0,0,1-28-28V64A28,28,0,0,1,48,36H208A28,28,0,0,1,236,64Zm-24,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V176a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4ZM160,216H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Z"},null,-1),DHe=[NHe],MHe={key:1},PHe=Ce("path",{d:"M208,48H48A16,16,0,0,0,32,64V176a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48ZM112,152V88l48,32Z",opacity:"0.2"},null,-1),kHe=Ce("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),$He=[PHe,kHe],LHe={key:2},FHe=Ce("path",{d:"M168,224a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224ZM232,64V176a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V64A24,24,0,0,1,48,40H208A24,24,0,0,1,232,64Zm-68,56a8,8,0,0,0-3.41-6.55l-40-28A8,8,0,0,0,108,92v56a8,8,0,0,0,12.59,6.55l40-28A8,8,0,0,0,164,120Z"},null,-1),BHe=[FHe],UHe={key:3},HHe=Ce("path",{d:"M163.33,115l-48-32A6,6,0,0,0,106,88v64a6,6,0,0,0,9.33,5l48-32a6,6,0,0,0,0-10ZM118,140.79V99.21L149.18,120ZM208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V64A10,10,0,0,1,48,54H208a10,10,0,0,1,10,10Zm-52,48a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,224Z"},null,-1),VHe=[HHe],zHe={key:4},GHe=Ce("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Zm-3.56-110.66-48-32A8,8,0,0,0,104,88v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,137.05V103l25.58,17Z"},null,-1),jHe=[GHe],YHe={key:5},WHe=Ce("path",{d:"M162.22,116.67l-48-32A4,4,0,0,0,108,88v64a4,4,0,0,0,2.11,3.53,4,4,0,0,0,4.11-.2l48-32a4,4,0,0,0,0-6.66ZM116,144.53V95.47L152.79,120ZM208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V64A12,12,0,0,1,48,52H208a12,12,0,0,1,12,12Zm-56,48a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,224Z"},null,-1),qHe=[WHe],KHe={name:"PhMonitorPlay"},ZHe=we({...KHe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",AHe,DHe)):l.value==="duotone"?(oe(),de("g",MHe,$He)):l.value==="fill"?(oe(),de("g",LHe,BHe)):l.value==="light"?(oe(),de("g",UHe,VHe)):l.value==="regular"?(oe(),de("g",zHe,jHe)):l.value==="thin"?(oe(),de("g",YHe,qHe)):ft("",!0)],16,RHe))}}),QHe=["width","height","fill","transform"],XHe={key:0},JHe=Ce("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"},null,-1),eVe=[JHe],tVe={key:1},nVe=Ce("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"},null,-1),rVe=Ce("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),iVe=[nVe,rVe],oVe={key:2},aVe=Ce("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"},null,-1),sVe=[aVe],lVe={key:3},cVe=Ce("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"},null,-1),uVe=[cVe],dVe={key:4},pVe=Ce("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"},null,-1),fVe=[pVe],mVe={key:5},gVe=Ce("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"},null,-1),hVe=[gVe],_Ve={name:"PhPause"},vVe=we({..._Ve,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",XHe,eVe)):l.value==="duotone"?(oe(),de("g",tVe,iVe)):l.value==="fill"?(oe(),de("g",oVe,sVe)):l.value==="light"?(oe(),de("g",lVe,uVe)):l.value==="regular"?(oe(),de("g",dVe,fVe)):l.value==="thin"?(oe(),de("g",mVe,hVe)):ft("",!0)],16,QHe))}}),bVe=["width","height","fill","transform"],SVe={key:0},yVe=Ce("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"},null,-1),EVe=[yVe],CVe={key:1},TVe=Ce("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"},null,-1),wVe=Ce("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),xVe=[TVe,wVe],OVe={key:2},IVe=Ce("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"},null,-1),RVe=[IVe],AVe={key:3},NVe=Ce("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"},null,-1),DVe=[NVe],MVe={key:4},PVe=Ce("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},null,-1),kVe=[PVe],$Ve={key:5},LVe=Ce("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"},null,-1),FVe=[LVe],BVe={name:"PhPlay"},UVe=we({...BVe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",SVe,EVe)):l.value==="duotone"?(oe(),de("g",CVe,xVe)):l.value==="fill"?(oe(),de("g",OVe,RVe)):l.value==="light"?(oe(),de("g",AVe,DVe)):l.value==="regular"?(oe(),de("g",MVe,kVe)):l.value==="thin"?(oe(),de("g",$Ve,FVe)):ft("",!0)],16,bVe))}}),HVe=["width","height","fill","transform"],VVe={key:0},zVe=Ce("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"},null,-1),GVe=[zVe],jVe={key:1},YVe=Ce("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"},null,-1),WVe=Ce("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),qVe=[YVe,WVe],KVe={key:2},ZVe=Ce("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"},null,-1),QVe=[ZVe],XVe={key:3},JVe=Ce("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"},null,-1),eze=[JVe],tze={key:4},nze=Ce("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},null,-1),rze=[nze],ize={key:5},oze=Ce("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"},null,-1),aze=[oze],sze={name:"PhTrash"},lze=we({...sze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",VVe,GVe)):l.value==="duotone"?(oe(),de("g",jVe,qVe)):l.value==="fill"?(oe(),de("g",KVe,QVe)):l.value==="light"?(oe(),de("g",XVe,eze)):l.value==="regular"?(oe(),de("g",tze,rze)):l.value==="thin"?(oe(),de("g",ize,aze)):ft("",!0)],16,HVe))}}),cze=["width","height","fill","transform"],uze={key:0},dze=Ce("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"},null,-1),pze=[dze],fze={key:1},mze=Ce("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),gze=Ce("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),hze=[mze,gze],_ze={key:2},vze=Ce("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"},null,-1),bze=[vze],Sze={key:3},yze=Ce("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"},null,-1),Eze=[yze],Cze={key:4},Tze=Ce("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},null,-1),wze=[Tze],xze={key:5},Oze=Ce("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"},null,-1),Ize=[Oze],Rze={name:"PhUploadSimple"},Aze=we({...Rze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",uze,pze)):l.value==="duotone"?(oe(),de("g",fze,hze)):l.value==="fill"?(oe(),de("g",_ze,bze)):l.value==="light"?(oe(),de("g",Sze,Eze)):l.value==="regular"?(oe(),de("g",Cze,wze)):l.value==="thin"?(oe(),de("g",xze,Ize)):ft("",!0)],16,cze))}}),Nze=["width","height","fill","transform"],Dze={key:0},Mze=Ce("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"},null,-1),Pze=[Mze],kze={key:1},$ze=Ce("path",{d:"M208,96v64H48V96Z",opacity:"0.2"},null,-1),Lze=Ce("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),Fze=[$ze,Lze],Bze={key:2},Uze=Ce("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"},null,-1),Hze=[Uze],Vze={key:3},zze=Ce("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"},null,-1),Gze=[zze],jze={key:4},Yze=Ce("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"},null,-1),Wze=[Yze],qze={key:5},Kze=Ce("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"},null,-1),Zze=[Kze],Qze={name:"PhWaveform"},Xze=we({...Qze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",Dze,Pze)):l.value==="duotone"?(oe(),de("g",kze,Fze)):l.value==="fill"?(oe(),de("g",Bze,Hze)):l.value==="light"?(oe(),de("g",Vze,Gze)):l.value==="regular"?(oe(),de("g",jze,Wze)):l.value==="thin"?(oe(),de("g",qze,Zze)):ft("",!0)],16,Nze))}}),Jze=["width","height","fill","transform"],eGe={key:0},tGe=Ce("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"},null,-1),nGe=[tGe],rGe={key:1},iGe=Ce("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),oGe=Ce("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),aGe=[iGe,oGe],sGe={key:2},lGe=Ce("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),cGe=[lGe],uGe={key:3},dGe=Ce("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"},null,-1),pGe=[dGe],fGe={key:4},mGe=Ce("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},null,-1),gGe=[mGe],hGe={key:5},_Ge=Ce("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"},null,-1),vGe=[_Ge],bGe={name:"PhX"},SGe=we({...bGe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=He("weight","regular"),r=He("size","1em"),i=He("color","currentColor"),o=He("mirrored",!1),l=k(()=>{var c;return(c=t.weight)!=null?c:n}),s=k(()=>{var c;return(c=t.size)!=null?c:r}),u=k(()=>{var c;return(c=t.color)!=null?c:i}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:o?"scale(-1, 1)":void 0);return(c,d)=>(oe(),de("svg",Mn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:s.value,height:s.value,fill:u.value,transform:a.value},c.$attrs),[Ct(c.$slots,"default"),l.value==="bold"?(oe(),de("g",eGe,nGe)):l.value==="duotone"?(oe(),de("g",rGe,aGe)):l.value==="fill"?(oe(),de("g",sGe,cGe)):l.value==="light"?(oe(),de("g",uGe,pGe)):l.value==="regular"?(oe(),de("g",fGe,gGe)):l.value==="thin"?(oe(),de("g",hGe,vGe)):ft("",!0)],16,Jze))}}),yGe={key:0,class:"label"},EGe={key:0},CGe=we({__name:"Label",props:{label:{},required:{type:Boolean},hint:{}},setup(e){return(t,n)=>t.label?(oe(),de("h3",yGe,[Jn(Xt(t.label)+" ",1),t.required?(oe(),de("span",EGe," * ")):ft("",!0),t.hint?(oe(),An(We(Ua),{key:1,class:"hint",title:t.hint},{default:fn(()=>[x(We(IHe),{size:"16px",height:"100%"})]),_:1},8,["title"])):ft("",!0)])):ft("",!0)}});const Fn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Hn=Fn(CGe,[["__scopeId","data-v-16be3530"]]),TGe={class:"appointment-input"},wGe={style:{position:"relative","min-width":"200px","min-height":"200px",height:"100%","overflow-y":"auto"}},xGe={style:{display:"flex","flex-direction":"column",position:"absolute",top:"0",bottom:"0",left:"0",right:"0",gap:"4px"}},OGe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e;function r(m){return ir(m.begin)}function i(){return n.userProps.value?r(n.userProps.slots[n.userProps.value]):r(n.userProps.slots.sort((m,h)=>new Date(m.begin).getTime()-new Date(h.begin).getTime())[0])}const o=i(),l=Ie(o),s=k(()=>{const m=l.value;return n.userProps.slots.reduce((h,v,b)=>new Date(v.begin).getDate()===m.date()&&new Date(v.begin).getMonth()===m.month()&&new Date(v.begin).getFullYear()===m.year()?[...h,{slot:v,idx:b}]:h,[])}),u=k(()=>{const{min:m,max:h}=n.userProps.slots.reduce((v,b)=>{const S=ir(b.start).startOf("day"),y=ir(b.end).startOf("day");return(!v.min||S.isBefore(v.min))&&(v.min=S),(!v.max||y.isAfter(v.max))&&(v.max=y),v},{min:null,max:null});return[m,h.add(1,"day")]});function a(m){const h=m.month(),v=m.year(),b=n.userProps.slots.find(S=>{const y=ir(S.begin);return y.month()===h&&y.year()===v});return ir((b==null?void 0:b.begin)||m)}const c=Ie(!1);function d(m){if(c.value){c.value=!1;return}l.value=m}function p(m){c.value=!0;const h=ir(m);l.value=a(h)}function f(m){t("update:value",m)}function g(m){return!n.userProps.slots.some(h=>m.isSame(ir(h.begin),"day"))}return(m,h)=>(oe(),de(tt,null,[x(Hn,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ce("div",TGe,[x(We(BIe),{value:l.value,"disabled-date":g,fullscreen:!1,"valid-range":u.value,"default-value":We(o),onSelect:d,onPanelChange:p},null,8,["value","valid-range","default-value"]),s.value.length>0?(oe(),An(We(u6e),{key:0,vertical:"",gap:"small"},{default:fn(()=>[x(We(iA),{level:4},{default:fn(()=>[Jn("Available slots")]),_:1}),Ce("div",wGe,[Ce("div",xGe,[(oe(!0),de(tt,null,Pi(s.value,({slot:v,idx:b})=>(oe(),An(We(br),{key:b,type:b===m.userProps.value?"primary":"default",onClick:S=>f(b)},{default:fn(()=>[Jn(Xt(We(ir)(v.begin).format("hh:mm A"))+" - "+Xt(We(ir)(v.end).format("hh:mm A")),1)]),_:2},1032,["type","onClick"]))),128))])])]),_:1})):(oe(),An(We(dc),{key:1,description:"No slots available"}))])],64))}});const IGe=Fn(OGe,[["__scopeId","data-v-6d1cdd29"]]),RGe={class:"container"},AGe=we({__name:"FileIcon",props:{ctrl:{},file:{},size:{}},setup(e){return(t,n)=>(oe(),de("div",RGe,[(oe(),An(Au(t.ctrl.iconPreview(t.file)),{size:t.size},null,8,["size"]))]))}});const NG=Fn(AGe,[["__scopeId","data-v-27e5e807"]]),NGe="modulepreload",DGe=function(e){return"/"+e},j4={},my=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=DGe(o),o in j4)return;j4[o]=!0;const l=o.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===o&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const a=document.createElement("link");if(a.rel=l?"stylesheet":NGe,l||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),l)return new Promise((c,d)=>{a.addEventListener("load",c),a.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},MGe={key:0},PGe=Ce("p",null,"Unsupported file type",-1),kGe=[PGe],$Ge=["src"],LGe={key:2,style:{width:"100%",height:"auto"},controls:"",preload:"metadata"},FGe=["src","type"],BGe={key:3,style:{width:"100%"},controls:"",preload:"metadata"},UGe=["src","type"],HGe=["src","type"],VGe={key:5},DG=we({__name:"Preview",props:{ctrl:{}},setup(e){const t=e,n=Ie({hasPreview:!1,filename:"",src:"",previewType:"",file:t.ctrl.state.value.file}),r=Ie();Ve(t.ctrl.state,async()=>{const o=t.ctrl.state.value.file;if(n.value.file=o,n.value.hasPreview=t.ctrl.hasPreview(o),n.value.filename=t.ctrl.fileName(o),n.value.src=t.ctrl.fileSrc(o),n.value.previewType=t.ctrl.typeof(o.type),n.value.previewType==="Code"||n.value.previewType==="Text"){const l=await t.ctrl.fetchTextContent(o);i(r.value,l)}});const i=async(o,l,s)=>{(await my(()=>import("./editor.main.54e0d4d5.js"),["assets/editor.main.54e0d4d5.js","assets/toggleHighContrast.0eb315ff.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(o,{language:s,value:l,minimap:{enabled:!1},readOnly:!0,contextmenu:!1,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!1,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}})};return(o,l)=>o.ctrl.state.value.open?(oe(),An(We(Lo),{key:0,open:!0,title:n.value.filename,onCancel:o.ctrl.close,style:{"max-width":"80dvw","min-width":"40dvw",height:"auto"}},{footer:fn(()=>[]),default:fn(()=>[n.value.hasPreview?n.value.previewType==="Image"?(oe(),de("img",{key:1,style:{width:"100%"},src:n.value.src},null,8,$Ge)):n.value.previewType==="Video"?(oe(),de("video",LGe,[Ce("source",{src:n.value.src,type:n.value.file.type},null,8,FGe)])):n.value.previewType==="Audio"?(oe(),de("audio",BGe,[Ce("source",{src:n.value.src,type:n.value.file.type},null,8,UGe)])):n.value.previewType==="PDF"?(oe(),de("embed",{key:4,style:{width:"100%","min-height":"60dvh"},src:n.value.src,type:n.value.file.type},null,8,HGe)):n.value.previewType==="Text"||n.value.previewType==="Code"?(oe(),de("div",VGe,[Ce("div",{ref_key:"editor",ref:r,style:{width:"100%","min-height":"40dvh"}},null,512)])):ft("",!0):(oe(),de("div",MGe,kGe))]),_:1},8,["title","onCancel"])):ft("",!0)}}),zGe=["Text","Image","Code","PDF","Video","Audio"];function GGe(e){return zGe.includes(e)}const jGe={Text:q5e,Image:FUe,Code:PFe,PDF:i5e,Video:ZHe,Audio:Xze,Archive:YBe,Document:$9e,Presentation:x5e,Spreadsheet:hUe,Unknown:m9e};class MG{constructor(){wn(this,"state");wn(this,"open",t=>{this.state.value={open:!0,file:t}});wn(this,"close",()=>{this.state.value.open=!1});wn(this,"hasPreview",t=>{const n=this.typeof(t.type);if(!GGe(n))return!1;switch(n){case"Text":case"Image":case"Code":return!0;case"PDF":return window.navigator.pdfViewerEnabled;case"Video":return document.createElement("video").canPlayType(t.type||"")!=="";case"Audio":return document.createElement("audio").canPlayType(t.type||"")!==""}});wn(this,"fileName",t=>(t==null?void 0:t.name)||"");wn(this,"fileSrc",t=>t==null?void 0:t.response[0]);wn(this,"fileThumbnail",t=>this.hasPreview(t)?this.fileSrc(t):"");wn(this,"typeof",t=>{if(!t)return"Unknown";if(t==="application/pdf")return"PDF";switch(t.split("/")[0]){case"audio":return"Audio";case"video":return"Video";case"image":return"Image"}if(t.includes("spreadsheet")||t.includes("excel")||t.includes(".sheet"))return"Spreadsheet";if(t.includes(".document"))return"Document";if(t.includes(".presentation"))return"Presentation";switch(t){case"text/plain":case"text/markdown":case"text/csv":return"Text";case"application/zip":case"application/vnd.rar":case"application/x-7z-compressed":case"application/x-tar":case"application/gzip":return"Archive";case"text/html":case"text/css":case"text/x-python-script":case"application/javascript":case"application/typescript":case"application/json":case"application/xml":case"application/x-yaml":case"application/toml":return"Code"}return"Unknown"});wn(this,"handlePreview",t=>{this.hasPreview(t)&&this.open(t)});wn(this,"fetchTextContent",async t=>{const n=this.fileSrc(t);return await(await window.fetch(n)).text()});wn(this,"iconPreview",t=>{const n=this.typeof(t.type);return jGe[n]});this.state=Ie({open:!1,file:{uid:"",name:"",status:"done",response:[],url:"",type:"",size:0}})}}const YGe=[{key:"en",value:"English"},{key:"pt",value:"Portuguese"},{key:"es",value:"Spanish"},{key:"de",value:"German"},{key:"fr",value:"French"},{key:"hi",value:"Hindi"}],P0={i18n_camera_input_take_photo:()=>({en:"Take photo",pt:"Tirar foto",es:"Tomar foto",de:"Foto aufnehmen",fr:"Prendre une photo",hi:"\u092B\u094B\u091F\u094B \u0932\u0947\u0902"}),i18n_camera_input_try_again:()=>({en:"Try again",pt:"Tentar novamente",es:"Intentar de nuevo",de:"Erneut versuchen",fr:"R\xE9essayer",hi:"\u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902"}),i18n_upload_area_click_or_drop_files:()=>({en:"Click or drag file here to upload",pt:"Clique ou arraste o arquivo aqui para fazer upload",es:"Haz clic o arrastra el archivo aqu\xED para subirlo",de:"Klicken oder ziehen Sie die Datei hierher, um sie hochzuladen",fr:"Cliquez ou faites glisser le fichier ici pour le t\xE9l\xE9charger",hi:"\u0905\u092A\u0932\u094B\u0921 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092F\u0939\u093E\u0901 \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902 \u092F\u093E \u092B\u093C\u093E\u0907\u0932 \u0916\u0940\u0902\u091A\u0947\u0902"}),i18n_upload_area_drop_here:()=>({en:"Drop files",pt:"Solte os arquivos",es:"Suelta los archivos",de:"Dateien ablegen",fr:"D\xE9poser les fichiers",hi:"\u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u0921\u094D\u0930\u0949\u092A \u0915\u0930\u0947\u0902"}),i18n_upload_area_rejected_file_extension:e=>({en:`Invalid file extension. Expected formats: ${e.formats}`,pt:`Extens\xE3o de arquivo inv\xE1lida. Formatos aceitos: ${e.formats}`,es:`Extensi\xF3n de archivo inv\xE1lida. Formatos aceptados: ${e.formats}`,de:`Ung\xFCltige Dateierweiterung. Akzeptierte Formate: ${e.formats}`,fr:`Extension de fichier invalide. Formats accept\xE9s: ${e.formats}`,hi:`\u0905\u092E\u093E\u0928\u094D\u092F \u092B\u093C\u093E\u0907\u0932 \u090F\u0915\u094D\u0938\u091F\u0947\u0902\u0936\u0928\u0964 \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092B\u093C\u0949\u0930\u094D\u092E\u0947\u091F\u094D\u0938: ${e.formats}`}),i18n_upload_max_size_excided:e=>({en:`File ${e.fileName} exceeds size limit of ${e.maxSize}MB`,pt:`Arquivo ${e.fileName} excede o limite de tamanho de ${e.maxSize}MB`,es:`El archivo ${e.fileName} excede el l\xEDmite de tama\xF1o de ${e.maxSize}MB`,de:`Die Datei ${e.fileName} \xFCberschreitet das Gr\xF6\xDFenlimit von ${e.maxSize}MB`,fr:`Le fichier ${e.fileName} d\xE9passe la limite de taille de ${e.maxSize}MB`,hi:`\u092B\u093C\u093E\u0907\u0932 ${e.fileName} ${e.maxSize}MB \u0915\u0940 \u0938\u0940\u092E\u093E \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\u0948`}),i18n_upload_failed:e=>({en:`File upload failed for ${e.fileName}`,pt:`Falha ao enviar arquivo ${e.fileName}`,es:`Error al subir archivo ${e.fileName}`,de:`Datei-Upload fehlgeschlagen f\xFCr ${e.fileName}`,fr:`\xC9chec du t\xE9l\xE9chargement du fichier ${e.fileName}`,hi:`${e.fileName} \u0915\u0947 \u0932\u093F\u090F \u092B\u093C\u093E\u0907\u0932 \u0905\u092A\u0932\u094B\u0921 \u0935\u093F\u092B\u0932 \u0930\u0939\u093E`}),i18n_login_with_this_project:()=>({en:"Use this project",pt:"Usar este projeto",es:"Usar este proyecto",de:"Dieses Projekt verwenden",fr:"Utiliser ce projet",hi:"\u0907\u0938 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_watermark_text:()=>({en:"Coded in Python with",pt:"Escrito em Python com",es:"Escrito en Python con",de:"In Python mit",fr:"Cod\xE9 en Python avec",hi:"\u092A\u093E\u092F\u0925\u0928 \u092E\u0947\u0902 \u0932\u093F\u0916\u093E \u0917\u092F\u093E"}),i18n_error_invalid_email:()=>({en:"This email is invalid.",pt:"Este email \xE9 inv\xE1lido.",es:"Este email es inv\xE1lido.",de:"Diese E-Mail ist ung\xFCltig.",fr:"Cet email est invalide.",hi:"\u092F\u0939 \u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_required_field:()=>({en:"This field is required.",pt:"Este campo \xE9 obrigat\xF3rio.",es:"Este campo es obligatorio.",de:"Dieses Feld ist erforderlich.",fr:"Ce champ est obligatoire.",hi:"\u092F\u0939 \u092B\u093C\u0940\u0932\u094D\u0921 \u0906\u0935\u0936\u094D\u092F\u0915 \u0939\u0948\u0964"}),i18n_error_invalid_cnpj:()=>({en:"This CNPJ is invalid.",pt:"Este CNPJ \xE9 inv\xE1lido.",es:"Este CNPJ es inv\xE1lido.",de:"Diese CNPJ ist ung\xFCltig.",fr:"Ce CNPJ est invalide.",hi:"\u092F\u0939 CNPJ \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_cpf:()=>({en:"This CPF is invalid.",pt:"Este CPF \xE9 inv\xE1lido.",es:"Este CPF es inv\xE1lido.",de:"Diese CPF ist ung\xFCltig.",fr:"Ce CPF est invalide.",hi:"\u092F\u0939 CPF \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_phone_number:()=>({en:"This phone number is invalid.",pt:"Este n\xFAmero de telefone \xE9 inv\xE1lido.",es:"Este n\xFAmero de tel\xE9fono es inv\xE1lido.",de:"Diese Telefonnummer ist ung\xFCltig.",fr:"Ce num\xE9ro de t\xE9l\xE9phone est invalide.",hi:"\u092F\u0939 \u092B\u093C\u094B\u0928 \u0928\u0902\u092C\u0930 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_invalid_country_code:()=>({en:"This country code is invalid.",pt:"Este c\xF3digo de pa\xEDs \xE9 inv\xE1lido.",es:"Este c\xF3digo de pa\xEDs es inv\xE1lido.",de:"Dieser L\xE4ndercode ist ung\xFCltig.",fr:"Ce code de pays est invalide.",hi:"\u092F\u0939 \u0926\u0947\u0936 \u0915\u094B\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0964"}),i18n_error_min_list:e=>({en:`The minimum number of items is ${e.min}.`,pt:`O n\xFAmero m\xEDnimo de itens \xE9 ${e.min}.`,es:`El n\xFAmero m\xEDnimo de \xEDtems es ${e.min}.`,de:`Die Mindestanzahl an Elementen betr\xE4gt ${e.min}.`,fr:`Le nombre minimum d'\xE9l\xE9ments est ${e.min}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.min} \u0939\u0948\u0964`}),i18n_error_max_list:e=>({en:`The maximum number of items is ${e.max}.`,pt:`O n\xFAmero m\xE1ximo de itens \xE9 ${e.max}.`,es:`El n\xFAmero m\xE1ximo de \xEDtems es ${e.max}.`,de:`Die maximale Anzahl an Elementen betr\xE4gt ${e.max}.`,fr:`Le nombre maximum d'\xE9l\xE9ments est ${e.max}.`,hi:`\u0906\u0907\u091F\u092E\u094B\u0902 \u0915\u0940 \u0905\u0927\u093F\u0915\u0924\u092E \u0938\u0902\u0916\u094D\u092F\u093E ${e.max} \u0939\u0948\u0964`}),i18n_error_invalid_list_item:()=>({en:"Some fields are invalid.",pt:"Alguns campos s\xE3o inv\xE1lidos.",es:"Algunos campos son inv\xE1lidos.",de:"Einige Felder sind ung\xFCltig.",fr:"Certains champs sont invalides.",hi:"\u0915\u0941\u091B \u092B\u093C\u0940\u0932\u094D\u0921 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\u0902\u0964"}),i18n_error_min_number:e=>({en:`The minimum value is ${e.min}.`,pt:`O valor m\xEDnimo \xE9 ${e.min}.`,es:`El valor m\xEDnimo es ${e.min}.`,de:`Der Mindestwert betr\xE4gt ${e.min}.`,fr:`La valeur minimale est ${e.min}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u092E\u0942\u0932\u094D\u092F ${e.min} \u0939\u0948\u0964`}),i18n_error_max_number:e=>({en:`The maximum value is ${e.max}.`,pt:`O valor m\xE1ximo \xE9 ${e.max}.`,es:`El valor m\xE1ximo es ${e.max}.`,de:`Der maximale Wert betr\xE4gt ${e.max}.`,fr:`La valeur maximale est ${e.max}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u092E\u0942$\u0932\u094D\u092F ${e.max} \u0939\u0948\u0964`}),i18n_error_max_amount:e=>({en:`The maximum amount is ${e.max} ${e.currency}.`,pt:`O valor m\xE1ximo \xE9 ${e.max} ${e.currency}.`,es:`El valor m\xE1ximo es ${e.max} ${e.currency}.`,de:`Der maximale Betrag betr\xE4gt ${e.max} ${e.currency}.`,fr:`Le montant maximum est ${e.max} ${e.currency}.`,hi:`\u0905\u0927\u093F\u0915\u0924\u092E \u0930\u093E\u0936\u093F ${e.max} ${e.currency} \u0939\u0948\u0964`}),i18n_error_min_amount:e=>({en:`The minimum amount is ${e.min} ${e.currency}.`,pt:`O valor m\xEDnimo \xE9 ${e.min} ${e.currency}.`,es:`El valor m\xEDnimo es ${e.min} ${e.currency}.`,de:`Der minimale Betrag betr\xE4gt ${e.min} ${e.currency}.`,fr:`Le montant minimum est ${e.min} ${e.currency}.`,hi:`\u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0930\u093E\u0936\u093F ${e.min} ${e.currency} \u0939\u0948\u0964`}),i18n_generic_validation_error:()=>({en:"There are errors in the form.",pt:"Existem erros no formul\xE1rio.",es:"Hay errores en el formulario.",de:"Es gibt Fehler im Formular.",fr:"Il y a des erreurs dans le formulaire.",hi:"\u092B\u0949\u0930\u094D\u092E \u092E\u0947\u0902 \u0924\u094D\u0930\u0941\u091F\u093F\u092F\u093E\u0902 \u0939\u0948\u0902\u0964"}),i18n_back_action:()=>({en:"Back",pt:"Voltar",es:"Volver",de:"Zur\xFCck",fr:"Retour",hi:"\u0935\u093E\u092A\u0938"}),i18n_start_action:()=>({en:"Start",pt:"Iniciar",es:"Comenzar",de:"Starten",fr:"D\xE9marrer",hi:"\u0936\u0941\u0930\u0942"}),i18n_restart_action:()=>({en:"Restart",pt:"Reiniciar",es:"Reiniciar",de:"Neustarten",fr:"Red\xE9marrer",hi:"\u092A\u0941\u0928\u0903 \u0906\u0930\u0902\u092D \u0915\u0930\u0947\u0902"}),i18n_next_action:()=>({en:"Next",pt:"Pr\xF3ximo",es:"Siguiente",de:"N\xE4chster",fr:"Suivant",hi:"\u0905\u0917\u0932\u093E"}),i18n_end_message:()=>({en:"Thank you",pt:"Obrigado",es:"Gracias",de:"Danke",fr:"Merci",hi:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926"}),i18n_error_message:()=>({en:"Oops... something went wrong.",pt:"Oops... algo deu errado.",es:"Oops... algo sali\xF3 mal.",de:"Oops... etwas ist schief gelaufen.",fr:"Oops... quelque chose s'est mal pass\xE9.",hi:"\u0909\u0939... \u0915\u0941\u091B \u0917\u0932\u0924 \u0939\u094B \u0917\u092F\u093E\u0964"}),i18n_lock_failed_running:()=>({en:"This form is already being filled",pt:"Este formul\xE1rio j\xE1 est\xE1 sendo preenchido",es:"Este formulario ya est\xE1 siendo completado",de:"Dieses Formular wird bereits ausgef\xFCllt",fr:"Ce formulaire est d\xE9j\xE0 en cours de remplissage",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930 \u0930\u0939\u093E \u0939\u0948"}),i18n_lock_failed_not_running:()=>({en:"This form was already filled",pt:"Este formul\xE1rio j\xE1 foi preenchido",es:"Este formulario ya fue completado",de:"Dieses Formular wurde bereits ausgef\xFCllt",fr:"Ce formulaire a d\xE9j\xE0 \xE9t\xE9 rempli",hi:"\u092F\u0939 \u092B\u0949\u0930\u094D\u092E \u092A\u0939\u0932\u0947 \u0938\u0947 \u092D\u0930\u093E \u0917\u092F\u093E \u0925\u093E"}),i18n_auth_validate_your_email:()=>({en:"Validate your email",pt:"Valide seu email",es:"Valida tu email",de:"\xDCberpr\xFCfen Sie Ihre E-Mail",fr:"Validez votre email",hi:"\u0905\u092A\u0928\u093E \u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_info_description:()=>({en:"Please enter your work email and continue to receive a verification code.",pt:"Por favor, insira seu email de trabalho e continue para receber um c\xF3digo de verifica\xE7\xE3o.",es:"Por favor, introduce tu email de trabajo y contin\xFAa para recibir un c\xF3digo de verificaci\xF3n.",de:"Bitte geben Sie Ihre Arbeits-E-Mail-Adresse ein und fahren Sie fort, um einen Best\xE4tigungscode zu erhalten.",fr:"Veuillez entrer votre email de travail et continuer pour recevoir un code de v\xE9rification.",hi:"\u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u093E \u0915\u093E\u092E \u0915\u093E \u0908\u092E\u0947\u0932 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902 \u0914\u0930 \u090F\u0915 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902\u0964"}),i18n_auth_validate_your_email_login:e=>({en:`Login to ${e.brandName||"Abstra Project"}`,pt:`Entrar na ${e.brandName||"Abstra Project"}`,es:`Iniciar sesi\xF3n en ${e.brandName||"Abstra Project"}`,de:`Anmelden bei ${e.brandName||"Abstra Project"}`,fr:`Se connecter \xE0 ${e.brandName||"Abstra Project"}`,hi:`${e.brandName||"Abstra Project"} \u092E\u0947\u0902 \u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902`}),i18n_auth_enter_your_work_email:()=>({en:"Work email address",pt:"Endere\xE7o de email de trabalho",es:"Direcci\xF3n de correo electr\xF3nico de trabajo",de:"Arbeits-E-Mail-Adresse",fr:"Adresse e-mail professionnelle",hi:"\u0915\u093E\u092E \u0915\u093E \u0908\u092E\u0947\u0932 \u092A\u0924\u093E"}),i18n_auth_enter_your_email:()=>({en:"Email address",pt:"Endere\xE7o de email",es:"Direcci\xF3n de correo electr\xF3nico",de:"E-Mail-Adresse",fr:"Adresse e-mail",hi:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E"}),i18n_auth_enter_your_token:()=>({en:"Type your verification code",pt:"Digite seu c\xF3digo de verifica\xE7\xE3o",es:"Escribe tu c\xF3digo de verificaci\xF3n",de:"Geben Sie Ihren Best\xE4tigungscode ein",fr:"Tapez votre code de v\xE9rification",hi:"\u0905\u092A\u0928\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u091F\u093E\u0907\u092A \u0915\u0930\u0947\u0902"}),i18n_connectors_ask_for_access:e=>({en:`I would like to connect my ${e} account`,pt:`Gostaria de conectar minha conta ${e}`,es:`Me gustar\xEDa conectar mi cuenta de ${e}`,de:`Ich m\xF6chte mein ${e}-Konto verbinden`,fr:`Je voudrais connecter mon compte ${e}`,hi:`\u092E\u0948\u0902 \u0905\u092A\u0928\u093E ${e} \u0916\u093E\u0924\u093E \u0915\u0928\u0947\u0915\u094D\u091F \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0942\u0902\u0917\u093E`}),i18n_create_or_choose_project:()=>({en:"Select or create a new project",pt:"Selecione ou crie um novo projeto",es:"Selecciona o crea un nuevo proyecto",de:"W\xE4hlen oder erstellen Sie ein neues Projekt",fr:"S\xE9lectionnez ou cr\xE9ez un nouveau projet",hi:"\u090F\u0915 \u0928\u092F\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902 \u092F\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_organization:()=>({en:"Organization",pt:"Organiza\xE7\xE3o",es:"Organizaci\xF3n",de:"Organisation",fr:"Organisation",hi:"\u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_choose_organization:()=>({en:"Choose an organization",pt:"Escolha uma organiza\xE7\xE3o",es:"Elige una organizaci\xF3n",de:"W\xE4hlen Sie eine Organisation",fr:"Choisissez une organisation",hi:"\u090F\u0915 \u0938\u0902\u0917\u0920\u0928 \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_new_organization:()=>({en:"New organization",pt:"Nova organiza\xE7\xE3o",es:"Nueva organizaci\xF3n",de:"Neue Organisation",fr:"Nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_existing_organizations:()=>({en:"Existing organizations",pt:"Organiza\xE7\xF5es existentes",es:"Organizaciones existentes",de:"Bestehende Organisationen",fr:"Organisations existantes",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u0938\u0902\u0917\u0920\u0928"}),i18n_get_api_key_organization_name:()=>({en:"Organization name",pt:"Nome da organiza\xE7\xE3o",es:"Nombre de la organizaci\xF3n",de:"Organisationsname",fr:"Nom de l'organisation",hi:"\u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_organization_name:()=>({en:"Choose a name for your new organization",pt:"Escolha um nome para a sua nova organiza\xE7\xE3o",es:"Elige un nombre para tu nueva organizaci\xF3n",de:"W\xE4hlen Sie einen Namen f\xFCr Ihre neue Organisation",fr:"Choisissez un nom pour votre nouvelle organisation",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u0938\u0902\u0917\u0920\u0928 \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project:()=>({en:"Project",pt:"Projeto",es:"Proyecto",de:"Projekt",fr:"Projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_choose_project:()=>({en:"Choose a project",pt:"Escolha um projeto",es:"Elige un proyecto",de:"W\xE4hlen Sie ein Projekt",fr:"Choisissez un projet",hi:"\u090F\u0915 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_project_name:()=>({en:"Project name",pt:"Nome do projeto",es:"Nombre del proyecto",de:"Projektname",fr:"Nom du projet",hi:"\u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E"}),i18n_get_api_key_choose_project_name:()=>({en:"Choose a name for your new project",pt:"Escolha um nome para o seu novo projeto",es:"Elige un nombre para tu nuevo proyecto",de:"W\xE4hlen Sie einen Namen f\xFCr Ihr neues Projekt",fr:"Choisissez un nom pour votre nouveau projet",hi:"\u0905\u092A\u0928\u0947 \u0928\u090F \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u0915\u093E \u0928\u093E\u092E \u091A\u0941\u0928\u0947\u0902"}),i18n_get_api_key_create_new_organization:()=>({en:"Create new organization",pt:"Criar nova organiza\xE7\xE3o",es:"Crear nueva organizaci\xF3n",de:"Neue Organisation erstellen",fr:"Cr\xE9er une nouvelle organisation",hi:"\u0928\u092F\u093E \u0938\u0902\u0917\u0920\u0928 \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_new_project:()=>({en:"New project",pt:"Novo projeto",es:"Nuevo proyecto",de:"Neues Projekt",fr:"Nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E"}),i18n_get_api_key_existing_projects:()=>({en:"Existing projects",pt:"Projetos existentes",es:"Proyectos existentes",de:"Bestehende Projekte",fr:"Projets existants",hi:"\u092E\u094C\u091C\u0942\u0926\u093E \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_create_new_project:()=>({en:"Create new project",pt:"Criar novo projeto",es:"Crear nuevo proyecto",de:"Neues Projekt erstellen",fr:"Cr\xE9er un nouveau projet",hi:"\u0928\u0908 \u092A\u0930\u093F\u092F\u094B\u091C\u0928\u093E \u092C\u0928\u093E\u090F\u0902"}),i18n_get_api_key_api_key_info:()=>({en:"Use this API key to access your cloud resources.",pt:"Use esta chave de API para acessar seus recursos na nuvem.",es:"Utiliza esta clave de API para acceder a tus recursos en la nube.",de:"Verwenden Sie diesen API-Schl\xFCssel, um auf Ihre Cloud-Ressourcen zuzugreifen.",fr:"Utilisez cette cl\xE9 API pour acc\xE9der \xE0 vos ressources cloud.",hi:"\u0905\u092A\u0928\u0947 \u0915\u094D\u0932\u093E\u0909\u0921 \u0938\u0902\u0938\u093E\u0927\u0928\u094B\u0902 \u0924\u0915 \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0907\u0938 API \u0915\u0941\u0902\u091C\u0940 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902\u0964"}),i18n_get_api_key_api_key_warning:()=>({en:"This is a secret key. Do not share it with anyone and make sure to store it in a safe place.",pt:"Esta \xE9 uma chave secreta. N\xE3o a compartilhe com ningu\xE9m e certifique-se de armazen\xE1-la em um local seguro.",es:"Esta es una clave secreta. No la compartas con nadie y aseg\xFArate de guardarla en un lugar seguro.",de:"Dies ist ein geheimer Schl\xFCssel. Teilen Sie es nicht mit anderen und stellen Sie sicher, dass Sie es an einem sicheren Ort aufbewahren.",fr:"C'est une cl\xE9 secr\xE8te. Ne le partagez avec personne et assurez-vous de le stocker dans un endroit s\xFBr.",hi:"\u092F\u0939 \u090F\u0915 \u0917\u0941\u092A\u094D\u0924 \u0915\u0941\u0902\u091C\u0940 \u0939\u0948\u0964 \u0907\u0938\u0947 \u0915\u093F\u0938\u0940 \u0915\u0947 \u0938\u093E\u0925 \u0938\u093E\u091D\u093E \u0928 \u0915\u0930\u0947\u0902 \u0914\u0930 \u0938\u0941\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u0930\u0947\u0902 \u0915\u093F \u0906\u092A \u0907\u0938\u0947 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0938\u094D\u0925\u093E\u0928 \u092A\u0930 \u0938\u094D\u091F\u094B\u0930 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_invalid_email:()=>({en:"Invalid email, please try again.",pt:"Email inv\xE1lido, tente novamente.",es:"Email inv\xE1lido, int\xE9ntalo de nuevo.",de:"E-Mail ung\xFCltig, bitte versuchen Sie es erneut.",fr:"Email invalide, veuillez r\xE9essayer.",hi:"\u0908\u092E\u0947\u0932 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_info_send_code:()=>({en:"Send verification code",pt:"Enviar c\xF3digo de verifica\xE7\xE3o",es:"Enviar c\xF3digo de verificaci\xF3n",de:"Best\xE4tigungscode senden",fr:"Envoyer le code de v\xE9rification",hi:"\u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_label:e=>({en:`Check ${e.email}'s inbox and enter your verification code below`,pt:`Verifique a caixa de entrada de ${e.email} e insira o c\xF3digo de verifica\xE7\xE3o abaixo`,es:`Revisa la bandeja de entrada de ${e.email} y escribe el c\xF3digo de verificaci\xF3n abajo`,de:`\xDCberpr\xFCfen Sie den Posteingang von ${e.email} und geben Sie den Best\xE4tigungscode unten ein`,fr:`V\xE9rifiez la bo\xEEte de r\xE9ception de ${e.email} et entrez le code de v\xE9rification ci-dessous`,hi:`\u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 ${e.email} \u0915\u0940 \u0907\u0928\u092C\u0949\u0915\u094D\u0938 \u0914\u0930 \u0928\u0940\u091A\u0947 \u0905\u092A\u0928\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902`}),i18n_auth_token_development_warning:()=>({en:"You\u2019re in development mode, any token will work",pt:"Voc\xEA est\xE1 em modo de desenvolvimento, qualquer token funcionar\xE1",es:"Est\xE1s en modo de desarrollo, cualquier token funcionar\xE1",de:"Sie sind im Entwicklungsmodus, jeder Token funktioniert",fr:"Vous \xEAtes en mode d\xE9veloppement, n\u2019importe quel token fonctionnera",hi:"\u0906\u092A \u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0939\u0948\u0902, \u0915\u094B\u0908 \u092D\u0940 \u091F\u094B\u0915\u0928 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E"}),i18n_auth_token_expired:()=>({en:"Token has expired, please retry sending it.",pt:"Token expirou, tente reenviar.",es:"Token ha expirado, int\xE9ntalo reenvi\xE1ndolo.",de:"Token ist abgelaufen, bitte versuchen Sie es erneut zu senden.",fr:"Token est expir\xE9, essayez de le renvoyer.",hi:"\u091F\u094B\u0915\u0928 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924, \u0907\u0938\u0947 \u092B\u093F\u0930 \u0938\u0947 \u092D\u0947\u091C\u0928\u0947 \u0915\u093E \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_auth_token_invalid:()=>({en:"Invalid token, please try again or go back and change you email address.",pt:"Token inv\xE1lido, tente novamente ou volte e altere o seu endere\xE7o de email.",es:"Token inv\xE1lido, por favor intenta de nuevo o vuelve y cambia tu direcci\xF3n de correo electr\xF3nico.",de:"Token ung\xFCltig, bitte versuchen Sie es erneut oder gehen Sie zur\xFCck und \xE4ndern Sie Ihre E-Mail Adresse.",fr:"Token invalide, veuillez r\xE9essayer ou revenir en arri\xE8re et changez votre adresse e-mail.",hi:"\u091F\u094B\u0915\u0928 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0935\u093E\u092A\u0938 \u091C\u093E\u090F\u0902 \u0914\u0930 \u0906\u092A\u0915\u093E \u0908\u092E\u0947\u0932 \u092A\u0924\u093E \u092C\u0926\u0932\u0947\u0902\u0964"}),i18n_auth_token_verify_email:()=>({en:"Verify email",pt:"Verificar email",es:"Verificar email",de:"E-Mail verifizieren",fr:"V\xE9rifier email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_auth_edit_email:()=>({en:"Use another email",pt:"Usar outro email",es:"Usar otro email",de:"Eine andere E-Mail-Adresse verwenden",fr:"Utiliser un autre email",hi:"\u0926\u0942\u0938\u0930\u093E \u0908\u092E\u0947\u0932 \u092A\u094D\u0930\u092F\u094B\u0917 \u0915\u0930\u0947\u0902"}),i18n_auth_token_resend_email:()=>({en:"Send new code",pt:"Enviar novo c\xF3digo",es:"Enviar nuevo c\xF3digo",de:"Neuen Code senden",fr:"Envoyer un nouveau code",hi:"\u0928\u092F\u093E \u0915\u094B\u0921 \u092D\u0947\u091C\u0947\u0902"}),i18n_auth_token_footer_alternative_email:()=>({en:"If you haven't received the verification code, please check your spam folder",pt:"Se voc\xEA n\xE3o recebeu o c\xF3digo de verifica\xE7\xE3o, verifique sua caixa de spam",es:"Si no has recibido el c\xF3digo de verificaci\xF3n, por favor revisa tu carpeta de spam",de:"Wenn Sie den Best\xE4tigungscode nicht erhalten haben, \xFCberpr\xFCfen Sie bitte Ihren Spam-Ordner",fr:"Si vous n'avez pas re\xE7u le code de v\xE9rification, veuillez v\xE9rifier votre dossier de spam",hi:"\u092F\u0926\u093F \u0906\u092A\u0928\u0947 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0915\u094B\u0921 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u0947 \u0938\u094D\u092A\u0948\u092E \u092B\u093C\u094B\u0932\u094D\u0921\u0930 \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902"}),i18n_local_auth_info_description:()=>({en:"In development mode any email and code will be accepted.",pt:"No modo de desenvolvimento qualquer email e c\xF3digo ser\xE3o aceitos.",es:"En modo de desarrollo cualquier email y c\xF3digo ser\xE1n aceptados.",de:"Im Entwicklungsmodus werden jede E-Mail und jeder Code akzeptiert.",fr:"En mode d\xE9veloppement, tout email et code seront accept\xE9s.",hi:"\u0935\u093F\u0915\u093E\u0938 \u092E\u094B\u0921 \u092E\u0947\u0902 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0908\u092E\u0947\u0932 \u0914\u0930 \u0915\u094B\u0921 \u0915\u094B \u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0915\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E\u0964"}),i18n_local_auth_info_authenticate:()=>({en:"Validate email",pt:"Validar email",es:"Validar email",de:"E-Mail best\xE4tigen",fr:"Valider email",hi:"\u0908\u092E\u0947\u0932 \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902"}),i18n_error_invalid_date:()=>({en:"Invalid date",pt:"Data inv\xE1lida",es:"Fecha no v\xE1lida",de:"Ung\xFCltiges Datum",fr:"Date invalide",hi:"\u0905\u0935\u0948\u0927 \u0924\u093F\u0925\u093F"}),i18n_camera_permission_denied:()=>({en:"Camera access denied",pt:"Acesso \xE0 c\xE2mera negado",es:"Acceso a la c\xE1mara denegado",de:"Kamerazugriff verweigert",fr:"Acc\xE8s \xE0 la cam\xE9ra refus\xE9",hi:"\u0915\u0948\u092E\u0930\u093E \u090F\u0915\u094D\u0938\u0947\u0938 \u0928\u093E\u0907\u091F\u0947\u0921"}),i18n_no_camera_found:()=>({en:"No camera found",pt:"Nenhuma c\xE2mera encontrada",es:"No se encontr\xF3 ninguna c\xE1mara",de:"Keine Kamera gefunden",fr:"Aucune cam\xE9ra trouv\xE9e",hi:"\u0915\u094B\u0908 \u0915\u0948\u092E\u0930\u093E \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_camera_already_in_use:()=>({en:"Camera is already in use",pt:"C\xE2mera j\xE1 est\xE1 em uso",es:"La c\xE1mara ya est\xE1 en uso",de:"Kamera wird bereits verwendet",fr:"La cam\xE9ra est d\xE9j\xE0 utilis\xE9e",hi:"\u0915\u0948\u092E\u0930\u093E \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u0909\u092A\u092F\u094B\u0917 \u092E\u0947\u0902 \u0939\u0948"}),i18n_permission_error:()=>({en:"An error occurred while accessing the camera",pt:"Ocorreu um erro ao acessar a c\xE2mera",es:"Se produjo un error al acceder a la c\xE1mara",de:"Beim Zugriff auf die Kamera ist ein Fehler aufgetreten",fr:"Une erreur s'est produite lors de l'acc\xE8s \xE0 la cam\xE9ra",hi:"\u0915\u0948\u092E\u0930\u093E \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0924\u0947 \u0938\u092E\u092F \u090F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F \u0906\u0908"}),i18n_access_denied:()=>({en:"Access denied",pt:"Acesso negado",es:"Acceso denegado",de:"Zugriff verweigert",fr:"Acc\xE8s refus\xE9",hi:"\u092A\u0939\u0941\u0902\u091A \u0928\u093F\u0937\u0947\u0927\u093F\u0924"}),i18n_access_denied_message:()=>({en:"You do not have the necessary permissions to access this page. Please contact the administrator to request access.",pt:"Voc\xEA n\xE3o tem as permiss\xF5es necess\xE1rias para acessar esta p\xE1gina. Entre em contato com o administrador para solicitar acesso.",es:"No tienes los permisos necesarios para acceder a esta p\xE1gina. Ponte en contacto con el administrador para solicitar acceso.",de:"Sie haben nicht die erforderlichen Berechtigungen, um auf diese Seite zuzugreifen. Bitte kontaktieren Sie den Administrator, um Zugriff anzufordern.",fr:"Vous n'avez pas les autorisations n\xE9cessaires pour acc\xE9der \xE0 cette page. Veuillez contacter l'administrateur pour demander l'acc\xE8s.",hi:"\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u0907\u0938 \u092A\u0947\u091C \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0906\u0935\u0936\u094D\u092F\u0915 \u0905\u0928\u0941\u092E\u0924\u093F\u092F\u093E\u0901 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0939\u0941\u0902\u091A \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0936\u093E\u0938\u0915 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_internal_error:()=>({en:"Internal error",pt:"Erro interno",es:"Error interno",de:"Interner Fehler",fr:"Erreur interne",hi:"\u0906\u0902\u0924\u0930\u093F\u0915 \u0924\u094D\u0930\u0941\u091F\u093F"}),i18n_internal_error_message:()=>({en:"An unknown error ocurred. Please try again or contact support.",pt:"Ocorreu um erro desconhecido. Tente novamente ou entre em contato com o suporte.",es:"Se ha producido un error desconocido. Int\xE9ntalo de nuevo o ponte en contacto con el soporte.",de:"Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut oder kontaktieren Sie den Support.",fr:"Une erreur inconnue s\u2019est produite. Veuillez r\xE9essayer ou contacter le support.",hi:"\u090F\u0915 \u0905\u091C\u094D\u091E\u093E\u0924 \u0924\u094D\u0930\u0941\u091F\u093F \u0939\u0941\u0908\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0938\u092E\u0930\u094D\u0925\u0928 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902\u0964"}),i18n_page_not_found:()=>({en:"Page not found",pt:"P\xE1gina n\xE3o encontrada",es:"P\xE1gina no encontrada",de:"Seite nicht gefunden",fr:"Page non trouv\xE9e",hi:"\u092A\u0943\u0937\u094D\u0920 \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E"}),i18n_page_not_found_message:()=>({en:"The page you are looking for does not exist. Please check the URL and try again.",pt:"A p\xE1gina que voc\xEA est\xE1 procurando n\xE3o existe. Verifique a URL e tente novamente.",es:"La p\xE1gina que buscas no existe. Por favor, verifica la URL e int\xE9ntalo de nuevo.",de:"Die von Ihnen gesuchte Seite existiert nicht. Bitte \xFCberpr\xFCfen Sie die URL und versuchen Sie es erneut.",fr:"La page que vous recherchez n\u2019existe pas. Veuillez v\xE9rifier l\u2019URL et r\xE9essayer.",hi:"\u0906\u092A \u091C\u093F\u0938 \u092A\u0943\u0937\u094D\u0920 \u0915\u0940 \u0916\u094B\u091C \u0915\u0930 \u0930\u0939\u0947 \u0939\u0948\u0902, \u0935\u0939 \u092E\u094C\u091C\u0942\u0926 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E URL \u0915\u0940 \u091C\u093E\u0901\u091A \u0915\u0930\u0947\u0902 \u0914\u0930 \u092A\u0941\u0928: \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964"}),i18n_error_invalid_file_format:e=>({en:`Invalid file extension. Expected formats: ${e.acceptedFormats}`,pt:`Extens\xE3o de arquivo inv\xE1lida. Formatos aceitos: ${e.acceptedFormats}`,es:`Extensi\xF3n de archivo inv\xE1lida. Formatos aceptados: ${e.acceptedFormats}`,de:`Ung\xFCltige Dateierweiterung. Akzeptierte Formate: ${e.acceptedFormats}`,fr:`Extension de fichier invalide. Formats accept\xE9s: ${e.acceptedFormats}`,hi:`\u0905\u092E\u093E\u0928\u094D\u092F \u092B\u093C\u093E\u0907\u0932 \u090F\u0915\u094D\u0938\u091F\u0947\u0902\u0936\u0928\u0964 \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092B\u093C\u0949\u0930\u094D\u092E\u0947\u091F\u094D\u0938: ${e.acceptedFormats}`})},WGe="en";class qGe{getBrowserLocale(){return navigator.language.split(/[-_]/)[0]}getSupportedLocale(t){return YGe.includes(t)?t:WGe}translate(t,n=null,...r){if(!(t in P0))throw new Error(`Missing translation for key ${t} in locale ${n}`);if(n==null){const i=this.getBrowserLocale(),o=Mo.getSupportedLocale(i);return P0[t](...r)[o]}return P0[t](...r)[n]}translateIfFound(t,n,...r){return t in P0?this.translate(t,n,...r):t}}const Mo=new qGe,Q1={txt:"text/plain",md:"text/markdown",csv:"text/csv",html:"text/html",css:"text/css",py:"text/x-python-script",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",mp3:"audio/mp3",wav:"audio/wav",flac:"audio/flac",aac:"audio/aac",ogg:"audio/ogg",wma:"audio/x-ms-wma",avi:"video/avi",mp4:"video/mp4",mkv:"video/x-matroska",mov:"video/quicktime",webm:"video/webm",flv:"video/x-flv",wmv:"video/x-ms-wmv",m4v:"video/x-m4v",zip:"application/zip",rar:"application/vnd.rar","7z":"application/x-7z-compressed",tar:"application/x-tar",gzip:"application/gzip",js:"application/javascript",ts:"application/typescript",json:"application/json",xml:"application/xml",yaml:"application/x-yaml",toml:"application/toml",pdf:"application/pdf",xls:"application/vnd.ms-excel",doc:"application/msword",ppt:"application/vnd.ms-powerpoint",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",image:"image/*",video:"video/*",audio:"audio/*",text:"text/*",application:"application/*",unknown:"*"},KGe=e=>{const t=e==null?void 0:e.replace(".","");return t in Q1?Q1[t]:Q1.unknown};class PG{constructor(t,n,r,i,o,l,s,u){wn(this,"initialFileList",()=>this.value.map(t=>{const n=new File([],t);return{uid:t,name:t.split("/").pop()||t,status:"done",response:[t],url:t,type:KGe(t.split(".").pop()),size:n.size}}).map(t=>({...t,thumbUrl:this.thumbnail(t)})));wn(this,"emitValue",t=>{this.value=t,this.emit("update:value",t)});wn(this,"emitErrors",t=>{this.emit("update:errors",t)});wn(this,"handleReject",()=>{var n;const t=((n=this.acceptedFormats)==null?void 0:n.join(", "))||"*";this.emitErrors([Mo.translate("i18n_upload_area_rejected_file_extension",this.locale,{formats:t})])});wn(this,"beforeUpload",t=>this.maxFileSize&&t.size&&t.size/1024/1024>this.maxFileSize?(this.emitErrors([Mo.translate("i18n_upload_max_size_excided",this.locale,{fileName:t.name,maxSize:this.maxFileSize})]),OG.LIST_IGNORE):!0);wn(this,"handleChange",t=>{t.file.status==="done"&&(t.file.thumbUrl=this.thumbnail(t.file));const r=t.fileList.filter(i=>i.status==="done").map(i=>i.response[0])||[];this.emitValue(r),t.file.status==="error"&&this.emitErrors([Mo.translate("i18n_upload_failed",this.locale,{fileName:t.file.name})])});this.emit=t,this.value=n,this.thumbnail=r,this.locale=i,this.acceptedFormats=o,this.acceptedMimeTypes=l,this.maxFileSize=s,this.multiple=u}get accept(){return this.acceptedMimeTypes||"*"}get action(){return"/_files/"}get method(){return"PUT"}get headers(){return{cache:"no-cache",mode:"cors"}}get progress(){return{strokeWidth:5,showInfo:!0,format:t=>`${(t==null?void 0:t.toFixed(0))||0}%`}}get maxCount(){return this.multiple?void 0:1}}const ZGe=we({__name:"CardList",props:{value:{},errors:{},locale:{},acceptedFormats:{},acceptedMimeTypes:{},maxFileSize:{},multiple:{type:Boolean},disabled:{type:Boolean},capture:{type:Boolean}},emits:["update:value","update:errors"],setup(e,{expose:t,emit:n}){const r=e,i=Ie(null),o=new MG,l=new PG(n,r.value,o.fileThumbnail,r.locale,r.acceptedFormats,r.acceptedMimeTypes,r.maxFileSize,r.multiple),s=Ie(l.initialFileList()),u=k(()=>r.multiple||s.value.length===0);return t({uploadRef:i}),(a,c)=>(oe(),de(tt,null,[x(We(OG),{ref_key:"uploadRef",ref:i,capture:a.capture,fileList:s.value,"onUpdate:fileList":c[0]||(c[0]=d=>s.value=d),accept:We(l).accept,action:We(l).action,method:We(l).method,"max-count":We(l).maxCount,headers:We(l).headers,progress:We(l).progress,"before-upload":We(l).beforeUpload,onChange:We(l).handleChange,onReject:We(l).handleReject,onPreview:We(o).handlePreview,multiple:a.multiple,disabled:a.disabled,"show-upload-list":!0,"list-type":"picture-card"},{iconRender:fn(({file:d})=>[x(NG,{file:d,ctrl:We(o),size:20},null,8,["file","ctrl"])]),default:fn(()=>[u.value?Ct(a.$slots,"ui",{key:0},void 0,!0):ft("",!0)]),_:3},8,["capture","fileList","accept","action","method","max-count","headers","progress","before-upload","onChange","onReject","onPreview","multiple","disabled"]),x(DG,{ctrl:We(o)},null,8,["ctrl"])],64))}});const kG=Fn(ZGe,[["__scopeId","data-v-441daa1d"]]);var $G={},gy={};gy.byteLength=JGe;gy.toByteArray=t7e;gy.fromByteArray=i7e;var ps=[],la=[],QGe=typeof Uint8Array<"u"?Uint8Array:Array,X1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Fd=0,XGe=X1.length;Fd0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function JGe(e){var t=LG(e),n=t[0],r=t[1];return(n+r)*3/4-r}function e7e(e,t,n){return(t+n)*3/4-n}function t7e(e){var t,n=LG(e),r=n[0],i=n[1],o=new QGe(e7e(e,r,i)),l=0,s=i>0?r-4:r,u;for(u=0;u>16&255,o[l++]=t>>8&255,o[l++]=t&255;return i===2&&(t=la[e.charCodeAt(u)]<<2|la[e.charCodeAt(u+1)]>>4,o[l++]=t&255),i===1&&(t=la[e.charCodeAt(u)]<<10|la[e.charCodeAt(u+1)]<<4|la[e.charCodeAt(u+2)]>>2,o[l++]=t>>8&255,o[l++]=t&255),o}function n7e(e){return ps[e>>18&63]+ps[e>>12&63]+ps[e>>6&63]+ps[e&63]}function r7e(e,t,n){for(var r,i=[],o=t;os?s:l+o));return r===1?(t=e[n-1],i.push(ps[t>>2]+ps[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(ps[t>>10]+ps[t>>4&63]+ps[t<<2&63]+"=")),i.join("")}var cA={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */cA.read=function(e,t,n,r,i){var o,l,s=i*8-r-1,u=(1<>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=o*256+e[t+d],d+=p,c-=8);for(l=o&(1<<-c)-1,o>>=-c,c+=r;c>0;l=l*256+e[t+d],d+=p,c-=8);if(o===0)o=1-a;else{if(o===u)return l?NaN:(f?-1:1)*(1/0);l=l+Math.pow(2,r),o=o-a}return(f?-1:1)*l*Math.pow(2,o-r)};cA.write=function(e,t,n,r,i,o){var l,s,u,a=o*8-i-1,c=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,g=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-l))<1&&(l--,u*=2),l+d>=1?t+=p/u:t+=p*Math.pow(2,1-d),t*u>=2&&(l++,u/=2),l+d>=c?(s=0,l=c):l+d>=1?(s=(t*u-1)*Math.pow(2,i),l=l+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[n+f]=s&255,f+=g,s/=256,i-=8);for(l=l<0;e[n+f]=l&255,f+=g,l/=256,a-=8);e[n+f-g]|=m*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -590,7 +590,7 @@ __p += '`),Rn&&(et+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+et+`return __p -}`;var pn=O2(function(){return Gn(ue,Et+"return "+et).apply(n,Re)});if(pn.source=et,fE(pn))throw pn;return pn}function cZ(_){return Yn(_).toLowerCase()}function uZ(_){return Yn(_).toUpperCase()}function dZ(_,E,A){if(_=Yn(_),_&&(A||E===n))return $A(_);if(!_||!(E=yo(E)))return _;var z=Ta(_),X=Ta(E),ue=LA(z,X),Re=FA(z,X)+1;return zl(z,ue,Re).join("")}function pZ(_,E,A){if(_=Yn(_),_&&(A||E===n))return _.slice(0,UA(_)+1);if(!_||!(E=yo(E)))return _;var z=Ta(_),X=FA(z,Ta(E))+1;return zl(z,0,X).join("")}function fZ(_,E,A){if(_=Yn(_),_&&(A||E===n))return _.replace(ce,"");if(!_||!(E=yo(E)))return _;var z=Ta(_),X=LA(z,Ta(E));return zl(z,X).join("")}function mZ(_,E){var A=N,z=D;if(Rr(E)){var X="separator"in E?E.separator:X;A="length"in E?un(E.length):A,z="omission"in E?yo(E.omission):z}_=Yn(_);var ue=_.length;if(hd(_)){var Re=Ta(_);ue=Re.length}if(A>=ue)return _;var Pe=A-_d(z);if(Pe<1)return z;var Be=Re?zl(Re,0,Pe).join(""):_.slice(0,Pe);if(X===n)return Be+z;if(Re&&(Pe+=Be.length-Pe),mE(X)){if(_.slice(Pe).search(X)){var Qe,Xe=Be;for(X.global||(X=Ay(X.source,Yn(vn.exec(X))+"g")),X.lastIndex=0;Qe=X.exec(Xe);)var et=Qe.index;Be=Be.slice(0,et===n?Pe:et)}}else if(_.indexOf(yo(X),Pe)!=Pe){var dt=Be.lastIndexOf(X);dt>-1&&(Be=Be.slice(0,dt))}return Be+z}function gZ(_){return _=Yn(_),_&&Vn.test(_)?_.replace(pt,G7):_}var hZ=Td(function(_,E,A){return _+(A?" ":"")+E.toUpperCase()}),_E=IN("toUpperCase");function x2(_,E,A){return _=Yn(_),E=A?n:E,E===n?B7(_)?W7(_):A7(_):_.match(E)||[]}var O2=gn(function(_,E){try{return bo(_,n,E)}catch(A){return fE(A)?A:new tn(A)}}),_Z=Fs(function(_,E){return Wo(E,function(A){A=ns(A),$s(_,A,dE(_[A],_))}),_});function vZ(_){var E=_==null?0:_.length,A=Nt();return _=E?Tr(_,function(z){if(typeof z[1]!="function")throw new qo(l);return[A(z[0]),z[1]]}):[],gn(function(z){for(var X=-1;++XU)return[];var A=K,z=Ii(_,K);E=Nt(E),_-=K;for(var X=Oy(z,E);++A<_;)E(A);return X}function BZ(_){return an(_)?Tr(_,ns):Eo(_)?[_]:Ji(qN(Yn(_)))}function UZ(_){var E=++Q7;return Yn(_)+E}var HZ=f_(function(_,E){return _+E},0),VZ=Jy("ceil"),zZ=f_(function(_,E){return _/E},1),GZ=Jy("floor");function jZ(_){return _&&_.length?a_(_,no,Fy):n}function YZ(_,E){return _&&_.length?a_(_,Nt(E,2),Fy):n}function WZ(_){return PA(_,no)}function qZ(_,E){return PA(_,Nt(E,2))}function KZ(_){return _&&_.length?a_(_,no,Vy):n}function ZZ(_,E){return _&&_.length?a_(_,Nt(E,2),Vy):n}var QZ=f_(function(_,E){return _*E},1),XZ=Jy("round"),JZ=f_(function(_,E){return _-E},0);function eQ(_){return _&&_.length?xy(_,no):0}function tQ(_,E){return _&&_.length?xy(_,Nt(E,2)):0}return ie.after=Cq,ie.ary=o2,ie.assign=uK,ie.assignIn=b2,ie.assignInWith=x_,ie.assignWith=dK,ie.at=pK,ie.before=a2,ie.bind=dE,ie.bindAll=_Z,ie.bindKey=s2,ie.castArray=kq,ie.chain=n2,ie.chunk=GY,ie.compact=jY,ie.concat=YY,ie.cond=vZ,ie.conforms=bZ,ie.constant=vE,ie.countBy=eq,ie.create=fK,ie.curry=l2,ie.curryRight=c2,ie.debounce=u2,ie.defaults=mK,ie.defaultsDeep=gK,ie.defer=Tq,ie.delay=wq,ie.difference=WY,ie.differenceBy=qY,ie.differenceWith=KY,ie.drop=ZY,ie.dropRight=QY,ie.dropRightWhile=XY,ie.dropWhile=JY,ie.fill=eW,ie.filter=nq,ie.flatMap=oq,ie.flatMapDeep=aq,ie.flatMapDepth=sq,ie.flatten=XN,ie.flattenDeep=tW,ie.flattenDepth=nW,ie.flip=xq,ie.flow=yZ,ie.flowRight=EZ,ie.fromPairs=rW,ie.functions=EK,ie.functionsIn=CK,ie.groupBy=lq,ie.initial=oW,ie.intersection=aW,ie.intersectionBy=sW,ie.intersectionWith=lW,ie.invert=wK,ie.invertBy=xK,ie.invokeMap=uq,ie.iteratee=bE,ie.keyBy=dq,ie.keys=di,ie.keysIn=to,ie.map=S_,ie.mapKeys=IK,ie.mapValues=RK,ie.matches=CZ,ie.matchesProperty=TZ,ie.memoize=E_,ie.merge=AK,ie.mergeWith=S2,ie.method=wZ,ie.methodOf=xZ,ie.mixin=SE,ie.negate=C_,ie.nthArg=IZ,ie.omit=NK,ie.omitBy=DK,ie.once=Oq,ie.orderBy=pq,ie.over=RZ,ie.overArgs=Iq,ie.overEvery=AZ,ie.overSome=NZ,ie.partial=pE,ie.partialRight=d2,ie.partition=fq,ie.pick=MK,ie.pickBy=y2,ie.property=I2,ie.propertyOf=DZ,ie.pull=pW,ie.pullAll=e2,ie.pullAllBy=fW,ie.pullAllWith=mW,ie.pullAt=gW,ie.range=MZ,ie.rangeRight=PZ,ie.rearg=Rq,ie.reject=hq,ie.remove=hW,ie.rest=Aq,ie.reverse=cE,ie.sampleSize=vq,ie.set=kK,ie.setWith=$K,ie.shuffle=bq,ie.slice=_W,ie.sortBy=Eq,ie.sortedUniq=TW,ie.sortedUniqBy=wW,ie.split=oZ,ie.spread=Nq,ie.tail=xW,ie.take=OW,ie.takeRight=IW,ie.takeRightWhile=RW,ie.takeWhile=AW,ie.tap=jW,ie.throttle=Dq,ie.thru=b_,ie.toArray=h2,ie.toPairs=E2,ie.toPairsIn=C2,ie.toPath=BZ,ie.toPlainObject=v2,ie.transform=LK,ie.unary=Mq,ie.union=NW,ie.unionBy=DW,ie.unionWith=MW,ie.uniq=PW,ie.uniqBy=kW,ie.uniqWith=$W,ie.unset=FK,ie.unzip=uE,ie.unzipWith=t2,ie.update=BK,ie.updateWith=UK,ie.values=Od,ie.valuesIn=HK,ie.without=LW,ie.words=x2,ie.wrap=Pq,ie.xor=FW,ie.xorBy=BW,ie.xorWith=UW,ie.zip=HW,ie.zipObject=VW,ie.zipObjectDeep=zW,ie.zipWith=GW,ie.entries=E2,ie.entriesIn=C2,ie.extend=b2,ie.extendWith=x_,SE(ie,ie),ie.add=HZ,ie.attempt=O2,ie.camelCase=jK,ie.capitalize=T2,ie.ceil=VZ,ie.clamp=VK,ie.clone=$q,ie.cloneDeep=Fq,ie.cloneDeepWith=Bq,ie.cloneWith=Lq,ie.conformsTo=Uq,ie.deburr=w2,ie.defaultTo=SZ,ie.divide=zZ,ie.endsWith=YK,ie.eq=xa,ie.escape=WK,ie.escapeRegExp=qK,ie.every=tq,ie.find=rq,ie.findIndex=ZN,ie.findKey=hK,ie.findLast=iq,ie.findLastIndex=QN,ie.findLastKey=_K,ie.floor=GZ,ie.forEach=r2,ie.forEachRight=i2,ie.forIn=vK,ie.forInRight=bK,ie.forOwn=SK,ie.forOwnRight=yK,ie.get=gE,ie.gt=Hq,ie.gte=Vq,ie.has=TK,ie.hasIn=hE,ie.head=JN,ie.identity=no,ie.includes=cq,ie.indexOf=iW,ie.inRange=zK,ie.invoke=OK,ie.isArguments=tu,ie.isArray=an,ie.isArrayBuffer=zq,ie.isArrayLike=eo,ie.isArrayLikeObject=jr,ie.isBoolean=Gq,ie.isBuffer=Gl,ie.isDate=jq,ie.isElement=Yq,ie.isEmpty=Wq,ie.isEqual=qq,ie.isEqualWith=Kq,ie.isError=fE,ie.isFinite=Zq,ie.isFunction=Us,ie.isInteger=p2,ie.isLength=T_,ie.isMap=f2,ie.isMatch=Qq,ie.isMatchWith=Xq,ie.isNaN=Jq,ie.isNative=eK,ie.isNil=nK,ie.isNull=tK,ie.isNumber=m2,ie.isObject=Rr,ie.isObjectLike=kr,ie.isPlainObject=Qf,ie.isRegExp=mE,ie.isSafeInteger=rK,ie.isSet=g2,ie.isString=w_,ie.isSymbol=Eo,ie.isTypedArray=xd,ie.isUndefined=iK,ie.isWeakMap=oK,ie.isWeakSet=aK,ie.join=cW,ie.kebabCase=KK,ie.last=Xo,ie.lastIndexOf=uW,ie.lowerCase=ZK,ie.lowerFirst=QK,ie.lt=sK,ie.lte=lK,ie.max=jZ,ie.maxBy=YZ,ie.mean=WZ,ie.meanBy=qZ,ie.min=KZ,ie.minBy=ZZ,ie.stubArray=EE,ie.stubFalse=CE,ie.stubObject=kZ,ie.stubString=$Z,ie.stubTrue=LZ,ie.multiply=QZ,ie.nth=dW,ie.noConflict=OZ,ie.noop=yE,ie.now=y_,ie.pad=XK,ie.padEnd=JK,ie.padStart=eZ,ie.parseInt=tZ,ie.random=GK,ie.reduce=mq,ie.reduceRight=gq,ie.repeat=nZ,ie.replace=rZ,ie.result=PK,ie.round=XZ,ie.runInContext=$e,ie.sample=_q,ie.size=Sq,ie.snakeCase=iZ,ie.some=yq,ie.sortedIndex=vW,ie.sortedIndexBy=bW,ie.sortedIndexOf=SW,ie.sortedLastIndex=yW,ie.sortedLastIndexBy=EW,ie.sortedLastIndexOf=CW,ie.startCase=aZ,ie.startsWith=sZ,ie.subtract=JZ,ie.sum=eQ,ie.sumBy=tQ,ie.template=lZ,ie.times=FZ,ie.toFinite=Hs,ie.toInteger=un,ie.toLength=_2,ie.toLower=cZ,ie.toNumber=Jo,ie.toSafeInteger=cK,ie.toString=Yn,ie.toUpper=uZ,ie.trim=dZ,ie.trimEnd=pZ,ie.trimStart=fZ,ie.truncate=mZ,ie.unescape=gZ,ie.uniqueId=UZ,ie.upperCase=hZ,ie.upperFirst=_E,ie.each=r2,ie.eachRight=i2,ie.first=JN,SE(ie,function(){var _={};return es(ie,function(E,A){Qn.call(ie.prototype,A)||(_[A]=E)}),_}(),{chain:!1}),ie.VERSION=r,Wo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){ie[_].placeholder=ie}),Wo(["drop","take"],function(_,E){Tn.prototype[_]=function(A){A=A===n?1:ii(un(A),0);var z=this.__filtered__&&!E?new Tn(this):this.clone();return z.__filtered__?z.__takeCount__=Ii(A,z.__takeCount__):z.__views__.push({size:Ii(A,K),type:_+(z.__dir__<0?"Right":"")}),z},Tn.prototype[_+"Right"]=function(A){return this.reverse()[_](A).reverse()}}),Wo(["filter","map","takeWhile"],function(_,E){var A=E+1,z=A==$||A==L;Tn.prototype[_]=function(X){var ue=this.clone();return ue.__iteratees__.push({iteratee:Nt(X,3),type:A}),ue.__filtered__=ue.__filtered__||z,ue}}),Wo(["head","last"],function(_,E){var A="take"+(E?"Right":"");Tn.prototype[_]=function(){return this[A](1).value()[0]}}),Wo(["initial","tail"],function(_,E){var A="drop"+(E?"":"Right");Tn.prototype[_]=function(){return this.__filtered__?new Tn(this):this[A](1)}}),Tn.prototype.compact=function(){return this.filter(no)},Tn.prototype.find=function(_){return this.filter(_).head()},Tn.prototype.findLast=function(_){return this.reverse().find(_)},Tn.prototype.invokeMap=gn(function(_,E){return typeof _=="function"?new Tn(this):this.map(function(A){return jf(A,_,E)})}),Tn.prototype.reject=function(_){return this.filter(C_(Nt(_)))},Tn.prototype.slice=function(_,E){_=un(_);var A=this;return A.__filtered__&&(_>0||E<0)?new Tn(A):(_<0?A=A.takeRight(-_):_&&(A=A.drop(_)),E!==n&&(E=un(E),A=E<0?A.dropRight(-E):A.take(E-_)),A)},Tn.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},Tn.prototype.toArray=function(){return this.take(K)},es(Tn.prototype,function(_,E){var A=/^(?:filter|find|map|reject)|While$/.test(E),z=/^(?:head|last)$/.test(E),X=ie[z?"take"+(E=="last"?"Right":""):E],ue=z||/^find/.test(E);!X||(ie.prototype[E]=function(){var Re=this.__wrapped__,Pe=z?[1]:arguments,Be=Re instanceof Tn,Qe=Pe[0],Xe=Be||an(Re),et=function(En){var Rn=X.apply(ie,Ll([En],Pe));return z&&dt?Rn[0]:Rn};Xe&&A&&typeof Qe=="function"&&Qe.length!=1&&(Be=Xe=!1);var dt=this.__chain__,Et=!!this.__actions__.length,Pt=ue&&!dt,pn=Be&&!Et;if(!ue&&Xe){Re=pn?Re:new Tn(this);var kt=_.apply(Re,Pe);return kt.__actions__.push({func:b_,args:[et],thisArg:n}),new Ko(kt,dt)}return Pt&&pn?_.apply(this,Pe):(kt=this.thru(et),Pt?z?kt.value()[0]:kt.value():kt)})}),Wo(["pop","push","shift","sort","splice","unshift"],function(_){var E=jh[_],A=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",z=/^(?:pop|shift)$/.test(_);ie.prototype[_]=function(){var X=arguments;if(z&&!this.__chain__){var ue=this.value();return E.apply(an(ue)?ue:[],X)}return this[A](function(Re){return E.apply(an(Re)?Re:[],X)})}}),es(Tn.prototype,function(_,E){var A=ie[E];if(A){var z=A.name+"";Qn.call(yd,z)||(yd[z]=[]),yd[z].push({name:E,func:A})}}),yd[p_(n,v).name]=[{name:"wrapper",func:n}],Tn.prototype.clone=gj,Tn.prototype.reverse=hj,Tn.prototype.value=_j,ie.prototype.at=YW,ie.prototype.chain=WW,ie.prototype.commit=qW,ie.prototype.next=KW,ie.prototype.plant=QW,ie.prototype.reverse=XW,ie.prototype.toJSON=ie.prototype.valueOf=ie.prototype.value=JW,ie.prototype.first=ie.prototype.head,Ff&&(ie.prototype[Ff]=ZW),ie},vd=q7();Wc?((Wc.exports=vd)._=vd,by._=vd):hi._=vd}).call(so)})(Fo,Fo.exports);const $Xe=Fo.exports,d7e={class:"search"},p7e=["active","onClick"],f7e={key:0,class:"image-container"},m7e=["src"],g7e={class:"text-container"},h7e={key:0,class:"extra"},_7e={key:0,class:"left"},v7e={key:1,class:"right"},b7e={key:1,class:"card-title"},S7e={key:2,class:"card-subtitle"},y7e={key:3,class:"card-description"},E7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors","card-click"],setup(e,{emit:t}){const n=e;function r(f,g){return Fo.exports.isEqual(Fo.exports.omit(f,["image"]),Fo.exports.omit(g,["image"]))}const i=k(()=>{var f;return(f=n.userProps.options)!=null?f:[]}),o=k(()=>{var f;return(f=n.userProps.searchable)!=null?f:!1}),l=Ie(""),s=Ie(n.value);function u(f){return l.value?f.filter(g=>{var m,h,v;return((m=g.title)==null?void 0:m.toLowerCase().includes(l.value.toLowerCase()))||((h=g.subtitle)==null?void 0:h.toLowerCase().includes(l.value.toLowerCase()))||((v=g.description)==null?void 0:v.toLowerCase().includes(l.value.toLowerCase()))}):f}function a(f){return s.value.some(g=>r(g,f))}function c(f){a(f)?s.value=s.value.filter(m=>!r(m,f)):s.value=[...s.value,f]}function d(f){a(f)?s.value=[]:s.value=[f]}function p(f){n.userProps.disabled||(t("card-click",f),n.userProps.multiple?c(f):d(f),t("update:value",s.value))}return Ve(()=>n.value,()=>{s.value=n.value}),(f,g)=>{var m;return oe(),de("div",{class:"cards-input",style:Mi({"--grid-columns":(m=f.userProps.columns)!=null?m:2})},[x(Hn,{label:f.userProps.label,required:!!f.userProps.required,hint:f.userProps.hint},null,8,["label","required","hint"]),Ce("div",d7e,[o.value?Sr((oe(),de("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=h=>l.value=h),type:"text",class:"input",placeholder:"Search..."},null,512)),[[ju,l.value]]):ft("",!0)]),Ce("div",{class:Gt(["cards",f.userProps.layout||"list"])},[(oe(!0),de(tt,null,Pi(u(i.value),h=>(oe(),de("div",{key:h.title,class:Gt(["card","clickable",f.userProps.layout||"list",{disabled:f.userProps.disabled}]),active:a(h),onClick:v=>p(h)},[h.image?(oe(),de("div",f7e,[Ce("img",{class:"card-image",src:h.image},null,8,m7e)])):ft("",!0),Ce("main",g7e,[h.topLeftExtra||h.topRightExtra?(oe(),de("div",h7e,[h.topLeftExtra?(oe(),de("p",_7e,Xt(h.topLeftExtra),1)):ft("",!0),h.topRightExtra?(oe(),de("p",v7e,Xt(h.topRightExtra),1)):ft("",!0)])):ft("",!0),h.title?(oe(),de("h1",b7e,Xt(h.title),1)):ft("",!0),h.subtitle?(oe(),de("h2",S7e,Xt(h.subtitle),1)):ft("",!0),h.description?(oe(),de("p",y7e,Xt(h.description),1)):ft("",!0)])],10,p7e))),128))],2)],4)}}});const C7e=Fn(E7e,[["__scopeId","data-v-c4887666"]]),T7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=()=>{r.value=!r.value,t("update:value",r.value)};return Ve(()=>n.value,()=>r.value=n.value),(o,l)=>{const s=_p("Markdown");return oe(),An(We(bs),{disabled:o.userProps.disabled,checked:r.value,onClick:i},{default:fn(()=>[x(s,{class:"markdown-output",source:o.userProps.label,html:""},null,8,["source"])]),_:1},8,["disabled","checked"])}}});const w7e=Fn(T7e,[["__scopeId","data-v-9503d85c"]]),x7e={class:"checklist-input"},O7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=o=>{t("update:errors",[]),t("update:value",o)};return Ve(()=>n.value,()=>r.value=n.value),(o,l)=>(oe(),de("div",x7e,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),x(We(Pg),{value:r.value,"onUpdate:value":l[0]||(l[0]=s=>r.value=s),disabled:o.userProps.disabled,options:o.userProps.options,onChange:l[1]||(l[1]=s=>i(s))},null,8,["value","disabled","options"])]))}});const I7e=Fn(O7e,[["__scopeId","data-v-0f1257be"]]),R7e={0:/\d/,a:/[a-zA-Z]/,"*":/./};function Po(e,t){var l;if(e.length===0||t.length===0)return"";const n=A7e(e,t),r=n[0],i=R7e[r];if(!i)return r+Po(n.slice(1),t.startsWith(r)?t.slice(1):t);const o=t.match(i);return o?o[0]+Po(n.slice(1),t.slice(((l=o.index)!=null?l:0)+1)):""}function sf(e,t){return e.includes("|")?FG(e).some(r=>r.length==t.length):t.length===e.length}function A7e(e,t){if(!e.includes("|"))return e;const n=FG(e);for(const r of n)if(t.replace(/\D/g,"").length<=r.replace(/\D/g,"").length)return r;return n[0]}function FG(e){return e.split("|").sort((n,r)=>n.length-r.length)}const N7e=["disabled","placeholder"],pm="00.000.000/0000-00",D7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=u=>{if(!u||!(typeof u=="string")||u.length>18)return!1;const c=/^\d{14}$/.test(u),d=/^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/.test(u);if(!(c||d))return!1;const p=u.toString().match(/\d/g),f=Array.isArray(p)?p.map(Number):[];if(f.length!==14||[...new Set(f)].length===1)return!1;const m=S=>{const y=f.slice(0,S);let C=S-7,w=0;for(let O=S;O>=1;O--){const R=y[S-O];w+=R*C--,C<2&&(C=9)}const T=11-w%11;return T>9?0:T},h=f.slice(12);return m(12)!==h[0]?!1:m(13)===h[1]},i=Ie(),o=()=>{var a;const u=[];n.value!==""&&(!sf(pm,n.value)||!r(n.value))&&u.push((a=n.userProps.invalidMessage)!=null?a:""),t("update:errors",u)},l=u=>{const a=Po(pm,u);i.value.value=a,t("update:value",a)},s=u=>{const a=u.target;sf(pm,a.value)&&r(a.value)&&u.preventDefault()};return _t(()=>{!i.value||(i.value.value=Po(pm,n.value))}),Ve(()=>n.value,()=>{!i.value||(i.value.value=Po(pm,n.value))}),(u,a)=>(oe(),de(tt,null,[x(Hn,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ce("input",{ref_key:"input",ref:i,class:Gt(["input",u.errors.length&&"error",u.userProps.disabled&&"disabled"]),disabled:u.userProps.disabled,placeholder:u.userProps.placeholder,onInput:a[0]||(a[0]=c=>l(c.target.value)),onKeypress:a[1]||(a[1]=c=>s(c)),onChange:o,onBlur:o},null,42,N7e)],64))}}),M7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Ie(),i=async(o,l,s)=>{const a=(await my(()=>import("./editor.main.99d6f79a.js"),["assets/editor.main.99d6f79a.js","assets/toggleHighContrast.5028b4ff.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(o,{language:s,value:l,minimap:{enabled:!1},readOnly:n.userProps.disabled,contextmenu:!0,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}});a.onDidChangeModelContent(()=>{t("update:value",String(a.getValue()))})};return _t(()=>{var o;i(r.value,(o=n.value)!=null?o:"",n.userProps.language)}),(o,l)=>(oe(),de(tt,null,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ce("div",{ref_key:"editor",ref:r,class:"input code-editor",style:{height:"500px"}},null,512)],64))}});const P7e=Fn(M7e,[["__scopeId","data-v-d10ec25a"]]),k7e={class:"cpf-input"},$7e=["disabled","placeholder"],Bd="000.000.000-00",L7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=a=>{const c=a.split(".").join("").split("-").join("");let d,p;if(d=0,c=="00000000000")return!1;for(let f=1;f<=9;f++)d=d+parseInt(c.substring(f-1,f))*(11-f);if(p=d*10%11,(p==10||p==11)&&(p=0),p!=parseInt(c.substring(9,10)))return!1;d=0;for(let f=1;f<=10;f++)d=d+parseInt(c.substring(f-1,f))*(12-f);return p=d*10%11,(p==10||p==11)&&(p=0),p==parseInt(c.substring(10,11))},i=a=>a?sf(Bd,a)&&r(a):!0,o=a=>{const c=Po(Bd,a);!u.value||(u.value.value=c,t("update:value",a))},l=a=>{const c=a.target;sf(Bd,c.value)&&r(c.value)&&a.preventDefault()},s=()=>{var c;const a=[];i(Po(Bd,n.value))||a.push((c=n.userProps.invalidMessage)!=null?c:""),t("update:errors",a)},u=Ie();return _t(()=>{!u.value||(u.value.value=Po(Bd,n.value))}),Ve(()=>n.value,()=>{!u.value||(u.value.value=Po(Bd,n.value))}),(a,c)=>(oe(),de("div",k7e,[x(Hn,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ce("input",{ref_key:"input",ref:u,class:Gt(["input",n.errors.length&&"error",a.userProps.disabled&&"disabled"]),disabled:a.userProps.disabled,placeholder:a.userProps.placeholder,onInput:c[0]||(c[0]=d=>o(d.target.value)),onKeypress:c[1]||(c[1]=d=>l(d)),onChange:s,onBlur:s},null,42,$7e)]))}}),F7e={class:"currency-input"},B7e={class:"input-wrapper"},U7e=["disabled","placeholder"],H7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Ie(),i=Ie(!1),o=d=>d.replace(/[^0-9]/g,""),l=d=>{const p=d.target.value,f=o(p),g=u(f),m=s(g);r.value.value=m,g!==n.value&&t("update:value",g)},s=d=>d===null?"":new Intl.NumberFormat(navigator.language,{style:"decimal",minimumFractionDigits:2}).format(d);function u(d){return d?parseInt(d)/100:null}const a=k(()=>Intl.NumberFormat("en-US",{maximumFractionDigits:0,currency:n.userProps.currency,style:"currency",currencyDisplay:"symbol"}).format(0).replace("0","")),c=k(()=>a.value.length*30+"px");return _t(()=>{r.value.value=s(n.value)}),Ve(()=>n.value,()=>{r.value.value=s(n.value)}),(d,p)=>(oe(),de("div",F7e,[x(Hn,{label:d.userProps.label,required:!!d.userProps.required,hint:d.userProps.hint},null,8,["label","required","hint"]),Ce("div",B7e,[Ce("div",{class:Gt(["symbol",{focused:i.value}])},Xt(a.value),3),Ce("input",{ref_key:"input",ref:r,style:Mi({paddingLeft:c.value}),class:Gt(["input",d.errors.length&&"error",d.userProps.disabled&&"disabled"]),disabled:d.userProps.disabled,placeholder:d.userProps.placeholder,onInput:l},null,46,U7e)])]))}});const V7e=Fn(H7e,[["__scopeId","data-v-a20018d1"]]),z7e={class:"custom-input",style:{height:"100%",width:"100%"}},G7e=["id","src"],j7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors","custom-event"],setup(e,{emit:t}){const n=e,r={width:"100%",height:n.userProps.height?`${n.userProps.height}px`:"100%",border:"none"},i=Ie(),o=Math.random().toString(36).slice(2),l=Ie(""),s=c=>typeof c=="object"&&c!==null&&"type"in c&&"id"in c&&c.id===o,u=c=>{!s(c.data)||(c.data.type==="change"?t("update:value",c.data.payload):t(c.data.type,c.data.payload))};_t(()=>{window.addEventListener("message",u),a()}),Jt(()=>{window.removeEventListener("message",u)}),Ve(()=>n.value,(c,d)=>{Fo.exports.isEqual(c,d)||a()}),Ve(()=>n.userProps.value,(c,d)=>{Fo.exports.isEqual(c,d)||a()}),Ve(()=>`${n.userProps.htmlHead}${n.userProps.htmlBody}${n.userProps.css}${n.userProps.js}`,()=>a());const a=()=>{var h,v;const c="script",d=(v=(h=n.value)!=null?h:n.userProps.value)!=null?v:"",{htmlHead:p,htmlBody:f,css:g,js:m}=n.userProps;l.value=window.btoa(` +}`;var pn=O2(function(){return Gn(ue,Et+"return "+et).apply(n,Re)});if(pn.source=et,fE(pn))throw pn;return pn}function cZ(_){return Yn(_).toLowerCase()}function uZ(_){return Yn(_).toUpperCase()}function dZ(_,E,A){if(_=Yn(_),_&&(A||E===n))return $A(_);if(!_||!(E=yo(E)))return _;var z=Ta(_),X=Ta(E),ue=LA(z,X),Re=FA(z,X)+1;return zl(z,ue,Re).join("")}function pZ(_,E,A){if(_=Yn(_),_&&(A||E===n))return _.slice(0,UA(_)+1);if(!_||!(E=yo(E)))return _;var z=Ta(_),X=FA(z,Ta(E))+1;return zl(z,0,X).join("")}function fZ(_,E,A){if(_=Yn(_),_&&(A||E===n))return _.replace(ce,"");if(!_||!(E=yo(E)))return _;var z=Ta(_),X=LA(z,Ta(E));return zl(z,X).join("")}function mZ(_,E){var A=N,z=D;if(Rr(E)){var X="separator"in E?E.separator:X;A="length"in E?un(E.length):A,z="omission"in E?yo(E.omission):z}_=Yn(_);var ue=_.length;if(hd(_)){var Re=Ta(_);ue=Re.length}if(A>=ue)return _;var Pe=A-_d(z);if(Pe<1)return z;var Be=Re?zl(Re,0,Pe).join(""):_.slice(0,Pe);if(X===n)return Be+z;if(Re&&(Pe+=Be.length-Pe),mE(X)){if(_.slice(Pe).search(X)){var Qe,Xe=Be;for(X.global||(X=Ay(X.source,Yn(vn.exec(X))+"g")),X.lastIndex=0;Qe=X.exec(Xe);)var et=Qe.index;Be=Be.slice(0,et===n?Pe:et)}}else if(_.indexOf(yo(X),Pe)!=Pe){var dt=Be.lastIndexOf(X);dt>-1&&(Be=Be.slice(0,dt))}return Be+z}function gZ(_){return _=Yn(_),_&&Vn.test(_)?_.replace(pt,G7):_}var hZ=Td(function(_,E,A){return _+(A?" ":"")+E.toUpperCase()}),_E=IN("toUpperCase");function x2(_,E,A){return _=Yn(_),E=A?n:E,E===n?B7(_)?W7(_):A7(_):_.match(E)||[]}var O2=gn(function(_,E){try{return bo(_,n,E)}catch(A){return fE(A)?A:new tn(A)}}),_Z=Fs(function(_,E){return Wo(E,function(A){A=ns(A),$s(_,A,dE(_[A],_))}),_});function vZ(_){var E=_==null?0:_.length,A=Nt();return _=E?Tr(_,function(z){if(typeof z[1]!="function")throw new qo(l);return[A(z[0]),z[1]]}):[],gn(function(z){for(var X=-1;++XU)return[];var A=K,z=Ii(_,K);E=Nt(E),_-=K;for(var X=Oy(z,E);++A<_;)E(A);return X}function BZ(_){return an(_)?Tr(_,ns):Eo(_)?[_]:Ji(qN(Yn(_)))}function UZ(_){var E=++Q7;return Yn(_)+E}var HZ=f_(function(_,E){return _+E},0),VZ=Jy("ceil"),zZ=f_(function(_,E){return _/E},1),GZ=Jy("floor");function jZ(_){return _&&_.length?a_(_,no,Fy):n}function YZ(_,E){return _&&_.length?a_(_,Nt(E,2),Fy):n}function WZ(_){return PA(_,no)}function qZ(_,E){return PA(_,Nt(E,2))}function KZ(_){return _&&_.length?a_(_,no,Vy):n}function ZZ(_,E){return _&&_.length?a_(_,Nt(E,2),Vy):n}var QZ=f_(function(_,E){return _*E},1),XZ=Jy("round"),JZ=f_(function(_,E){return _-E},0);function eQ(_){return _&&_.length?xy(_,no):0}function tQ(_,E){return _&&_.length?xy(_,Nt(E,2)):0}return ie.after=Cq,ie.ary=o2,ie.assign=uK,ie.assignIn=b2,ie.assignInWith=x_,ie.assignWith=dK,ie.at=pK,ie.before=a2,ie.bind=dE,ie.bindAll=_Z,ie.bindKey=s2,ie.castArray=kq,ie.chain=n2,ie.chunk=GY,ie.compact=jY,ie.concat=YY,ie.cond=vZ,ie.conforms=bZ,ie.constant=vE,ie.countBy=eq,ie.create=fK,ie.curry=l2,ie.curryRight=c2,ie.debounce=u2,ie.defaults=mK,ie.defaultsDeep=gK,ie.defer=Tq,ie.delay=wq,ie.difference=WY,ie.differenceBy=qY,ie.differenceWith=KY,ie.drop=ZY,ie.dropRight=QY,ie.dropRightWhile=XY,ie.dropWhile=JY,ie.fill=eW,ie.filter=nq,ie.flatMap=oq,ie.flatMapDeep=aq,ie.flatMapDepth=sq,ie.flatten=XN,ie.flattenDeep=tW,ie.flattenDepth=nW,ie.flip=xq,ie.flow=yZ,ie.flowRight=EZ,ie.fromPairs=rW,ie.functions=EK,ie.functionsIn=CK,ie.groupBy=lq,ie.initial=oW,ie.intersection=aW,ie.intersectionBy=sW,ie.intersectionWith=lW,ie.invert=wK,ie.invertBy=xK,ie.invokeMap=uq,ie.iteratee=bE,ie.keyBy=dq,ie.keys=di,ie.keysIn=to,ie.map=S_,ie.mapKeys=IK,ie.mapValues=RK,ie.matches=CZ,ie.matchesProperty=TZ,ie.memoize=E_,ie.merge=AK,ie.mergeWith=S2,ie.method=wZ,ie.methodOf=xZ,ie.mixin=SE,ie.negate=C_,ie.nthArg=IZ,ie.omit=NK,ie.omitBy=DK,ie.once=Oq,ie.orderBy=pq,ie.over=RZ,ie.overArgs=Iq,ie.overEvery=AZ,ie.overSome=NZ,ie.partial=pE,ie.partialRight=d2,ie.partition=fq,ie.pick=MK,ie.pickBy=y2,ie.property=I2,ie.propertyOf=DZ,ie.pull=pW,ie.pullAll=e2,ie.pullAllBy=fW,ie.pullAllWith=mW,ie.pullAt=gW,ie.range=MZ,ie.rangeRight=PZ,ie.rearg=Rq,ie.reject=hq,ie.remove=hW,ie.rest=Aq,ie.reverse=cE,ie.sampleSize=vq,ie.set=kK,ie.setWith=$K,ie.shuffle=bq,ie.slice=_W,ie.sortBy=Eq,ie.sortedUniq=TW,ie.sortedUniqBy=wW,ie.split=oZ,ie.spread=Nq,ie.tail=xW,ie.take=OW,ie.takeRight=IW,ie.takeRightWhile=RW,ie.takeWhile=AW,ie.tap=jW,ie.throttle=Dq,ie.thru=b_,ie.toArray=h2,ie.toPairs=E2,ie.toPairsIn=C2,ie.toPath=BZ,ie.toPlainObject=v2,ie.transform=LK,ie.unary=Mq,ie.union=NW,ie.unionBy=DW,ie.unionWith=MW,ie.uniq=PW,ie.uniqBy=kW,ie.uniqWith=$W,ie.unset=FK,ie.unzip=uE,ie.unzipWith=t2,ie.update=BK,ie.updateWith=UK,ie.values=Od,ie.valuesIn=HK,ie.without=LW,ie.words=x2,ie.wrap=Pq,ie.xor=FW,ie.xorBy=BW,ie.xorWith=UW,ie.zip=HW,ie.zipObject=VW,ie.zipObjectDeep=zW,ie.zipWith=GW,ie.entries=E2,ie.entriesIn=C2,ie.extend=b2,ie.extendWith=x_,SE(ie,ie),ie.add=HZ,ie.attempt=O2,ie.camelCase=jK,ie.capitalize=T2,ie.ceil=VZ,ie.clamp=VK,ie.clone=$q,ie.cloneDeep=Fq,ie.cloneDeepWith=Bq,ie.cloneWith=Lq,ie.conformsTo=Uq,ie.deburr=w2,ie.defaultTo=SZ,ie.divide=zZ,ie.endsWith=YK,ie.eq=xa,ie.escape=WK,ie.escapeRegExp=qK,ie.every=tq,ie.find=rq,ie.findIndex=ZN,ie.findKey=hK,ie.findLast=iq,ie.findLastIndex=QN,ie.findLastKey=_K,ie.floor=GZ,ie.forEach=r2,ie.forEachRight=i2,ie.forIn=vK,ie.forInRight=bK,ie.forOwn=SK,ie.forOwnRight=yK,ie.get=gE,ie.gt=Hq,ie.gte=Vq,ie.has=TK,ie.hasIn=hE,ie.head=JN,ie.identity=no,ie.includes=cq,ie.indexOf=iW,ie.inRange=zK,ie.invoke=OK,ie.isArguments=tu,ie.isArray=an,ie.isArrayBuffer=zq,ie.isArrayLike=eo,ie.isArrayLikeObject=jr,ie.isBoolean=Gq,ie.isBuffer=Gl,ie.isDate=jq,ie.isElement=Yq,ie.isEmpty=Wq,ie.isEqual=qq,ie.isEqualWith=Kq,ie.isError=fE,ie.isFinite=Zq,ie.isFunction=Us,ie.isInteger=p2,ie.isLength=T_,ie.isMap=f2,ie.isMatch=Qq,ie.isMatchWith=Xq,ie.isNaN=Jq,ie.isNative=eK,ie.isNil=nK,ie.isNull=tK,ie.isNumber=m2,ie.isObject=Rr,ie.isObjectLike=kr,ie.isPlainObject=Qf,ie.isRegExp=mE,ie.isSafeInteger=rK,ie.isSet=g2,ie.isString=w_,ie.isSymbol=Eo,ie.isTypedArray=xd,ie.isUndefined=iK,ie.isWeakMap=oK,ie.isWeakSet=aK,ie.join=cW,ie.kebabCase=KK,ie.last=Xo,ie.lastIndexOf=uW,ie.lowerCase=ZK,ie.lowerFirst=QK,ie.lt=sK,ie.lte=lK,ie.max=jZ,ie.maxBy=YZ,ie.mean=WZ,ie.meanBy=qZ,ie.min=KZ,ie.minBy=ZZ,ie.stubArray=EE,ie.stubFalse=CE,ie.stubObject=kZ,ie.stubString=$Z,ie.stubTrue=LZ,ie.multiply=QZ,ie.nth=dW,ie.noConflict=OZ,ie.noop=yE,ie.now=y_,ie.pad=XK,ie.padEnd=JK,ie.padStart=eZ,ie.parseInt=tZ,ie.random=GK,ie.reduce=mq,ie.reduceRight=gq,ie.repeat=nZ,ie.replace=rZ,ie.result=PK,ie.round=XZ,ie.runInContext=$e,ie.sample=_q,ie.size=Sq,ie.snakeCase=iZ,ie.some=yq,ie.sortedIndex=vW,ie.sortedIndexBy=bW,ie.sortedIndexOf=SW,ie.sortedLastIndex=yW,ie.sortedLastIndexBy=EW,ie.sortedLastIndexOf=CW,ie.startCase=aZ,ie.startsWith=sZ,ie.subtract=JZ,ie.sum=eQ,ie.sumBy=tQ,ie.template=lZ,ie.times=FZ,ie.toFinite=Hs,ie.toInteger=un,ie.toLength=_2,ie.toLower=cZ,ie.toNumber=Jo,ie.toSafeInteger=cK,ie.toString=Yn,ie.toUpper=uZ,ie.trim=dZ,ie.trimEnd=pZ,ie.trimStart=fZ,ie.truncate=mZ,ie.unescape=gZ,ie.uniqueId=UZ,ie.upperCase=hZ,ie.upperFirst=_E,ie.each=r2,ie.eachRight=i2,ie.first=JN,SE(ie,function(){var _={};return es(ie,function(E,A){Qn.call(ie.prototype,A)||(_[A]=E)}),_}(),{chain:!1}),ie.VERSION=r,Wo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){ie[_].placeholder=ie}),Wo(["drop","take"],function(_,E){Tn.prototype[_]=function(A){A=A===n?1:ii(un(A),0);var z=this.__filtered__&&!E?new Tn(this):this.clone();return z.__filtered__?z.__takeCount__=Ii(A,z.__takeCount__):z.__views__.push({size:Ii(A,K),type:_+(z.__dir__<0?"Right":"")}),z},Tn.prototype[_+"Right"]=function(A){return this.reverse()[_](A).reverse()}}),Wo(["filter","map","takeWhile"],function(_,E){var A=E+1,z=A==$||A==L;Tn.prototype[_]=function(X){var ue=this.clone();return ue.__iteratees__.push({iteratee:Nt(X,3),type:A}),ue.__filtered__=ue.__filtered__||z,ue}}),Wo(["head","last"],function(_,E){var A="take"+(E?"Right":"");Tn.prototype[_]=function(){return this[A](1).value()[0]}}),Wo(["initial","tail"],function(_,E){var A="drop"+(E?"":"Right");Tn.prototype[_]=function(){return this.__filtered__?new Tn(this):this[A](1)}}),Tn.prototype.compact=function(){return this.filter(no)},Tn.prototype.find=function(_){return this.filter(_).head()},Tn.prototype.findLast=function(_){return this.reverse().find(_)},Tn.prototype.invokeMap=gn(function(_,E){return typeof _=="function"?new Tn(this):this.map(function(A){return jf(A,_,E)})}),Tn.prototype.reject=function(_){return this.filter(C_(Nt(_)))},Tn.prototype.slice=function(_,E){_=un(_);var A=this;return A.__filtered__&&(_>0||E<0)?new Tn(A):(_<0?A=A.takeRight(-_):_&&(A=A.drop(_)),E!==n&&(E=un(E),A=E<0?A.dropRight(-E):A.take(E-_)),A)},Tn.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},Tn.prototype.toArray=function(){return this.take(K)},es(Tn.prototype,function(_,E){var A=/^(?:filter|find|map|reject)|While$/.test(E),z=/^(?:head|last)$/.test(E),X=ie[z?"take"+(E=="last"?"Right":""):E],ue=z||/^find/.test(E);!X||(ie.prototype[E]=function(){var Re=this.__wrapped__,Pe=z?[1]:arguments,Be=Re instanceof Tn,Qe=Pe[0],Xe=Be||an(Re),et=function(En){var Rn=X.apply(ie,Ll([En],Pe));return z&&dt?Rn[0]:Rn};Xe&&A&&typeof Qe=="function"&&Qe.length!=1&&(Be=Xe=!1);var dt=this.__chain__,Et=!!this.__actions__.length,Pt=ue&&!dt,pn=Be&&!Et;if(!ue&&Xe){Re=pn?Re:new Tn(this);var kt=_.apply(Re,Pe);return kt.__actions__.push({func:b_,args:[et],thisArg:n}),new Ko(kt,dt)}return Pt&&pn?_.apply(this,Pe):(kt=this.thru(et),Pt?z?kt.value()[0]:kt.value():kt)})}),Wo(["pop","push","shift","sort","splice","unshift"],function(_){var E=jh[_],A=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",z=/^(?:pop|shift)$/.test(_);ie.prototype[_]=function(){var X=arguments;if(z&&!this.__chain__){var ue=this.value();return E.apply(an(ue)?ue:[],X)}return this[A](function(Re){return E.apply(an(Re)?Re:[],X)})}}),es(Tn.prototype,function(_,E){var A=ie[E];if(A){var z=A.name+"";Qn.call(yd,z)||(yd[z]=[]),yd[z].push({name:E,func:A})}}),yd[p_(n,v).name]=[{name:"wrapper",func:n}],Tn.prototype.clone=gj,Tn.prototype.reverse=hj,Tn.prototype.value=_j,ie.prototype.at=YW,ie.prototype.chain=WW,ie.prototype.commit=qW,ie.prototype.next=KW,ie.prototype.plant=QW,ie.prototype.reverse=XW,ie.prototype.toJSON=ie.prototype.valueOf=ie.prototype.value=JW,ie.prototype.first=ie.prototype.head,Ff&&(ie.prototype[Ff]=ZW),ie},vd=q7();Wc?((Wc.exports=vd)._=vd,by._=vd):hi._=vd}).call(so)})(Fo,Fo.exports);const $Xe=Fo.exports,d7e={class:"search"},p7e=["active","onClick"],f7e={key:0,class:"image-container"},m7e=["src"],g7e={class:"text-container"},h7e={key:0,class:"extra"},_7e={key:0,class:"left"},v7e={key:1,class:"right"},b7e={key:1,class:"card-title"},S7e={key:2,class:"card-subtitle"},y7e={key:3,class:"card-description"},E7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors","card-click"],setup(e,{emit:t}){const n=e;function r(f,g){return Fo.exports.isEqual(Fo.exports.omit(f,["image"]),Fo.exports.omit(g,["image"]))}const i=k(()=>{var f;return(f=n.userProps.options)!=null?f:[]}),o=k(()=>{var f;return(f=n.userProps.searchable)!=null?f:!1}),l=Ie(""),s=Ie(n.value);function u(f){return l.value?f.filter(g=>{var m,h,v;return((m=g.title)==null?void 0:m.toLowerCase().includes(l.value.toLowerCase()))||((h=g.subtitle)==null?void 0:h.toLowerCase().includes(l.value.toLowerCase()))||((v=g.description)==null?void 0:v.toLowerCase().includes(l.value.toLowerCase()))}):f}function a(f){return s.value.some(g=>r(g,f))}function c(f){a(f)?s.value=s.value.filter(m=>!r(m,f)):s.value=[...s.value,f]}function d(f){a(f)?s.value=[]:s.value=[f]}function p(f){n.userProps.disabled||(t("card-click",f),n.userProps.multiple?c(f):d(f),t("update:value",s.value))}return Ve(()=>n.value,()=>{s.value=n.value}),(f,g)=>{var m;return oe(),de("div",{class:"cards-input",style:Mi({"--grid-columns":(m=f.userProps.columns)!=null?m:2})},[x(Hn,{label:f.userProps.label,required:!!f.userProps.required,hint:f.userProps.hint},null,8,["label","required","hint"]),Ce("div",d7e,[o.value?Sr((oe(),de("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=h=>l.value=h),type:"text",class:"input",placeholder:"Search..."},null,512)),[[ju,l.value]]):ft("",!0)]),Ce("div",{class:Gt(["cards",f.userProps.layout||"list"])},[(oe(!0),de(tt,null,Pi(u(i.value),h=>(oe(),de("div",{key:h.title,class:Gt(["card","clickable",f.userProps.layout||"list",{disabled:f.userProps.disabled}]),active:a(h),onClick:v=>p(h)},[h.image?(oe(),de("div",f7e,[Ce("img",{class:"card-image",src:h.image},null,8,m7e)])):ft("",!0),Ce("main",g7e,[h.topLeftExtra||h.topRightExtra?(oe(),de("div",h7e,[h.topLeftExtra?(oe(),de("p",_7e,Xt(h.topLeftExtra),1)):ft("",!0),h.topRightExtra?(oe(),de("p",v7e,Xt(h.topRightExtra),1)):ft("",!0)])):ft("",!0),h.title?(oe(),de("h1",b7e,Xt(h.title),1)):ft("",!0),h.subtitle?(oe(),de("h2",S7e,Xt(h.subtitle),1)):ft("",!0),h.description?(oe(),de("p",y7e,Xt(h.description),1)):ft("",!0)])],10,p7e))),128))],2)],4)}}});const C7e=Fn(E7e,[["__scopeId","data-v-c4887666"]]),T7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=()=>{r.value=!r.value,t("update:value",r.value)};return Ve(()=>n.value,()=>r.value=n.value),(o,l)=>{const s=_p("Markdown");return oe(),An(We(bs),{disabled:o.userProps.disabled,checked:r.value,onClick:i},{default:fn(()=>[x(s,{class:"markdown-output",source:o.userProps.label,html:""},null,8,["source"])]),_:1},8,["disabled","checked"])}}});const w7e=Fn(T7e,[["__scopeId","data-v-9503d85c"]]),x7e={class:"checklist-input"},O7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=o=>{t("update:errors",[]),t("update:value",o)};return Ve(()=>n.value,()=>r.value=n.value),(o,l)=>(oe(),de("div",x7e,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),x(We(Pg),{value:r.value,"onUpdate:value":l[0]||(l[0]=s=>r.value=s),disabled:o.userProps.disabled,options:o.userProps.options,onChange:l[1]||(l[1]=s=>i(s))},null,8,["value","disabled","options"])]))}});const I7e=Fn(O7e,[["__scopeId","data-v-0f1257be"]]),R7e={0:/\d/,a:/[a-zA-Z]/,"*":/./};function Po(e,t){var l;if(e.length===0||t.length===0)return"";const n=A7e(e,t),r=n[0],i=R7e[r];if(!i)return r+Po(n.slice(1),t.startsWith(r)?t.slice(1):t);const o=t.match(i);return o?o[0]+Po(n.slice(1),t.slice(((l=o.index)!=null?l:0)+1)):""}function sf(e,t){return e.includes("|")?FG(e).some(r=>r.length==t.length):t.length===e.length}function A7e(e,t){if(!e.includes("|"))return e;const n=FG(e);for(const r of n)if(t.replace(/\D/g,"").length<=r.replace(/\D/g,"").length)return r;return n[0]}function FG(e){return e.split("|").sort((n,r)=>n.length-r.length)}const N7e=["disabled","placeholder"],pm="00.000.000/0000-00",D7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=u=>{if(!u||!(typeof u=="string")||u.length>18)return!1;const c=/^\d{14}$/.test(u),d=/^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/.test(u);if(!(c||d))return!1;const p=u.toString().match(/\d/g),f=Array.isArray(p)?p.map(Number):[];if(f.length!==14||[...new Set(f)].length===1)return!1;const m=S=>{const y=f.slice(0,S);let C=S-7,w=0;for(let O=S;O>=1;O--){const R=y[S-O];w+=R*C--,C<2&&(C=9)}const T=11-w%11;return T>9?0:T},h=f.slice(12);return m(12)!==h[0]?!1:m(13)===h[1]},i=Ie(),o=()=>{var a;const u=[];n.value!==""&&(!sf(pm,n.value)||!r(n.value))&&u.push((a=n.userProps.invalidMessage)!=null?a:""),t("update:errors",u)},l=u=>{const a=Po(pm,u);i.value.value=a,t("update:value",a)},s=u=>{const a=u.target;sf(pm,a.value)&&r(a.value)&&u.preventDefault()};return _t(()=>{!i.value||(i.value.value=Po(pm,n.value))}),Ve(()=>n.value,()=>{!i.value||(i.value.value=Po(pm,n.value))}),(u,a)=>(oe(),de(tt,null,[x(Hn,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ce("input",{ref_key:"input",ref:i,class:Gt(["input",u.errors.length&&"error",u.userProps.disabled&&"disabled"]),disabled:u.userProps.disabled,placeholder:u.userProps.placeholder,onInput:a[0]||(a[0]=c=>l(c.target.value)),onKeypress:a[1]||(a[1]=c=>s(c)),onChange:o,onBlur:o},null,42,N7e)],64))}}),M7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Ie(),i=async(o,l,s)=>{const a=(await my(()=>import("./editor.main.54e0d4d5.js"),["assets/editor.main.54e0d4d5.js","assets/toggleHighContrast.0eb315ff.js","assets/toggleHighContrast.30d77c87.css"])).editor.create(o,{language:s,value:l,minimap:{enabled:!1},readOnly:n.userProps.disabled,contextmenu:!0,automaticLayout:!0,tabSize:4,renderWhitespace:"none",guides:{indentation:!1},theme:"vs",fontFamily:"monospace",lineNumbers:"on",scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,renderLineHighlight:"all",scrollbar:{alwaysConsumeMouseWheel:!1}});a.onDidChangeModelContent(()=>{t("update:value",String(a.getValue()))})};return _t(()=>{var o;i(r.value,(o=n.value)!=null?o:"",n.userProps.language)}),(o,l)=>(oe(),de(tt,null,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ce("div",{ref_key:"editor",ref:r,class:"input code-editor",style:{height:"500px"}},null,512)],64))}});const P7e=Fn(M7e,[["__scopeId","data-v-d10ec25a"]]),k7e={class:"cpf-input"},$7e=["disabled","placeholder"],Bd="000.000.000-00",L7e=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=a=>{const c=a.split(".").join("").split("-").join("");let d,p;if(d=0,c=="00000000000")return!1;for(let f=1;f<=9;f++)d=d+parseInt(c.substring(f-1,f))*(11-f);if(p=d*10%11,(p==10||p==11)&&(p=0),p!=parseInt(c.substring(9,10)))return!1;d=0;for(let f=1;f<=10;f++)d=d+parseInt(c.substring(f-1,f))*(12-f);return p=d*10%11,(p==10||p==11)&&(p=0),p==parseInt(c.substring(10,11))},i=a=>a?sf(Bd,a)&&r(a):!0,o=a=>{const c=Po(Bd,a);!u.value||(u.value.value=c,t("update:value",a))},l=a=>{const c=a.target;sf(Bd,c.value)&&r(c.value)&&a.preventDefault()},s=()=>{var c;const a=[];i(Po(Bd,n.value))||a.push((c=n.userProps.invalidMessage)!=null?c:""),t("update:errors",a)},u=Ie();return _t(()=>{!u.value||(u.value.value=Po(Bd,n.value))}),Ve(()=>n.value,()=>{!u.value||(u.value.value=Po(Bd,n.value))}),(a,c)=>(oe(),de("div",k7e,[x(Hn,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ce("input",{ref_key:"input",ref:u,class:Gt(["input",n.errors.length&&"error",a.userProps.disabled&&"disabled"]),disabled:a.userProps.disabled,placeholder:a.userProps.placeholder,onInput:c[0]||(c[0]=d=>o(d.target.value)),onKeypress:c[1]||(c[1]=d=>l(d)),onChange:s,onBlur:s},null,42,$7e)]))}}),F7e={class:"currency-input"},B7e={class:"input-wrapper"},U7e=["disabled","placeholder"],H7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Ie(),i=Ie(!1),o=d=>d.replace(/[^0-9]/g,""),l=d=>{const p=d.target.value,f=o(p),g=u(f),m=s(g);r.value.value=m,g!==n.value&&t("update:value",g)},s=d=>d===null?"":new Intl.NumberFormat(navigator.language,{style:"decimal",minimumFractionDigits:2}).format(d);function u(d){return d?parseInt(d)/100:null}const a=k(()=>Intl.NumberFormat("en-US",{maximumFractionDigits:0,currency:n.userProps.currency,style:"currency",currencyDisplay:"symbol"}).format(0).replace("0","")),c=k(()=>a.value.length*30+"px");return _t(()=>{r.value.value=s(n.value)}),Ve(()=>n.value,()=>{r.value.value=s(n.value)}),(d,p)=>(oe(),de("div",F7e,[x(Hn,{label:d.userProps.label,required:!!d.userProps.required,hint:d.userProps.hint},null,8,["label","required","hint"]),Ce("div",B7e,[Ce("div",{class:Gt(["symbol",{focused:i.value}])},Xt(a.value),3),Ce("input",{ref_key:"input",ref:r,style:Mi({paddingLeft:c.value}),class:Gt(["input",d.errors.length&&"error",d.userProps.disabled&&"disabled"]),disabled:d.userProps.disabled,placeholder:d.userProps.placeholder,onInput:l},null,46,U7e)])]))}});const V7e=Fn(H7e,[["__scopeId","data-v-a20018d1"]]),z7e={class:"custom-input",style:{height:"100%",width:"100%"}},G7e=["id","src"],j7e=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:value","update:errors","custom-event"],setup(e,{emit:t}){const n=e,r={width:"100%",height:n.userProps.height?`${n.userProps.height}px`:"100%",border:"none"},i=Ie(),o=Math.random().toString(36).slice(2),l=Ie(""),s=c=>typeof c=="object"&&c!==null&&"type"in c&&"id"in c&&c.id===o,u=c=>{!s(c.data)||(c.data.type==="change"?t("update:value",c.data.payload):t(c.data.type,c.data.payload))};_t(()=>{window.addEventListener("message",u),a()}),Jt(()=>{window.removeEventListener("message",u)}),Ve(()=>n.value,(c,d)=>{Fo.exports.isEqual(c,d)||a()}),Ve(()=>n.userProps.value,(c,d)=>{Fo.exports.isEqual(c,d)||a()}),Ve(()=>`${n.userProps.htmlHead}${n.userProps.htmlBody}${n.userProps.css}${n.userProps.js}`,()=>a());const a=()=>{var h,v;const c="script",d=(v=(h=n.value)!=null?h:n.userProps.value)!=null?v:"",{htmlHead:p,htmlBody:f,css:g,js:m}=n.userProps;l.value=window.btoa(` @@ -810,7 +810,7 @@ function print() { __p += __j.call(arguments, '') } `,X4=!1,Uje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bje;sn(function(){X4||(typeof window<"u"&&window.document&&window.document.documentElement&&Lje(t,{prepend:!0}),X4=!0)})},Hje=["icon","primaryColor","secondaryColor"];function Vje(e,t){if(e==null)return{};var n=zje(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function zje(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function dv(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function aYe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}qG("#1890ff");var $f=function(t,n){var r,i=t8({},t,n.attrs),o=i.class,l=i.icon,s=i.spin,u=i.rotate,a=i.tabindex,c=i.twoToneColor,d=i.onClick,p=oYe(i,Jje),f=(r={anticon:!0},zw(r,"anticon-".concat(l.name),Boolean(l.name)),zw(r,o,o),r),g=s===""||!!s||l.name==="loading"?"anticon-spin":"",m=a;m===void 0&&d&&(m=-1,p.tabindex=m);var h=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,v=WG(c),b=eYe(v,2),S=b[0],y=b[1];return x("span",t8({role:"img","aria-label":l.name},p,{onClick:d,class:f}),[x(pA,{class:g,icon:l,primaryColor:S,secondaryColor:y,style:h},null)])};$f.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};$f.displayName="AntdIcon";$f.inheritAttrs=!1;$f.getTwoToneColor=Xje;$f.setTwoToneColor=qG;const pd=$f;function n8(e){for(var t=1;t{l.value=!0},u=()=>{l.value=!1},a=()=>{l.value=!1};return(c,d)=>(oe(),de(tt,null,[x(We(V8e),{fileList:o.value,"onUpdate:fileList":d[0]||(d[0]=p=>o.value=p),accept:We(i).accept,action:We(i).action,method:We(i).method,"max-count":We(i).maxCount,headers:We(i).headers,progress:We(i).progress,"before-upload":We(i).beforeUpload,multiple:c.multiple,disabled:c.disabled,"show-upload-list":!0,"list-type":"picture-card","is-image-url":()=>!1,onChange:We(i).handleChange,onReject:We(i).handleReject,onDragenter:s,onDragleave:u,onDrop:a,onPreview:We(r).handlePreview},{iconRender:fn(({file:p})=>[x(NG,{file:p,ctrl:We(r),size:30},null,8,["file","ctrl"])]),previewIcon:fn(({file:p})=>[p.thumbUrl?(oe(),An(We(mYe),{key:0})):(oe(),An(We(pYe),{key:1}))]),default:fn(()=>[l.value?(oe(),de("div",SYe,[Ce("p",yYe,[x(We(e3e),{class:"icon"})]),Ce("p",null,Xt(We(Mo).translate("i18n_upload_area_drop_here",c.locale)),1)])):(oe(),de("div",EYe,[Ce("p",CYe,[x(We(Aze),{class:"icon"})]),Ce("p",null,Xt(We(Mo).translate("i18n_upload_area_click_or_drop_files",c.locale)),1)]))]),_:1},8,["fileList","accept","action","method","max-count","headers","progress","before-upload","multiple","disabled","onChange","onReject","onPreview"]),x(DG,{ctrl:We(r)},null,8,["ctrl"])],64))}});const KG=Fn(TYe,[["__scopeId","data-v-0251f46b"]]),wYe=we({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=r=>{t("update:value",r)};return(r,i)=>(oe(),de(tt,null,[x(Hn,{label:r.userProps.label,required:!!r.userProps.required,hint:r.userProps.hint},null,8,["label","required","hint"]),x(KG,{value:r.value,errors:r.errors,"accepted-formats":r.userProps.acceptedFormats||["*"],"accepted-mime-types":r.userProps.acceptedMimeTypes,multiple:r.userProps.multiple,"max-file-size":r.userProps.maxFileSize,disabled:r.userProps.disabled,locale:r.locale,"onUpdate:value":n,"onUpdate:errors":i[0]||(i[0]=o=>r.$emit("update:errors",o))},null,8,["value","errors","accepted-formats","accepted-mime-types","multiple","max-file-size","disabled","locale"])],64))}}),xYe={class:"icon-container"},OYe=we({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){return(n,r)=>(oe(),de(tt,null,[x(Hn,{label:n.userProps.label,required:!!n.userProps.required,hint:n.userProps.hint},null,8,["label","required","hint"]),x(kG,{capture:void 0,"accepted-formats":["image/*"],"accepted-mime-types":"image/*",disabled:n.userProps.disabled,errors:n.errors,"list-type":"picture-card",multiple:n.userProps.multiple,value:n.value,locale:n.locale,"onUpdate:errors":r[0]||(r[0]=i=>t("update:errors",i)),"onUpdate:value":r[1]||(r[1]=i=>t("update:value",i))},{ui:fn(()=>[Ce("div",xYe,[x(We(aHe))])]),_:1},8,["disabled","errors","multiple","value","locale"])],64))}});const IYe=Fn(OYe,[["__scopeId","data-v-731d78af"]]),RYe={class:"list-input"},AYe={class:"item-header"},NYe={key:0,class:"span-error"},DYe=we({__name:"component",props:{userProps:{},value:{},errors:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){const n=e,r=Ie([]),i=Ie(null),o=(b,S,y)=>{};function l(b){if(Fo.exports.isEqual(b,n.userProps.schemas))return;const S=y=>y==null?void 0:y.reduce((C,w)=>({...C,[w.key]:w.value}),{});t("update:value",b.map(S))}function s(b){i.value=b}function u(b){if(i.value===null)return;const S=r.value[i.value];S.style.top=`${b.pageY}px`,S.style.left=`${b.pageX}px`,S.style.transform="translate(-50%, -50%)",S.style.position="fixed"}const a=b=>{if(i.value===null)return;const S=b.pageY,y=[];let C=0,w=0;n.userProps.schemas.forEach((T,O)=>{if(O===i.value){w=1;return}const R=r.value[O].getBoundingClientRect().top;if(S>R){y[O-w]=T;return}C||(y[O+C-w]=T,C=1),y[O+C-w]=T}),C||y.push(n.userProps.schemas[i.value]),l(y),i.value=null,r.value.forEach(T=>{T.style.position="static",T.style.transform="translate(0, 0)"})};_t(()=>{document.addEventListener("mouseup",a),document.addEventListener("mousemove",u)});const c=()=>{l([...n.userProps.schemas,null])};function d(b,S,y){var T;const C=Fo.exports.cloneDeep(n.userProps.schemas),w=(T=C[b])==null?void 0:T.find(O=>O.key===S);w.value=y,l(C)}const p=Ie([]);function f(b,S){var w,T,O,R;const y=(w=n.userProps.schemas[b])==null?void 0:w.find(N=>N.key===S);return[...(T=y==null?void 0:y.errors)!=null?T:[],...(R=(O=p.value[b])==null?void 0:O[S])!=null?R:[]].map(N=>Mo.translateIfFound(N,n.locale))}function g(b,S,y){p.value[b]||(p.value[b]={}),p.value[b][S]=y,v()}function m(b){const S=Fo.exports.cloneDeep(n.userProps.schemas);S.splice(b,1),l(S)}function h(b,S){var C;const y=(C=n.userProps.schemas[b])==null?void 0:C.find(w=>w.key===S);if(!y)throw new Error(`Could not find widget value for ${S} index ${b}`);return y.value}function v(){if(p.value.some(b=>Object.values(b).some(S=>S.length))){t("update:errors",["There are errors in the list"]);return}t("update:errors",[])}return(b,S)=>(oe(),de("div",RYe,[(oe(!0),de(tt,null,Pi(b.userProps.schemas,(y,C)=>(oe(),de("div",{key:C,ref_for:!0,ref:"listItems",class:Gt(["list-item","card",{dragging:i.value===C}])},[Ce("div",AYe,[x(We(nBe),{class:"drag-handler",onMousedown:w=>s(C)},null,8,["onMousedown"]),!n.userProps.min||b.value.length>n.userProps.min?(oe(),An(We(lze),{key:0,class:"close-button",onClick:w=>m(C)},null,8,["onClick"])):ft("",!0)]),(oe(!0),de(tt,null,Pi(y,(w,T)=>{var O;return oe(),de("div",{key:(O=w.key)!=null?O:T,class:"widget list-widget"},[(oe(),An(Au(w.type),{ref_for:!0,ref:R=>o(R,C,w.key),value:h(C,w.key),errors:f(C,w.key),"user-props":w,"onUpdate:value":R=>d(C,w.key,R),"onUpdate:errors":R=>g(C,w.key,R)},null,40,["value","errors","user-props","onUpdate:value","onUpdate:errors"])),"key"in w&&f(C,w.key).length?(oe(),de("span",NYe,Xt(f(C,w.key).join(` -`)),1)):ft("",!0)])}),128))],2))),128)),!n.userProps.max||b.value.length{t("update:errors",[]),t("update:value",[s])},l=s=>{t("update:errors",[]),t("update:value",s)};return Ve(()=>n.value,()=>{r.value=n.value[0],i.value=n.value}),(s,u)=>(oe(),de("div",PYe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),s.userProps.multiple?(oe(),An(We(Pg),{key:1,value:i.value,"onUpdate:value":u[2]||(u[2]=a=>i.value=a),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[3]||(u[3]=a=>l(a))},null,8,["value","disabled","options"])):(oe(),An(We(cR),{key:0,value:r.value,"onUpdate:value":u[0]||(u[0]=a=>r.value=a),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[1]||(u[1]=a=>o(a.target.value))},null,8,["value","disabled","options"]))]))}});const $Ye=Fn(kYe,[["__scopeId","data-v-8ef177a2"]]),LYe={class:"options"},FYe=["active","onClick"],BYe={class:"nps-hints"},UYe={class:"nps-hint"},HYe={class:"nps-hint"},VYe=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=k(()=>{var u;return(u=n.userProps.max)!=null?u:10}),o=k(()=>{var u;return(u=n.userProps.min)!=null?u:0}),l=k(()=>Array(1+i.value-o.value).fill(null).map((u,a)=>a+o.value)),s=u=>{n.userProps.disabled||(r.value=u,t("update:value",r.value))};return Ve(()=>n.value,()=>{r.value=n.value}),(u,a)=>(oe(),de(tt,null,[x(Hn,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ce("div",LYe,[(oe(!0),de(tt,null,Pi(l.value,c=>(oe(),de("button",{key:c,active:r.value!==c,class:Gt(["option","button",{disabled:u.userProps.disabled}]),onClick:d=>s(c)},Xt(c),11,FYe))),128))]),Ce("div",BYe,[Ce("div",UYe,Xt(u.userProps.minHint),1),Ce("div",HYe,Xt(u.userProps.maxHint),1)])],64))}});const zYe=Fn(VYe,[["__scopeId","data-v-3fd6eefc"]]),GYe={class:"number-input"},jYe=["disabled","placeholder"],YYe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var i,o;const n=e,r=Ie((o=(i=n.value)==null?void 0:i.toString())!=null?o:"");return Ve(r,l=>{if(l===""){t("update:value",null);return}const s=Number(l);t("update:value",s)}),Ve(()=>n.value,l=>{r.value=(l==null?void 0:l.toString())||""}),(l,s)=>(oe(),de("div",GYe,[x(Hn,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),Sr(Ce("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),class:Gt(["input",l.errors.length&&"error",l.userProps.disabled&&"disabled"]),disabled:l.userProps.disabled,type:"number",placeholder:l.userProps.placeholder},null,10,jYe),[[ju,r.value]])]))}});const WYe=Fn(YYe,[["__scopeId","data-v-90c6530c"]]),qYe={class:"number-slider-input"},KYe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>{const s=String(l),u=i(Number(l));s!=o.value.value&&(o.value.value=s),u!=n.value&&t("update:value",u)},i=l=>l&&(n.userProps.min&&ln.userProps.max?n.userProps.max:l),o=Ie();return(l,s)=>(oe(),de("div",qYe,[x(Hn,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(We(UPe),{ref_key:"input",ref:o,class:Gt([l.errors.length&&"error","slider"]),disabled:l.userProps.disabled,type:"range",min:l.userProps.min||0,max:l.userProps.max||100,step:l.userProps.step||1,onChange:s[0]||(s[0]=u=>r(u))},null,8,["class","disabled","min","max","step"])]))}});const ZYe=Fn(KYe,[["__scopeId","data-v-3fcc105e"]]),QYe={style:{padding:"8px"}},XYe=["onclick"],JYe={key:1,class:"buttons"},eWe={key:0},tWe=we({__name:"ATable",props:{data:{},columns:{},enableSearch:{type:Boolean},editable:{type:Boolean},mainColor:{},actions:{},rowsPerPage:{},selectedIndexes:{},selectable:{},selectionDisabled:{type:Boolean}},emits:["rowEdit","actionClick","rowClick","update:selectedIndexes"],setup(e,{emit:t}){const n=e,r=k(()=>{var b;return(b=n.mainColor)!=null?b:"#D14056"}),i=dn({searchText:"",searchedColumn:""}),o=Ie(),l=k(()=>n.data.map((S,y)=>({...S,key:y}))),s=k(()=>{const b=n.columns.map((S,y)=>({title:S.title,dataIndex:S.key,key:S.key,customFilterDropdown:!0,sorter:{compare:(C,w)=>typeof C[S.key]=="number"&&typeof w[S.key]=="number"?C[S.key]-w[S.key]:typeof C[S.key]=="string"&&typeof w[S.key]=="string"?C[S.key].localeCompare(w[S.key]):1,multiple:y},onFilter:(C,w)=>{var T;return(T=w[S.key])==null?void 0:T.toString().toLowerCase().includes(C.toString().toLowerCase())},onFilterDropdownOpenChange:C=>{C&&sn().then(()=>{o.value.focus()})}}));if(n.editable||n.actions){const S=n.editable?80:0,y=n.actions?40:0;b.push({title:"",dataIndex:"buttons",width:S+y,fixed:"right",align:"center"})}return b}),u=(b,S,y)=>{S(),i.searchText=b[0],i.searchedColumn=y},a=b=>{b({confirm:!0}),i.searchText=""},c=dn({}),d=b=>{t("rowClick",{row:b})},p=(b,S)=>{t("actionClick",{action:b,row:S})},f=b=>{c[b.index]={...b}},g=b=>{const S=n.data.filter(y=>y.index===b.index);t("rowEdit",{oldRow:S[0],newRow:c[b.index]}),delete c[b.index]},m=b=>{delete c[b.index]},h=Ie([]),v=k(()=>n.selectable?{type:{multiple:"checkbox",single:"radio"}[n.selectable],selectedRowKeys:n.selectedIndexes,onChange:(S,y)=>{h.value=S.map(C=>Number(C)),t("update:selectedIndexes",S.map(C=>Number(C)))},getCheckboxProps:S=>({disabled:n.selectionDisabled,name:S[n.columns[0].key]})}:void 0);return(b,S)=>(oe(),An(We(WLe),{"data-source":l.value,columns:s.value,pagination:{position:["bottomCenter"],defaultPageSize:n.rowsPerPage,showSizeChanger:!n.rowsPerPage},"row-selection":v.value,scroll:{x:n.columns.length*200}},hO({bodyCell:fn(({column:y,text:C,record:w})=>[n.columns.map(T=>T.key).includes(y.dataIndex)?(oe(),de("div",{key:0,onclick:()=>d(w)},[c[w.index]?(oe(),An(We(Xr),{key:0,value:c[w.index][y.dataIndex],"onUpdate:value":T=>c[w.index][y.dataIndex]=T,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):(oe(),de(tt,{key:1},[Jn(Xt(C),1)],64))],8,XYe)):y.dataIndex==="buttons"?(oe(),de("div",JYe,[c[w.index]?(oe(),An(We(br),{key:0,type:"text",onClick:T=>g(w)},{default:fn(()=>[x(We(vYe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),c[w.index]?(oe(),An(We(WMe),{key:1,title:"Sure to cancel?",onConfirm:T=>m(w)},{default:fn(()=>[x(We(br),{type:"text"},{default:fn(()=>[x(We(lYe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:1})]),_:2},1032,["onConfirm"])):ft("",!0),n.editable&&!c[w.index]?(oe(),An(We(br),{key:2,type:"text",onClick:T=>f(w)},{default:fn(()=>[x(We(uYe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),n.actions&&!c[w.index]?(oe(),An(We(Tc),{key:3,trigger:"click"},{overlay:fn(()=>[x(We(fa),null,{default:fn(()=>[(oe(!0),de(tt,null,Pi(n.actions,T=>(oe(),An(We(tf),{key:T,type:"text",onClick:O=>p(T,w)},{default:fn(()=>[Jn(Xt(T),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),default:fn(()=>[x(We(br),{type:"text"},{default:fn(()=>[x(We(hYe),{style:Mi({color:r.value})},null,8,["style"])]),_:1})]),_:2},1024)):ft("",!0)])):(oe(),de(tt,{key:2},[i.searchText&&i.searchedColumn===y.dataIndex?(oe(),de("span",eWe,[(oe(!0),de(tt,null,Pi(C.toString().split(new RegExp(`(?<=${i.searchText})|(?=${i.searchText})`,"i")),(T,O)=>(oe(),de(tt,null,[T.toLowerCase()===i.searchText.toLowerCase()?(oe(),de("mark",{key:O,class:"highlight"},Xt(T),1)):(oe(),de(tt,{key:1},[Jn(Xt(T),1)],64))],64))),256))])):ft("",!0)],64))]),default:fn(()=>[n.enableSearch?(oe(),An(We(c8),{key:0,"two-tone-color":r.value},null,8,["two-tone-color"])):ft("",!0)]),_:2},[n.enableSearch?{name:"customFilterDropdown",fn:fn(({setSelectedKeys:y,selectedKeys:C,confirm:w,clearFilters:T,column:O})=>[Ce("div",QYe,[x(We(Xr),{ref_key:"searchInput",ref:o,placeholder:`Search ${O.dataIndex}`,value:C[0],style:{width:"188px","margin-bottom":"8px",display:"block"},onChange:R=>y(R.target.value?[R.target.value]:[]),onPressEnter:R=>u(C,w,O.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),x(We(br),{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:R=>u(C,w,O.dataIndex)},{icon:fn(()=>[x(We(c8))]),default:fn(()=>[Jn(" Search ")]),_:2},1032,["onClick"]),x(We(br),{size:"small",style:{width:"90px"},onClick:R=>a(T)},{default:fn(()=>[Jn(" Reset ")]),_:2},1032,["onClick"])])]),key:"0"}:void 0]),1032,["data-source","columns","pagination","row-selection","scroll"]))}});const ZG=Fn(tWe,[["__scopeId","data-v-ec6ca817"]]),nWe=["height","width"],rWe=10,iWe=we({__name:"component",props:{userProps:{},errors:{},value:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie([]),i=k(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(s=>s.name!="index")).map(s=>({...s,title:s.name.toString(),key:s.name.toString()}))),o=s=>{Fo.exports.isEqual(s,n.value)||t("update:value",s)},l=k(()=>{var s;return(s=n.userProps.pageSize)!=null?s:rWe});return Ve(()=>r.value,()=>{o(r.value.map(s=>n.userProps.table.data[s]))}),_t(()=>{r.value=[...n.value]}),(s,u)=>(oe(),de("div",{height:s.containerHeight,width:s.containerWidth},[x(Hn,{label:s.userProps.label,required:!1,hint:s.userProps.hint},null,8,["label","hint"]),x(ZG,{data:s.userProps.table.data,"onUpdate:data":u[0]||(u[0]=a=>s.userProps.table.data=a),"selected-indexes":r.value,"onUpdate:selectedIndexes":u[1]||(u[1]=a=>r.value=a),"enable-search":"",columns:i.value,"rows-per-page":l.value,selectable:s.userProps.multiple?"multiple":"single","selection-disabled":s.userProps.disabled},null,8,["data","selected-indexes","columns","rows-per-page","selectable","selection-disabled"])],8,nWe))}}),oWe={class:"password-input"},aWe=["pattern","required","disabled","placeholder"],sWe=["required","placeholder"],lWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=k(()=>n.userProps.pattern?n.userProps.pattern:[()=>{const f=n.userProps.lowercaseRequired;let g="";return f&&(g+="(?=.*[a-z])"),g},()=>{const f=n.userProps.uppercaseRequired;let g="";return f&&(g+="(?=.*[A-Z])"),g},()=>{const f=n.userProps.digitRequired;let g="";return f&&(g+="(?=.*\\d)"),g},()=>{const f=n.userProps.specialRequired;let g="";return f&&(g+="(?=.*[!?@#$\\-%^&+=])"),g},()=>{var v,b,S;const f=(v=n.userProps.minLength)!=null?v:null,g=(b=n.userProps.maxLength)!=null?b:null,m=(S=n.userProps.size)!=null?S:null;let h="";return m?h+=`(.{${m},${m}})`:f&&g?h+=`(.{${f},${g}})`:f?h+=`(.{${f},})`:g&&(h+=`(.{,${g}})`),h}].reduce((f,g)=>f+g(),"")||null),i=()=>{const s=n.value,f=[()=>n.userProps.digitRequired&&!/[0-9]/.test(s)?"Your password must have at least one digit between 0 and 9":null,()=>{const g=/[a-z]/g;return n.userProps.lowercaseRequired&&!g.test(s)?"Your password must have at least one lowercase letter":null},()=>{var b,S,y;const g=(b=n.userProps.minLength)!=null?b:null,m=(S=n.userProps.maxLength)!=null?S:null,h=(y=n.userProps.size)!=null?y:null,v=s.length;return h&&v!==h?`Your password must have ${h} characters`:g&&m&&(vm)?`Your password must have between ${g} and ${m} characters`:g&&vm?`Your password must have at most ${m} characters`:null},()=>n.userProps.specialRequired&&!/[!?@#$\-%^&+=]/g.test(s)?"Your password must have at least one special character":null,()=>{const g=/[A-Z]/g;return n.userProps.uppercaseRequired&&!g.test(s)?"Your password must have at leat one uppercase letter":null}].reduce((g,m)=>{const h=m();return h&&g.push(h),g},[]);t("update:errors",f)},o=s=>{t("update:value",s)},l=Ie();return Ve(()=>n.value,()=>{!l.value||(l.value.value=n.value)}),(s,u)=>(oe(),de("div",oWe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),de("input",{key:0,ref_key:"input",ref:l,type:"password",pattern:r.value,required:!!s.userProps.required,class:Gt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onInput:u[0]||(u[0]=a=>o(a.target.value)),onBlur:i},null,42,aWe)):(oe(),de("input",{key:1,ref_key:"input",ref:l,type:"password",required:!!s.userProps.required,class:Gt(["input",s.errors.length&&"error"]),placeholder:s.userProps.placeholder,onInput:u[1]||(u[1]=a=>o(a.target.value)),onBlur:i},null,42,sWe))]))}}),cWe=[{code:"93",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"355",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"213",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"376",placeholder:"000-000",mask:"000-000"},{code:"244",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"1",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"54",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"374",placeholder:"00-000-000",mask:"00-000-000"},{code:"297",placeholder:"000-0000",mask:"000-0000"},{code:"61",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"43",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"994",placeholder:"00-000-00-00",mask:"00-000-00-00"},{code:"973",placeholder:"0000-0000",mask:"0000-0000"},{code:"880",placeholder:"1000-000000",mask:"1000-000000"},{code:"375",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"32",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"501",placeholder:"000-0000",mask:"000-0000"},{code:"229",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"975",placeholder:"17-000-000",mask:"17-000-000|0-000-000"},{code:"591",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"387",placeholder:"00-0000",mask:"00-0000|00-00000"},{code:"267",placeholder:"00-000-000",mask:"00-000-000"},{code:"55",placeholder:"(00)0000-0000",mask:"(00)0000-0000|(00)00000-0000"},{code:"673",placeholder:"000-0000",mask:"000-0000"},{code:"359",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"226",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"257",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"855",placeholder:"00-000-000",mask:"00-000-000"},{code:"237",placeholder:"0000-0000",mask:"0000-0000"},{code:"238",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"236",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"235",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"56",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"86",placeholder:"(000)0000-000",mask:"(000)0000-000|(000)0000-0000|00-00000-00000"},{code:"57",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"269",placeholder:"00-00000",mask:"00-00000"},{code:"242",placeholder:"00-00000",mask:"00-00000"},{code:"506",placeholder:"0000-0000",mask:"0000-0000"},{code:"385",placeholder:"00-000-000",mask:"00-000-000"},{code:"53",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"357",placeholder:"00-000-000",mask:"00-000-000"},{code:"420",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"243",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"45",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"253",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"593",placeholder:"0-000-0000",mask:"0-000-0000|00-000-0000"},{code:"20",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"503",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"240",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"291",placeholder:"0-000-000",mask:"0-000-000"},{code:"372",placeholder:"000-0000",mask:"000-0000|0000-0000"},{code:"268",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"251",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"679",placeholder:"00-00000",mask:"00-00000"},{code:"358",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"33",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"241",placeholder:"0-00-00-00",mask:"0-00-00-00"},{code:"220",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"995",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"49",placeholder:"000-000",mask:"000-000|(000)00-00|(000)00-000|(000)00-0000|(000)000-0000|(0000)000-0000"},{code:"233",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"30",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"502",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"224",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"245",placeholder:"0-000000",mask:"0-000000"},{code:"592",placeholder:"000-0000",mask:"000-0000"},{code:"509",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"504",placeholder:"0000-0000",mask:"0000-0000"},{code:"852",placeholder:"0000-0000",mask:"0000-0000"},{code:"36",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"354",placeholder:"000-0000",mask:"000-0000"},{code:"91",placeholder:"(0000)000-000",mask:"(0000)000-000"},{code:"62",placeholder:"00-000-00",mask:"00-000-00|00-000-000|00-000-0000|(800)000-000|(800)000-00-000"},{code:"98",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"924",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"353",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"972",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"39",placeholder:"(000)0000-000",mask:"(000)0000-000"},{code:"225",placeholder:"00-000-000",mask:"00-000-000"},{code:"81",placeholder:"(000)000-000",mask:"(000)000-000|00-0000-0000"},{code:"962",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"77",placeholder:"(600)000-00-00",mask:"(600)000-00-00|(700)000-00-00"},{code:"254",placeholder:"000-000000",mask:"000-000000"},{code:"850",placeholder:"000-000",mask:"000-000|0000-0000|00-000-000|000-0000-000|191-000-0000|0000-0000000000000"},{code:"82",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"965",placeholder:"0000-0000",mask:"0000-0000"},{code:"996",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"856",placeholder:"00-000-000",mask:"00-000-000|(2000)000-000"},{code:"371",placeholder:"00-000-000",mask:"00-000-000"},{code:"961",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"266",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"231",placeholder:"00-000-000",mask:"00-000-000"},{code:"218",placeholder:"00-000-000",mask:"00-000-000|21-000-0000"},{code:"423",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"370",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"352",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"261",placeholder:"00-00-00000",mask:"00-00-00000"},{code:"265",placeholder:"1-000-000",mask:"1-000-000|0-0000-0000"},{code:"60",placeholder:"0-000-000",mask:"0-000-000|00-000-000|(000)000-000|00-000-0000"},{code:"960",placeholder:"000-0000",mask:"000-0000"},{code:"223",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"356",placeholder:"0000-0000",mask:"0000-0000"},{code:"596",placeholder:"(000)00-00-00",mask:"(000)00-00-00"},{code:"222",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"230",placeholder:"000-0000",mask:"000-0000"},{code:"52",placeholder:"00-00-0000",mask:"00-00-0000|(000)000-0000"},{code:"691",placeholder:"000-0000",mask:"000-0000"},{code:"373",placeholder:"0000-0000",mask:"0000-0000"},{code:"377",placeholder:"00-000-000",mask:"00-000-000|(000)000-000"},{code:"976",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"382",placeholder:"00-000-000",mask:"00-000-000"},{code:"212",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"258",placeholder:"00-000-000",mask:"00-000-000"},{code:"95",placeholder:"000-000",mask:"000-000|0-000-000|00-000-000"},{code:"674",placeholder:"000-0000",mask:"000-0000"},{code:"977",placeholder:"00-000-000",mask:"00-000-000"},{code:"31",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"24",placeholder:"0-000-000",mask:"0-000-000|(000)000-000|(000)000-0000"},{code:"505",placeholder:"0000-0000",mask:"0000-0000"},{code:"227",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"234",placeholder:"00-000-00",mask:"00-000-00|00-000-000|(000)000-0000"},{code:"389",placeholder:"00-000-000",mask:"00-000-000"},{code:"47",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"968",placeholder:"00-000-000",mask:"00-000-000"},{code:"92",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"680",placeholder:"000-0000",mask:"000-0000"},{code:"970",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"507",placeholder:"000-0000",mask:"000-0000"},{code:"675",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"595",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"51",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"63",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"48",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"351",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"974",placeholder:"0000-0000",mask:"0000-0000"},{code:"40",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"7",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"250",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"685",placeholder:"00-0000",mask:"00-0000"},{code:"378",placeholder:"0000-000000",mask:"0000-000000"},{code:"239",placeholder:"00-00000",mask:"00-00000"},{code:"966",placeholder:"0-000-0000",mask:"0-000-0000|50-0000-0000"},{code:"221",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"381",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"248",placeholder:"0-000-000",mask:"0-000-000"},{code:"232",placeholder:"00-000000",mask:"00-000000"},{code:"65",placeholder:"0000-0000",mask:"0000-0000"},{code:"421",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"386",placeholder:"00-000-000",mask:"00-000-000"},{code:"677",placeholder:"00000",mask:"00000|000-0000"},{code:"252",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"27",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"211",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"34",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"94",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"249",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"597",placeholder:"000-000",mask:"000-000|000-0000"},{code:"46",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"41",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"963",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"992",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"255",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"66",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"670",placeholder:"000-0000",mask:"000-0000|770-00000|780-00000"},{code:"228",placeholder:"00-000-000",mask:"00-000-000"},{code:"676",placeholder:"00000",mask:"00000"},{code:"216",placeholder:"00-000-000",mask:"00-000-000"},{code:"90",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"993",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"256",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"380",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"971",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"44",placeholder:"00-0000-0000",mask:"00-0000-0000"},{code:"598",placeholder:"0-000-00-00",mask:"0-000-00-00"},{code:"998",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"678",placeholder:"00000",mask:"00000|00-00000"},{code:"58",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"84",placeholder:"00-0000-000",mask:"00-0000-000|(000)0000-000"},{code:"967",placeholder:"0-000-000",mask:"0-000-000|00-000-000|000-000-000"},{code:"260",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"263",placeholder:"",mask:""}],uWe={class:"phone-input"},dWe={class:"flex"},pWe=["value","disabled"],fWe=["value","disabled","placeholder"],mWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=k(()=>{var m;return n.userProps.placeholder||((m=s(o.value))==null?void 0:m.placeholder)||""}),i=Ie(u(n.value.nationalNumber,n.value.countryCode)),o=Ie(a(n.value.countryCode));function l(m){return m.replace(/\D/g,"")}function s(m){var h;return(h=cWe.find(v=>v.code===l(m)))!=null?h:null}function u(m,h){var b;const v=(b=s(h))==null?void 0:b.mask;return v?Po(v,m):""}function a(m){return Po("+000",m)}function c(){t("update:value",{countryCode:l(o.value),nationalNumber:i.value})}const d=m=>{const h=m.target.value;o.value=a(h)},p=m=>{const h=m.target.value;o.value=a(h)},f=m=>{const h=m.target.value;i.value=u(h,o.value),c()},g=()=>{var b;if(!n.userProps.required&&!i.value&&!o.value){t("update:errors",[]);return}const m=[],h=(b=s(o.value))==null?void 0:b.mask;if(!h){t("update:errors",["i18n_error_invalid_country_code"]);return}sf(h,i.value)||m.push(n.userProps.invalidMessage),t("update:errors",m)};return It(()=>{i.value=u(n.value.nationalNumber,n.value.countryCode),o.value=a(n.value.countryCode)}),(m,h)=>(oe(),de("div",uWe,[x(Hn,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ce("div",dWe,[Ce("input",{value:o.value,class:Gt(["select",["input",m.errors.length&&"error"]]),maxlength:"4",placeholder:"+1",disabled:m.userProps.disabled,onInput:p,onChange:d,onBlur:g},null,42,pWe),Ce("input",{value:i.value,class:Gt(["input",m.errors.length&&"error"]),disabled:m.userProps.disabled||!s(o.value),placeholder:r.value,onBlur:g,onInput:f,onChange:g},null,42,fWe)])]))}});const gWe=Fn(mWe,[["__scopeId","data-v-9372fb2a"]]),hWe={class:"rating-input"},_We={ref:"input",class:"rating-icons"},vWe=["onClick"],bWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=s=>{var u;return s<((u=i.value)!=null?u:0)},i=Ie(n.value),o=k(()=>{var s,u;return Array((s=n.userProps.max)!=null?s:5).fill((u=n.userProps.char)!=null?u:"\u2B50")}),l=s=>{n.userProps.disabled||(i.value=s,t("update:value",i.value))};return Ve(()=>n.value,()=>{i.value=n.value}),(s,u)=>(oe(),de("div",hWe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ce("div",_We,[(oe(!0),de(tt,null,Pi(o.value,(a,c)=>(oe(),de("div",{key:c,class:Gt(["rating-icon",{active:r(c),disabled:s.userProps.disabled}]),tabindex:"0",onClick:d=>l(c+1)},Xt(a),11,vWe))),128))],512)]))}});const SWe=Fn(bWe,[["__scopeId","data-v-1108054a"]]);const yWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(null);window.document&&my(()=>import("./vue-quill.esm-bundler.6a9f89f0.js"),[]).then(s=>{r.value=s.QuillEditor});const i=()=>{var u,a;const s=(a=(u=o.value)==null?void 0:u.getHTML())!=null?a:"";t("update:value",s)},o=Ie(),l=()=>{var s;n.value&&((s=o.value)==null||s.setHTML(n.value))};return Ve(()=>n.value,()=>{var u;(((u=o.value)==null?void 0:u.getHTML())||"")!==n.value&&l()}),(s,u)=>(oe(),de(tt,null,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),An(Au(r.value),{key:0,ref_key:"input",ref:o,style:{height:"100%"},class:Gt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onReady:l,"onUpdate:content":u[0]||(u[0]=a=>i())},null,40,["class","disabled","placeholder"])):ft("",!0)],64))}});const EWe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",CWe={class:"tag-input"},TWe={class:"tags"},wWe={class:"remove-icon",viewBox:"0 0 24 24"},xWe=["d"],OWe=["disabled","placeholder"],IWe=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var u;const n=e,r=EWe,i=Ie((u=n.value)!=null?u:[]),o=a=>{n.userProps.disabled||!a||i.value.some(c=>c===a)||(i.value=[...i.value,a],t("update:value",i.value),s.value.value="")},l=a=>{n.userProps.disabled||(i.value=i.value.filter((c,d)=>d!==a),t("update:value",i.value))},s=Ie();return Ve(()=>n.value,()=>{var a;i.value=(a=n.value)!=null?a:[]}),(a,c)=>(oe(),de(tt,null,[x(Hn,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ce("div",CWe,[Ce("div",TWe,[(oe(!0),de(tt,null,Pi(i.value,(d,p)=>(oe(),de("div",{key:d,class:"tag"},[Jn(Xt(d)+" ",1),x(We(br),{class:"remove-tag",type:"text",onClick:f=>l(p)},{default:fn(()=>[(oe(),de("svg",wWe,[Ce("path",{d:We(r)},null,8,xWe)]))]),_:2},1032,["onClick"])]))),128))]),Ce("input",{ref_key:"input",ref:s,class:Gt(["input",{disabled:a.userProps.disabled}]),disabled:a.userProps.disabled,type:"text",placeholder:a.userProps.placeholder,onChange:c[0]||(c[0]=d=>o(d.target.value)),onKeyup:c[1]||(c[1]=TO(d=>o(d.target.value),["enter"]))},null,42,OWe)])],64))}});const RWe=Fn(IWe,[["__scopeId","data-v-c12d89f6"]]),AWe={class:"text-input"},NWe=["disabled","placeholder","maxlength","minlength"],DWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(),i=s=>{const u=n.userProps.mask?Po(n.userProps.mask,s):s;r.value.value=u,t("update:value",u)},o=s=>{const u=s.target;n.userProps.mask&&sf(n.userProps.mask,u.value)&&s.preventDefault()};_t(()=>{l()}),Ve(()=>n.value,()=>{l()});function l(){n.value&&r.value&&(n.userProps.mask?r.value.value=Po(n.userProps.mask,n.value):r.value.value=n.value)}return(s,u)=>{var a,c;return oe(),de("div",AWe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ce("input",{ref_key:"input",ref:r,class:Gt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,maxlength:(a=s.userProps.maxLength)!=null?a:void 0,minlength:(c=s.userProps.minLength)!=null?c:void 0,onKeypress:u[0]||(u[0]=d=>o(d)),onInput:u[1]||(u[1]=d=>i(d.target.value))},null,42,NWe)])}}}),MWe=["disabled","placeholder"],PWe=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=o=>{i.value.value=o,t("update:value",o)},i=Ie();return _t(()=>{i.value.value=n.value||""}),Ve(()=>n.value,()=>{i.value.value=n.value||""}),(o,l)=>(oe(),de(tt,null,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ce("textarea",{ref_key:"input",ref:i,style:{height:"100%"},class:Gt(["input",o.errors.length&&"error",o.userProps.disabled&&"disabled"]),disabled:o.userProps.disabled,placeholder:o.userProps.placeholder,onInput:l[0]||(l[0]=s=>r(s.target.value))},null,42,MWe)],64))}});const kWe={class:"time-input"},$We=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>l?`${l.hour.toString().padStart(2,"0")}:${l.minute.toString().padStart(2,"0")}`:void 0,i=Ie(r(n.value)),o=(l,s)=>{const[u,a]=s.split(":"),c={hour:parseInt(u),minute:parseInt(a)};t("update:value",c)};return Ve(()=>n.value,l=>{i.value=r(l)}),(l,s)=>(oe(),de("div",kWe,[x(Hn,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(We(JLe),{value:i.value,"onUpdate:value":s[0]||(s[0]=u=>i.value=u),type:"time",class:"input",format:"HH:mm","value-format":"HH:mm",disabled:l.userProps.disabled,onChange:o},null,8,["value","disabled"])]))}});const LWe=Fn($We,[["__scopeId","data-v-31786bbd"]]),FWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=()=>{n.userProps.disabled||(r.value=!r.value,t("update:value",r.value))};return Ve(()=>n.value,()=>{r.value=n.value}),(o,l)=>(oe(),de(tt,null,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),x(We(ZPe),{checked:r.value,style:{"align-self":"flex-start"},onChange:i},null,8,["checked"])],64))}}),BWe=we({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){return(n,r)=>(oe(),de(tt,null,[x(Hn,{label:n.userProps.label,required:!!n.userProps.required,hint:n.userProps.hint},null,8,["label","required","hint"]),x(KG,{"accepted-formats":["video/*"],"accepted-mime-types":"video/*",disabled:n.userProps.disabled,errors:n.errors,"list-type":"picture-card",multiple:n.userProps.multiple,value:n.value,locale:n.locale,"onUpdate:errors":r[0]||(r[0]=i=>t("update:errors",i)),"onUpdate:value":r[1]||(r[1]=i=>t("update:value",i))},null,8,["disabled","errors","multiple","value","locale"])],64))}}),LXe={"appointment-input":IGe,"camera-input":u7e,"cards-input":C7e,"checkbox-input":w7e,"checklist-input":I7e,"cnpj-input":D7e,"code-input":P7e,"cpf-input":L7e,"currency-input":V7e,"custom-input":j7e,"date-input":K7e,"dropdown-input":Nje,"email-input":Pje,"file-input":wYe,"image-input":IYe,"list-input":MYe,"multiple-choice-input":$Ye,"nps-input":zYe,"number-input":WYe,"number-slider-input":ZYe,"pandas-row-selection-input":iWe,"password-input":lWe,"phone-input":gWe,"rating-input":SWe,"rich-text-input":yWe,"tag-input":RWe,"text-input":DWe,"textarea-input":PWe,"time-input":LWe,"toggle-input":FWe,"video-input":BWe},UWe=e=>(iB("data-v-1e783ab3"),e=e(),oB(),e),HWe={class:"file-output"},VWe=["href"],zWe=UWe(()=>Ce("iframe",{src:"about:blank",name:"iframe_a",class:"target-frame"},null,-1)),GWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r;return oe(),de("div",HWe,[Ce("a",{href:t.userProps.fileUrl,class:"download-button button",target:"iframe_a",download:""},[x(We(TBe)),Jn(" "+Xt((r=t.userProps.downloadText)!=null?r:"Download"),1)],8,VWe),zWe])}}});const jWe=Fn(GWe,[["__scopeId","data-v-1e783ab3"]]),YWe=["innerHTML"],WWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),de("div",{innerHTML:t.userProps.html},null,8,YWe))}}),qWe=["src","width","height"],KWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r,i;return oe(),de("iframe",{class:"iframe",src:t.userProps.url,width:(r=t.userProps.width)!=null?r:void 0,height:(i=t.userProps.height)!=null?i:void 0},null,8,qWe)}}});const ZWe=Fn(KWe,[["__scopeId","data-v-75daa443"]]),QWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),de(tt,null,[x(Hn,{label:t.userProps.label,required:!1},null,8,["label"]),x(We(GDe),{src:t.userProps.imageUrl,alt:t.userProps.subtitle},null,8,["src","alt"])],64))}}),XWe=we({__name:"component",props:{userProps:{}},setup(e){const t=Ie(null);return _t(async()=>{await Promise.all([Y4("https://polyfill.io/v3/polyfill.min.js?features=es6"),Y4("https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js")]),window.MathJax.typesetPromise([t.value])}),(n,r)=>(oe(),de("div",{ref_key:"latex",ref:t,class:"latex"},Xt(n.userProps.text),513))}});const JWe=Fn(XWe,[["__scopeId","data-v-9c539437"]]),eqe=["href","target"],tqe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),de("a",{class:"link",href:t.userProps.linkUrl,target:t.userProps.sameTab?"":"_blank"},Xt(t.userProps.linkText),9,eqe))}}),nqe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{const r=_p("Markdown");return oe(),An(r,{class:"markdown-output",source:t.userProps.text,html:""},null,8,["source"])}}});const rqe=Fn(nqe,[["__scopeId","data-v-331de5d9"]]),iqe=["height","width"],oqe=10,aqe=we({__name:"component",props:{userProps:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["row-click","action-click","row-edit"],setup(e,{emit:t}){const n=e,r=Ie(null),i=({action:a,row:c})=>{t("action-click",{action:a,userProps:c})};function o({row:a}){t("row-click",{userProps:a.userProps,index:a.index})}function l({oldRow:a,newRow:c}){const d=o7e(a,c);t("row-edit",{old:a,new:d,index:a.index})}Ve(n.userProps.table.data,()=>{});const s=k(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(a=>a.name!="index")).map(a=>({...a,title:a.name.toString(),key:a.name.toString()}))),u=k(()=>{var a;return(a=n.userProps.pageSize)!=null?a:oqe});return(a,c)=>{var d;return oe(),de("div",{height:a.containerHeight,width:a.containerWidth},[x(Hn,{ref_key:"label",ref:r,label:n.userProps.label,required:!1},null,8,["label"]),x(ZG,{data:a.userProps.table.data,columns:s.value,"rows-per-page":u.value,"enable-search":"",actions:(d=n.userProps.actions)!=null&&d.length?n.userProps.actions:void 0,onActionClick:i,onRowClick:o,onRowEdit:l},null,8,["data","columns","rows-per-page","actions"])],8,iqe)}}}),sqe=we({__name:"component",props:{userProps:{}},setup(e){const t=e,n=Ie(null);_t(async()=>{r()});const r=async()=>{if(!n.value)return;(await my(()=>import("./plotly.min.72db632f.js").then(o=>o.p),[])).newPlot(n.value,t.userProps.figure.data,t.userProps.figure.layout)};return Ve(()=>t.userProps.figure,r,{deep:!0}),(i,o)=>(oe(),de(tt,null,[x(Hn,{label:i.userProps.label,required:!1},null,8,["label"]),Ce("div",{ref_key:"root",ref:n,class:"chart"},null,512)],64))}});const lqe=Fn(sqe,[["__scopeId","data-v-0c65d6dd"]]),cqe={class:"progress-output"},uqe={class:"progress-container"},dqe={class:"progress-text label"},pqe=we({__name:"component",props:{userProps:{}},setup(e){const t=e,n=k(()=>{const{current:r,total:i}=t.userProps;return{width:`calc(${Math.min(100*r/i,100).toFixed(2)}% - 6px)`}});return(r,i)=>(oe(),de("div",cqe,[Ce("div",uqe,[Ce("div",{class:"progress-content",style:Mi(n.value)},null,4)]),Ce("div",dqe,Xt(r.userProps.text),1)]))}});const fqe=Fn(pqe,[["__scopeId","data-v-6fc80314"]]),mqe=we({__name:"component",props:{userProps:{}},setup(e){const t=e;function n(i){switch(i){case"small":return"12px";case"medium":return"16px";case"large":return"24px";default:return"16px"}}const r=k(()=>({fontSize:n(t.userProps.size)}));return(i,o)=>(oe(),de("div",{class:"text",style:Mi(r.value)},Xt(i.userProps.text),5))}}),gqe={class:"start-widget"},hqe={class:"title"},_qe={key:0,class:"start-message"},vqe=we({__name:"component",props:{form:{}},setup(e){return(t,n)=>(oe(),de("div",gqe,[Ce("div",hqe,Xt(t.form.welcomeTitle||t.form.title),1),t.form.startMessage?(oe(),de("div",_qe,Xt(t.form.startMessage),1)):ft("",!0)]))}});const bqe=Fn(vqe,[["__scopeId","data-v-93314670"]]),Sqe={class:"text"},yqe=we({__name:"component",props:{endMessage:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),de("div",Sqe,Xt((r=t.endMessage)!=null?r:We(Mo).translate("i18n_end_message",t.locale)),1)}}});const Eqe=Fn(yqe,[["__scopeId","data-v-a30dba0a"]]),Cqe={class:"text"},Tqe={key:0,class:"session-id"},wqe=we({__name:"component",props:{errorMessage:{},executionId:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),de("div",Cqe,[Jn(Xt((r=t.errorMessage)!=null?r:We(Mo).translate("i18n_error_message",t.locale))+" ",1),t.executionId?(oe(),de("div",Tqe,"Run ID: "+Xt(t.executionId),1)):ft("",!0)])}}});const xqe=Fn(wqe,[["__scopeId","data-v-a406885c"]]),FXe={start:bqe,end:Eqe,error:xqe},BXe={"file-output":jWe,"html-output":WWe,"iframe-output":ZWe,"image-output":QWe,"latex-output":JWe,"link-output":tqe,"markdown-output":rqe,"pandas-output":aqe,"plotly-output":lqe,"progress-output":fqe,"text-output":mqe},Ai={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},u8={ripple:!1,inputStyle:"outlined",locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[Ai.STARTS_WITH,Ai.CONTAINS,Ai.NOT_CONTAINS,Ai.ENDS_WITH,Ai.EQUALS,Ai.NOT_EQUALS],numeric:[Ai.EQUALS,Ai.NOT_EQUALS,Ai.LESS_THAN,Ai.LESS_THAN_OR_EQUAL_TO,Ai.GREATER_THAN,Ai.GREATER_THAN_OR_EQUAL_TO],date:[Ai.DATE_IS,Ai.DATE_IS_NOT,Ai.DATE_BEFORE,Ai.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100}},Oqe=Symbol();var UXe={install:(e,t)=>{let n=t?{...u8,...t}:{...u8};const r={config:dn(n)};e.config.globalProperties.$primevue=r,e.provide(Oqe,r)}},Iqe={name:"Message",emits:["close"],props:{severity:{type:String,default:"info"},closable:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},life:{type:Number,default:3e3},icon:{type:String,default:null},closeIcon:{type:String,default:"pi pi-times"},closeButtonProps:{type:null,default:null}},timeout:null,data(){return{visible:!0}},mounted(){this.sticky||this.x()},methods:{close(e){this.visible=!1,this.$emit("close",e)},x(){setTimeout(()=>{this.visible=!1},this.life)}},computed:{containerClass(){return"p-message p-component p-message-"+this.severity},iconClass(){return["p-message-icon pi",this.icon?this.icon:{"pi-info-circle":this.severity==="info","pi-check":this.severity==="success","pi-exclamation-triangle":this.severity==="warn","pi-times-circle":this.severity==="error"}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:dA}};const Rqe={class:"p-message-wrapper"},Aqe={class:"p-message-text"},Nqe=["aria-label"];function Dqe(e,t,n,r,i,o){const l=Tf("ripple");return oe(),An(xi,{name:"p-message",appear:""},{default:fn(()=>[Sr(Ce("div",{class:Gt(o.containerClass),role:"alert","aria-live":"assertive","aria-atomic":"true"},[Ce("div",Rqe,[Ce("span",{class:Gt(o.iconClass)},null,2),Ce("div",Aqe,[Ct(e.$slots,"default")]),n.closable?Sr((oe(),de("button",Mn({key:0,class:"p-message-close p-link","aria-label":o.closeAriaLabel,type:"button",onClick:t[0]||(t[0]=s=>o.close(s))},n.closeButtonProps),[Ce("i",{class:Gt(["p-message-close-icon",n.closeIcon])},null,2)],16,Nqe)),[[l]]):ft("",!0)])],2),[[Bo,i.visible]])]),_:3})}function Mqe(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var Pqe=` +`)),1)):ft("",!0)])}),128))],2))),128)),!n.userProps.max||b.value.length{t("update:errors",[]),t("update:value",[s])},l=s=>{t("update:errors",[]),t("update:value",s)};return Ve(()=>n.value,()=>{r.value=n.value[0],i.value=n.value}),(s,u)=>(oe(),de("div",PYe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),s.userProps.multiple?(oe(),An(We(Pg),{key:1,value:i.value,"onUpdate:value":u[2]||(u[2]=a=>i.value=a),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[3]||(u[3]=a=>l(a))},null,8,["value","disabled","options"])):(oe(),An(We(cR),{key:0,value:r.value,"onUpdate:value":u[0]||(u[0]=a=>r.value=a),disabled:s.userProps.disabled,options:s.userProps.options,onChange:u[1]||(u[1]=a=>o(a.target.value))},null,8,["value","disabled","options"]))]))}});const $Ye=Fn(kYe,[["__scopeId","data-v-8ef177a2"]]),LYe={class:"options"},FYe=["active","onClick"],BYe={class:"nps-hints"},UYe={class:"nps-hint"},HYe={class:"nps-hint"},VYe=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=k(()=>{var u;return(u=n.userProps.max)!=null?u:10}),o=k(()=>{var u;return(u=n.userProps.min)!=null?u:0}),l=k(()=>Array(1+i.value-o.value).fill(null).map((u,a)=>a+o.value)),s=u=>{n.userProps.disabled||(r.value=u,t("update:value",r.value))};return Ve(()=>n.value,()=>{r.value=n.value}),(u,a)=>(oe(),de(tt,null,[x(Hn,{label:u.userProps.label,required:!!u.userProps.required,hint:u.userProps.hint},null,8,["label","required","hint"]),Ce("div",LYe,[(oe(!0),de(tt,null,Pi(l.value,c=>(oe(),de("button",{key:c,active:r.value!==c,class:Gt(["option","button",{disabled:u.userProps.disabled}]),onClick:d=>s(c)},Xt(c),11,FYe))),128))]),Ce("div",BYe,[Ce("div",UYe,Xt(u.userProps.minHint),1),Ce("div",HYe,Xt(u.userProps.maxHint),1)])],64))}});const zYe=Fn(VYe,[["__scopeId","data-v-3fd6eefc"]]),GYe={class:"number-input"},jYe=["disabled","placeholder"],YYe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var i,o;const n=e,r=Ie((o=(i=n.value)==null?void 0:i.toString())!=null?o:"");return Ve(r,l=>{if(l===""){t("update:value",null);return}const s=Number(l);t("update:value",s)}),Ve(()=>n.value,l=>{r.value=(l==null?void 0:l.toString())||""}),(l,s)=>(oe(),de("div",GYe,[x(Hn,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),Sr(Ce("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),class:Gt(["input",l.errors.length&&"error",l.userProps.disabled&&"disabled"]),disabled:l.userProps.disabled,type:"number",placeholder:l.userProps.placeholder},null,10,jYe),[[ju,r.value]])]))}});const WYe=Fn(YYe,[["__scopeId","data-v-90c6530c"]]),qYe={class:"number-slider-input"},KYe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>{const s=String(l),u=i(Number(l));s!=o.value.value&&(o.value.value=s),u!=n.value&&t("update:value",u)},i=l=>l&&(n.userProps.min&&ln.userProps.max?n.userProps.max:l),o=Ie();return(l,s)=>(oe(),de("div",qYe,[x(Hn,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(We(UPe),{ref_key:"input",ref:o,class:Gt([l.errors.length&&"error","slider"]),disabled:l.userProps.disabled,type:"range",min:l.userProps.min||0,max:l.userProps.max||100,step:l.userProps.step||1,onChange:s[0]||(s[0]=u=>r(u))},null,8,["class","disabled","min","max","step"])]))}});const ZYe=Fn(KYe,[["__scopeId","data-v-3fcc105e"]]),QYe={style:{padding:"8px"}},XYe=["onclick"],JYe={key:1,class:"buttons"},eWe={key:0},tWe=we({__name:"ATable",props:{data:{},columns:{},enableSearch:{type:Boolean},editable:{type:Boolean},mainColor:{},actions:{},rowsPerPage:{},selectedIndexes:{},selectable:{},selectionDisabled:{type:Boolean}},emits:["rowEdit","actionClick","rowClick","update:selectedIndexes"],setup(e,{emit:t}){const n=e,r=k(()=>{var b;return(b=n.mainColor)!=null?b:"#D14056"}),i=dn({searchText:"",searchedColumn:""}),o=Ie(),l=k(()=>n.data.map((S,y)=>({...S,key:y}))),s=k(()=>{const b=n.columns.map((S,y)=>({title:S.title,dataIndex:S.key,key:S.key,customFilterDropdown:!0,sorter:{compare:(C,w)=>typeof C[S.key]=="number"&&typeof w[S.key]=="number"?C[S.key]-w[S.key]:typeof C[S.key]=="string"&&typeof w[S.key]=="string"?C[S.key].localeCompare(w[S.key]):1,multiple:y},onFilter:(C,w)=>{var T;return(T=w[S.key])==null?void 0:T.toString().toLowerCase().includes(C.toString().toLowerCase())},onFilterDropdownOpenChange:C=>{C&&sn().then(()=>{o.value.focus()})}}));if(n.editable||n.actions){const S=n.editable?80:0,y=n.actions?40:0;b.push({title:"",dataIndex:"buttons",width:S+y,fixed:"right",align:"center"})}return b}),u=(b,S,y)=>{S(),i.searchText=b[0],i.searchedColumn=y},a=b=>{b({confirm:!0}),i.searchText=""},c=dn({}),d=b=>{t("rowClick",{row:b})},p=(b,S)=>{t("actionClick",{action:b,row:S})},f=b=>{c[b.index]={...b}},g=b=>{const S=n.data.filter(y=>y.index===b.index);t("rowEdit",{oldRow:S[0],newRow:c[b.index]}),delete c[b.index]},m=b=>{delete c[b.index]},h=Ie([]),v=k(()=>n.selectable?{type:{multiple:"checkbox",single:"radio"}[n.selectable],selectedRowKeys:n.selectedIndexes,onChange:(S,y)=>{h.value=S.map(C=>Number(C)),t("update:selectedIndexes",S.map(C=>Number(C)))},getCheckboxProps:S=>({disabled:n.selectionDisabled,name:S[n.columns[0].key]})}:void 0);return(b,S)=>(oe(),An(We(WLe),{"data-source":l.value,columns:s.value,pagination:{position:["bottomCenter"],defaultPageSize:n.rowsPerPage,showSizeChanger:!n.rowsPerPage},"row-selection":v.value,scroll:{x:n.columns.length*200}},hO({bodyCell:fn(({column:y,text:C,record:w})=>[n.columns.map(T=>T.key).includes(y.dataIndex)?(oe(),de("div",{key:0,onclick:()=>d(w)},[c[w.index]?(oe(),An(We(Xr),{key:0,value:c[w.index][y.dataIndex],"onUpdate:value":T=>c[w.index][y.dataIndex]=T,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):(oe(),de(tt,{key:1},[Jn(Xt(C),1)],64))],8,XYe)):y.dataIndex==="buttons"?(oe(),de("div",JYe,[c[w.index]?(oe(),An(We(br),{key:0,type:"text",onClick:T=>g(w)},{default:fn(()=>[x(We(vYe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),c[w.index]?(oe(),An(We(WMe),{key:1,title:"Sure to cancel?",onConfirm:T=>m(w)},{default:fn(()=>[x(We(br),{type:"text"},{default:fn(()=>[x(We(lYe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:1})]),_:2},1032,["onConfirm"])):ft("",!0),n.editable&&!c[w.index]?(oe(),An(We(br),{key:2,type:"text",onClick:T=>f(w)},{default:fn(()=>[x(We(uYe),{"two-tone-color":r.value},null,8,["two-tone-color"])]),_:2},1032,["onClick"])):ft("",!0),n.actions&&!c[w.index]?(oe(),An(We(Tc),{key:3,trigger:"click"},{overlay:fn(()=>[x(We(fa),null,{default:fn(()=>[(oe(!0),de(tt,null,Pi(n.actions,T=>(oe(),An(We(tf),{key:T,type:"text",onClick:O=>p(T,w)},{default:fn(()=>[Jn(Xt(T),1)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),default:fn(()=>[x(We(br),{type:"text"},{default:fn(()=>[x(We(hYe),{style:Mi({color:r.value})},null,8,["style"])]),_:1})]),_:2},1024)):ft("",!0)])):(oe(),de(tt,{key:2},[i.searchText&&i.searchedColumn===y.dataIndex?(oe(),de("span",eWe,[(oe(!0),de(tt,null,Pi(C.toString().split(new RegExp(`(?<=${i.searchText})|(?=${i.searchText})`,"i")),(T,O)=>(oe(),de(tt,null,[T.toLowerCase()===i.searchText.toLowerCase()?(oe(),de("mark",{key:O,class:"highlight"},Xt(T),1)):(oe(),de(tt,{key:1},[Jn(Xt(T),1)],64))],64))),256))])):ft("",!0)],64))]),default:fn(()=>[n.enableSearch?(oe(),An(We(c8),{key:0,"two-tone-color":r.value},null,8,["two-tone-color"])):ft("",!0)]),_:2},[n.enableSearch?{name:"customFilterDropdown",fn:fn(({setSelectedKeys:y,selectedKeys:C,confirm:w,clearFilters:T,column:O})=>[Ce("div",QYe,[x(We(Xr),{ref_key:"searchInput",ref:o,placeholder:`Search ${O.dataIndex}`,value:C[0],style:{width:"188px","margin-bottom":"8px",display:"block"},onChange:R=>y(R.target.value?[R.target.value]:[]),onPressEnter:R=>u(C,w,O.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),x(We(br),{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:R=>u(C,w,O.dataIndex)},{icon:fn(()=>[x(We(c8))]),default:fn(()=>[Jn(" Search ")]),_:2},1032,["onClick"]),x(We(br),{size:"small",style:{width:"90px"},onClick:R=>a(T)},{default:fn(()=>[Jn(" Reset ")]),_:2},1032,["onClick"])])]),key:"0"}:void 0]),1032,["data-source","columns","pagination","row-selection","scroll"]))}});const ZG=Fn(tWe,[["__scopeId","data-v-ec6ca817"]]),nWe=["height","width"],rWe=10,iWe=we({__name:"component",props:{userProps:{},errors:{},value:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie([]),i=k(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(s=>s.name!="index")).map(s=>({...s,title:s.name.toString(),key:s.name.toString()}))),o=s=>{Fo.exports.isEqual(s,n.value)||t("update:value",s)},l=k(()=>{var s;return(s=n.userProps.pageSize)!=null?s:rWe});return Ve(()=>r.value,()=>{o(r.value.map(s=>n.userProps.table.data[s]))}),_t(()=>{r.value=[...n.value]}),(s,u)=>(oe(),de("div",{height:s.containerHeight,width:s.containerWidth},[x(Hn,{label:s.userProps.label,required:!1,hint:s.userProps.hint},null,8,["label","hint"]),x(ZG,{data:s.userProps.table.data,"onUpdate:data":u[0]||(u[0]=a=>s.userProps.table.data=a),"selected-indexes":r.value,"onUpdate:selectedIndexes":u[1]||(u[1]=a=>r.value=a),"enable-search":"",columns:i.value,"rows-per-page":l.value,selectable:s.userProps.multiple?"multiple":"single","selection-disabled":s.userProps.disabled},null,8,["data","selected-indexes","columns","rows-per-page","selectable","selection-disabled"])],8,nWe))}}),oWe={class:"password-input"},aWe=["pattern","required","disabled","placeholder"],sWe=["required","placeholder"],lWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=k(()=>n.userProps.pattern?n.userProps.pattern:[()=>{const f=n.userProps.lowercaseRequired;let g="";return f&&(g+="(?=.*[a-z])"),g},()=>{const f=n.userProps.uppercaseRequired;let g="";return f&&(g+="(?=.*[A-Z])"),g},()=>{const f=n.userProps.digitRequired;let g="";return f&&(g+="(?=.*\\d)"),g},()=>{const f=n.userProps.specialRequired;let g="";return f&&(g+="(?=.*[!?@#$\\-%^&+=])"),g},()=>{var v,b,S;const f=(v=n.userProps.minLength)!=null?v:null,g=(b=n.userProps.maxLength)!=null?b:null,m=(S=n.userProps.size)!=null?S:null;let h="";return m?h+=`(.{${m},${m}})`:f&&g?h+=`(.{${f},${g}})`:f?h+=`(.{${f},})`:g&&(h+=`(.{,${g}})`),h}].reduce((f,g)=>f+g(),"")||null),i=()=>{const s=n.value,f=[()=>n.userProps.digitRequired&&!/[0-9]/.test(s)?"Your password must have at least one digit between 0 and 9":null,()=>{const g=/[a-z]/g;return n.userProps.lowercaseRequired&&!g.test(s)?"Your password must have at least one lowercase letter":null},()=>{var b,S,y;const g=(b=n.userProps.minLength)!=null?b:null,m=(S=n.userProps.maxLength)!=null?S:null,h=(y=n.userProps.size)!=null?y:null,v=s.length;return h&&v!==h?`Your password must have ${h} characters`:g&&m&&(vm)?`Your password must have between ${g} and ${m} characters`:g&&vm?`Your password must have at most ${m} characters`:null},()=>n.userProps.specialRequired&&!/[!?@#$\-%^&+=]/g.test(s)?"Your password must have at least one special character":null,()=>{const g=/[A-Z]/g;return n.userProps.uppercaseRequired&&!g.test(s)?"Your password must have at leat one uppercase letter":null}].reduce((g,m)=>{const h=m();return h&&g.push(h),g},[]);t("update:errors",f)},o=s=>{t("update:value",s)},l=Ie();return Ve(()=>n.value,()=>{!l.value||(l.value.value=n.value)}),(s,u)=>(oe(),de("div",oWe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),de("input",{key:0,ref_key:"input",ref:l,type:"password",pattern:r.value,required:!!s.userProps.required,class:Gt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onInput:u[0]||(u[0]=a=>o(a.target.value)),onBlur:i},null,42,aWe)):(oe(),de("input",{key:1,ref_key:"input",ref:l,type:"password",required:!!s.userProps.required,class:Gt(["input",s.errors.length&&"error"]),placeholder:s.userProps.placeholder,onInput:u[1]||(u[1]=a=>o(a.target.value)),onBlur:i},null,42,sWe))]))}}),cWe=[{code:"93",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"355",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"213",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"376",placeholder:"000-000",mask:"000-000"},{code:"244",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"1",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"54",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"374",placeholder:"00-000-000",mask:"00-000-000"},{code:"297",placeholder:"000-0000",mask:"000-0000"},{code:"61",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"43",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"994",placeholder:"00-000-00-00",mask:"00-000-00-00"},{code:"973",placeholder:"0000-0000",mask:"0000-0000"},{code:"880",placeholder:"1000-000000",mask:"1000-000000"},{code:"375",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"32",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"501",placeholder:"000-0000",mask:"000-0000"},{code:"229",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"975",placeholder:"17-000-000",mask:"17-000-000|0-000-000"},{code:"591",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"387",placeholder:"00-0000",mask:"00-0000|00-00000"},{code:"267",placeholder:"00-000-000",mask:"00-000-000"},{code:"55",placeholder:"(00)0000-0000",mask:"(00)0000-0000|(00)00000-0000"},{code:"673",placeholder:"000-0000",mask:"000-0000"},{code:"359",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"226",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"257",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"855",placeholder:"00-000-000",mask:"00-000-000"},{code:"237",placeholder:"0000-0000",mask:"0000-0000"},{code:"238",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"236",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"235",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"56",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"86",placeholder:"(000)0000-000",mask:"(000)0000-000|(000)0000-0000|00-00000-00000"},{code:"57",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"269",placeholder:"00-00000",mask:"00-00000"},{code:"242",placeholder:"00-00000",mask:"00-00000"},{code:"506",placeholder:"0000-0000",mask:"0000-0000"},{code:"385",placeholder:"00-000-000",mask:"00-000-000"},{code:"53",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"357",placeholder:"00-000-000",mask:"00-000-000"},{code:"420",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"243",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"45",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"253",placeholder:"00-00-00-00",mask:"00-00-00-00"},{code:"593",placeholder:"0-000-0000",mask:"0-000-0000|00-000-0000"},{code:"20",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"503",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"240",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"291",placeholder:"0-000-000",mask:"0-000-000"},{code:"372",placeholder:"000-0000",mask:"000-0000|0000-0000"},{code:"268",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"251",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"679",placeholder:"00-00000",mask:"00-00000"},{code:"358",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"33",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"241",placeholder:"0-00-00-00",mask:"0-00-00-00"},{code:"220",placeholder:"(000)00-00",mask:"(000)00-00"},{code:"995",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"49",placeholder:"000-000",mask:"000-000|(000)00-00|(000)00-000|(000)00-0000|(000)000-0000|(0000)000-0000"},{code:"233",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"30",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"502",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"224",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"245",placeholder:"0-000000",mask:"0-000000"},{code:"592",placeholder:"000-0000",mask:"000-0000"},{code:"509",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"504",placeholder:"0000-0000",mask:"0000-0000"},{code:"852",placeholder:"0000-0000",mask:"0000-0000"},{code:"36",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"354",placeholder:"000-0000",mask:"000-0000"},{code:"91",placeholder:"(0000)000-000",mask:"(0000)000-000"},{code:"62",placeholder:"00-000-00",mask:"00-000-00|00-000-000|00-000-0000|(800)000-000|(800)000-00-000"},{code:"98",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"924",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"353",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"972",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"39",placeholder:"(000)0000-000",mask:"(000)0000-000"},{code:"225",placeholder:"00-000-000",mask:"00-000-000"},{code:"81",placeholder:"(000)000-000",mask:"(000)000-000|00-0000-0000"},{code:"962",placeholder:"0-0000-0000",mask:"0-0000-0000"},{code:"77",placeholder:"(600)000-00-00",mask:"(600)000-00-00|(700)000-00-00"},{code:"254",placeholder:"000-000000",mask:"000-000000"},{code:"850",placeholder:"000-000",mask:"000-000|0000-0000|00-000-000|000-0000-000|191-000-0000|0000-0000000000000"},{code:"82",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"965",placeholder:"0000-0000",mask:"0000-0000"},{code:"996",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"856",placeholder:"00-000-000",mask:"00-000-000|(2000)000-000"},{code:"371",placeholder:"00-000-000",mask:"00-000-000"},{code:"961",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"266",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"231",placeholder:"00-000-000",mask:"00-000-000"},{code:"218",placeholder:"00-000-000",mask:"00-000-000|21-000-0000"},{code:"423",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"370",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"352",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"261",placeholder:"00-00-00000",mask:"00-00-00000"},{code:"265",placeholder:"1-000-000",mask:"1-000-000|0-0000-0000"},{code:"60",placeholder:"0-000-000",mask:"0-000-000|00-000-000|(000)000-000|00-000-0000"},{code:"960",placeholder:"000-0000",mask:"000-0000"},{code:"223",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"356",placeholder:"0000-0000",mask:"0000-0000"},{code:"596",placeholder:"(000)00-00-00",mask:"(000)00-00-00"},{code:"222",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"230",placeholder:"000-0000",mask:"000-0000"},{code:"52",placeholder:"00-00-0000",mask:"00-00-0000|(000)000-0000"},{code:"691",placeholder:"000-0000",mask:"000-0000"},{code:"373",placeholder:"0000-0000",mask:"0000-0000"},{code:"377",placeholder:"00-000-000",mask:"00-000-000|(000)000-000"},{code:"976",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"382",placeholder:"00-000-000",mask:"00-000-000"},{code:"212",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"258",placeholder:"00-000-000",mask:"00-000-000"},{code:"95",placeholder:"000-000",mask:"000-000|0-000-000|00-000-000"},{code:"674",placeholder:"000-0000",mask:"000-0000"},{code:"977",placeholder:"00-000-000",mask:"00-000-000"},{code:"31",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"24",placeholder:"0-000-000",mask:"0-000-000|(000)000-000|(000)000-0000"},{code:"505",placeholder:"0000-0000",mask:"0000-0000"},{code:"227",placeholder:"00-00-0000",mask:"00-00-0000"},{code:"234",placeholder:"00-000-00",mask:"00-000-00|00-000-000|(000)000-0000"},{code:"389",placeholder:"00-000-000",mask:"00-000-000"},{code:"47",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"968",placeholder:"00-000-000",mask:"00-000-000"},{code:"92",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"680",placeholder:"000-0000",mask:"000-0000"},{code:"970",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"507",placeholder:"000-0000",mask:"000-0000"},{code:"675",placeholder:"(000)00-000",mask:"(000)00-000"},{code:"595",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"51",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"63",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"48",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"351",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"974",placeholder:"0000-0000",mask:"0000-0000"},{code:"40",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"7",placeholder:"(000)000-00-00",mask:"(000)000-00-00"},{code:"250",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"685",placeholder:"00-0000",mask:"00-0000"},{code:"378",placeholder:"0000-000000",mask:"0000-000000"},{code:"239",placeholder:"00-00000",mask:"00-00000"},{code:"966",placeholder:"0-000-0000",mask:"0-000-0000|50-0000-0000"},{code:"221",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"381",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"248",placeholder:"0-000-000",mask:"0-000-000"},{code:"232",placeholder:"00-000000",mask:"00-000000"},{code:"65",placeholder:"0000-0000",mask:"0000-0000"},{code:"421",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"386",placeholder:"00-000-000",mask:"00-000-000"},{code:"677",placeholder:"00000",mask:"00000|000-0000"},{code:"252",placeholder:"0-000-000",mask:"0-000-000|00-000-000"},{code:"27",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"211",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"34",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"94",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"249",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"597",placeholder:"000-000",mask:"000-000|000-0000"},{code:"46",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"41",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"963",placeholder:"00-0000-000",mask:"00-0000-000"},{code:"992",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"255",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"66",placeholder:"00-000-000",mask:"00-000-000|00-000-0000"},{code:"670",placeholder:"000-0000",mask:"000-0000|770-00000|780-00000"},{code:"228",placeholder:"00-000-000",mask:"00-000-000"},{code:"676",placeholder:"00000",mask:"00000"},{code:"216",placeholder:"00-000-000",mask:"00-000-000"},{code:"90",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"993",placeholder:"0-000-0000",mask:"0-000-0000"},{code:"256",placeholder:"(000)000-000",mask:"(000)000-000"},{code:"380",placeholder:"(00)000-00-00",mask:"(00)000-00-00"},{code:"971",placeholder:"0-000-0000",mask:"0-000-0000|50-000-0000"},{code:"44",placeholder:"00-0000-0000",mask:"00-0000-0000"},{code:"598",placeholder:"0-000-00-00",mask:"0-000-00-00"},{code:"998",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"678",placeholder:"00000",mask:"00000|00-00000"},{code:"58",placeholder:"(000)000-0000",mask:"(000)000-0000"},{code:"84",placeholder:"00-0000-000",mask:"00-0000-000|(000)0000-000"},{code:"967",placeholder:"0-000-000",mask:"0-000-000|00-000-000|000-000-000"},{code:"260",placeholder:"00-000-0000",mask:"00-000-0000"},{code:"263",placeholder:"",mask:""}],uWe={class:"phone-input"},dWe={class:"flex"},pWe=["value","disabled"],fWe=["value","disabled","placeholder"],mWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=k(()=>{var m;return n.userProps.placeholder||((m=s(o.value))==null?void 0:m.placeholder)||""}),i=Ie(u(n.value.nationalNumber,n.value.countryCode)),o=Ie(a(n.value.countryCode));function l(m){return m.replace(/\D/g,"")}function s(m){var h;return(h=cWe.find(v=>v.code===l(m)))!=null?h:null}function u(m,h){var b;const v=(b=s(h))==null?void 0:b.mask;return v?Po(v,m):""}function a(m){return Po("+000",m)}function c(){t("update:value",{countryCode:l(o.value),nationalNumber:i.value})}const d=m=>{const h=m.target.value;o.value=a(h)},p=m=>{const h=m.target.value;o.value=a(h)},f=m=>{const h=m.target.value;i.value=u(h,o.value),c()},g=()=>{var b;if(!n.userProps.required&&!i.value&&!o.value){t("update:errors",[]);return}const m=[],h=(b=s(o.value))==null?void 0:b.mask;if(!h){t("update:errors",["i18n_error_invalid_country_code"]);return}sf(h,i.value)||m.push(n.userProps.invalidMessage),t("update:errors",m)};return It(()=>{i.value=u(n.value.nationalNumber,n.value.countryCode),o.value=a(n.value.countryCode)}),(m,h)=>(oe(),de("div",uWe,[x(Hn,{label:m.userProps.label,required:!!m.userProps.required,hint:m.userProps.hint},null,8,["label","required","hint"]),Ce("div",dWe,[Ce("input",{value:o.value,class:Gt(["select",["input",m.errors.length&&"error"]]),maxlength:"4",placeholder:"+1",disabled:m.userProps.disabled,onInput:p,onChange:d,onBlur:g},null,42,pWe),Ce("input",{value:i.value,class:Gt(["input",m.errors.length&&"error"]),disabled:m.userProps.disabled||!s(o.value),placeholder:r.value,onBlur:g,onInput:f,onChange:g},null,42,fWe)])]))}});const gWe=Fn(mWe,[["__scopeId","data-v-9372fb2a"]]),hWe={class:"rating-input"},_We={ref:"input",class:"rating-icons"},vWe=["onClick"],bWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=s=>{var u;return s<((u=i.value)!=null?u:0)},i=Ie(n.value),o=k(()=>{var s,u;return Array((s=n.userProps.max)!=null?s:5).fill((u=n.userProps.char)!=null?u:"\u2B50")}),l=s=>{n.userProps.disabled||(i.value=s,t("update:value",i.value))};return Ve(()=>n.value,()=>{i.value=n.value}),(s,u)=>(oe(),de("div",hWe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ce("div",_We,[(oe(!0),de(tt,null,Pi(o.value,(a,c)=>(oe(),de("div",{key:c,class:Gt(["rating-icon",{active:r(c),disabled:s.userProps.disabled}]),tabindex:"0",onClick:d=>l(c+1)},Xt(a),11,vWe))),128))],512)]))}});const SWe=Fn(bWe,[["__scopeId","data-v-1108054a"]]);const yWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(null);window.document&&my(()=>import("./vue-quill.esm-bundler.6724c38a.js"),[]).then(s=>{r.value=s.QuillEditor});const i=()=>{var u,a;const s=(a=(u=o.value)==null?void 0:u.getHTML())!=null?a:"";t("update:value",s)},o=Ie(),l=()=>{var s;n.value&&((s=o.value)==null||s.setHTML(n.value))};return Ve(()=>n.value,()=>{var u;(((u=o.value)==null?void 0:u.getHTML())||"")!==n.value&&l()}),(s,u)=>(oe(),de(tt,null,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),r.value?(oe(),An(Au(r.value),{key:0,ref_key:"input",ref:o,style:{height:"100%"},class:Gt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,onReady:l,"onUpdate:content":u[0]||(u[0]=a=>i())},null,40,["class","disabled","placeholder"])):ft("",!0)],64))}});const EWe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",CWe={class:"tag-input"},TWe={class:"tags"},wWe={class:"remove-icon",viewBox:"0 0 24 24"},xWe=["d"],OWe=["disabled","placeholder"],IWe=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){var u;const n=e,r=EWe,i=Ie((u=n.value)!=null?u:[]),o=a=>{n.userProps.disabled||!a||i.value.some(c=>c===a)||(i.value=[...i.value,a],t("update:value",i.value),s.value.value="")},l=a=>{n.userProps.disabled||(i.value=i.value.filter((c,d)=>d!==a),t("update:value",i.value))},s=Ie();return Ve(()=>n.value,()=>{var a;i.value=(a=n.value)!=null?a:[]}),(a,c)=>(oe(),de(tt,null,[x(Hn,{label:a.userProps.label,required:!!a.userProps.required,hint:a.userProps.hint},null,8,["label","required","hint"]),Ce("div",CWe,[Ce("div",TWe,[(oe(!0),de(tt,null,Pi(i.value,(d,p)=>(oe(),de("div",{key:d,class:"tag"},[Jn(Xt(d)+" ",1),x(We(br),{class:"remove-tag",type:"text",onClick:f=>l(p)},{default:fn(()=>[(oe(),de("svg",wWe,[Ce("path",{d:We(r)},null,8,xWe)]))]),_:2},1032,["onClick"])]))),128))]),Ce("input",{ref_key:"input",ref:s,class:Gt(["input",{disabled:a.userProps.disabled}]),disabled:a.userProps.disabled,type:"text",placeholder:a.userProps.placeholder,onChange:c[0]||(c[0]=d=>o(d.target.value)),onKeyup:c[1]||(c[1]=TO(d=>o(d.target.value),["enter"]))},null,42,OWe)])],64))}});const RWe=Fn(IWe,[["__scopeId","data-v-c12d89f6"]]),AWe={class:"text-input"},NWe=["disabled","placeholder","maxlength","minlength"],DWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(),i=s=>{const u=n.userProps.mask?Po(n.userProps.mask,s):s;r.value.value=u,t("update:value",u)},o=s=>{const u=s.target;n.userProps.mask&&sf(n.userProps.mask,u.value)&&s.preventDefault()};_t(()=>{l()}),Ve(()=>n.value,()=>{l()});function l(){n.value&&r.value&&(n.userProps.mask?r.value.value=Po(n.userProps.mask,n.value):r.value.value=n.value)}return(s,u)=>{var a,c;return oe(),de("div",AWe,[x(Hn,{label:s.userProps.label,required:!!s.userProps.required,hint:s.userProps.hint},null,8,["label","required","hint"]),Ce("input",{ref_key:"input",ref:r,class:Gt(["input",s.errors.length&&"error",s.userProps.disabled&&"disabled"]),disabled:s.userProps.disabled,placeholder:s.userProps.placeholder,maxlength:(a=s.userProps.maxLength)!=null?a:void 0,minlength:(c=s.userProps.minLength)!=null?c:void 0,onKeypress:u[0]||(u[0]=d=>o(d)),onInput:u[1]||(u[1]=d=>i(d.target.value))},null,42,NWe)])}}}),MWe=["disabled","placeholder"],PWe=we({__name:"component",props:{userProps:{},value:{},errors:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=o=>{i.value.value=o,t("update:value",o)},i=Ie();return _t(()=>{i.value.value=n.value||""}),Ve(()=>n.value,()=>{i.value.value=n.value||""}),(o,l)=>(oe(),de(tt,null,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),Ce("textarea",{ref_key:"input",ref:i,style:{height:"100%"},class:Gt(["input",o.errors.length&&"error",o.userProps.disabled&&"disabled"]),disabled:o.userProps.disabled,placeholder:o.userProps.placeholder,onInput:l[0]||(l[0]=s=>r(s.target.value))},null,42,MWe)],64))}});const kWe={class:"time-input"},$We=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=l=>l?`${l.hour.toString().padStart(2,"0")}:${l.minute.toString().padStart(2,"0")}`:void 0,i=Ie(r(n.value)),o=(l,s)=>{const[u,a]=s.split(":"),c={hour:parseInt(u),minute:parseInt(a)};t("update:value",c)};return Ve(()=>n.value,l=>{i.value=r(l)}),(l,s)=>(oe(),de("div",kWe,[x(Hn,{label:l.userProps.label,required:!!l.userProps.required,hint:l.userProps.hint},null,8,["label","required","hint"]),x(We(JLe),{value:i.value,"onUpdate:value":s[0]||(s[0]=u=>i.value=u),type:"time",class:"input",format:"HH:mm","value-format":"HH:mm",disabled:l.userProps.disabled,onChange:o},null,8,["value","disabled"])]))}});const LWe=Fn($We,[["__scopeId","data-v-31786bbd"]]),FWe=we({__name:"component",props:{userProps:{},errors:{},value:{}},emits:["update:errors","update:value"],setup(e,{emit:t}){const n=e,r=Ie(n.value),i=()=>{n.userProps.disabled||(r.value=!r.value,t("update:value",r.value))};return Ve(()=>n.value,()=>{r.value=n.value}),(o,l)=>(oe(),de(tt,null,[x(Hn,{label:o.userProps.label,required:!!o.userProps.required,hint:o.userProps.hint},null,8,["label","required","hint"]),x(We(ZPe),{checked:r.value,style:{"align-self":"flex-start"},onChange:i},null,8,["checked"])],64))}}),BWe=we({__name:"component",props:{userProps:{},errors:{},value:{},locale:{}},emits:["update:value","update:errors"],setup(e,{emit:t}){return(n,r)=>(oe(),de(tt,null,[x(Hn,{label:n.userProps.label,required:!!n.userProps.required,hint:n.userProps.hint},null,8,["label","required","hint"]),x(KG,{"accepted-formats":["video/*"],"accepted-mime-types":"video/*",disabled:n.userProps.disabled,errors:n.errors,"list-type":"picture-card",multiple:n.userProps.multiple,value:n.value,locale:n.locale,"onUpdate:errors":r[0]||(r[0]=i=>t("update:errors",i)),"onUpdate:value":r[1]||(r[1]=i=>t("update:value",i))},null,8,["disabled","errors","multiple","value","locale"])],64))}}),LXe={"appointment-input":IGe,"camera-input":u7e,"cards-input":C7e,"checkbox-input":w7e,"checklist-input":I7e,"cnpj-input":D7e,"code-input":P7e,"cpf-input":L7e,"currency-input":V7e,"custom-input":j7e,"date-input":K7e,"dropdown-input":Nje,"email-input":Pje,"file-input":wYe,"image-input":IYe,"list-input":MYe,"multiple-choice-input":$Ye,"nps-input":zYe,"number-input":WYe,"number-slider-input":ZYe,"pandas-row-selection-input":iWe,"password-input":lWe,"phone-input":gWe,"rating-input":SWe,"rich-text-input":yWe,"tag-input":RWe,"text-input":DWe,"textarea-input":PWe,"time-input":LWe,"toggle-input":FWe,"video-input":BWe},UWe=e=>(iB("data-v-1e783ab3"),e=e(),oB(),e),HWe={class:"file-output"},VWe=["href"],zWe=UWe(()=>Ce("iframe",{src:"about:blank",name:"iframe_a",class:"target-frame"},null,-1)),GWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r;return oe(),de("div",HWe,[Ce("a",{href:t.userProps.fileUrl,class:"download-button button",target:"iframe_a",download:""},[x(We(TBe)),Jn(" "+Xt((r=t.userProps.downloadText)!=null?r:"Download"),1)],8,VWe),zWe])}}});const jWe=Fn(GWe,[["__scopeId","data-v-1e783ab3"]]),YWe=["innerHTML"],WWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),de("div",{innerHTML:t.userProps.html},null,8,YWe))}}),qWe=["src","width","height"],KWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{var r,i;return oe(),de("iframe",{class:"iframe",src:t.userProps.url,width:(r=t.userProps.width)!=null?r:void 0,height:(i=t.userProps.height)!=null?i:void 0},null,8,qWe)}}});const ZWe=Fn(KWe,[["__scopeId","data-v-75daa443"]]),QWe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),de(tt,null,[x(Hn,{label:t.userProps.label,required:!1},null,8,["label"]),x(We(GDe),{src:t.userProps.imageUrl,alt:t.userProps.subtitle},null,8,["src","alt"])],64))}}),XWe=we({__name:"component",props:{userProps:{}},setup(e){const t=Ie(null);return _t(async()=>{await Promise.all([Y4("https://polyfill.io/v3/polyfill.min.js?features=es6"),Y4("https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js")]),window.MathJax.typesetPromise([t.value])}),(n,r)=>(oe(),de("div",{ref_key:"latex",ref:t,class:"latex"},Xt(n.userProps.text),513))}});const JWe=Fn(XWe,[["__scopeId","data-v-9c539437"]]),eqe=["href","target"],tqe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>(oe(),de("a",{class:"link",href:t.userProps.linkUrl,target:t.userProps.sameTab?"":"_blank"},Xt(t.userProps.linkText),9,eqe))}}),nqe=we({__name:"component",props:{userProps:{}},setup(e){return(t,n)=>{const r=_p("Markdown");return oe(),An(r,{class:"markdown-output",source:t.userProps.text,html:""},null,8,["source"])}}});const rqe=Fn(nqe,[["__scopeId","data-v-331de5d9"]]),iqe=["height","width"],oqe=10,aqe=we({__name:"component",props:{userProps:{},runtime:{},containerHeight:{},containerWidth:{}},emits:["row-click","action-click","row-edit"],setup(e,{emit:t}){const n=e,r=Ie(null),i=({action:a,row:c})=>{t("action-click",{action:a,userProps:c})};function o({row:a}){t("row-click",{userProps:a.userProps,index:a.index})}function l({oldRow:a,newRow:c}){const d=o7e(a,c);t("row-edit",{old:a,new:d,index:a.index})}Ve(n.userProps.table.data,()=>{});const s=k(()=>(n.userProps.displayIndex?n.userProps.table.schema.fields:n.userProps.table.schema.fields.filter(a=>a.name!="index")).map(a=>({...a,title:a.name.toString(),key:a.name.toString()}))),u=k(()=>{var a;return(a=n.userProps.pageSize)!=null?a:oqe});return(a,c)=>{var d;return oe(),de("div",{height:a.containerHeight,width:a.containerWidth},[x(Hn,{ref_key:"label",ref:r,label:n.userProps.label,required:!1},null,8,["label"]),x(ZG,{data:a.userProps.table.data,columns:s.value,"rows-per-page":u.value,"enable-search":"",actions:(d=n.userProps.actions)!=null&&d.length?n.userProps.actions:void 0,onActionClick:i,onRowClick:o,onRowEdit:l},null,8,["data","columns","rows-per-page","actions"])],8,iqe)}}}),sqe=we({__name:"component",props:{userProps:{}},setup(e){const t=e,n=Ie(null);_t(async()=>{r()});const r=async()=>{if(!n.value)return;(await my(()=>import("./plotly.min.a4eba8bf.js").then(o=>o.p),[])).newPlot(n.value,t.userProps.figure.data,t.userProps.figure.layout)};return Ve(()=>t.userProps.figure,r,{deep:!0}),(i,o)=>(oe(),de(tt,null,[x(Hn,{label:i.userProps.label,required:!1},null,8,["label"]),Ce("div",{ref_key:"root",ref:n,class:"chart"},null,512)],64))}});const lqe=Fn(sqe,[["__scopeId","data-v-0c65d6dd"]]),cqe={class:"progress-output"},uqe={class:"progress-container"},dqe={class:"progress-text label"},pqe=we({__name:"component",props:{userProps:{}},setup(e){const t=e,n=k(()=>{const{current:r,total:i}=t.userProps;return{width:`calc(${Math.min(100*r/i,100).toFixed(2)}% - 6px)`}});return(r,i)=>(oe(),de("div",cqe,[Ce("div",uqe,[Ce("div",{class:"progress-content",style:Mi(n.value)},null,4)]),Ce("div",dqe,Xt(r.userProps.text),1)]))}});const fqe=Fn(pqe,[["__scopeId","data-v-6fc80314"]]),mqe=we({__name:"component",props:{userProps:{}},setup(e){const t=e;function n(i){switch(i){case"small":return"12px";case"medium":return"16px";case"large":return"24px";default:return"16px"}}const r=k(()=>({fontSize:n(t.userProps.size)}));return(i,o)=>(oe(),de("div",{class:"text",style:Mi(r.value)},Xt(i.userProps.text),5))}}),gqe={class:"start-widget"},hqe={class:"title"},_qe={key:0,class:"start-message"},vqe=we({__name:"component",props:{form:{}},setup(e){return(t,n)=>(oe(),de("div",gqe,[Ce("div",hqe,Xt(t.form.welcomeTitle||t.form.title),1),t.form.startMessage?(oe(),de("div",_qe,Xt(t.form.startMessage),1)):ft("",!0)]))}});const bqe=Fn(vqe,[["__scopeId","data-v-93314670"]]),Sqe={class:"text"},yqe=we({__name:"component",props:{endMessage:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),de("div",Sqe,Xt((r=t.endMessage)!=null?r:We(Mo).translate("i18n_end_message",t.locale)),1)}}});const Eqe=Fn(yqe,[["__scopeId","data-v-a30dba0a"]]),Cqe={class:"text"},Tqe={key:0,class:"session-id"},wqe=we({__name:"component",props:{errorMessage:{},executionId:{},locale:{}},setup(e){return(t,n)=>{var r;return oe(),de("div",Cqe,[Jn(Xt((r=t.errorMessage)!=null?r:We(Mo).translate("i18n_error_message",t.locale))+" ",1),t.executionId?(oe(),de("div",Tqe,"Run ID: "+Xt(t.executionId),1)):ft("",!0)])}}});const xqe=Fn(wqe,[["__scopeId","data-v-a406885c"]]),FXe={start:bqe,end:Eqe,error:xqe},BXe={"file-output":jWe,"html-output":WWe,"iframe-output":ZWe,"image-output":QWe,"latex-output":JWe,"link-output":tqe,"markdown-output":rqe,"pandas-output":aqe,"plotly-output":lqe,"progress-output":fqe,"text-output":mqe},Ai={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},u8={ripple:!1,inputStyle:"outlined",locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[Ai.STARTS_WITH,Ai.CONTAINS,Ai.NOT_CONTAINS,Ai.ENDS_WITH,Ai.EQUALS,Ai.NOT_EQUALS],numeric:[Ai.EQUALS,Ai.NOT_EQUALS,Ai.LESS_THAN,Ai.LESS_THAN_OR_EQUAL_TO,Ai.GREATER_THAN,Ai.GREATER_THAN_OR_EQUAL_TO],date:[Ai.DATE_IS,Ai.DATE_IS_NOT,Ai.DATE_BEFORE,Ai.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100}},Oqe=Symbol();var UXe={install:(e,t)=>{let n=t?{...u8,...t}:{...u8};const r={config:dn(n)};e.config.globalProperties.$primevue=r,e.provide(Oqe,r)}},Iqe={name:"Message",emits:["close"],props:{severity:{type:String,default:"info"},closable:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},life:{type:Number,default:3e3},icon:{type:String,default:null},closeIcon:{type:String,default:"pi pi-times"},closeButtonProps:{type:null,default:null}},timeout:null,data(){return{visible:!0}},mounted(){this.sticky||this.x()},methods:{close(e){this.visible=!1,this.$emit("close",e)},x(){setTimeout(()=>{this.visible=!1},this.life)}},computed:{containerClass(){return"p-message p-component p-message-"+this.severity},iconClass(){return["p-message-icon pi",this.icon?this.icon:{"pi-info-circle":this.severity==="info","pi-check":this.severity==="success","pi-exclamation-triangle":this.severity==="warn","pi-times-circle":this.severity==="error"}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:dA}};const Rqe={class:"p-message-wrapper"},Aqe={class:"p-message-text"},Nqe=["aria-label"];function Dqe(e,t,n,r,i,o){const l=Tf("ripple");return oe(),An(xi,{name:"p-message",appear:""},{default:fn(()=>[Sr(Ce("div",{class:Gt(o.containerClass),role:"alert","aria-live":"assertive","aria-atomic":"true"},[Ce("div",Rqe,[Ce("span",{class:Gt(o.iconClass)},null,2),Ce("div",Aqe,[Ct(e.$slots,"default")]),n.closable?Sr((oe(),de("button",Mn({key:0,class:"p-message-close p-link","aria-label":o.closeAriaLabel,type:"button",onClick:t[0]||(t[0]=s=>o.close(s))},n.closeButtonProps),[Ce("i",{class:Gt(["p-message-close-icon",n.closeIcon])},null,2)],16,Nqe)),[[l]]):ft("",!0)])],2),[[Bo,i.visible]])]),_:3})}function Mqe(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var Pqe=` .p-message-wrapper { display: flex; align-items: center; @@ -885,4 +885,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),cr=it,yn=Tt),en===void * (c) 2022 Eduardo San Martin Morote * @license MIT */const Kd=typeof window<"u";function SZe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Xn=Object.assign;function nC(e,t){const n={};for(const r in t){const i=t[r];n[r]=Wa(i)?i.map(e):e(i)}return n}const eg=()=>{},Wa=Array.isArray,yZe=/\/$/,EZe=e=>e.replace(yZe,"");function rC(e,t,n="/"){let r,i={},o="",l="";const s=t.indexOf("#");let u=t.indexOf("?");return s=0&&(u=-1),u>-1&&(r=t.slice(0,u),o=t.slice(u+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),l=t.slice(s,t.length)),r=xZe(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+l,path:r,query:i,hash:l}}function CZe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function v8(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function TZe(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&lf(t.matched[r],n.matched[i])&&JG(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function lf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function JG(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wZe(e[n],t[n]))return!1;return!0}function wZe(e,t){return Wa(e)?b8(e,t):Wa(t)?b8(t,e):e===t}function b8(e,t){return Wa(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xZe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var $g;(function(e){e.pop="pop",e.push="push"})($g||($g={}));var tg;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tg||(tg={}));function OZe(e){if(!e)if(Kd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),EZe(e)}const IZe=/^[^#]+#/;function RZe(e,t){return e.replace(IZe,"#")+t}function AZe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const hy=()=>({left:window.pageXOffset,top:window.pageYOffset});function NZe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=AZe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function S8(e,t){return(history.state?history.state.position-t:-1)+e}const Gw=new Map;function DZe(e,t){Gw.set(e,t)}function MZe(e){const t=Gw.get(e);return Gw.delete(e),t}let PZe=()=>location.protocol+"//"+location.host;function e7(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,u=i.slice(s);return u[0]!=="/"&&(u="/"+u),v8(u,"")}return v8(n,e)+r+i}function kZe(e,t,n,r){let i=[],o=[],l=null;const s=({state:p})=>{const f=e7(e,location),g=n.value,m=t.value;let h=0;if(p){if(n.value=f,t.value=p,l&&l===g){l=null;return}h=m?p.position-m.position:0}else r(f);i.forEach(v=>{v(n.value,g,{delta:h,type:$g.pop,direction:h?h>0?tg.forward:tg.back:tg.unknown})})};function u(){l=n.value}function a(p){i.push(p);const f=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return o.push(f),f}function c(){const{history:p}=window;!p.state||p.replaceState(Xn({},p.state,{scroll:hy()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:u,listen:a,destroy:d}}function y8(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?hy():null}}function $Ze(e){const{history:t,location:n}=window,r={value:e7(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,a,c){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+u:PZe()+e+u;try{t[c?"replaceState":"pushState"](a,"",p),i.value=a}catch(f){console.error(f),n[c?"replace":"assign"](p)}}function l(u,a){const c=Xn({},t.state,y8(i.value.back,u,i.value.forward,!0),a,{position:i.value.position});o(u,c,!0),r.value=u}function s(u,a){const c=Xn({},i.value,t.state,{forward:u,scroll:hy()});o(c.current,c,!0);const d=Xn({},y8(r.value,u,null),{position:c.position+1},a);o(u,d,!1),r.value=u}return{location:r,state:i,push:s,replace:l}}function jXe(e){e=OZe(e);const t=$Ze(e),n=kZe(e,t.state,t.location,t.replace);function r(o,l=!0){l||n.pauseListeners(),history.go(o)}const i=Xn({location:"",base:e,go:r,createHref:RZe.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function LZe(e){return typeof e=="string"||e&&typeof e=="object"}function t7(e){return typeof e=="string"||typeof e=="symbol"}const Kl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},n7=Symbol("");var E8;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(E8||(E8={}));function cf(e,t){return Xn(new Error,{type:e,[n7]:!0},t)}function Ys(e,t){return e instanceof Error&&n7 in e&&(t==null||!!(e.type&t))}const C8="[^/]+?",FZe={sensitive:!1,strict:!1,start:!0,end:!0},BZe=/[.+*?^${}()[\]/\\]/g;function UZe(e,t){const n=Xn({},FZe,t),r=[];let i=n.start?"^":"";const o=[];for(const a of e){const c=a.length?[]:[90];n.strict&&!a.length&&(i+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function VZe(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const zZe={type:0,value:""},GZe=/[a-zA-Z0-9_]/;function jZe(e){if(!e)return[[]];if(e==="/")return[[zZe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${a}": ${f}`)}let n=0,r=n;const i=[];let o;function l(){o&&i.push(o),o=[]}let s=0,u,a="",c="";function d(){!a||(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=u}for(;s{l(b)}:eg}function l(c){if(t7(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(l),c.alias.forEach(l))}}function s(){return n}function u(c){let d=0;for(;d=0&&(c.record.path!==n[d].record.path||!r7(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!x8(c)&&r.set(c.record.name,c)}function a(c,d){let p,f={},g,m;if("name"in c&&c.name){if(p=r.get(c.name),!p)throw cf(1,{location:c});m=p.record.name,f=Xn(w8(d.params,p.keys.filter(b=>!b.optional).map(b=>b.name)),c.params&&w8(c.params,p.keys.map(b=>b.name))),g=p.stringify(f)}else if("path"in c)g=c.path,p=n.find(b=>b.re.test(g)),p&&(f=p.parse(g),m=p.record.name);else{if(p=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!p)throw cf(1,{location:c,currentLocation:d});m=p.record.name,f=Xn({},d.params,c.params),g=p.stringify(f)}const h=[];let v=p;for(;v;)h.unshift(v.record),v=v.parent;return{name:m,path:g,params:f,matched:h,meta:ZZe(h)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:a,removeRoute:l,getRoutes:s,getRecordMatcher:i}}function w8(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function qZe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:KZe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function KZe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function x8(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ZZe(e){return e.reduce((t,n)=>Xn(t,n.meta),{})}function O8(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function r7(e,t){return t.children.some(n=>n===e||r7(e,n))}const i7=/#/g,QZe=/&/g,XZe=/\//g,JZe=/=/g,eQe=/\?/g,o7=/\+/g,tQe=/%5B/g,nQe=/%5D/g,a7=/%5E/g,rQe=/%60/g,s7=/%7B/g,iQe=/%7C/g,l7=/%7D/g,oQe=/%20/g;function yA(e){return encodeURI(""+e).replace(iQe,"|").replace(tQe,"[").replace(nQe,"]")}function aQe(e){return yA(e).replace(s7,"{").replace(l7,"}").replace(a7,"^")}function jw(e){return yA(e).replace(o7,"%2B").replace(oQe,"+").replace(i7,"%23").replace(QZe,"%26").replace(rQe,"`").replace(s7,"{").replace(l7,"}").replace(a7,"^")}function sQe(e){return jw(e).replace(JZe,"%3D")}function lQe(e){return yA(e).replace(i7,"%23").replace(eQe,"%3F")}function cQe(e){return e==null?"":lQe(e).replace(XZe,"%2F")}function fb(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function uQe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&jw(o)):[r&&jw(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function dQe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Wa(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const c7=Symbol(""),R8=Symbol(""),_y=Symbol(""),EA=Symbol(""),Yw=Symbol("");function hm(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function pQe(e,t,n){const r=()=>{e[t].delete(n)};Li(r),fO(r),hh(()=>{e[t].add(n)}),e[t].add(n)}function YXe(e){const t=He(c7,{}).value;!t||pQe(t,"leaveGuards",e)}function lc(e,t,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,s)=>{const u=d=>{d===!1?s(cf(4,{from:n,to:t})):d instanceof Error?s(d):LZe(d)?s(cf(2,{from:t,to:d})):(o&&r.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),l())},a=e.call(r&&r.instances[i],t,n,u);let c=Promise.resolve(a);e.length<3&&(c=c.then(u)),c.catch(d=>s(d))})}function iC(e,t,n,r){const i=[];for(const o of e)for(const l in o.components){let s=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(fQe(s)){const a=(s.__vccOpts||s)[t];a&&i.push(lc(a,n,r,o,l))}else{let u=s();i.push(()=>u.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const c=SZe(a)?a.default:a;o.components[l]=c;const p=(c.__vccOpts||c)[t];return p&&lc(p,n,r,o,l)()}))}}return i}function fQe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function A8(e){const t=He(_y),n=He(EA),r=k(()=>t.resolve(We(e.to))),i=k(()=>{const{matched:u}=r.value,{length:a}=u,c=u[a-1],d=n.matched;if(!c||!d.length)return-1;const p=d.findIndex(lf.bind(null,c));if(p>-1)return p;const f=N8(u[a-2]);return a>1&&N8(c)===f&&d[d.length-1].path!==f?d.findIndex(lf.bind(null,u[a-2])):p}),o=k(()=>i.value>-1&&_Qe(n.params,r.value.params)),l=k(()=>i.value>-1&&i.value===n.matched.length-1&&JG(n.params,r.value.params));function s(u={}){return hQe(u)?t[We(e.replace)?"replace":"push"](We(e.to)).catch(eg):Promise.resolve()}return{route:r,href:k(()=>r.value.href),isActive:o,isExactActive:l,navigate:s}}const mQe=we({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:A8,setup(e,{slots:t}){const n=dn(A8(e)),{options:r}=He(_y),i=k(()=>({[D8(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[D8(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:bl("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),gQe=mQe;function hQe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _Qe(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Wa(i)||i.length!==r.length||r.some((o,l)=>o!==i[l]))return!1}return!0}function N8(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const D8=(e,t,n)=>e!=null?e:t!=null?t:n,vQe=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=He(Yw),i=k(()=>e.route||r.value),o=He(R8,0),l=k(()=>{let a=We(o);const{matched:c}=i.value;let d;for(;(d=c[a])&&!d.components;)a++;return a}),s=k(()=>i.value.matched[l.value]);Dt(R8,k(()=>l.value+1)),Dt(c7,s),Dt(Yw,i);const u=Ie();return Ve(()=>[u.value,s.value,e.name],([a,c,d],[p,f,g])=>{c&&(c.instances[d]=a,f&&f!==c&&a&&a===p&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),a&&c&&(!f||!lf(c,f)||!p)&&(c.enterCallbacks[d]||[]).forEach(m=>m(a))},{flush:"post"}),()=>{const a=i.value,c=e.name,d=s.value,p=d&&d.components[c];if(!p)return M8(n.default,{Component:p,route:a});const f=d.props[c],g=f?f===!0?a.params:typeof f=="function"?f(a):f:null,h=bl(p,Xn({},g,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[c]=null)},ref:u}));return M8(n.default,{Component:h,route:a})||h}}});function M8(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const bQe=vQe;function WXe(e){const t=WZe(e.routes,e),n=e.parseQuery||uQe,r=e.stringifyQuery||I8,i=e.history,o=hm(),l=hm(),s=hm(),u=ke(Kl);let a=Kl;Kd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=nC.bind(null,q=>""+q),d=nC.bind(null,cQe),p=nC.bind(null,fb);function f(q,ee){let se,ve;return t7(q)?(se=t.getRecordMatcher(q),ve=ee):ve=q,t.addRoute(ve,se)}function g(q){const ee=t.getRecordMatcher(q);ee&&t.removeRoute(ee)}function m(){return t.getRoutes().map(q=>q.record)}function h(q){return!!t.getRecordMatcher(q)}function v(q,ee){if(ee=Xn({},ee||u.value),typeof q=="string"){const W=rC(n,q,ee.path),J=t.resolve({path:W.path},ee),fe=i.createHref(W.fullPath);return Xn(W,J,{params:p(J.params),hash:fb(W.hash),redirectedFrom:void 0,href:fe})}let se;if("path"in q)se=Xn({},q,{path:rC(n,q.path,ee.path).path});else{const W=Xn({},q.params);for(const J in W)W[J]==null&&delete W[J];se=Xn({},q,{params:d(q.params)}),ee.params=d(ee.params)}const ve=t.resolve(se,ee),pe=q.hash||"";ve.params=c(p(ve.params));const xe=CZe(r,Xn({},q,{hash:aQe(pe),path:ve.path})),ge=i.createHref(xe);return Xn({fullPath:xe,hash:pe,query:r===I8?dQe(q.query):q.query||{}},ve,{redirectedFrom:void 0,href:ge})}function b(q){return typeof q=="string"?rC(n,q,u.value.path):Xn({},q)}function S(q,ee){if(a!==q)return cf(8,{from:ee,to:q})}function y(q){return T(q)}function C(q){return y(Xn(b(q),{replace:!0}))}function w(q){const ee=q.matched[q.matched.length-1];if(ee&&ee.redirect){const{redirect:se}=ee;let ve=typeof se=="function"?se(q):se;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=b(ve):{path:ve},ve.params={}),Xn({query:q.query,hash:q.hash,params:"path"in ve?{}:q.params},ve)}}function T(q,ee){const se=a=v(q),ve=u.value,pe=q.state,xe=q.force,ge=q.replace===!0,W=w(se);if(W)return T(Xn(b(W),{state:typeof W=="object"?Xn({},pe,W.state):pe,force:xe,replace:ge}),ee||se);const J=se;J.redirectedFrom=ee;let fe;return!xe&&TZe(r,ve,se)&&(fe=cf(16,{to:J,from:ve}),G(ve,ve,!0,!1)),(fe?Promise.resolve(fe):R(J,ve)).catch(_e=>Ys(_e)?Ys(_e,2)?_e:j(_e):H(_e,J,ve)).then(_e=>{if(_e){if(Ys(_e,2))return T(Xn({replace:ge},b(_e.to),{state:typeof _e.to=="object"?Xn({},pe,_e.to.state):pe,force:xe}),ee||J)}else _e=D(J,ve,!0,ge,pe);return N(J,ve,_e),_e})}function O(q,ee){const se=S(q,ee);return se?Promise.reject(se):Promise.resolve()}function R(q,ee){let se;const[ve,pe,xe]=SQe(q,ee);se=iC(ve.reverse(),"beforeRouteLeave",q,ee);for(const W of ve)W.leaveGuards.forEach(J=>{se.push(lc(J,q,ee))});const ge=O.bind(null,q,ee);return se.push(ge),Hd(se).then(()=>{se=[];for(const W of o.list())se.push(lc(W,q,ee));return se.push(ge),Hd(se)}).then(()=>{se=iC(pe,"beforeRouteUpdate",q,ee);for(const W of pe)W.updateGuards.forEach(J=>{se.push(lc(J,q,ee))});return se.push(ge),Hd(se)}).then(()=>{se=[];for(const W of q.matched)if(W.beforeEnter&&!ee.matched.includes(W))if(Wa(W.beforeEnter))for(const J of W.beforeEnter)se.push(lc(J,q,ee));else se.push(lc(W.beforeEnter,q,ee));return se.push(ge),Hd(se)}).then(()=>(q.matched.forEach(W=>W.enterCallbacks={}),se=iC(xe,"beforeRouteEnter",q,ee),se.push(ge),Hd(se))).then(()=>{se=[];for(const W of l.list())se.push(lc(W,q,ee));return se.push(ge),Hd(se)}).catch(W=>Ys(W,8)?W:Promise.reject(W))}function N(q,ee,se){for(const ve of s.list())ve(q,ee,se)}function D(q,ee,se,ve,pe){const xe=S(q,ee);if(xe)return xe;const ge=ee===Kl,W=Kd?history.state:{};se&&(ve||ge?i.replace(q.fullPath,Xn({scroll:ge&&W&&W.scroll},pe)):i.push(q.fullPath,pe)),u.value=q,G(q,ee,se,ge),j()}let B;function P(){B||(B=i.listen((q,ee,se)=>{if(!ae.listening)return;const ve=v(q),pe=w(ve);if(pe){T(Xn(pe,{replace:!0}),ve).catch(eg);return}a=ve;const xe=u.value;Kd&&DZe(S8(xe.fullPath,se.delta),hy()),R(ve,xe).catch(ge=>Ys(ge,12)?ge:Ys(ge,2)?(T(ge.to,ve).then(W=>{Ys(W,20)&&!se.delta&&se.type===$g.pop&&i.go(-1,!1)}).catch(eg),Promise.reject()):(se.delta&&i.go(-se.delta,!1),H(ge,ve,xe))).then(ge=>{ge=ge||D(ve,xe,!1),ge&&(se.delta&&!Ys(ge,8)?i.go(-se.delta,!1):se.type===$g.pop&&Ys(ge,20)&&i.go(-1,!1)),N(ve,xe,ge)}).catch(eg)}))}let $=hm(),M=hm(),L;function H(q,ee,se){j(q);const ve=M.list();return ve.length?ve.forEach(pe=>pe(q,ee,se)):console.error(q),Promise.reject(q)}function U(){return L&&u.value!==Kl?Promise.resolve():new Promise((q,ee)=>{$.add([q,ee])})}function j(q){return L||(L=!q,P(),$.list().forEach(([ee,se])=>q?se(q):ee()),$.reset()),q}function G(q,ee,se,ve){const{scrollBehavior:pe}=e;if(!Kd||!pe)return Promise.resolve();const xe=!se&&MZe(S8(q.fullPath,0))||(ve||!se)&&history.state&&history.state.scroll||null;return sn().then(()=>pe(q,ee,xe)).then(ge=>ge&&NZe(ge)).catch(ge=>H(ge,q,ee))}const K=q=>i.go(q);let Q;const ne=new Set,ae={currentRoute:u,listening:!0,addRoute:f,removeRoute:g,hasRoute:h,getRoutes:m,resolve:v,options:e,push:y,replace:C,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:o.add,beforeResolve:l.add,afterEach:s.add,onError:M.add,isReady:U,install(q){const ee=this;q.component("RouterLink",gQe),q.component("RouterView",bQe),q.config.globalProperties.$router=ee,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>We(u)}),Kd&&!Q&&u.value===Kl&&(Q=!0,y(i.location).catch(pe=>{}));const se={};for(const pe in Kl)se[pe]=k(()=>u.value[pe]);q.provide(_y,ee),q.provide(EA,dn(se)),q.provide(Yw,u);const ve=q.unmount;ne.add(q),q.unmount=function(){ne.delete(q),ne.size<1&&(a=Kl,B&&B(),B=null,u.value=Kl,Q=!1,L=!1),ve()}}};return ae}function Hd(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function SQe(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let l=0;llf(a,s))?r.push(s):n.push(s));const u=e.matched[l];u&&(t.matched.find(a=>lf(a,u))||i.push(u))}return[n,r,i]}function qXe(){return He(_y)}function KXe(){return He(EA)}class ZXe{constructor(t,n,r=localStorage){wn(this,"key");this.validator=t,this.sufix=n,this.storage=r,this.key=`abstra:${this.sufix}`}get(){const t=this.storage.getItem(this.key);if(t==null)return null;try{return this.validator.parse(JSON.parse(t))}catch{return null}}set(t){try{this.validator.parse(t),this.storage.setItem(this.key,JSON.stringify(t))}catch{}}remove(){this.storage.removeItem(this.key)}pop(){const t=this.get();return this.remove(),t}}function Ww(e){this.message=e}Ww.prototype=new Error,Ww.prototype.name="InvalidCharacterError";var P8=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Ww("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,l="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?l+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return l};function yQe(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(P8(n).replace(/(.)/g,function(r,i){var o=i.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(t)}catch{return P8(t)}}function mb(e){this.message=e}function QXe(e,t){if(typeof e!="string")throw new mb("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(yQe(e.split(".")[n]))}catch(r){throw new mb("Invalid token specified: "+r.message)}}mb.prototype=new Error,mb.prototype.name="InvalidTokenError";var Un;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const l of i)o[l]=l;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),l={};for(const s of o)l[s]=i[s];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&o.push(l);return o},e.find=(i,o)=>{for(const l of i)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(Un||(Un={}));var qw;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(qw||(qw={}));const mt=Un.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),pc=e=>{switch(typeof e){case"undefined":return mt.undefined;case"string":return mt.string;case"number":return isNaN(e)?mt.nan:mt.number;case"boolean":return mt.boolean;case"function":return mt.function;case"bigint":return mt.bigint;case"symbol":return mt.symbol;case"object":return Array.isArray(e)?mt.array:e===null?mt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?mt.promise:typeof Map<"u"&&e instanceof Map?mt.map:typeof Set<"u"&&e instanceof Set?mt.set:typeof Date<"u"&&e instanceof Date?mt.date:mt.object;default:return mt.unknown}},at=Un.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),EQe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ha extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let s=r,u=0;for(;un.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ha.create=e=>new Ha(e);const Lg=(e,t)=>{let n;switch(e.code){case at.invalid_type:e.received===mt.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case at.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Un.jsonStringifyReplacer)}`;break;case at.unrecognized_keys:n=`Unrecognized key(s) in object: ${Un.joinValues(e.keys,", ")}`;break;case at.invalid_union:n="Invalid input";break;case at.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Un.joinValues(e.options)}`;break;case at.invalid_enum_value:n=`Invalid enum value. Expected ${Un.joinValues(e.options)}, received '${e.received}'`;break;case at.invalid_arguments:n="Invalid function arguments";break;case at.invalid_return_type:n="Invalid function return type";break;case at.invalid_date:n="Invalid date";break;case at.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Un.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case at.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case at.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case at.custom:n="Invalid input";break;case at.invalid_intersection_types:n="Intersection results could not be merged";break;case at.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case at.not_finite:n="Number must be finite";break;default:n=t.defaultError,Un.assertNever(e)}return{message:n}};let u7=Lg;function CQe(e){u7=e}function gb(){return u7}const hb=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],l={...i,path:o};let s="";const u=r.filter(a=>!!a).slice().reverse();for(const a of u)s=a(l,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}},TQe=[];function ht(e,t){const n=hb({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,gb(),Lg].filter(r=>!!r)});e.common.issues.push(n)}class $i{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return on;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return $i.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:l}=i;if(o.status==="aborted"||l.status==="aborted")return on;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const on=Object.freeze({status:"aborted"}),d7=e=>({status:"dirty",value:e}),Zi=e=>({status:"valid",value:e}),Kw=e=>e.status==="aborted",Zw=e=>e.status==="dirty",Fg=e=>e.status==="valid",_b=e=>typeof Promise<"u"&&e instanceof Promise;var Rt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Rt||(Rt={}));class ys{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const k8=(e,t)=>{if(Fg(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ha(e.common.issues);return this._error=n,this._error}}};function cn(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,s)=>l.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r!=null?r:s.defaultError}:{message:n!=null?n:s.defaultError},description:i}}class mn{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return pc(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:pc(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new $i,ctx:{common:t.parent.common,data:t.data,parsedType:pc(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(_b(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:pc(t)},o=this._parseSync({data:t,path:i.path,parent:i});return k8(i,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:pc(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(_b(i)?i:Promise.resolve(i));return k8(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const l=t(i),s=()=>o.addIssue({code:at.custom,...r(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(u=>u?!0:(s(),!1)):l?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new qa({schema:this,typeName:Lt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return _l.create(this,this._def)}nullable(){return Ju.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Va.create(this,this._def)}promise(){return df.create(this,this._def)}or(t){return Vg.create([this,t],this._def)}and(t){return zg.create(this,t,this._def)}transform(t){return new qa({...cn(this._def),schema:this,typeName:Lt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new qg({...cn(this._def),innerType:this,defaultValue:n,typeName:Lt.ZodDefault})}brand(){return new f7({typeName:Lt.ZodBranded,type:this,...cn(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new yb({...cn(this._def),innerType:this,catchValue:n,typeName:Lt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Hh.create(this,t)}readonly(){return Cb.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const wQe=/^c[^\s-]{8,}$/i,xQe=/^[a-z][a-z0-9]*$/,OQe=/^[0-9A-HJKMNP-TV-Z]{26}$/,IQe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,RQe=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,AQe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let oC;const NQe=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,DQe=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,MQe=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function PQe(e,t){return!!((t==="v4"||!t)&&NQe.test(e)||(t==="v6"||!t)&&DQe.test(e))}class $a extends mn{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==mt.string){const o=this._getOrReturnCtx(t);return ht(o,{code:at.invalid_type,expected:mt.string,received:o.parsedType}),on}const r=new $i;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.lengtho.value&&(i=this._getOrReturnCtx(t,i),ht(i,{code:at.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const l=t.data.length>o.value,s=t.data.lengtht.test(i),{validation:n,code:at.invalid_string,...Rt.errToObj(r)})}_addCheck(t){return new $a({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Rt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Rt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Rt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Rt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Rt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Rt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Rt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Rt.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...Rt.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Rt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Rt.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Rt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Rt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Rt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Rt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Rt.errToObj(n)})}nonempty(t){return this.min(1,Rt.errToObj(t))}trim(){return new $a({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $a({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $a({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new $a({checks:[],typeName:Lt.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...cn(e)})};function kQe(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),l=parseInt(t.toFixed(i).replace(".",""));return o%l/Math.pow(10,i)}class Mc extends mn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==mt.number){const o=this._getOrReturnCtx(t);return ht(o,{code:at.invalid_type,expected:mt.number,received:o.parsedType}),on}let r;const i=new $i;for(const o of this._def.checks)o.kind==="int"?Un.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:at.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.datao.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:at.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?kQe(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ht(r,{code:at.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:at.not_finite,message:o.message}),i.dirty()):Un.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Rt.toString(n))}setLimit(t,n,r,i){return new Mc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Rt.toString(i)}]})}_addCheck(t){return new Mc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Rt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Rt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Rt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Rt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Rt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Un.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Mc({checks:[],typeName:Lt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...cn(e)});class Pc extends mn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==mt.bigint){const o=this._getOrReturnCtx(t);return ht(o,{code:at.invalid_type,expected:mt.bigint,received:o.parsedType}),on}let r;const i=new $i;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.datao.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:at.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:at.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):Un.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Rt.toString(n))}setLimit(t,n,r,i){return new Pc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Rt.toString(i)}]})}_addCheck(t){return new Pc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Rt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Pc({checks:[],typeName:Lt.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...cn(e)})};class Bg extends mn{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==mt.boolean){const r=this._getOrReturnCtx(t);return ht(r,{code:at.invalid_type,expected:mt.boolean,received:r.parsedType}),on}return Zi(t.data)}}Bg.create=e=>new Bg({typeName:Lt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...cn(e)});class Qu extends mn{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==mt.date){const o=this._getOrReturnCtx(t);return ht(o,{code:at.invalid_type,expected:mt.date,received:o.parsedType}),on}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ht(o,{code:at.invalid_date}),on}const r=new $i;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()o.value&&(i=this._getOrReturnCtx(t,i),ht(i,{code:at.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Un.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Qu({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Rt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Rt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Qu({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Lt.ZodDate,...cn(e)});class vb extends mn{_parse(t){if(this._getType(t)!==mt.symbol){const r=this._getOrReturnCtx(t);return ht(r,{code:at.invalid_type,expected:mt.symbol,received:r.parsedType}),on}return Zi(t.data)}}vb.create=e=>new vb({typeName:Lt.ZodSymbol,...cn(e)});class Ug extends mn{_parse(t){if(this._getType(t)!==mt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:at.invalid_type,expected:mt.undefined,received:r.parsedType}),on}return Zi(t.data)}}Ug.create=e=>new Ug({typeName:Lt.ZodUndefined,...cn(e)});class Hg extends mn{_parse(t){if(this._getType(t)!==mt.null){const r=this._getOrReturnCtx(t);return ht(r,{code:at.invalid_type,expected:mt.null,received:r.parsedType}),on}return Zi(t.data)}}Hg.create=e=>new Hg({typeName:Lt.ZodNull,...cn(e)});class uf extends mn{constructor(){super(...arguments),this._any=!0}_parse(t){return Zi(t.data)}}uf.create=e=>new uf({typeName:Lt.ZodAny,...cn(e)});class ku extends mn{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Zi(t.data)}}ku.create=e=>new ku({typeName:Lt.ZodUnknown,...cn(e)});class xl extends mn{_parse(t){const n=this._getOrReturnCtx(t);return ht(n,{code:at.invalid_type,expected:mt.never,received:n.parsedType}),on}}xl.create=e=>new xl({typeName:Lt.ZodNever,...cn(e)});class bb extends mn{_parse(t){if(this._getType(t)!==mt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:at.invalid_type,expected:mt.void,received:r.parsedType}),on}return Zi(t.data)}}bb.create=e=>new bb({typeName:Lt.ZodVoid,...cn(e)});class Va extends mn{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==mt.array)return ht(n,{code:at.invalid_type,expected:mt.array,received:n.parsedType}),on;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,s=n.data.lengthi.maxLength.value&&(ht(n,{code:at.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,s)=>i.type._parseAsync(new ys(n,l,n.path,s)))).then(l=>$i.mergeArray(r,l));const o=[...n.data].map((l,s)=>i.type._parseSync(new ys(n,l,n.path,s)));return $i.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Va({...this._def,minLength:{value:t,message:Rt.toString(n)}})}max(t,n){return new Va({...this._def,maxLength:{value:t,message:Rt.toString(n)}})}length(t,n){return new Va({...this._def,exactLength:{value:t,message:Rt.toString(n)}})}nonempty(t){return this.min(1,t)}}Va.create=(e,t)=>new Va({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Lt.ZodArray,...cn(t)});function Zd(e){if(e instanceof Ar){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=_l.create(Zd(r))}return new Ar({...e._def,shape:()=>t})}else return e instanceof Va?new Va({...e._def,type:Zd(e.element)}):e instanceof _l?_l.create(Zd(e.unwrap())):e instanceof Ju?Ju.create(Zd(e.unwrap())):e instanceof Es?Es.create(e.items.map(t=>Zd(t))):e}class Ar extends mn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Un.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==mt.object){const a=this._getOrReturnCtx(t);return ht(a,{code:at.invalid_type,expected:mt.object,received:a.parsedType}),on}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),s=[];if(!(this._def.catchall instanceof xl&&this._def.unknownKeys==="strip"))for(const a in i.data)l.includes(a)||s.push(a);const u=[];for(const a of l){const c=o[a],d=i.data[a];u.push({key:{status:"valid",value:a},value:c._parse(new ys(i,d,i.path,a)),alwaysSet:a in i.data})}if(this._def.catchall instanceof xl){const a=this._def.unknownKeys;if(a==="passthrough")for(const c of s)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(a==="strict")s.length>0&&(ht(i,{code:at.unrecognized_keys,keys:s}),r.dirty());else if(a!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const a=this._def.catchall;for(const c of s){const d=i.data[c];u.push({key:{status:"valid",value:c},value:a._parse(new ys(i,d,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const a=[];for(const c of u){const d=await c.key;a.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return a}).then(a=>$i.mergeObjectSync(r,a)):$i.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return Rt.errToObj,new Ar({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,l,s;const u=(l=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=Rt.errToObj(t).message)!==null&&s!==void 0?s:u}:{message:u}}}:{}})}strip(){return new Ar({...this._def,unknownKeys:"strip"})}passthrough(){return new Ar({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ar({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ar({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Lt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ar({...this._def,catchall:t})}pick(t){const n={};return Un.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ar({...this._def,shape:()=>n})}omit(t){const n={};return Un.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ar({...this._def,shape:()=>n})}deepPartial(){return Zd(this)}partial(t){const n={};return Un.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Ar({...this._def,shape:()=>n})}required(t){const n={};return Un.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof _l;)o=o._def.innerType;n[r]=o}}),new Ar({...this._def,shape:()=>n})}keyof(){return p7(Un.objectKeys(this.shape))}}Ar.create=(e,t)=>new Ar({shape:()=>e,unknownKeys:"strip",catchall:xl.create(),typeName:Lt.ZodObject,...cn(t)});Ar.strictCreate=(e,t)=>new Ar({shape:()=>e,unknownKeys:"strict",catchall:xl.create(),typeName:Lt.ZodObject,...cn(t)});Ar.lazycreate=(e,t)=>new Ar({shape:e,unknownKeys:"strip",catchall:xl.create(),typeName:Lt.ZodObject,...cn(t)});class Vg extends mn{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const l=o.map(s=>new Ha(s.ctx.common.issues));return ht(n,{code:at.invalid_union,unionErrors:l}),on}if(n.common.async)return Promise.all(r.map(async o=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let o;const l=[];for(const u of r){const a={...n,common:{...n.common,issues:[]},parent:null},c=u._parseSync({data:n.data,path:n.path,parent:a});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:a}),a.common.issues.length&&l.push(a.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=l.map(u=>new Ha(u));return ht(n,{code:at.invalid_union,unionErrors:s}),on}}get options(){return this._def.options}}Vg.create=(e,t)=>new Vg({options:e,typeName:Lt.ZodUnion,...cn(t)});const fv=e=>e instanceof jg?fv(e.schema):e instanceof qa?fv(e.innerType()):e instanceof Yg?[e.value]:e instanceof kc?e.options:e instanceof Wg?Object.keys(e.enum):e instanceof qg?fv(e._def.innerType):e instanceof Ug?[void 0]:e instanceof Hg?[null]:null;class vy extends mn{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.object)return ht(n,{code:at.invalid_type,expected:mt.object,received:n.parsedType}),on;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ht(n,{code:at.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),on)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const l=fv(o.shape[t]);if(!l)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of l){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,o)}}return new vy({typeName:Lt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...cn(r)})}}function Qw(e,t){const n=pc(e),r=pc(t);if(e===t)return{valid:!0,data:e};if(n===mt.object&&r===mt.object){const i=Un.objectKeys(t),o=Un.objectKeys(e).filter(s=>i.indexOf(s)!==-1),l={...e,...t};for(const s of o){const u=Qw(e[s],t[s]);if(!u.valid)return{valid:!1};l[s]=u.data}return{valid:!0,data:l}}else if(n===mt.array&&r===mt.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o{if(Kw(o)||Kw(l))return on;const s=Qw(o.value,l.value);return s.valid?((Zw(o)||Zw(l))&&n.dirty(),{status:n.value,value:s.data}):(ht(r,{code:at.invalid_intersection_types}),on)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,l])=>i(o,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}zg.create=(e,t,n)=>new zg({left:e,right:t,typeName:Lt.ZodIntersection,...cn(n)});class Es extends mn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.array)return ht(r,{code:at.invalid_type,expected:mt.array,received:r.parsedType}),on;if(r.data.lengththis._def.items.length&&(ht(r,{code:at.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((l,s)=>{const u=this._def.items[s]||this._def.rest;return u?u._parse(new ys(r,l,r.path,s)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>$i.mergeArray(n,l)):$i.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Es({...this._def,rest:t})}}Es.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Es({items:e,typeName:Lt.ZodTuple,rest:null,...cn(t)})};class Gg extends mn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.object)return ht(r,{code:at.invalid_type,expected:mt.object,received:r.parsedType}),on;const i=[],o=this._def.keyType,l=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new ys(r,s,r.path,s)),value:l._parse(new ys(r,r.data[s],r.path,s))});return r.common.async?$i.mergeObjectAsync(n,i):$i.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof mn?new Gg({keyType:t,valueType:n,typeName:Lt.ZodRecord,...cn(r)}):new Gg({keyType:$a.create(),valueType:t,typeName:Lt.ZodRecord,...cn(n)})}}class Sb extends mn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.map)return ht(r,{code:at.invalid_type,expected:mt.map,received:r.parsedType}),on;const i=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([s,u],a)=>({key:i._parse(new ys(r,s,r.path,[a,"key"])),value:o._parse(new ys(r,u,r.path,[a,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const u of l){const a=await u.key,c=await u.value;if(a.status==="aborted"||c.status==="aborted")return on;(a.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(a.value,c.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const u of l){const a=u.key,c=u.value;if(a.status==="aborted"||c.status==="aborted")return on;(a.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(a.value,c.value)}return{status:n.value,value:s}}}}Sb.create=(e,t,n)=>new Sb({valueType:t,keyType:e,typeName:Lt.ZodMap,...cn(n)});class Xu extends mn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==mt.set)return ht(r,{code:at.invalid_type,expected:mt.set,received:r.parsedType}),on;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(ht(r,{code:at.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function l(u){const a=new Set;for(const c of u){if(c.status==="aborted")return on;c.status==="dirty"&&n.dirty(),a.add(c.value)}return{status:n.value,value:a}}const s=[...r.data.values()].map((u,a)=>o._parse(new ys(r,u,r.path,a)));return r.common.async?Promise.all(s).then(u=>l(u)):l(s)}min(t,n){return new Xu({...this._def,minSize:{value:t,message:Rt.toString(n)}})}max(t,n){return new Xu({...this._def,maxSize:{value:t,message:Rt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Xu.create=(e,t)=>new Xu({valueType:e,minSize:null,maxSize:null,typeName:Lt.ZodSet,...cn(t)});class xp extends mn{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.function)return ht(n,{code:at.invalid_type,expected:mt.function,received:n.parsedType}),on;function r(s,u){return hb({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,gb(),Lg].filter(a=>!!a),issueData:{code:at.invalid_arguments,argumentsError:u}})}function i(s,u){return hb({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,gb(),Lg].filter(a=>!!a),issueData:{code:at.invalid_return_type,returnTypeError:u}})}const o={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof df){const s=this;return Zi(async function(...u){const a=new Ha([]),c=await s._def.args.parseAsync(u,o).catch(f=>{throw a.addIssue(r(u,f)),a}),d=await Reflect.apply(l,this,c);return await s._def.returns._def.type.parseAsync(d,o).catch(f=>{throw a.addIssue(i(d,f)),a})})}else{const s=this;return Zi(function(...u){const a=s._def.args.safeParse(u,o);if(!a.success)throw new Ha([r(u,a.error)]);const c=Reflect.apply(l,this,a.data),d=s._def.returns.safeParse(c,o);if(!d.success)throw new Ha([i(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new xp({...this._def,args:Es.create(t).rest(ku.create())})}returns(t){return new xp({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new xp({args:t||Es.create([]).rest(ku.create()),returns:n||ku.create(),typeName:Lt.ZodFunction,...cn(r)})}}class jg extends mn{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}jg.create=(e,t)=>new jg({getter:e,typeName:Lt.ZodLazy,...cn(t)});class Yg extends mn{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ht(n,{received:n.data,code:at.invalid_literal,expected:this._def.value}),on}return{status:"valid",value:t.data}}get value(){return this._def.value}}Yg.create=(e,t)=>new Yg({value:e,typeName:Lt.ZodLiteral,...cn(t)});function p7(e,t){return new kc({values:e,typeName:Lt.ZodEnum,...cn(t)})}class kc extends mn{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ht(n,{expected:Un.joinValues(r),received:n.parsedType,code:at.invalid_type}),on}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return ht(n,{received:n.data,code:at.invalid_enum_value,options:r}),on}return Zi(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return kc.create(t)}exclude(t){return kc.create(this.options.filter(n=>!t.includes(n)))}}kc.create=p7;class Wg extends mn{_parse(t){const n=Un.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==mt.string&&r.parsedType!==mt.number){const i=Un.objectValues(n);return ht(r,{expected:Un.joinValues(i),received:r.parsedType,code:at.invalid_type}),on}if(n.indexOf(t.data)===-1){const i=Un.objectValues(n);return ht(r,{received:r.data,code:at.invalid_enum_value,options:i}),on}return Zi(t.data)}get enum(){return this._def.values}}Wg.create=(e,t)=>new Wg({values:e,typeName:Lt.ZodNativeEnum,...cn(t)});class df extends mn{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==mt.promise&&n.common.async===!1)return ht(n,{code:at.invalid_type,expected:mt.promise,received:n.parsedType}),on;const r=n.parsedType===mt.promise?n.data:Promise.resolve(n.data);return Zi(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}df.create=(e,t)=>new df({type:e,typeName:Lt.ZodPromise,...cn(t)});class qa extends mn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Lt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:l=>{ht(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const l=i.transform(r.data,o);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(l).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:l,path:r.path,parent:r})}if(i.type==="refinement"){const l=s=>{const u=i.refinement(s,o);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?on:(s.status==="dirty"&&n.dirty(),l(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?on:(s.status==="dirty"&&n.dirty(),l(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Fg(l))return l;const s=i.transform(l.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Fg(l)?Promise.resolve(i.transform(l.value,o)).then(s=>({status:n.value,value:s})):l);Un.assertNever(i)}}qa.create=(e,t,n)=>new qa({schema:e,typeName:Lt.ZodEffects,effect:t,...cn(n)});qa.createWithPreprocess=(e,t,n)=>new qa({schema:t,effect:{type:"preprocess",transform:e},typeName:Lt.ZodEffects,...cn(n)});class _l extends mn{_parse(t){return this._getType(t)===mt.undefined?Zi(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_l.create=(e,t)=>new _l({innerType:e,typeName:Lt.ZodOptional,...cn(t)});class Ju extends mn{_parse(t){return this._getType(t)===mt.null?Zi(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ju.create=(e,t)=>new Ju({innerType:e,typeName:Lt.ZodNullable,...cn(t)});class qg extends mn{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===mt.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}qg.create=(e,t)=>new qg({innerType:e,typeName:Lt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...cn(t)});class yb extends mn{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return _b(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ha(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ha(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}yb.create=(e,t)=>new yb({innerType:e,typeName:Lt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...cn(t)});class Eb extends mn{_parse(t){if(this._getType(t)!==mt.nan){const r=this._getOrReturnCtx(t);return ht(r,{code:at.invalid_type,expected:mt.nan,received:r.parsedType}),on}return{status:"valid",value:t.data}}}Eb.create=e=>new Eb({typeName:Lt.ZodNaN,...cn(e)});const $Qe=Symbol("zod_brand");class f7 extends mn{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Hh extends mn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?on:o.status==="dirty"?(n.dirty(),d7(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?on:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Hh({in:t,out:n,typeName:Lt.ZodPipeline})}}class Cb extends mn{_parse(t){const n=this._def.innerType._parse(t);return Fg(n)&&(n.value=Object.freeze(n.value)),n}}Cb.create=(e,t)=>new Cb({innerType:e,typeName:Lt.ZodReadonly,...cn(t)});const m7=(e,t={},n)=>e?uf.create().superRefine((r,i)=>{var o,l;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,u=(l=(o=s.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0,a=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...a,fatal:u})}}):uf.create(),LQe={object:Ar.lazycreate};var Lt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Lt||(Lt={}));const FQe=(e,t={message:`Input not instance of ${e.name}`})=>m7(n=>n instanceof e,t),g7=$a.create,h7=Mc.create,BQe=Eb.create,UQe=Pc.create,_7=Bg.create,HQe=Qu.create,VQe=vb.create,zQe=Ug.create,GQe=Hg.create,jQe=uf.create,YQe=ku.create,WQe=xl.create,qQe=bb.create,KQe=Va.create,ZQe=Ar.create,QQe=Ar.strictCreate,XQe=Vg.create,JQe=vy.create,eXe=zg.create,tXe=Es.create,nXe=Gg.create,rXe=Sb.create,iXe=Xu.create,oXe=xp.create,aXe=jg.create,sXe=Yg.create,lXe=kc.create,cXe=Wg.create,uXe=df.create,$8=qa.create,dXe=_l.create,pXe=Ju.create,fXe=qa.createWithPreprocess,mXe=Hh.create,gXe=()=>g7().optional(),hXe=()=>h7().optional(),_Xe=()=>_7().optional(),vXe={string:e=>$a.create({...e,coerce:!0}),number:e=>Mc.create({...e,coerce:!0}),boolean:e=>Bg.create({...e,coerce:!0}),bigint:e=>Pc.create({...e,coerce:!0}),date:e=>Qu.create({...e,coerce:!0})},bXe=on;var XXe=Object.freeze({__proto__:null,defaultErrorMap:Lg,setErrorMap:CQe,getErrorMap:gb,makeIssue:hb,EMPTY_PATH:TQe,addIssueToContext:ht,ParseStatus:$i,INVALID:on,DIRTY:d7,OK:Zi,isAborted:Kw,isDirty:Zw,isValid:Fg,isAsync:_b,get util(){return Un},get objectUtil(){return qw},ZodParsedType:mt,getParsedType:pc,ZodType:mn,ZodString:$a,ZodNumber:Mc,ZodBigInt:Pc,ZodBoolean:Bg,ZodDate:Qu,ZodSymbol:vb,ZodUndefined:Ug,ZodNull:Hg,ZodAny:uf,ZodUnknown:ku,ZodNever:xl,ZodVoid:bb,ZodArray:Va,ZodObject:Ar,ZodUnion:Vg,ZodDiscriminatedUnion:vy,ZodIntersection:zg,ZodTuple:Es,ZodRecord:Gg,ZodMap:Sb,ZodSet:Xu,ZodFunction:xp,ZodLazy:jg,ZodLiteral:Yg,ZodEnum:kc,ZodNativeEnum:Wg,ZodPromise:df,ZodEffects:qa,ZodTransformer:qa,ZodOptional:_l,ZodNullable:Ju,ZodDefault:qg,ZodCatch:yb,ZodNaN:Eb,BRAND:$Qe,ZodBranded:f7,ZodPipeline:Hh,ZodReadonly:Cb,custom:m7,Schema:mn,ZodSchema:mn,late:LQe,get ZodFirstPartyTypeKind(){return Lt},coerce:vXe,any:jQe,array:KQe,bigint:UQe,boolean:_7,date:HQe,discriminatedUnion:JQe,effect:$8,enum:lXe,function:oXe,instanceof:FQe,intersection:eXe,lazy:aXe,literal:sXe,map:rXe,nan:BQe,nativeEnum:cXe,never:WQe,null:GQe,nullable:pXe,number:h7,object:ZQe,oboolean:_Xe,onumber:hXe,optional:dXe,ostring:gXe,pipeline:mXe,preprocess:fXe,promise:uXe,record:nXe,set:iXe,strictObject:QQe,string:g7,symbol:VQe,transformer:$8,tuple:tXe,undefined:zQe,union:XQe,unknown:YQe,void:qQe,NEVER:bXe,ZodIssueCode:at,quotelessJson:EQe,ZodError:Ha});export{Ct as $,nz as A,Ide as B,HXe as C,He as D,dn as E,Wr as F,Iu as G,Ut as H,Xx as I,LF as J,sn as K,mp as L,VXe as M,ZXe as N,XXe as O,UXe as P,QXe as Q,ke as R,ft as S,HE as T,I as U,ga as V,Dt as W,_t as X,de as Y,Mi as Z,my as _,Ce as a,Bo as a$,Fn as a0,Cn as a1,Nc as a2,X9 as a3,wge as a4,hge as a5,mge as a6,Tge as a7,t5 as a8,xf as a9,ki as aA,ef as aB,II as aC,li as aD,QP as aE,yr as aF,Jn as aG,Th as aH,m9 as aI,BU as aJ,_9 as aK,It as aL,Bt as aM,nt as aN,qe as aO,jU as aP,qt as aQ,ci as aR,tt as aS,VU as aT,Yt as aU,US as aV,Ua as aW,ti as aX,Rf as aY,xi as aZ,Sr as a_,Ot as aa,xr as ab,Si as ac,Ln as ad,Wt as ae,ba as af,go as ag,Li as ah,At as ai,Fe as aj,kn as ak,Z as al,id as am,Er as an,El as ao,Pn as ap,er as aq,Jt as ar,wr as as,wt as at,qn as au,Ae as av,Yge as aw,Wge as ax,Gge as ay,Fr as az,x as b,Cp as b$,Uc as b0,ua as b1,fo as b2,hh as b3,fO as b4,$be as b5,Gfe as b6,rn as b7,rt as b8,Ph as b9,wh as bA,xt as bB,xh as bC,Pxe as bD,Efe as bE,IXe as bF,HIe as bG,ld as bH,Sa as bI,cd as bJ,_I as bK,Xr as bL,HL as bM,QLe as bN,bs as bO,RO as bP,xMe as bQ,Tc as bR,g9 as bS,br as bT,Vp as bU,kbe as bV,rI as bW,aU as bX,y$e as bY,Sh as bZ,mR as b_,YS as ba,XS as bb,rf as bc,TIe as bd,wIe as be,CIe as bf,JS as bg,oV as bh,ES as bi,Ki as bj,mo as bk,Rh as bl,Ga as bm,Cc as bn,bU as bo,t$ as bp,Uk as bq,Df as br,PXe as bs,Bxe as bt,Dg as bu,lw as bv,yl as bw,tf as bx,Xm as by,fa as bz,An as c,z1 as c$,gSe as c0,hV as c1,AXe as c2,FO as c3,Hbe as c4,tU as c5,G$e as c6,AV as c7,Br as c8,WTe as c9,GT as cA,x2e as cB,W2e as cC,I2e as cD,hz as cE,GDe as cF,zDe as cG,yNe as cH,ab as cI,ob as cJ,nf as cK,Lo as cL,LNe as cM,WMe as cN,Uwe as cO,yPe as cP,ao as cQ,iw as cR,cR as cS,MXe as cT,DXe as cU,UPe as cV,NXe as cW,ZPe as cX,WLe as cY,H1 as cZ,V1 as c_,bye as ca,L$e as cb,qve as cc,nIe as cd,tIe as ce,KH as cf,XOe as cg,O$ as ch,I$ as ci,Za as cj,pi as ck,W5 as cl,vhe as cm,KU as cn,QU as co,WU as cp,pNe as cq,NNe as cr,FMe as cs,qT as ct,BIe as cu,Pg as cv,rb as cw,dc as cx,gu as cy,LAe as cz,we as d,U5 as d$,Bw as d0,Uw as d1,iLe as d2,B1 as d3,F1 as d4,t2e as d5,yw as d6,JLe as d7,j1 as d8,Ro as d9,S2e as dA,AH as dB,TXe as dC,Cfe as dD,GU as dE,pS as dF,v0 as dG,xXe as dH,b9 as dI,Aa as dJ,Yu as dK,OXe as dL,Kr as dM,AU as dN,Tye as dO,uRe as dP,fhe as dQ,fI as dR,J9 as dS,qU as dT,jS as dU,YT as dV,CXe as dW,WS as dX,Tl as dY,FS as dZ,Ih as d_,yG as da,EG as db,CG as dc,iA as dd,OG as de,V8e as df,ZAe as dg,u6e as dh,qme as di,RXe as dj,IV as dk,yRe as dl,Ah as dm,QTe as dn,owe as dp,cwe as dq,twe as dr,zp as ds,Wp as dt,wi as du,$O as dv,NMe as dw,wXe as dx,Ya as dy,va as dz,Ie as e,ir as e$,xU as e0,CI as e1,rCe as e2,CEe as e3,oH as e4,Gwe as e5,sP as e6,Dc as e7,Mn as e8,Xt as e9,SGe as eA,oa as eB,YXe as eC,JTe as eD,Ole as eE,bKe as eF,so as eG,xle as eH,GXe as eI,pYe as eJ,c8 as eK,aye as eL,xs as eM,bZe as eN,KLe as eO,ju as eP,YGe as eQ,TBe as eR,UVe as eS,Sl as eT,TO as eU,Mo as eV,bqe as eW,Eqe as eX,xqe as eY,Bfe as eZ,Hde as e_,KXe as ea,Pi as eb,Au as ec,Gt as ed,pd as ee,rwe as ef,hO as eg,Spe as eh,swe as ei,Fo as ej,TSe as ek,Sg as el,iB as em,oB as en,qXe as eo,lze as ep,gde as eq,bde as er,SB as es,Rue as et,xue as eu,vh as ev,zB as ew,tO as ex,ia as ey,pFe as ez,k as f,gQe as f0,dwe as f1,gye as f2,KTe as f3,R4e as f4,y8e as f5,Ve as g,WXe as h,jXe as i,zXe as j,s9 as k,$Xe as l,yXe as m,EXe as n,oe as o,bl as p,LXe as q,_p as r,Iqe as s,BXe as t,We as u,FXe as v,fn as w,r6 as x,Yce as y,rO as z}; -//# sourceMappingURL=index.8c3f27aa.js.map +//# sourceMappingURL=index.d0f12294.js.map diff --git a/abstra_statics/dist/assets/index.83aa16e3.js b/abstra_statics/dist/assets/index.d4b99d43.js similarity index 98% rename from abstra_statics/dist/assets/index.83aa16e3.js rename to abstra_statics/dist/assets/index.d4b99d43.js index 826383be79..18388be766 100644 --- a/abstra_statics/dist/assets/index.83aa16e3.js +++ b/abstra_statics/dist/assets/index.d4b99d43.js @@ -1,5 +1,5 @@ -import{f as b,b_ as Ne,U as k,R as ke,e as q,aL as ve,aA as Me,aF as Fe,W as je,D as We,bV as be,ck as He,g as _e,b8 as Y,b as T,d as Se,X as Be,al as Z,aq as Ae,c0 as ze,bB as de,aX as Ie,c1 as Xe,L as Ue,c4 as qe,b$ as me,ak as ye,at as Ge,av as Ce,c5 as Ye,ad as Je,c7 as Qe,ao as Ze,ba as et,af as tt,bj as nt,bk as lt,ai as at,bl as ot,bm as st,c9 as it,bv as ct,bu as rt,dy as ut,ca as dt,bn as vt,dz as Oe,cc as pt,br as ht,aj as ft}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dee19792-c38a-4b1c-a454-4a0a26739b8d",e._sentryDebugIdIdentifier="sentry-dbid-dee19792-c38a-4b1c-a454-4a0a26739b8d")}catch{}})();const we="__RC_CASCADER_SPLIT__",De="SHOW_PARENT",$e="SHOW_CHILD";function ee(e){return e.join(we)}function oe(e){return e.map(ee)}function gt(e){return e.split(we)}function mt(e){const{label:n,value:t,children:a}=e||{},l=t||"value";return{label:n||"label",value:l,key:l,children:a||"children"}}function ie(e,n){var t,a;return(t=e.isLeaf)!==null&&t!==void 0?t:!(!((a=e[n.children])===null||a===void 0)&&a.length)}function Ct(e){const n=e.parentElement;if(!n)return;const t=e.offsetTop-n.offsetTop;t-n.scrollTop<0?n.scrollTo({top:t}):t+e.offsetHeight-n.scrollTop>n.offsetHeight&&n.scrollTo({top:t+e.offsetHeight-n.offsetHeight})}const bt=(e,n)=>b(()=>Ne(e.value,{fieldNames:n.value,initWrapper:a=>k(k({},a),{pathKeyEntities:{}}),processEntity:(a,l)=>{const i=a.nodes.map(r=>r[n.value.value]).join(we);l.pathKeyEntities[i]=a,a.key=i}}).pathKeyEntities);function St(e){const n=ke(!1),t=q({});return ve(()=>{if(!e.value){n.value=!1,t.value={};return}let a={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(a=k(k({},a),e.value)),a.limit<=0&&delete a.limit,n.value=!0,t.value=a}),{showSearch:n,searchConfig:t}}const ce="__rc_cascader_search_mark__",yt=(e,n,t)=>{let{label:a}=t;return n.some(l=>String(l[a]).toLowerCase().includes(e.toLowerCase()))},wt=e=>{let{path:n,fieldNames:t}=e;return n.map(a=>a[t.label]).join(" / ")},xt=(e,n,t,a,l,i)=>b(()=>{const{filter:r=yt,render:d=wt,limit:v=50,sort:c}=l.value,o=[];if(!e.value)return[];function C(O,y){O.forEach($=>{if(!c&&v>0&&o.length>=v)return;const g=[...y,$],w=$[t.value.children];(!w||w.length===0||i.value)&&r(e.value,g,{label:t.value.label})&&o.push(k(k({},$),{[t.value.label]:d({inputValue:e.value,path:g,prefixCls:a.value,fieldNames:t.value}),[ce]:g})),w&&C($[t.value.children],g)})}return C(n.value,[]),c&&o.sort((O,y)=>c(O[ce],y[ce],e.value,t.value)),v>0?o.slice(0,v):o});function Pe(e,n,t){const a=new Set(e);return e.filter(l=>{const i=n[l],r=i?i.parent:null,d=i?i.children:null;return t===$e?!(d&&d.some(v=>v.key&&a.has(v.key))):!(r&&!r.node.disabled&&a.has(r.key))})}function re(e,n,t){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var l;let i=n;const r=[];for(let d=0;d{const O=C[t.value];return a?String(O)===String(v):O===v}),o=c!==-1?i==null?void 0:i[c]:null;r.push({value:(l=o==null?void 0:o[t.value])!==null&&l!==void 0?l:v,index:c,option:o}),i=o==null?void 0:o[t.children]}return r}const It=(e,n,t)=>b(()=>{const a=[],l=[];return t.value.forEach(i=>{re(i,e.value,n.value).every(d=>d.option)?l.push(i):a.push(i)}),[l,a]}),Ot=(e,n,t,a,l)=>b(()=>{const i=l.value||(r=>{let{labels:d}=r;const v=a.value?d.slice(-1):d,c=" / ";return v.every(o=>["string","number"].includes(typeof o))?v.join(c):v.reduce((o,C,O)=>{const y=Me(C)?Fe(C,{key:O}):C;return O===0?[y]:[...o,c,y]},[])});return e.value.map(r=>{const d=re(r,n.value,t.value),v=i({labels:d.map(o=>{let{option:C,value:O}=o;var y;return(y=C==null?void 0:C[t.value.label])!==null&&y!==void 0?y:O}),selectedOptions:d.map(o=>{let{option:C}=o;return C})}),c=ee(r);return{label:v,value:c,key:c,valueCells:r}})}),Te=Symbol("CascaderContextKey"),Pt=e=>{je(Te,e)},pe=()=>We(Te),Vt=()=>{const e=be(),{values:n}=pe(),[t,a]=He([]);return _e(()=>e.open,()=>{if(e.open&&!e.multiple){const l=n.value[0];a(l||[])}},{immediate:!0}),[t,a]},kt=(e,n,t,a,l,i)=>{const r=be(),d=b(()=>r.direction==="rtl"),[v,c,o]=[q([]),q(),q([])];ve(()=>{let g=-1,w=n.value;const p=[],x=[],D=a.value.length;for(let _=0;_E[t.value.value]===a.value[_]);if(R===-1)break;g=R,p.push(g),x.push(a.value[_]),w=w[g][t.value.children]}let P=n.value;for(let _=0;_{l(g)},O=g=>{const w=o.value.length;let p=c.value;p===-1&&g<0&&(p=w);for(let x=0;x{if(v.value.length>1){const g=v.value.slice(0,-1);C(g)}else r.toggleOpen(!1)},$=()=>{var g;const p=(((g=o.value[c.value])===null||g===void 0?void 0:g[t.value.children])||[]).find(x=>!x.disabled);if(p){const x=[...v.value,p[t.value.value]];C(x)}};e.expose({onKeydown:g=>{const{which:w}=g;switch(w){case Y.UP:case Y.DOWN:{let p=0;w===Y.UP?p=-1:w===Y.DOWN&&(p=1),p!==0&&O(p);break}case Y.LEFT:{d.value?$():y();break}case Y.RIGHT:{d.value?y():$();break}case Y.BACKSPACE:{r.searchValue||y();break}case Y.ENTER:{if(v.value.length){const p=o.value[c.value],x=(p==null?void 0:p[ce])||[];x.length?i(x.map(D=>D[t.value.value]),x[x.length-1]):i(v.value,p)}break}case Y.ESC:r.toggleOpen(!1),open&&g.stopPropagation()}},onKeyup:()=>{}})};function he(e){let{prefixCls:n,checked:t,halfChecked:a,disabled:l,onClick:i}=e;const{customSlots:r,checkable:d}=pe(),v=d.value!==!1?r.value.checkable:d.value,c=typeof v=="function"?v():typeof v=="boolean"?null:v;return T("span",{class:{[n]:!0,[`${n}-checked`]:t,[`${n}-indeterminate`]:!t&&a,[`${n}-disabled`]:l},onClick:i},[c])}he.props=["prefixCls","checked","halfChecked","disabled","onClick"];he.displayName="Checkbox";he.inheritAttrs=!1;const Ee="__cascader_fix_label__";function fe(e){let{prefixCls:n,multiple:t,options:a,activeValue:l,prevValuePath:i,onToggleOpen:r,onSelect:d,onActive:v,checkedSet:c,halfCheckedSet:o,loadingKeys:C,isSelectable:O}=e;var y,$,g,w,p,x;const D=`${n}-menu`,P=`${n}-menu-item`,{fieldNames:_,changeOnSelect:R,expandTrigger:E,expandIcon:X,loadingIcon:J,dropdownMenuColumnStyle:U,customSlots:M}=pe(),F=(y=X.value)!==null&&y!==void 0?y:(g=($=M.value).expandIcon)===null||g===void 0?void 0:g.call($),j=(w=J.value)!==null&&w!==void 0?w:(x=(p=M.value).loadingIcon)===null||x===void 0?void 0:x.call(p),te=E.value==="hover";return T("ul",{class:D,role:"menu"},[a.map(L=>{var h;const{disabled:I}=L,s=L[ce],S=(h=L[Ee])!==null&&h!==void 0?h:L[_.value.label],m=L[_.value.value],V=ie(L,_.value),N=s?s.map(u=>u[_.value.value]):[...i,m],W=ee(N),H=C.includes(W),Q=c.has(W),ne=o.has(W),le=()=>{!I&&(!te||!V)&&v(N)},B=()=>{O(L)&&d(N,V)};let G;return typeof L.title=="string"?G=L.title:typeof S=="string"&&(G=S),T("li",{key:W,class:[P,{[`${P}-expand`]:!V,[`${P}-active`]:l===m,[`${P}-disabled`]:I,[`${P}-loading`]:H}],style:U.value,role:"menuitemcheckbox",title:G,"aria-checked":Q,"data-path-key":W,onClick:()=>{le(),(!t||V)&&B()},onDblclick:()=>{R.value&&r(!1)},onMouseenter:()=>{te&&le()},onMousedown:u=>{u.preventDefault()}},[t&&T(he,{prefixCls:`${n}-checkbox`,checked:Q,halfChecked:ne,disabled:I,onClick:u=>{u.stopPropagation(),B()}},null),T("div",{class:`${P}-content`},[S]),!H&&F&&!V&&T("div",{class:`${P}-expand-icon`},[F]),H&&j&&T("div",{class:`${P}-loading-icon`},[j])])})])}fe.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];fe.displayName="Column";fe.inheritAttrs=!1;const _t=Se({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,n){const{attrs:t,slots:a}=n,l=be(),i=q(),r=b(()=>l.direction==="rtl"),{options:d,values:v,halfValues:c,fieldNames:o,changeOnSelect:C,onSelect:O,searchOptions:y,dropdownPrefixCls:$,loadData:g,expandTrigger:w,customSlots:p}=pe(),x=b(()=>$.value||l.prefixCls),D=ke([]),P=h=>{if(!g.value||l.searchValue)return;const s=re(h,d.value,o.value).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];if(S&&!ie(S,o.value)){const m=ee(h);D.value=[...D.value,m],g.value(s)}};ve(()=>{D.value.length&&D.value.forEach(h=>{const I=gt(h),s=re(I,d.value,o.value,!0).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];(!S||S[o.value.children]||ie(S,o.value))&&(D.value=D.value.filter(m=>m!==h))})});const _=b(()=>new Set(oe(v.value))),R=b(()=>new Set(oe(c.value))),[E,X]=Vt(),J=h=>{X(h),P(h)},U=h=>{const{disabled:I}=h,s=ie(h,o.value);return!I&&(s||C.value||l.multiple)},M=function(h,I){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;O(h),!l.multiple&&(I||C.value&&(w.value==="hover"||s))&&l.toggleOpen(!1)},F=b(()=>l.searchValue?y.value:d.value),j=b(()=>{const h=[{options:F.value}];let I=F.value;for(let s=0;sN[o.value.value]===S),V=m==null?void 0:m[o.value.children];if(!(V!=null&&V.length))break;I=V,h.push({options:V})}return h});kt(n,F,o,E,J,(h,I)=>{U(I)&&M(h,ie(I,o.value),!0)});const L=h=>{h.preventDefault()};return Be(()=>{_e(E,h=>{var I;for(let s=0;s{var h,I,s,S,m;const{notFoundContent:V=((h=a.notFoundContent)===null||h===void 0?void 0:h.call(a))||((s=(I=p.value).notFoundContent)===null||s===void 0?void 0:s.call(I)),multiple:N,toggleOpen:W}=l,H=!(!((m=(S=j.value[0])===null||S===void 0?void 0:S.options)===null||m===void 0)&&m.length),Q=[{[o.value.value]:"__EMPTY__",[Ee]:V,disabled:!0}],ne=k(k({},t),{multiple:!H&&N,onSelect:M,onActive:J,onToggleOpen:W,checkedSet:_.value,halfCheckedSet:R.value,loadingKeys:D.value,isSelectable:U}),B=(H?[{options:Q}]:j.value).map((G,u)=>{const f=E.value.slice(0,u),A=E.value[u];return T(fe,Z(Z({key:u},ne),{},{prefixCls:x.value,options:G.options,prevValuePath:f,activeValue:A}),null)});return T("div",{class:[`${x.value}-menus`,{[`${x.value}-menu-empty`]:H,[`${x.value}-rtl`]:r.value}],onMousedown:L,ref:i},[B])}}});function At(){return k(k({},ye(Ye(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Ge(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:De},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Ce.any,loadingIcon:Ce.any})}function Re(){return k(k({},At()),{onChange:Function,customSlots:Object})}function Dt(e){return Array.isArray(e)&&Array.isArray(e[0])}function Ve(e){return e?Dt(e)?e:(e.length===0?[]:[e]).map(n=>Array.isArray(n)?n:[n]):[]}const $t=Se({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Ae(Re(),{}),setup(e,n){let{attrs:t,expose:a,slots:l}=n;const i=ze(de(e,"id")),r=b(()=>!!e.checkable),[d,v]=Ie(e.defaultValue,{value:b(()=>e.value),postState:Ve}),c=b(()=>mt(e.fieldNames)),o=b(()=>e.options||[]),C=bt(o,c),O=u=>{const f=C.value;return u.map(A=>{const{nodes:K}=f[A];return K.map(z=>z[c.value.value])})},[y,$]=Ie("",{value:b(()=>e.searchValue),postState:u=>u||""}),g=(u,f)=>{$(u),f.source!=="blur"&&e.onSearch&&e.onSearch(u)},{showSearch:w,searchConfig:p}=St(de(e,"showSearch")),x=xt(y,o,c,b(()=>e.dropdownPrefixCls||e.prefixCls),p,de(e,"changeOnSelect")),D=It(o,c,d),[P,_,R]=[q([]),q([]),q([])],{maxLevel:E,levelEntities:X}=Xe(C);ve(()=>{const[u,f]=D.value;if(!r.value||!d.value.length){[P.value,_.value,R.value]=[u,[],f];return}const A=oe(u),K=C.value,{checkedKeys:z,halfCheckedKeys:se}=me(A,!0,K,E.value,X.value);[P.value,_.value,R.value]=[O(z),O(se),f]});const J=b(()=>{const u=oe(P.value),f=Pe(u,C.value,e.showCheckedStrategy);return[...R.value,...O(f)]}),U=Ot(J,o,c,r,de(e,"displayRender")),M=u=>{if(v(u),e.onChange){const f=Ve(u),A=f.map(se=>re(se,o.value,c.value).map(ue=>ue.option)),K=r.value?f:f[0],z=r.value?A:A[0];e.onChange(K,z)}},F=u=>{if($(""),!r.value)M(u);else{const f=ee(u),A=oe(P.value),K=oe(_.value),z=A.includes(f),se=R.value.some(ae=>ee(ae)===f);let ue=P.value,xe=R.value;if(se&&!z)xe=R.value.filter(ae=>ee(ae)!==f);else{const ae=z?A.filter(Ke=>Ke!==f):[...A,f];let ge;z?{checkedKeys:ge}=me(ae,{checked:!1,halfCheckedKeys:K},C.value,E.value,X.value):{checkedKeys:ge}=me(ae,!0,C.value,E.value,X.value);const Le=Pe(ge,C.value,e.showCheckedStrategy);ue=O(Le)}M([...xe,...ue])}},j=(u,f)=>{if(f.type==="clear"){M([]);return}const{valueCells:A}=f.values[0];F(A)},te=b(()=>e.open!==void 0?e.open:e.popupVisible),L=b(()=>e.dropdownClassName||e.popupClassName),h=b(()=>e.dropdownStyle||e.popupStyle||{}),I=b(()=>e.placement||e.popupPlacement),s=u=>{var f,A;(f=e.onDropdownVisibleChange)===null||f===void 0||f.call(e,u),(A=e.onPopupVisibleChange)===null||A===void 0||A.call(e,u)},{changeOnSelect:S,checkable:m,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Q,dropdownMenuColumnStyle:ne,customSlots:le}=Ue(e);Pt({options:o,fieldNames:c,values:P,halfValues:_,changeOnSelect:S,onSelect:F,checkable:m,searchOptions:x,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Q,dropdownMenuColumnStyle:ne,customSlots:le});const B=q();a({focus(){var u;(u=B.value)===null||u===void 0||u.focus()},blur(){var u;(u=B.value)===null||u===void 0||u.blur()},scrollTo(u){var f;(f=B.value)===null||f===void 0||f.scrollTo(u)}});const G=b(()=>ye(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const u=!(y.value?x.value:o.value).length,{dropdownMatchSelectWidth:f=!1}=e,A=y.value&&p.value.matchInputWidth||u?{}:{minWidth:"auto"};return T(qe,Z(Z(Z({},G.value),t),{},{ref:B,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:f,dropdownStyle:k(k({},h.value),A),displayValues:U.value,onDisplayValuesChange:j,mode:r.value?"multiple":void 0,searchValue:y.value,onSearch:g,showSearch:w.value,OptionList:_t,emptyOptions:u,open:te.value,dropdownClassName:L.value,placement:I.value,onDropdownVisibleChange:s,getRawInputElement:()=>{var K;return(K=l.default)===null||K===void 0?void 0:K.call(l)}}),l)}}}),Tt=e=>{const{prefixCls:n,componentCls:t,antCls:a}=e,l=`${t}-menu-item`,i=` +import{f as b,b_ as Ne,U as k,R as ke,e as q,aL as ve,aA as Me,aF as Fe,W as je,D as We,bV as be,ck as He,g as _e,b8 as Y,b as T,d as Se,X as Be,al as Z,aq as Ae,c0 as ze,bB as de,aX as Ie,c1 as Xe,L as Ue,c4 as qe,b$ as me,ak as ye,at as Ge,av as Ce,c5 as Ye,ad as Je,c7 as Qe,ao as Ze,ba as et,af as tt,bj as nt,bk as lt,ai as at,bl as ot,bm as st,c9 as it,bv as ct,bu as rt,dy as ut,ca as dt,bn as vt,dz as Oe,cc as pt,br as ht,aj as ft}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c163b136-8c99-4ca7-9aeb-09a25c50d69a",e._sentryDebugIdIdentifier="sentry-dbid-c163b136-8c99-4ca7-9aeb-09a25c50d69a")}catch{}})();const we="__RC_CASCADER_SPLIT__",De="SHOW_PARENT",$e="SHOW_CHILD";function ee(e){return e.join(we)}function oe(e){return e.map(ee)}function gt(e){return e.split(we)}function mt(e){const{label:n,value:t,children:a}=e||{},l=t||"value";return{label:n||"label",value:l,key:l,children:a||"children"}}function ie(e,n){var t,a;return(t=e.isLeaf)!==null&&t!==void 0?t:!(!((a=e[n.children])===null||a===void 0)&&a.length)}function Ct(e){const n=e.parentElement;if(!n)return;const t=e.offsetTop-n.offsetTop;t-n.scrollTop<0?n.scrollTo({top:t}):t+e.offsetHeight-n.scrollTop>n.offsetHeight&&n.scrollTo({top:t+e.offsetHeight-n.offsetHeight})}const bt=(e,n)=>b(()=>Ne(e.value,{fieldNames:n.value,initWrapper:a=>k(k({},a),{pathKeyEntities:{}}),processEntity:(a,l)=>{const i=a.nodes.map(r=>r[n.value.value]).join(we);l.pathKeyEntities[i]=a,a.key=i}}).pathKeyEntities);function St(e){const n=ke(!1),t=q({});return ve(()=>{if(!e.value){n.value=!1,t.value={};return}let a={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(a=k(k({},a),e.value)),a.limit<=0&&delete a.limit,n.value=!0,t.value=a}),{showSearch:n,searchConfig:t}}const ce="__rc_cascader_search_mark__",yt=(e,n,t)=>{let{label:a}=t;return n.some(l=>String(l[a]).toLowerCase().includes(e.toLowerCase()))},wt=e=>{let{path:n,fieldNames:t}=e;return n.map(a=>a[t.label]).join(" / ")},xt=(e,n,t,a,l,i)=>b(()=>{const{filter:r=yt,render:d=wt,limit:v=50,sort:c}=l.value,o=[];if(!e.value)return[];function C(O,y){O.forEach($=>{if(!c&&v>0&&o.length>=v)return;const g=[...y,$],w=$[t.value.children];(!w||w.length===0||i.value)&&r(e.value,g,{label:t.value.label})&&o.push(k(k({},$),{[t.value.label]:d({inputValue:e.value,path:g,prefixCls:a.value,fieldNames:t.value}),[ce]:g})),w&&C($[t.value.children],g)})}return C(n.value,[]),c&&o.sort((O,y)=>c(O[ce],y[ce],e.value,t.value)),v>0?o.slice(0,v):o});function Pe(e,n,t){const a=new Set(e);return e.filter(l=>{const i=n[l],r=i?i.parent:null,d=i?i.children:null;return t===$e?!(d&&d.some(v=>v.key&&a.has(v.key))):!(r&&!r.node.disabled&&a.has(r.key))})}function re(e,n,t){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var l;let i=n;const r=[];for(let d=0;d{const O=C[t.value];return a?String(O)===String(v):O===v}),o=c!==-1?i==null?void 0:i[c]:null;r.push({value:(l=o==null?void 0:o[t.value])!==null&&l!==void 0?l:v,index:c,option:o}),i=o==null?void 0:o[t.children]}return r}const It=(e,n,t)=>b(()=>{const a=[],l=[];return t.value.forEach(i=>{re(i,e.value,n.value).every(d=>d.option)?l.push(i):a.push(i)}),[l,a]}),Ot=(e,n,t,a,l)=>b(()=>{const i=l.value||(r=>{let{labels:d}=r;const v=a.value?d.slice(-1):d,c=" / ";return v.every(o=>["string","number"].includes(typeof o))?v.join(c):v.reduce((o,C,O)=>{const y=Me(C)?Fe(C,{key:O}):C;return O===0?[y]:[...o,c,y]},[])});return e.value.map(r=>{const d=re(r,n.value,t.value),v=i({labels:d.map(o=>{let{option:C,value:O}=o;var y;return(y=C==null?void 0:C[t.value.label])!==null&&y!==void 0?y:O}),selectedOptions:d.map(o=>{let{option:C}=o;return C})}),c=ee(r);return{label:v,value:c,key:c,valueCells:r}})}),Te=Symbol("CascaderContextKey"),Pt=e=>{je(Te,e)},pe=()=>We(Te),Vt=()=>{const e=be(),{values:n}=pe(),[t,a]=He([]);return _e(()=>e.open,()=>{if(e.open&&!e.multiple){const l=n.value[0];a(l||[])}},{immediate:!0}),[t,a]},kt=(e,n,t,a,l,i)=>{const r=be(),d=b(()=>r.direction==="rtl"),[v,c,o]=[q([]),q(),q([])];ve(()=>{let g=-1,w=n.value;const p=[],x=[],D=a.value.length;for(let _=0;_E[t.value.value]===a.value[_]);if(R===-1)break;g=R,p.push(g),x.push(a.value[_]),w=w[g][t.value.children]}let P=n.value;for(let _=0;_{l(g)},O=g=>{const w=o.value.length;let p=c.value;p===-1&&g<0&&(p=w);for(let x=0;x{if(v.value.length>1){const g=v.value.slice(0,-1);C(g)}else r.toggleOpen(!1)},$=()=>{var g;const p=(((g=o.value[c.value])===null||g===void 0?void 0:g[t.value.children])||[]).find(x=>!x.disabled);if(p){const x=[...v.value,p[t.value.value]];C(x)}};e.expose({onKeydown:g=>{const{which:w}=g;switch(w){case Y.UP:case Y.DOWN:{let p=0;w===Y.UP?p=-1:w===Y.DOWN&&(p=1),p!==0&&O(p);break}case Y.LEFT:{d.value?$():y();break}case Y.RIGHT:{d.value?y():$();break}case Y.BACKSPACE:{r.searchValue||y();break}case Y.ENTER:{if(v.value.length){const p=o.value[c.value],x=(p==null?void 0:p[ce])||[];x.length?i(x.map(D=>D[t.value.value]),x[x.length-1]):i(v.value,p)}break}case Y.ESC:r.toggleOpen(!1),open&&g.stopPropagation()}},onKeyup:()=>{}})};function he(e){let{prefixCls:n,checked:t,halfChecked:a,disabled:l,onClick:i}=e;const{customSlots:r,checkable:d}=pe(),v=d.value!==!1?r.value.checkable:d.value,c=typeof v=="function"?v():typeof v=="boolean"?null:v;return T("span",{class:{[n]:!0,[`${n}-checked`]:t,[`${n}-indeterminate`]:!t&&a,[`${n}-disabled`]:l},onClick:i},[c])}he.props=["prefixCls","checked","halfChecked","disabled","onClick"];he.displayName="Checkbox";he.inheritAttrs=!1;const Ee="__cascader_fix_label__";function fe(e){let{prefixCls:n,multiple:t,options:a,activeValue:l,prevValuePath:i,onToggleOpen:r,onSelect:d,onActive:v,checkedSet:c,halfCheckedSet:o,loadingKeys:C,isSelectable:O}=e;var y,$,g,w,p,x;const D=`${n}-menu`,P=`${n}-menu-item`,{fieldNames:_,changeOnSelect:R,expandTrigger:E,expandIcon:X,loadingIcon:J,dropdownMenuColumnStyle:U,customSlots:M}=pe(),F=(y=X.value)!==null&&y!==void 0?y:(g=($=M.value).expandIcon)===null||g===void 0?void 0:g.call($),j=(w=J.value)!==null&&w!==void 0?w:(x=(p=M.value).loadingIcon)===null||x===void 0?void 0:x.call(p),te=E.value==="hover";return T("ul",{class:D,role:"menu"},[a.map(L=>{var h;const{disabled:I}=L,s=L[ce],S=(h=L[Ee])!==null&&h!==void 0?h:L[_.value.label],m=L[_.value.value],V=ie(L,_.value),N=s?s.map(u=>u[_.value.value]):[...i,m],W=ee(N),H=C.includes(W),Q=c.has(W),ne=o.has(W),le=()=>{!I&&(!te||!V)&&v(N)},B=()=>{O(L)&&d(N,V)};let G;return typeof L.title=="string"?G=L.title:typeof S=="string"&&(G=S),T("li",{key:W,class:[P,{[`${P}-expand`]:!V,[`${P}-active`]:l===m,[`${P}-disabled`]:I,[`${P}-loading`]:H}],style:U.value,role:"menuitemcheckbox",title:G,"aria-checked":Q,"data-path-key":W,onClick:()=>{le(),(!t||V)&&B()},onDblclick:()=>{R.value&&r(!1)},onMouseenter:()=>{te&&le()},onMousedown:u=>{u.preventDefault()}},[t&&T(he,{prefixCls:`${n}-checkbox`,checked:Q,halfChecked:ne,disabled:I,onClick:u=>{u.stopPropagation(),B()}},null),T("div",{class:`${P}-content`},[S]),!H&&F&&!V&&T("div",{class:`${P}-expand-icon`},[F]),H&&j&&T("div",{class:`${P}-loading-icon`},[j])])})])}fe.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];fe.displayName="Column";fe.inheritAttrs=!1;const _t=Se({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,n){const{attrs:t,slots:a}=n,l=be(),i=q(),r=b(()=>l.direction==="rtl"),{options:d,values:v,halfValues:c,fieldNames:o,changeOnSelect:C,onSelect:O,searchOptions:y,dropdownPrefixCls:$,loadData:g,expandTrigger:w,customSlots:p}=pe(),x=b(()=>$.value||l.prefixCls),D=ke([]),P=h=>{if(!g.value||l.searchValue)return;const s=re(h,d.value,o.value).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];if(S&&!ie(S,o.value)){const m=ee(h);D.value=[...D.value,m],g.value(s)}};ve(()=>{D.value.length&&D.value.forEach(h=>{const I=gt(h),s=re(I,d.value,o.value,!0).map(m=>{let{option:V}=m;return V}),S=s[s.length-1];(!S||S[o.value.children]||ie(S,o.value))&&(D.value=D.value.filter(m=>m!==h))})});const _=b(()=>new Set(oe(v.value))),R=b(()=>new Set(oe(c.value))),[E,X]=Vt(),J=h=>{X(h),P(h)},U=h=>{const{disabled:I}=h,s=ie(h,o.value);return!I&&(s||C.value||l.multiple)},M=function(h,I){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;O(h),!l.multiple&&(I||C.value&&(w.value==="hover"||s))&&l.toggleOpen(!1)},F=b(()=>l.searchValue?y.value:d.value),j=b(()=>{const h=[{options:F.value}];let I=F.value;for(let s=0;sN[o.value.value]===S),V=m==null?void 0:m[o.value.children];if(!(V!=null&&V.length))break;I=V,h.push({options:V})}return h});kt(n,F,o,E,J,(h,I)=>{U(I)&&M(h,ie(I,o.value),!0)});const L=h=>{h.preventDefault()};return Be(()=>{_e(E,h=>{var I;for(let s=0;s{var h,I,s,S,m;const{notFoundContent:V=((h=a.notFoundContent)===null||h===void 0?void 0:h.call(a))||((s=(I=p.value).notFoundContent)===null||s===void 0?void 0:s.call(I)),multiple:N,toggleOpen:W}=l,H=!(!((m=(S=j.value[0])===null||S===void 0?void 0:S.options)===null||m===void 0)&&m.length),Q=[{[o.value.value]:"__EMPTY__",[Ee]:V,disabled:!0}],ne=k(k({},t),{multiple:!H&&N,onSelect:M,onActive:J,onToggleOpen:W,checkedSet:_.value,halfCheckedSet:R.value,loadingKeys:D.value,isSelectable:U}),B=(H?[{options:Q}]:j.value).map((G,u)=>{const f=E.value.slice(0,u),A=E.value[u];return T(fe,Z(Z({key:u},ne),{},{prefixCls:x.value,options:G.options,prevValuePath:f,activeValue:A}),null)});return T("div",{class:[`${x.value}-menus`,{[`${x.value}-menu-empty`]:H,[`${x.value}-rtl`]:r.value}],onMousedown:L,ref:i},[B])}}});function At(){return k(k({},ye(Ye(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Ge(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:De},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Ce.any,loadingIcon:Ce.any})}function Re(){return k(k({},At()),{onChange:Function,customSlots:Object})}function Dt(e){return Array.isArray(e)&&Array.isArray(e[0])}function Ve(e){return e?Dt(e)?e:(e.length===0?[]:[e]).map(n=>Array.isArray(n)?n:[n]):[]}const $t=Se({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Ae(Re(),{}),setup(e,n){let{attrs:t,expose:a,slots:l}=n;const i=ze(de(e,"id")),r=b(()=>!!e.checkable),[d,v]=Ie(e.defaultValue,{value:b(()=>e.value),postState:Ve}),c=b(()=>mt(e.fieldNames)),o=b(()=>e.options||[]),C=bt(o,c),O=u=>{const f=C.value;return u.map(A=>{const{nodes:K}=f[A];return K.map(z=>z[c.value.value])})},[y,$]=Ie("",{value:b(()=>e.searchValue),postState:u=>u||""}),g=(u,f)=>{$(u),f.source!=="blur"&&e.onSearch&&e.onSearch(u)},{showSearch:w,searchConfig:p}=St(de(e,"showSearch")),x=xt(y,o,c,b(()=>e.dropdownPrefixCls||e.prefixCls),p,de(e,"changeOnSelect")),D=It(o,c,d),[P,_,R]=[q([]),q([]),q([])],{maxLevel:E,levelEntities:X}=Xe(C);ve(()=>{const[u,f]=D.value;if(!r.value||!d.value.length){[P.value,_.value,R.value]=[u,[],f];return}const A=oe(u),K=C.value,{checkedKeys:z,halfCheckedKeys:se}=me(A,!0,K,E.value,X.value);[P.value,_.value,R.value]=[O(z),O(se),f]});const J=b(()=>{const u=oe(P.value),f=Pe(u,C.value,e.showCheckedStrategy);return[...R.value,...O(f)]}),U=Ot(J,o,c,r,de(e,"displayRender")),M=u=>{if(v(u),e.onChange){const f=Ve(u),A=f.map(se=>re(se,o.value,c.value).map(ue=>ue.option)),K=r.value?f:f[0],z=r.value?A:A[0];e.onChange(K,z)}},F=u=>{if($(""),!r.value)M(u);else{const f=ee(u),A=oe(P.value),K=oe(_.value),z=A.includes(f),se=R.value.some(ae=>ee(ae)===f);let ue=P.value,xe=R.value;if(se&&!z)xe=R.value.filter(ae=>ee(ae)!==f);else{const ae=z?A.filter(Ke=>Ke!==f):[...A,f];let ge;z?{checkedKeys:ge}=me(ae,{checked:!1,halfCheckedKeys:K},C.value,E.value,X.value):{checkedKeys:ge}=me(ae,!0,C.value,E.value,X.value);const Le=Pe(ge,C.value,e.showCheckedStrategy);ue=O(Le)}M([...xe,...ue])}},j=(u,f)=>{if(f.type==="clear"){M([]);return}const{valueCells:A}=f.values[0];F(A)},te=b(()=>e.open!==void 0?e.open:e.popupVisible),L=b(()=>e.dropdownClassName||e.popupClassName),h=b(()=>e.dropdownStyle||e.popupStyle||{}),I=b(()=>e.placement||e.popupPlacement),s=u=>{var f,A;(f=e.onDropdownVisibleChange)===null||f===void 0||f.call(e,u),(A=e.onPopupVisibleChange)===null||A===void 0||A.call(e,u)},{changeOnSelect:S,checkable:m,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Q,dropdownMenuColumnStyle:ne,customSlots:le}=Ue(e);Pt({options:o,fieldNames:c,values:P,halfValues:_,changeOnSelect:S,onSelect:F,checkable:m,searchOptions:x,dropdownPrefixCls:V,loadData:N,expandTrigger:W,expandIcon:H,loadingIcon:Q,dropdownMenuColumnStyle:ne,customSlots:le});const B=q();a({focus(){var u;(u=B.value)===null||u===void 0||u.focus()},blur(){var u;(u=B.value)===null||u===void 0||u.blur()},scrollTo(u){var f;(f=B.value)===null||f===void 0||f.scrollTo(u)}});const G=b(()=>ye(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const u=!(y.value?x.value:o.value).length,{dropdownMatchSelectWidth:f=!1}=e,A=y.value&&p.value.matchInputWidth||u?{}:{minWidth:"auto"};return T(qe,Z(Z(Z({},G.value),t),{},{ref:B,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:f,dropdownStyle:k(k({},h.value),A),displayValues:U.value,onDisplayValuesChange:j,mode:r.value?"multiple":void 0,searchValue:y.value,onSearch:g,showSearch:w.value,OptionList:_t,emptyOptions:u,open:te.value,dropdownClassName:L.value,placement:I.value,onDropdownVisibleChange:s,getRawInputElement:()=>{var K;return(K=l.default)===null||K===void 0?void 0:K.call(l)}}),l)}}}),Tt=e=>{const{prefixCls:n,componentCls:t,antCls:a}=e,l=`${t}-menu-item`,i=` &${l}-expand ${l}-expand-icon, ${l}-loading-icon `,r=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[Qe(`${n}-checkbox`,e),{[`&${a}-select-dropdown`]:{padding:0}},{[t]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${t}-menu-empty`]:{[`${t}-menu`]:{width:"100%",height:"auto",[l]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":k(k({},Ze),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${r}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${l}-disabled)`]:{["&, &:hover"]:{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},et(e)]},Et=Je("Cascader",e=>[Tt(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var Rt=globalThis&&globalThis.__rest||function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);lv===0?[d]:[...r,n,d],[]),l=[];let i=0;return a.forEach((r,d)=>{const v=i+r.length;let c=e.slice(i,v);i=v,d%2===1&&(c=T("span",{class:`${t}-menu-item-keyword`,key:"seperator"},[c])),l.push(c)}),l}const Kt=e=>{let{inputValue:n,path:t,prefixCls:a,fieldNames:l}=e;const i=[],r=n.toLowerCase();return t.forEach((d,v)=>{v!==0&&i.push(" / ");let c=d[l.label];const o=typeof c;(o==="string"||o==="number")&&(c=Lt(String(c),r,a)),i.push(c)}),i};function Nt(){return k(k({},ye(Re(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Ce.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const Mt=Se({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Ae(Nt(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,n){let{attrs:t,expose:a,slots:l,emit:i}=n;const r=nt(),d=lt.useInject(),v=b(()=>ht(d.status,e.status)),{prefixCls:c,rootPrefixCls:o,getPrefixCls:C,direction:O,getPopupContainer:y,renderEmpty:$,size:g,disabled:w}=at("cascader",e),p=b(()=>C("select",e.prefixCls)),{compactSize:x,compactItemClassnames:D}=ot(p,O),P=b(()=>x.value||g.value),_=st(),R=b(()=>{var s;return(s=w.value)!==null&&s!==void 0?s:_.value}),[E,X]=it(p),[J]=Et(c),U=b(()=>O.value==="rtl"),M=b(()=>{if(!e.showSearch)return e.showSearch;let s={render:Kt};return typeof e.showSearch=="object"&&(s=k(k({},s),e.showSearch)),s}),F=b(()=>ft(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:U.value},X.value)),j=q();a({focus(){var s;(s=j.value)===null||s===void 0||s.focus()},blur(){var s;(s=j.value)===null||s===void 0||s.blur()}});const te=function(){for(var s=arguments.length,S=new Array(s),m=0;me.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),I=b(()=>e.placement!==void 0?e.placement:O.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var s,S;const{notFoundContent:m=(s=l.notFoundContent)===null||s===void 0?void 0:s.call(l),expandIcon:V=(S=l.expandIcon)===null||S===void 0?void 0:S.call(l),multiple:N,bordered:W,allowClear:H,choiceTransitionName:Q,transitionName:ne,id:le=r.id.value}=e,B=Rt(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),G=m||$("Cascader");let u=V;V||(u=U.value?T(ct,null,null):T(rt,null,null));const f=T("span",{class:`${p.value}-menu-item-loading-icon`},[T(ut,{spin:!0},null)]),{suffixIcon:A,removeIcon:K,clearIcon:z}=dt(k(k({},e),{hasFeedback:d.hasFeedback,feedbackIcon:d.feedbackIcon,multiple:N,prefixCls:p.value,showArrow:h.value}),l);return J(E(T($t,Z(Z(Z({},B),t),{},{id:le,prefixCls:p.value,class:[c.value,{[`${p.value}-lg`]:P.value==="large",[`${p.value}-sm`]:P.value==="small",[`${p.value}-rtl`]:U.value,[`${p.value}-borderless`]:!W,[`${p.value}-in-form-item`]:d.isFormItemInput},vt(p.value,v.value,d.hasFeedback),D.value,t.class,X.value],disabled:R.value,direction:O.value,placement:I.value,notFoundContent:G,allowClear:H,showSearch:M.value,expandIcon:u,inputIcon:A,removeIcon:K,clearIcon:z,loadingIcon:f,checkable:!!N,dropdownClassName:F.value,dropdownPrefixCls:c.value,choiceTransitionName:Oe(o.value,"",Q),transitionName:Oe(o.value,pt(I.value),ne),getPopupContainer:y==null?void 0:y.value,customSlots:k(k({},l),{checkable:()=>T("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||l.tagRender,displayRender:e.displayRender||l.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,showArrow:d.hasFeedback||e.showArrow,onChange:te,onBlur:L,ref:j}),l)))}}}),jt=tt(k(Mt,{SHOW_CHILD:$e,SHOW_PARENT:De}));export{jt as A}; -//# sourceMappingURL=index.83aa16e3.js.map +//# sourceMappingURL=index.d4b99d43.js.map diff --git a/abstra_statics/dist/assets/index.eefd8753.js b/abstra_statics/dist/assets/index.eefd8753.js deleted file mode 100644 index 124b74f806..0000000000 --- a/abstra_statics/dist/assets/index.eefd8753.js +++ /dev/null @@ -1,2 +0,0 @@ -import{eM as t,eN as r}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cc308a5b-b212-4b06-a81f-4c06691d2a42",e._sentryDebugIdIdentifier="sentry-dbid-cc308a5b-b212-4b06-a81f-4c06691d2a42")}catch{}})();function o(e,n){return t(1,arguments),r(e,Date.now(),n)}export{o as f}; -//# sourceMappingURL=index.eefd8753.js.map diff --git a/abstra_statics/dist/assets/javascript.43bc8945.js b/abstra_statics/dist/assets/javascript.34d3068d.js similarity index 76% rename from abstra_statics/dist/assets/javascript.43bc8945.js rename to abstra_statics/dist/assets/javascript.34d3068d.js index c6dbd1bfdf..72d1cb76ba 100644 --- a/abstra_statics/dist/assets/javascript.43bc8945.js +++ b/abstra_statics/dist/assets/javascript.34d3068d.js @@ -1,7 +1,7 @@ -import{conf as i,language as e}from"./typescript.02db7208.js";import"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="6d69e745-0312-4562-81e5-d51c0b5dd1a4",t._sentryDebugIdIdentifier="sentry-dbid-6d69e745-0312-4562-81e5-d51c0b5dd1a4")}catch{}})();/*!----------------------------------------------------------------------------- +import{conf as i,language as e}from"./typescript.e2f96ca7.js";import"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="4f8968d5-d925-45b4-89e9-e997cbd88a69",t._sentryDebugIdIdentifier="sentry-dbid-4f8968d5-d925-45b4-89e9-e997cbd88a69")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/var a=i,l={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","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{a as conf,l as language}; -//# sourceMappingURL=javascript.43bc8945.js.map +//# sourceMappingURL=javascript.34d3068d.js.map diff --git a/abstra_statics/dist/assets/jsonMode.46550f6f.js b/abstra_statics/dist/assets/jsonMode.a8e46bfb.js similarity index 99% rename from abstra_statics/dist/assets/jsonMode.46550f6f.js rename to abstra_statics/dist/assets/jsonMode.a8e46bfb.js index a1129e4487..69a8b2c3c7 100644 --- a/abstra_statics/dist/assets/jsonMode.46550f6f.js +++ b/abstra_statics/dist/assets/jsonMode.a8e46bfb.js @@ -1,4 +1,4 @@ -var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="194f8850-d32c-44ed-9c87-2939dd7facdd",e._sentryDebugIdIdentifier="sentry-dbid-194f8850-d32c-44ed-9c87-2939dd7facdd")}catch{}})();/*!----------------------------------------------------------------------------- +var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="41204e28-1c11-4191-b21b-c863b990a7a2",e._sentryDebugIdIdentifier="sentry-dbid-41204e28-1c11-4191-b21b-c863b990a7a2")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -9,4 +9,4 @@ var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,config `+e.value+"\n```\n"}}function pt(e){if(!!e)return Array.isArray(e)?e.map(We):[We(e)]}var qt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),L(n))).then(t=>{if(!!t)return t.map(a=>({range:y(a.range),kind:_t(a.kind)}))})}};function _t(e){switch(e){case U.Read:return l.languages.DocumentHighlightKind.Read;case U.Write:return l.languages.DocumentHighlightKind.Write;case U.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Xt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),L(n))).then(t=>{if(!!t)return[qe(t)]})}};function qe(e){return{uri:l.Uri.parse(e.uri),range:y(e.range)}}var Jt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),L(n))).then(a=>{if(!!a)return a.map(qe)})}},Yt=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),L(n),i)).then(a=>mt(a))}};function mt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=l.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:y(t.range),text:t.newText}})}return{edits:n}}var kt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:wt(t.kind),range:y(t.location.range),selectionRange:y(t.location.range),tags:[]}))})}};function wt(e){let n=l.languages.SymbolKind;switch(e){case _.File:return n.Array;case _.Module:return n.Module;case _.Namespace:return n.Namespace;case _.Package:return n.Package;case _.Class:return n.Class;case _.Method:return n.Method;case _.Property:return n.Property;case _.Field:return n.Field;case _.Constructor:return n.Constructor;case _.Enum:return n.Enum;case _.Interface:return n.Interface;case _.Function:return n.Function;case _.Variable:return n.Variable;case _.Constant:return n.Constant;case _.String:return n.String;case _.Number:return n.Number;case _.Boolean:return n.Boolean;case _.Array:return n.Array}return n.Function}var $t=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:y(t.range),url:t.target}))}})}},bt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Xe(n)).then(a=>{if(!(!a||a.length===0))return a.map(X)}))}},Ct=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Be(n),Xe(i)).then(s=>{if(!(!s||s.length===0))return s.map(X)}))}};function Xe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Et=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:y(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Be(n.range))).then(t=>{if(!!t)return t.map(a=>{let s={label:a.label};return a.textEdit&&(s.textEdit=X(a.textEdit)),a.additionalTextEdits&&(s.additionalTextEdits=a.additionalTextEdits.map(X)),s})})}},At=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const s={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(s.kind=yt(a.kind)),s})})}};function yt(e){switch(e){case W.Comment:return l.languages.FoldingRangeKind.Comment;case W.Imports:return l.languages.FoldingRangeKind.Imports;case W.Region:return l.languages.FoldingRangeKind.Region}}var It=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(L))).then(t=>{if(!!t)return t.map(a=>{const s=[];for(;a;)s.push({range:y(a.range)}),a=a.parent;return s})})}};function St(e,n){n===void 0&&(n=!1);var i=e.length,r=0,t="",a=0,s=16,u=0,c=0,d=0,v=0,g=0;function b(f,C){for(var I=0,E=0;I=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;r++,I++}return I=i){f+=e.substring(C,r),g=2;break}var I=e.charCodeAt(r);if(I===34){f+=e.substring(C,r),r++;break}if(I===92){if(f+=e.substring(C,r),r++,r>=i){g=2;break}var E=e.charCodeAt(r++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=` `;break;case 114:f+="\r";break;case 116:f+=" ";break;case 117:var k=b(4,!0);k>=0?f+=String.fromCharCode(k):g=4;break;default:g=5}C=r;continue}if(I>=0&&I<=31)if(F(I)){f+=e.substring(C,r),g=2;break}else g=6;r++}return f}function j(){if(t="",g=0,a=r,c=u,v=d,r>=i)return a=i,s=17;var f=e.charCodeAt(r);if(ee(f)){do r++,t+=String.fromCharCode(f),f=e.charCodeAt(r);while(ee(f));return s=15}if(F(f))return r++,t+=String.fromCharCode(f),f===13&&e.charCodeAt(r)===10&&(r++,t+=` `),u++,d=r,s=14;switch(f){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,t=M(),s=10;case 47:var C=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r=12&&f<=15);return f}return{setPosition:h,getPosition:function(){return r},scan:n?$e:j,getToken:function(){return s},getTokenValue:function(){return t},getTokenOffset:function(){return a},getTokenLength:function(){return r-a},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return a-v},getTokenError:function(){return g}}}function ee(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function F(e){return e===10||e===13||e===8232||e===8233}function R(e){return e>=48&&e<=57}var Ue;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ue||(Ue={}));var Tt=St;function Dt(e){return{getInitialState:()=>new K(null,null,!1,null),tokenize:(n,i)=>Wt(e,n,i)}}var Ve="delimiter.bracket.json",He="delimiter.array.json",Pt="delimiter.colon.json",Lt="delimiter.comma.json",Mt="keyword.json",Rt="keyword.json",Nt="string.value.json",Ot="number.json",xt="string.key.json",jt="comment.block.json",Ft="comment.line.json",O=class{constructor(e,n){this.parent=e,this.type=n}static pop(e){return e?e.parent:null}static push(e,n){return new O(e,n)}static equals(e,n){if(!e&&!n)return!0;if(!e||!n)return!1;for(;e&&n;){if(e===n)return!0;if(e.type!==n.type)return!1;e=e.parent,n=n.parent}return!0}},K=class{constructor(e,n,i,r){A(this,"_state");A(this,"scanError");A(this,"lastWasColon");A(this,"parents");this._state=e,this.scanError=n,this.lastWasColon=i,this.parents=r}clone(){return new K(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this?!0:!e||!(e instanceof K)?!1:this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&O.equals(this.parents,e.parents)}getStateData(){return this._state}setStateData(e){this._state=e}};function Wt(e,n,i,r=0){let t=0,a=!1;switch(i.scanError){case 2:n='"'+n,t=1;break;case 1:n="/*"+n,t=2;break}const s=Tt(n);let u=i.lastWasColon,c=i.parents;const d={tokens:[],endState:i.clone()};for(;;){let v=r+s.getPosition(),g="";const b=s.scan();if(b===17)break;if(v===r+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+n.substr(s.getPosition(),3));switch(a&&(v-=t),a=t>0,b){case 1:c=O.push(c,0),g=Ve,u=!1;break;case 2:c=O.pop(c),g=Ve,u=!1;break;case 3:c=O.push(c,1),g=He,u=!1;break;case 4:c=O.pop(c),g=He,u=!1;break;case 6:g=Pt,u=!0;break;case 5:g=Lt,u=!1;break;case 8:case 9:g=Mt,u=!1;break;case 7:g=Rt,u=!1;break;case 10:const S=(c?c.type:0)===1;g=u||S?Nt:xt,u=!1;break;case 11:g=Ot,u=!1;break}if(e)switch(b){case 12:g=Ft;break;case 13:g=jt;break}d.endState=new K(i.getStateData(),s.getTokenError(),u,c),d.tokens.push({startIndex:v,scopes:g})}return d}var Ut=class extends ot{constructor(e,n,i){super(e,n,i.onDidChange),this._disposables.push(l.editor.onWillDisposeModel(r=>{this._resetSchema(r.uri)})),this._disposables.push(l.editor.onDidChangeModelLanguage(r=>{this._resetSchema(r.model.uri)}))}_resetSchema(e){this._worker().then(n=>{n.resetSchema(e.toString())})}};function Gt(e){const n=[],i=[],r=new at(e);n.push(r);const t=(...u)=>r.getLanguageServiceWorker(...u);function a(){const{languageId:u,modeConfiguration:c}=e;Je(i),c.documentFormattingEdits&&i.push(l.languages.registerDocumentFormattingEditProvider(u,new bt(t))),c.documentRangeFormattingEdits&&i.push(l.languages.registerDocumentRangeFormattingEditProvider(u,new Ct(t))),c.completionItems&&i.push(l.languages.registerCompletionItemProvider(u,new dt(t,[" ",":",'"']))),c.hovers&&i.push(l.languages.registerHoverProvider(u,new ht(t))),c.documentSymbols&&i.push(l.languages.registerDocumentSymbolProvider(u,new kt(t))),c.tokens&&i.push(l.languages.setTokensProvider(u,Dt(!0))),c.colors&&i.push(l.languages.registerColorProvider(u,new Et(t))),c.foldingRanges&&i.push(l.languages.registerFoldingRangeProvider(u,new At(t))),c.diagnostics&&i.push(new Ut(u,t,e)),c.selectionRanges&&i.push(l.languages.registerSelectionRangeProvider(u,new It(t)))}a(),n.push(l.languages.setLanguageConfiguration(e.languageId,Vt));let s=e.modeConfiguration;return e.onDidChange(u=>{u.modeConfiguration!==s&&(s=u.modeConfiguration,a())}),n.push(ze(i)),ze(n)}function ze(e){return{dispose:()=>Je(e)}}function Je(e){for(;e.length;)e.pop().dispose()}var Vt={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{dt as CompletionAdapter,Xt as DefinitionAdapter,ot as DiagnosticsAdapter,Et as DocumentColorAdapter,bt as DocumentFormattingEditProvider,qt as DocumentHighlightAdapter,$t as DocumentLinkAdapter,Ct as DocumentRangeFormattingEditProvider,kt as DocumentSymbolAdapter,At as FoldingRangeAdapter,ht as HoverAdapter,Jt as ReferenceAdapter,Yt as RenameAdapter,It as SelectionRangeAdapter,at as WorkerManager,L as fromPosition,Be as fromRange,Gt as setupMode,y as toRange,X as toTextEdit}; -//# sourceMappingURL=jsonMode.46550f6f.js.map +//# sourceMappingURL=jsonMode.a8e46bfb.js.map diff --git a/abstra_statics/dist/assets/liquid.d9bc0f35.js b/abstra_statics/dist/assets/liquid.71878b3b.js similarity index 93% rename from abstra_statics/dist/assets/liquid.d9bc0f35.js rename to abstra_statics/dist/assets/liquid.71878b3b.js index 12e7427227..fa8f95a734 100644 --- a/abstra_statics/dist/assets/liquid.d9bc0f35.js +++ b/abstra_statics/dist/assets/liquid.71878b3b.js @@ -1,7 +1,7 @@ -import{m as d}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="df684fec-3a6e-439a-9438-eb33c09cd7f1",t._sentryDebugIdIdentifier="sentry-dbid-df684fec-3a6e-439a-9438-eb33c09cd7f1")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as d}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="343acacc-31a8-4439-943e-c1b767d4f318",t._sentryDebugIdIdentifier="sentry-dbid-343acacc-31a8-4439-943e-c1b767d4f318")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=c(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],g={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{g as conf,b as language}; -//# sourceMappingURL=liquid.d9bc0f35.js.map +//# sourceMappingURL=liquid.71878b3b.js.map diff --git a/abstra_statics/dist/assets/member.8ffb8c1d.js b/abstra_statics/dist/assets/member.8ffb8c1d.js new file mode 100644 index 0000000000..c918919832 --- /dev/null +++ b/abstra_statics/dist/assets/member.8ffb8c1d.js @@ -0,0 +1,2 @@ +import{C as t}from"./gateway.ae1d6857.js";import"./index.d0f12294.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="caaf8ea2-f7b7-453b-9b99-c15be3fd464e",a._sentryDebugIdIdentifier="sentry-dbid-caaf8ea2-f7b7-453b-9b99-c15be3fd464e")}catch{}})();class i{async create(e){return t.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return t.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return t.get(`organizations/${e}/members`)}async get(e,n){return t.get(`organizations/${e}/members/${n}`)}async update(e,n,r){return t.patch(`organizations/${e}/members/${n}`,r)}async fetchTeamOptions(e){return t.get(`organizations/${e}/teams`)}}export{i as M}; +//# sourceMappingURL=member.8ffb8c1d.js.map diff --git a/abstra_statics/dist/assets/member.ce73ad98.js b/abstra_statics/dist/assets/member.ce73ad98.js deleted file mode 100644 index 9458848b76..0000000000 --- a/abstra_statics/dist/assets/member.ce73ad98.js +++ /dev/null @@ -1,2 +0,0 @@ -import{C as t}from"./gateway.8032b20a.js";import"./index.8c3f27aa.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="8b911bf8-13b2-4b03-98a4-ed36cf483b81",n._sentryDebugIdIdentifier="sentry-dbid-8b911bf8-13b2-4b03-98a4-ed36cf483b81")}catch{}})();class i{async create(e){return t.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return t.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return t.get(`organizations/${e}/members`)}async get(e,r){return t.get(`organizations/${e}/members/${r}`)}async update(e,r,a){return t.patch(`organizations/${e}/members/${r}`,a)}async fetchTeamOptions(e){return t.get(`organizations/${e}/teams`)}}export{i as M}; -//# sourceMappingURL=member.ce73ad98.js.map diff --git a/abstra_statics/dist/assets/metadata.2beed20a.js b/abstra_statics/dist/assets/metadata.bc77f4b9.js similarity index 97% rename from abstra_statics/dist/assets/metadata.2beed20a.js rename to abstra_statics/dist/assets/metadata.bc77f4b9.js index 39d8790ab0..ab32db52cd 100644 --- a/abstra_statics/dist/assets/metadata.2beed20a.js +++ b/abstra_statics/dist/assets/metadata.bc77f4b9.js @@ -1,2 +1,2 @@ -import{G as V}from"./PhBug.vue.96a42e8e.js";import{H as A}from"./PhCheckCircle.vue.9df5f131.js";import{d as g,D as n,f as s,o as t,Y as l,$ as c,S as Z,e8 as y,a as i}from"./index.8c3f27aa.js";import{G as M}from"./PhKanban.vue.444564da.js";import{F as f,G as w,a as k,I as N}from"./PhWebhooksLogo.vue.e865dba6.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="b685247e-07c2-438e-9d5e-5498a24fed77",r._sentryDebugIdIdentifier="sentry-dbid-b685247e-07c2-438e-9d5e-5498a24fed77")}catch{}})();const S=["width","height","fill","transform"],b={key:0},P=i("path",{d:"M228,160a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,160ZM40,108H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Z"},null,-1),z=[P],B={key:1},x=i("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),C=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),I=[x,C],O={key:2},L=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,160H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Zm0-48H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"},null,-1),F=[L],G={key:3},E=i("path",{d:"M222,160a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,160ZM40,102H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Z"},null,-1),j=[E],D={key:4},_=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),W=[_],q={key:5},J=i("path",{d:"M220,160a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,160ZM40,100H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Z"},null,-1),R=[J],Y={name:"PhEquals"},K=g({...Y,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",b,z)):o.value==="duotone"?(t(),l("g",B,I)):o.value==="fill"?(t(),l("g",O,F)):o.value==="light"?(t(),l("g",G,j)):o.value==="regular"?(t(),l("g",D,W)):o.value==="thin"?(t(),l("g",q,R)):Z("",!0)],16,S))}}),Q=["width","height","fill","transform"],T={key:0},U=i("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),X=[U],a0={key:1},e0=i("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),t0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),l0=[e0,t0],i0={key:2},o0=i("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),r0=[o0],n0={key:3},s0=i("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),h0=[s0],H0={key:4},d0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),u0=[d0],v0={key:5},m0=i("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),p0=[m0],g0={name:"PhHouse"},c0=g({...g0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",T,X)):o.value==="duotone"?(t(),l("g",a0,l0)):o.value==="fill"?(t(),l("g",i0,r0)):o.value==="light"?(t(),l("g",n0,h0)):o.value==="regular"?(t(),l("g",H0,u0)):o.value==="thin"?(t(),l("g",v0,p0)):Z("",!0)],16,Q))}}),Z0=["width","height","fill","transform"],y0={key:0},$0=i("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z"},null,-1),V0=[$0],A0={key:1},M0=i("path",{d:"M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z",opacity:"0.2"},null,-1),f0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),w0=[M0,f0],k0={key:2},N0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"},null,-1),S0=[N0],b0={key:3},P0=i("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z"},null,-1),z0=[P0],B0={key:4},x0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),C0=[x0],I0={key:5},O0=i("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z"},null,-1),L0=[O0],F0={name:"PhListMagnifyingGlass"},G0=g({...F0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",y0,V0)):o.value==="duotone"?(t(),l("g",A0,w0)):o.value==="fill"?(t(),l("g",k0,S0)):o.value==="light"?(t(),l("g",b0,z0)):o.value==="regular"?(t(),l("g",B0,C0)):o.value==="thin"?(t(),l("g",I0,L0)):Z("",!0)],16,Z0))}}),E0=["width","height","fill","transform"],j0={key:0},D0=i("path",{d:"M228,128a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM116,76H216a12,12,0,0,0,0-24H116a12,12,0,0,0,0,24ZM216,180H116a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,59.31V104a12,12,0,0,0,24,0V40A12,12,0,0,0,50.64,29.27l-16,8a12,12,0,0,0,9.36,22Zm39.73,96.86a27.7,27.7,0,0,0-11.2-18.63A28.89,28.89,0,0,0,32.9,143a27.71,27.71,0,0,0-4.17,7.54,12,12,0,0,0,22.55,8.21,4,4,0,0,1,.58-1,4.78,4.78,0,0,1,6.5-.82,3.82,3.82,0,0,1,1.61,2.6,3.63,3.63,0,0,1-.77,2.77l-.13.17L30.39,200.82A12,12,0,0,0,40,220H72a12,12,0,0,0,0-24H64l14.28-19.11A27.48,27.48,0,0,0,83.73,156.17Z"},null,-1),_0=[D0],W0={key:1},q0=i("path",{d:"M216,64V192H104V64Z",opacity:"0.2"},null,-1),J0=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),R0=[q0,J0],Y0={key:2},K0=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM56.84,75.58a8,8,0,0,1,3.58-10.74l16-8A8,8,0,0,1,88,64v48a8,8,0,0,1-16,0V76.94l-4.42,2.22A8,8,0,0,1,56.84,75.58ZM92,180a8,8,0,0,1,0,16H68a8,8,0,0,1-6.4-12.8l21.67-28.89A3.92,3.92,0,0,0,84,152a4,4,0,0,0-7.77-1.33,8,8,0,0,1-15.09-5.34,20,20,0,1,1,35,18.53L84,180Zm100,4H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Z"},null,-1),Q0=[K0],T0={key:3},U0=i("path",{d:"M222,128a6,6,0,0,1-6,6H104a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM104,70H216a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12ZM216,186H104a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM42.68,53.37,50,49.71V104a6,6,0,0,0,12,0V40a6,6,0,0,0-8.68-5.37l-16,8a6,6,0,0,0,5.36,10.74ZM72,202H52l21.48-28.74A21.5,21.5,0,0,0,77.79,157,21.75,21.75,0,0,0,69,142.38a22.86,22.86,0,0,0-31.35,4.31,22.18,22.18,0,0,0-3.28,5.92,6,6,0,0,0,11.28,4.11,9.87,9.87,0,0,1,1.48-2.67,10.78,10.78,0,0,1,14.78-2,9.89,9.89,0,0,1,4,6.61,9.64,9.64,0,0,1-2,7.28l-.06.09L35.2,204.41A6,6,0,0,0,40,214H72a6,6,0,0,0,0-12Z"},null,-1),X0=[U0],a1={key:4},e1=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),t1=[e1],l1={key:5},i1=i("path",{d:"M220,128a4,4,0,0,1-4,4H104a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM104,68H216a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8ZM216,188H104a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM41.79,51.58,52,46.47V104a4,4,0,0,0,8,0V40a4,4,0,0,0-5.79-3.58l-16,8a4,4,0,1,0,3.58,7.16ZM72,204H48l23.85-31.92a19.54,19.54,0,0,0,4-14.8,19.76,19.76,0,0,0-8-13.28,20.84,20.84,0,0,0-28.59,3.92,19.85,19.85,0,0,0-3,5.38A4,4,0,0,0,43.76,156a12.1,12.1,0,0,1,1.78-3.22,12.78,12.78,0,0,1,17.54-2.37,11.85,11.85,0,0,1,4.81,7.94,11.65,11.65,0,0,1-2.41,8.85L36.8,205.61A4,4,0,0,0,40,212H72a4,4,0,0,0,0-8Z"},null,-1),o1=[i1],r1={name:"PhListNumbers"},n1=g({...r1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",j0,_0)):o.value==="duotone"?(t(),l("g",W0,R0)):o.value==="fill"?(t(),l("g",Y0,Q0)):o.value==="light"?(t(),l("g",T0,X0)):o.value==="regular"?(t(),l("g",a1,t1)):o.value==="thin"?(t(),l("g",l1,o1)):Z("",!0)],16,E0))}}),s1=["width","height","fill","transform"],h1={key:0},H1=i("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"},null,-1),d1=[H1],u1={key:1},v1=i("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"},null,-1),m1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),p1=[v1,m1],g1={key:2},c1=i("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"},null,-1),Z1=[c1],y1={key:3},$1=i("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"},null,-1),V1=[$1],A1={key:4},M1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),f1=[M1],w1={key:5},k1=i("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"},null,-1),N1=[k1],S1={name:"PhTreeStructure"},b1=g({...S1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",h1,d1)):o.value==="duotone"?(t(),l("g",u1,p1)):o.value==="fill"?(t(),l("g",g1,Z1)):o.value==="light"?(t(),l("g",y1,V1)):o.value==="regular"?(t(),l("g",A1,f1)):o.value==="thin"?(t(),l("g",w1,N1)):Z("",!0)],16,s1))}}),P1={stages:[{icon:f,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms",startingOnly:!1,transitions:[{typeName:"forms:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"forms:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"hooks",title:"Hooks",startingOnly:!0,icon:w,description:"Wait for an external API call",key:"H",transitions:[{typeName:"hooks:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"hooks:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"jobs",title:"Jobs",startingOnly:!0,icon:k,description:"Scheduled tasks",key:"J",transitions:[{typeName:"jobs:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"jobs:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"scripts",title:"Scripts",startingOnly:!1,icon:N,description:"Run a script",key:"S",transitions:[{typeName:"scripts:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"scripts:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"conditions",title:"Conditions",startingOnly:!1,icon:b1,description:"Make a decision",key:"C",transitions:[{typeName:"conditions:patternMatched",icon:K,title:"Pattern Matched",additionalPayload:[]}]},{typeName:"iterators",title:"Iterators",startingOnly:!1,icon:n1,description:"Split thread for each element in a list",key:"I",transitions:[{typeName:"iterators:each",icon:G0,title:"Each",additionalPayload:[{key:"item",type:"typing.Any",title:"Item"}]}]}]};function z1(r){const e=P1.stages.find(H=>H.typeName===r||H.typeName===`${r}s`);if(!e)throw new Error(`No metadata found for stage ${r}`);return e.icon}const L1=r=>r==="kanban"?M:r==="home"?c0:z1(r);export{G0 as F,L1 as i,z1 as s,P1 as w}; -//# sourceMappingURL=metadata.2beed20a.js.map +import{G as V}from"./PhBug.vue.33662d9e.js";import{H as A}from"./PhCheckCircle.vue.e567d5b0.js";import{d as g,D as n,f as s,o as t,Y as l,$ as c,S as Z,e8 as y,a as i}from"./index.d0f12294.js";import{G as M}from"./PhKanban.vue.fc0591cb.js";import{F as f,G as w,a as k,I as N}from"./PhWebhooksLogo.vue.15a28437.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="08da029d-c91d-4402-886f-f5a42d97faaf",r._sentryDebugIdIdentifier="sentry-dbid-08da029d-c91d-4402-886f-f5a42d97faaf")}catch{}})();const S=["width","height","fill","transform"],b={key:0},P=i("path",{d:"M228,160a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,160ZM40,108H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Z"},null,-1),z=[P],B={key:1},x=i("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"},null,-1),C=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),I=[x,C],O={key:2},L=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,160H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Zm0-48H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"},null,-1),F=[L],G={key:3},E=i("path",{d:"M222,160a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,160ZM40,102H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Z"},null,-1),j=[E],D={key:4},_=i("path",{d:"M224,160a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,160ZM40,104H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Z"},null,-1),W=[_],q={key:5},J=i("path",{d:"M220,160a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,160ZM40,100H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Z"},null,-1),R=[J],Y={name:"PhEquals"},K=g({...Y,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",b,z)):o.value==="duotone"?(t(),l("g",B,I)):o.value==="fill"?(t(),l("g",O,F)):o.value==="light"?(t(),l("g",G,j)):o.value==="regular"?(t(),l("g",D,W)):o.value==="thin"?(t(),l("g",q,R)):Z("",!0)],16,S))}}),Q=["width","height","fill","transform"],T={key:0},U=i("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),X=[U],a0={key:1},e0=i("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),t0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),l0=[e0,t0],i0={key:2},o0=i("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),r0=[o0],n0={key:3},s0=i("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),h0=[s0],H0={key:4},d0=i("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),u0=[d0],v0={key:5},m0=i("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),p0=[m0],g0={name:"PhHouse"},c0=g({...g0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",T,X)):o.value==="duotone"?(t(),l("g",a0,l0)):o.value==="fill"?(t(),l("g",i0,r0)):o.value==="light"?(t(),l("g",n0,h0)):o.value==="regular"?(t(),l("g",H0,u0)):o.value==="thin"?(t(),l("g",v0,p0)):Z("",!0)],16,Q))}}),Z0=["width","height","fill","transform"],y0={key:0},$0=i("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z"},null,-1),V0=[$0],A0={key:1},M0=i("path",{d:"M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z",opacity:"0.2"},null,-1),f0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),w0=[M0,f0],k0={key:2},N0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"},null,-1),S0=[N0],b0={key:3},P0=i("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z"},null,-1),z0=[P0],B0={key:4},x0=i("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"},null,-1),C0=[x0],I0={key:5},O0=i("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z"},null,-1),L0=[O0],F0={name:"PhListMagnifyingGlass"},G0=g({...F0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",y0,V0)):o.value==="duotone"?(t(),l("g",A0,w0)):o.value==="fill"?(t(),l("g",k0,S0)):o.value==="light"?(t(),l("g",b0,z0)):o.value==="regular"?(t(),l("g",B0,C0)):o.value==="thin"?(t(),l("g",I0,L0)):Z("",!0)],16,Z0))}}),E0=["width","height","fill","transform"],j0={key:0},D0=i("path",{d:"M228,128a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM116,76H216a12,12,0,0,0,0-24H116a12,12,0,0,0,0,24ZM216,180H116a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,59.31V104a12,12,0,0,0,24,0V40A12,12,0,0,0,50.64,29.27l-16,8a12,12,0,0,0,9.36,22Zm39.73,96.86a27.7,27.7,0,0,0-11.2-18.63A28.89,28.89,0,0,0,32.9,143a27.71,27.71,0,0,0-4.17,7.54,12,12,0,0,0,22.55,8.21,4,4,0,0,1,.58-1,4.78,4.78,0,0,1,6.5-.82,3.82,3.82,0,0,1,1.61,2.6,3.63,3.63,0,0,1-.77,2.77l-.13.17L30.39,200.82A12,12,0,0,0,40,220H72a12,12,0,0,0,0-24H64l14.28-19.11A27.48,27.48,0,0,0,83.73,156.17Z"},null,-1),_0=[D0],W0={key:1},q0=i("path",{d:"M216,64V192H104V64Z",opacity:"0.2"},null,-1),J0=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),R0=[q0,J0],Y0={key:2},K0=i("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM56.84,75.58a8,8,0,0,1,3.58-10.74l16-8A8,8,0,0,1,88,64v48a8,8,0,0,1-16,0V76.94l-4.42,2.22A8,8,0,0,1,56.84,75.58ZM92,180a8,8,0,0,1,0,16H68a8,8,0,0,1-6.4-12.8l21.67-28.89A3.92,3.92,0,0,0,84,152a4,4,0,0,0-7.77-1.33,8,8,0,0,1-15.09-5.34,20,20,0,1,1,35,18.53L84,180Zm100,4H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Z"},null,-1),Q0=[K0],T0={key:3},U0=i("path",{d:"M222,128a6,6,0,0,1-6,6H104a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM104,70H216a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12ZM216,186H104a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM42.68,53.37,50,49.71V104a6,6,0,0,0,12,0V40a6,6,0,0,0-8.68-5.37l-16,8a6,6,0,0,0,5.36,10.74ZM72,202H52l21.48-28.74A21.5,21.5,0,0,0,77.79,157,21.75,21.75,0,0,0,69,142.38a22.86,22.86,0,0,0-31.35,4.31,22.18,22.18,0,0,0-3.28,5.92,6,6,0,0,0,11.28,4.11,9.87,9.87,0,0,1,1.48-2.67,10.78,10.78,0,0,1,14.78-2,9.89,9.89,0,0,1,4,6.61,9.64,9.64,0,0,1-2,7.28l-.06.09L35.2,204.41A6,6,0,0,0,40,214H72a6,6,0,0,0,0-12Z"},null,-1),X0=[U0],a1={key:4},e1=i("path",{d:"M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z"},null,-1),t1=[e1],l1={key:5},i1=i("path",{d:"M220,128a4,4,0,0,1-4,4H104a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM104,68H216a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8ZM216,188H104a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM41.79,51.58,52,46.47V104a4,4,0,0,0,8,0V40a4,4,0,0,0-5.79-3.58l-16,8a4,4,0,1,0,3.58,7.16ZM72,204H48l23.85-31.92a19.54,19.54,0,0,0,4-14.8,19.76,19.76,0,0,0-8-13.28,20.84,20.84,0,0,0-28.59,3.92,19.85,19.85,0,0,0-3,5.38A4,4,0,0,0,43.76,156a12.1,12.1,0,0,1,1.78-3.22,12.78,12.78,0,0,1,17.54-2.37,11.85,11.85,0,0,1,4.81,7.94,11.65,11.65,0,0,1-2.41,8.85L36.8,205.61A4,4,0,0,0,40,212H72a4,4,0,0,0,0-8Z"},null,-1),o1=[i1],r1={name:"PhListNumbers"},n1=g({...r1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",j0,_0)):o.value==="duotone"?(t(),l("g",W0,R0)):o.value==="fill"?(t(),l("g",Y0,Q0)):o.value==="light"?(t(),l("g",T0,X0)):o.value==="regular"?(t(),l("g",a1,t1)):o.value==="thin"?(t(),l("g",l1,o1)):Z("",!0)],16,E0))}}),s1=["width","height","fill","transform"],h1={key:0},H1=i("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"},null,-1),d1=[H1],u1={key:1},v1=i("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"},null,-1),m1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),p1=[v1,m1],g1={key:2},c1=i("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"},null,-1),Z1=[c1],y1={key:3},$1=i("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"},null,-1),V1=[$1],A1={key:4},M1=i("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"},null,-1),f1=[M1],w1={key:5},k1=i("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"},null,-1),N1=[k1],S1={name:"PhTreeStructure"},b1=g({...S1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,H=n("weight","regular"),d=n("size","1em"),u=n("color","currentColor"),v=n("mirrored",!1),o=s(()=>{var a;return(a=e.weight)!=null?a:H}),h=s(()=>{var a;return(a=e.size)!=null?a:d}),m=s(()=>{var a;return(a=e.color)!=null?a:u}),p=s(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:v?"scale(-1, 1)":void 0);return(a,$)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:m.value,transform:p.value},a.$attrs),[c(a.$slots,"default"),o.value==="bold"?(t(),l("g",h1,d1)):o.value==="duotone"?(t(),l("g",u1,p1)):o.value==="fill"?(t(),l("g",g1,Z1)):o.value==="light"?(t(),l("g",y1,V1)):o.value==="regular"?(t(),l("g",A1,f1)):o.value==="thin"?(t(),l("g",w1,N1)):Z("",!0)],16,s1))}}),P1={stages:[{icon:f,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms",startingOnly:!1,transitions:[{typeName:"forms:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"forms:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"hooks",title:"Hooks",startingOnly:!0,icon:w,description:"Wait for an external API call",key:"H",transitions:[{typeName:"hooks:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"hooks:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"jobs",title:"Jobs",startingOnly:!0,icon:k,description:"Scheduled tasks",key:"J",transitions:[{typeName:"jobs:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"jobs:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"scripts",title:"Scripts",startingOnly:!1,icon:N,description:"Run a script",key:"S",transitions:[{typeName:"scripts:finished",icon:A,title:"On Success",additionalPayload:[]},{typeName:"scripts:failed",icon:V,title:"On Failure",additionalPayload:[]}]},{typeName:"conditions",title:"Conditions",startingOnly:!1,icon:b1,description:"Make a decision",key:"C",transitions:[{typeName:"conditions:patternMatched",icon:K,title:"Pattern Matched",additionalPayload:[]}]},{typeName:"iterators",title:"Iterators",startingOnly:!1,icon:n1,description:"Split thread for each element in a list",key:"I",transitions:[{typeName:"iterators:each",icon:G0,title:"Each",additionalPayload:[{key:"item",type:"typing.Any",title:"Item"}]}]}]};function z1(r){const e=P1.stages.find(H=>H.typeName===r||H.typeName===`${r}s`);if(!e)throw new Error(`No metadata found for stage ${r}`);return e.icon}const L1=r=>r==="kanban"?M:r==="home"?c0:z1(r);export{G0 as F,L1 as i,z1 as s,P1 as w}; +//# sourceMappingURL=metadata.bc77f4b9.js.map diff --git a/abstra_statics/dist/assets/organization.2853982f.js b/abstra_statics/dist/assets/organization.03372a7f.js similarity index 71% rename from abstra_statics/dist/assets/organization.2853982f.js rename to abstra_statics/dist/assets/organization.03372a7f.js index 31e79f6645..9a75ab68b7 100644 --- a/abstra_statics/dist/assets/organization.2853982f.js +++ b/abstra_statics/dist/assets/organization.03372a7f.js @@ -1,2 +1,2 @@ -var d=Object.defineProperty;var l=(a,t,e)=>t in a?d(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{C as s}from"./gateway.8032b20a.js";import"./index.8c3f27aa.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="3d55dd38-620a-4f20-9978-a7ea6eff60b7",a._sentryDebugIdIdentifier="sentry-dbid-3d55dd38-620a-4f20-9978-a7ea6eff60b7")}catch{}})();class c{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async getUsageReportUrl(t){return s.get(`${this.urlPath}/${t}/usage-report`)}}const r=new c;class n{constructor(t){this.dto=t}static async list(){return(await r.list()).map(e=>new n(e))}static async create(t){const e=await r.create({name:t});return new n(e)}static async get(t){const e=await r.get(t);return new n(e)}async delete(){await r.delete(this.id)}static async rename(t,e){return r.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}get coalescedPlan(){var t;return(t=this.billingMetadata.plan)!=null?t:"No active plan"}get hasUsageReport(){return["Business","Abstra"].includes(this.coalescedPlan)}async getUsageReportUrl(){return r.getUsageReportUrl(this.id)}}export{n as O}; -//# sourceMappingURL=organization.2853982f.js.map +var d=Object.defineProperty;var c=(a,t,e)=>t in a?d(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(c(a,typeof t!="symbol"?t+"":t,e),e);import{C as s}from"./gateway.ae1d6857.js";import"./index.d0f12294.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="296cf214-8baf-42f6-97d0-d5c7f4592ed1",a._sentryDebugIdIdentifier="sentry-dbid-296cf214-8baf-42f6-97d0-d5c7f4592ed1")}catch{}})();class l{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async getUsageReportUrl(t){return s.get(`${this.urlPath}/${t}/usage-report`)}}const r=new l;class n{constructor(t){this.dto=t}static async list(){return(await r.list()).map(e=>new n(e))}static async create(t){const e=await r.create({name:t});return new n(e)}static async get(t){const e=await r.get(t);return new n(e)}async delete(){await r.delete(this.id)}static async rename(t,e){return r.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}get coalescedPlan(){var t;return(t=this.billingMetadata.plan)!=null?t:"No active plan"}get hasUsageReport(){return["Business","Abstra"].includes(this.coalescedPlan)}async getUsageReportUrl(){return r.getUsageReportUrl(this.id)}}export{n as O}; +//# sourceMappingURL=organization.03372a7f.js.map diff --git a/abstra_statics/dist/assets/player.84ae4ae4.js b/abstra_statics/dist/assets/player.84ae4ae4.js deleted file mode 100644 index a398b74c97..0000000000 --- a/abstra_statics/dist/assets/player.84ae4ae4.js +++ /dev/null @@ -1,2 +0,0 @@ -import{k as i,T as n,m as r,P as o,C as p,M as c,s as d,n as s,p as f,q as m,t as u,v as g}from"./index.8c3f27aa.js";import{s as y,c as l,a}from"./workspaceStore.a6063d10.js";import{_ as w}from"./App.vue_vue_type_style_index_0_lang.b11374af.js";import"./url.e93ecf3f.js";import"./colorHelpers.0ac76147.js";import"./PlayerConfigProvider.4d4af7bc.js";import"./index.73b06b4b.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4a03f62a-7f66-45f1-ac1a-7a61f9a1c579",t._sentryDebugIdIdentifier="sentry-dbid-4a03f62a-7f66-45f1-ac1a-7a61f9a1c579")}catch{}})();class _{static init(){setInterval(()=>fetch("/_version"),20*1e3)}}(async()=>{await y();const t=l(),e=i({render:()=>f(w)});n.init(),r(e,a),_.init(),e.use(a),e.use(t),e.use(o),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",c),e.component("Message",d),s(e,m),s(e,u),s(e,g)})(); -//# sourceMappingURL=player.84ae4ae4.js.map diff --git a/abstra_statics/dist/assets/player.9a469baa.js b/abstra_statics/dist/assets/player.9a469baa.js new file mode 100644 index 0000000000..41487f9dac --- /dev/null +++ b/abstra_statics/dist/assets/player.9a469baa.js @@ -0,0 +1,2 @@ +import{k as n,T as a,m as r,P as o,C as p,M as c,s as d,n as s,p as f,q as m,t as u,v as g}from"./index.d0f12294.js";import{s as y,c as l,a as i}from"./workspaceStore.e47060bf.js";import{_ as b}from"./App.vue_vue_type_style_index_0_lang.03b90ea7.js";import"./url.121c9984.js";import"./colorHelpers.b079bb04.js";import"./PlayerConfigProvider.e5e86f58.js";import"./index.c7e8afe7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4f6610fc-4a1b-41f3-857e-fe564768c863",t._sentryDebugIdIdentifier="sentry-dbid-4f6610fc-4a1b-41f3-857e-fe564768c863")}catch{}})();class w{static init(){setInterval(()=>fetch("/_version"),20*1e3)}}(async()=>{await y();const t=l(),e=n({render:()=>f(b)});a.init(),r(e,i),w.init(),e.use(i),e.use(t),e.use(o),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",c),e.component("Message",d),s(e,m),s(e,u),s(e,g)})(); +//# sourceMappingURL=player.9a469baa.js.map diff --git a/abstra_statics/dist/assets/plotly.min.72db632f.js b/abstra_statics/dist/assets/plotly.min.a4eba8bf.js similarity index 99% rename from abstra_statics/dist/assets/plotly.min.72db632f.js rename to abstra_statics/dist/assets/plotly.min.a4eba8bf.js index 6211b83d44..043aa86b5b 100644 --- a/abstra_statics/dist/assets/plotly.min.72db632f.js +++ b/abstra_statics/dist/assets/plotly.min.a4eba8bf.js @@ -1,4 +1,4 @@ -import{eH as Td}from"./index.8c3f27aa.js";(function(){try{var Cs=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Il=new Error().stack;Il&&(Cs._sentryDebugIds=Cs._sentryDebugIds||{},Cs._sentryDebugIds[Il]="7c87538a-7349-42fb-9029-86783ca48a49",Cs._sentryDebugIdIdentifier="sentry-dbid-7c87538a-7349-42fb-9029-86783ca48a49")}catch{}})();function kd(Cs,Il){for(var bl=0;blPs[Ha]})}}}return Object.freeze(Object.defineProperty(Cs,Symbol.toStringTag,{value:"Module"}))}var of={exports:{}};(function(Cs,Il){/*! For license information please see plotly.min.js.LICENSE.txt */(function(bl,Ps){Cs.exports=Ps()})(self,function(){return function(){var bl={98847:function(ee,z,e){var M=e(71828),k={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var l in k){var T=l.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");M.addStyleRule(T,k[l])}},98222:function(ee,z,e){ee.exports=e(82887)},27206:function(ee,z,e){ee.exports=e(60822)},59893:function(ee,z,e){ee.exports=e(23381)},5224:function(ee,z,e){ee.exports=e(83832)},59509:function(ee,z,e){ee.exports=e(72201)},75557:function(ee,z,e){ee.exports=e(91815)},40338:function(ee,z,e){ee.exports=e(21462)},35080:function(ee,z,e){ee.exports=e(51319)},61396:function(ee,z,e){ee.exports=e(57516)},40549:function(ee,z,e){ee.exports=e(98128)},49866:function(ee,z,e){ee.exports=e(99442)},36089:function(ee,z,e){ee.exports=e(93740)},19548:function(ee,z,e){ee.exports=e(8729)},35831:function(ee,z,e){ee.exports=e(93814)},61039:function(ee,z,e){ee.exports=e(14382)},97040:function(ee,z,e){ee.exports=e(51759)},77986:function(ee,z,e){ee.exports=e(10421)},24296:function(ee,z,e){ee.exports=e(43102)},58872:function(ee,z,e){ee.exports=e(92165)},29626:function(ee,z,e){ee.exports=e(3325)},65591:function(ee,z,e){ee.exports=e(36071)},69738:function(ee,z,e){ee.exports=e(43905)},92650:function(ee,z,e){ee.exports=e(35902)},35630:function(ee,z,e){ee.exports=e(69816)},73434:function(ee,z,e){ee.exports=e(94507)},27909:function(ee,z,e){var M=e(19548);M.register([e(27206),e(5224),e(58872),e(65591),e(69738),e(92650),e(49866),e(25743),e(6197),e(97040),e(85461),e(73434),e(54201),e(81299),e(47645),e(35630),e(77986),e(83043),e(93005),e(96881),e(4534),e(50581),e(40549),e(77900),e(47582),e(35080),e(21641),e(17280),e(5861),e(29626),e(10021),e(65317),e(96268),e(61396),e(35831),e(16122),e(46163),e(40344),e(40338),e(48131),e(36089),e(55334),e(75557),e(19440),e(99488),e(59893),e(97393),e(98222),e(61039),e(24296),e(66398),e(59509)]),ee.exports=M},46163:function(ee,z,e){ee.exports=e(15154)},96881:function(ee,z,e){ee.exports=e(64943)},50581:function(ee,z,e){ee.exports=e(21164)},55334:function(ee,z,e){ee.exports=e(54186)},65317:function(ee,z,e){ee.exports=e(94873)},10021:function(ee,z,e){ee.exports=e(67618)},54201:function(ee,z,e){ee.exports=e(58810)},5861:function(ee,z,e){ee.exports=e(20593)},16122:function(ee,z,e){ee.exports=e(29396)},83043:function(ee,z,e){ee.exports=e(13551)},48131:function(ee,z,e){ee.exports=e(46858)},47582:function(ee,z,e){ee.exports=e(17988)},21641:function(ee,z,e){ee.exports=e(68868)},96268:function(ee,z,e){ee.exports=e(20467)},19440:function(ee,z,e){ee.exports=e(91271)},99488:function(ee,z,e){ee.exports=e(21461)},97393:function(ee,z,e){ee.exports=e(85956)},25743:function(ee,z,e){ee.exports=e(52979)},66398:function(ee,z,e){ee.exports=e(32275)},17280:function(ee,z,e){ee.exports=e(6419)},77900:function(ee,z,e){ee.exports=e(61510)},81299:function(ee,z,e){ee.exports=e(87619)},93005:function(ee,z,e){ee.exports=e(93601)},40344:function(ee,z,e){ee.exports=e(96595)},47645:function(ee,z,e){ee.exports=e(70954)},6197:function(ee,z,e){ee.exports=e(47462)},4534:function(ee,z,e){ee.exports=e(17659)},85461:function(ee,z,e){ee.exports=e(19990)},82884:function(ee){ee.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(ee,z,e){var M=e(82884),k=e(41940),l=e(85555),T=e(44467).templatedArray;e(24695),ee.exports=T("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:k({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(ee,z,e){var M=e(71828),k=e(89298),l=e(92605).draw;function T(d){var s=d._fullLayout;M.filterVisible(s.annotations).forEach(function(t){var i=k.getFromId(d,t.xref),r=k.getFromId(d,t.yref),n=k.getRefType(t.xref),o=k.getRefType(t.yref);t._extremes={},n==="range"&&b(t,i),o==="range"&&b(t,r)})}function b(d,s){var t,i=s._id,r=i.charAt(0),n=d[r],o=d["a"+r],a=d[r+"ref"],u=d["a"+r+"ref"],p=d["_"+r+"padplus"],c=d["_"+r+"padminus"],x={x:1,y:-1}[r]*d[r+"shift"],g=3*d.arrowsize*d.arrowwidth||0,h=g+x,m=g-x,v=3*d.startarrowsize*d.arrowwidth||0,y=v+x,_=v-x;if(u===a){var f=k.findExtremes(s,[s.r2c(n)],{ppadplus:h,ppadminus:m}),S=k.findExtremes(s,[s.r2c(o)],{ppadplus:Math.max(p,y),ppadminus:Math.max(c,_)});t={min:[f.min[0],S.min[0]],max:[f.max[0],S.max[0]]}}else y=o?y+o:y,_=o?_-o:_,t=k.findExtremes(s,[s.r2c(n)],{ppadplus:Math.max(p,h,y),ppadminus:Math.max(c,m,_)});d._extremes[i]=t}ee.exports=function(d){var s=d._fullLayout;if(M.filterVisible(s.annotations).length&&d._fullData.length)return M.syncOrAsync([l,T],d)}},44317:function(ee,z,e){var M=e(71828),k=e(73972),l=e(44467).arrayEditor;function T(d,s){var t,i,r,n,o,a,u,p=d._fullLayout.annotations,c=[],x=[],g=[],h=(s||[]).length;for(t=0;t0||t.explicitOff.length>0},onClick:function(d,s){var t,i,r=T(d,s),n=r.on,o=r.off.concat(r.explicitOff),a={},u=d._fullLayout.annotations;if(n.length||o.length){for(t=0;t.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ct]}for(var Ne=!1,fe=["x","y"],Me=0;Me1)&&(at===Ke?((Mt=Qe.r2fraction(h["a"+Ge]))<0||Mt>1)&&(Ne=!0):Ne=!0),be=Qe._offset+Qe.r2p(h[Ge]),Re=.5}else{var Ye=Pt==="domain";Ge==="x"?(Fe=h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.l+E.w*Fe):(Fe=1-h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.t+E.h*Fe),Re=h.showarrow?.5:Fe}if(h.showarrow){wt.head=be;var Xe=h["a"+Ge];if(He=xt*ze(.5,h.xanchor)-st*ze(.5,h.yanchor),at===Ke){var Ve=d.getRefType(at);Ve==="domain"?(Ge==="y"&&(Xe=1-Xe),wt.tail=Qe._offset+Qe._length*Xe):Ve==="paper"?Ge==="y"?(Xe=1-Xe,wt.tail=E.t+E.h*Xe):wt.tail=E.l+E.w*Xe:wt.tail=Qe._offset+Qe.r2p(Xe),Ce=He}else wt.tail=be+Xe,Ce=He+Xe;wt.text=wt.tail+He;var We=w[Ge==="x"?"width":"height"];if(Ke==="paper"&&(wt.head=T.constrain(wt.head,1,We-1)),at==="pixel"){var nt=-Math.max(wt.tail-3,wt.text),rt=Math.min(wt.tail+3,wt.text)-We;nt>0?(wt.tail+=nt,wt.text+=nt):rt>0&&(wt.tail-=rt,wt.text-=rt)}wt.tail+=Tt,wt.head+=Tt}else Ce=He=ot*ze(Re,mt),wt.text=be+He;wt.text+=Tt,He+=Tt,Ce+=Tt,h["_"+Ge+"padplus"]=ot/2+Ce,h["_"+Ge+"padminus"]=ot/2-Ce,h["_"+Ge+"size"]=ot,h["_"+Ge+"shift"]=He}if(Ne)K.remove();else{var Ie=0,De=0;if(h.align!=="left"&&(Ie=(ne-le)*(h.align==="center"?.5:1)),h.valign!=="top"&&(De=(ve-se)*(h.valign==="middle"?.5:1)),ke)Oe.select("svg").attr({x:W+Ie-1,y:W+De}).call(t.setClipUrl,re?O:null,g);else{var et=W+De-Te.top,tt=W+Ie-Te.left;pe.call(r.positionText,tt,et).call(t.setClipUrl,re?O:null,g)}ie.select("rect").call(t.setRect,W,W,ne,ve),Q.call(t.setRect,J/2,J/2,Ee-J,_e-J),K.call(t.setTranslate,Math.round(V.x.text-Ee/2),Math.round(V.y.text-_e/2)),H.attr({transform:"rotate("+N+","+V.x.text+","+V.y.text+")"});var gt,ht=function(dt,ct){B.selectAll(".annotation-arrow-g").remove();var kt=V.x.head,ut=V.y.head,ft=V.x.tail+dt,bt=V.y.tail+ct,It=V.x.text+dt,Rt=V.y.text+ct,Dt=T.rotationXYMatrix(N,It,Rt),Kt=T.apply2DTransform(Dt),qt=T.apply2DTransform2(Dt),Wt=+Q.attr("width"),Ht=+Q.attr("height"),hn=It-.5*Wt,yn=hn+Wt,un=Rt-.5*Ht,jt=un+Ht,nn=[[hn,un,hn,jt],[hn,jt,yn,jt],[yn,jt,yn,un],[yn,un,hn,un]].map(qt);if(!nn.reduce(function($n,Gn){return $n^!!T.segmentsIntersect(kt,ut,kt+1e6,ut+1e6,Gn[0],Gn[1],Gn[2],Gn[3])},!1)){nn.forEach(function($n){var Gn=T.segmentsIntersect(ft,bt,kt,ut,$n[0],$n[1],$n[2],$n[3]);Gn&&(ft=Gn.x,bt=Gn.y)});var Jt=h.arrowwidth,rn=h.arrowcolor,fn=h.arrowside,vn=B.append("g").style({opacity:s.opacity(rn)}).classed("annotation-arrow-g",!0),Mn=vn.append("path").attr("d","M"+ft+","+bt+"L"+kt+","+ut).style("stroke-width",Jt+"px").call(s.stroke,s.rgb(rn));if(u(Mn,fn,h),L.annotationPosition&&Mn.node().parentNode&&!v){var En=kt,bn=ut;if(h.standoff){var Ln=Math.sqrt(Math.pow(kt-ft,2)+Math.pow(ut-bt,2));En+=h.standoff*(ft-kt)/Ln,bn+=h.standoff*(bt-ut)/Ln}var Wn,Qn,ir=vn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ft-En)+","+(bt-bn),transform:b(En,bn)}).style("stroke-width",Jt+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");o.init({element:ir.node(),gd:g,prepFn:function(){var $n=t.getTranslate(K);Wn=$n.x,Qn=$n.y,y&&y.autorange&&P(y._name+".autorange",!0),_&&_.autorange&&P(_._name+".autorange",!0)},moveFn:function($n,Gn){var dr=Kt(Wn,Qn),Bt=dr[0]+$n,tn=dr[1]+Gn;K.call(t.setTranslate,Bt,tn),R("x",c(y,$n,"x",E,h)),R("y",c(_,Gn,"y",E,h)),h.axref===h.xref&&R("ax",c(y,$n,"ax",E,h)),h.ayref===h.yref&&R("ay",c(_,Gn,"ay",E,h)),vn.attr("transform",b($n,Gn)),H.attr({transform:"rotate("+N+","+Bt+","+tn+")"})},doneFn:function(){k.call("_guiRelayout",g,G());var $n=document.querySelector(".js-notes-box-panel");$n&&$n.redraw($n.selectedObj)}})}}};h.showarrow&&ht(0,0),q&&o.init({element:K.node(),gd:g,prepFn:function(){gt=H.attr("transform")},moveFn:function(dt,ct){var kt="pointer";if(h.showarrow)h.axref===h.xref?R("ax",c(y,dt,"ax",E,h)):R("ax",h.ax+dt),h.ayref===h.yref?R("ay",c(_,ct,"ay",E.w,h)):R("ay",h.ay+ct),ht(dt,ct);else{if(v)return;var ut,ft;if(y)ut=c(y,dt,"x",E,h);else{var bt=h._xsize/E.w,It=h.x+(h._xshift-h.xshift)/E.w-bt/2;ut=o.align(It+dt/E.w,bt,0,1,h.xanchor)}if(_)ft=c(_,ct,"y",E,h);else{var Rt=h._ysize/E.h,Dt=h.y-(h._yshift+h.yshift)/E.h-Rt/2;ft=o.align(Dt-ct/E.h,Rt,0,1,h.yanchor)}R("x",ut),R("y",ft),y&&_||(kt=o.getCursor(y?.5:ut,_?.5:ft,h.xanchor,h.yanchor))}H.attr({transform:b(dt,ct)+gt}),n(K,kt)},clickFn:function(dt,ct){h.captureevents&&g.emit("plotly_clickannotation",ge(ct))},doneFn:function(){n(K),k.call("_guiRelayout",g,G());var dt=document.querySelector(".js-notes-box-panel");dt&&dt.redraw(dt.selectedObj)}})}}}ee.exports={draw:function(g){var h=g._fullLayout;h._infolayer.selectAll(".annotation").remove();for(var m=0;m=0,v=i.indexOf("end")>=0,y=c.backoff*g+r.standoff,_=x.backoff*h+r.startstandoff;if(p.nodeName==="line"){n={x:+t.attr("x1"),y:+t.attr("y1")},o={x:+t.attr("x2"),y:+t.attr("y2")};var f=n.x-o.x,S=n.y-o.y;if(u=(a=Math.atan2(S,f))+Math.PI,y&&_&&y+_>Math.sqrt(f*f+S*S))return void B();if(y){if(y*y>f*f+S*S)return void B();var w=y*Math.cos(a),E=y*Math.sin(a);o.x+=w,o.y+=E,t.attr({x2:o.x,y2:o.y})}if(_){if(_*_>f*f+S*S)return void B();var L=_*Math.cos(a),C=_*Math.sin(a);n.x-=L,n.y-=C,t.attr({x1:n.x,y1:n.y})}}else if(p.nodeName==="path"){var P=p.getTotalLength(),R="";if(P1){r=!0;break}}r?T.fullLayout._infolayer.select(".annotation-"+T.id+'[data-index="'+t+'"]').remove():(i._pdata=k(T.glplot.cameraParams,[b.xaxis.r2l(i.x)*d[0],b.yaxis.r2l(i.y)*d[1],b.zaxis.r2l(i.z)*d[2]]),M(T.graphDiv,i,t,T.id,i._xa,i._ya))}}},2468:function(ee,z,e){var M=e(73972),k=e(71828);ee.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(26997)}}},layoutAttributes:e(26997),handleDefaults:e(20226),includeBasePlot:function(l,T){var b=M.subplotsRegistry.gl3d;if(b)for(var d=b.attrRegex,s=Object.keys(l),t=0;t=0)))return i;if(u===3)o[u]>1&&(o[u]=1);else if(o[u]>=1)return i}var p=Math.round(255*o[0])+", "+Math.round(255*o[1])+", "+Math.round(255*o[2]);return a?"rgba("+p+", "+o[3]+")":"rgb("+p+")"}T.tinyRGB=function(i){var r=i.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"},T.rgb=function(i){return T.tinyRGB(M(i))},T.opacity=function(i){return i?M(i).getAlpha():0},T.addOpacity=function(i,r){var n=M(i).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+r+")"},T.combine=function(i,r){var n=M(i).toRgb();if(n.a===1)return M(i).toRgbString();var o=M(r||s).toRgb(),a=o.a===1?o:{r:255*(1-o.a)+o.r*o.a,g:255*(1-o.a)+o.g*o.a,b:255*(1-o.a)+o.b*o.a},u={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return M(u).toRgbString()},T.contrast=function(i,r,n){var o=M(i);return o.getAlpha()!==1&&(o=M(T.combine(i,s))),(o.isDark()?r?o.lighten(r):s:n?o.darken(n):d).toString()},T.stroke=function(i,r){var n=M(r);i.style({stroke:T.tinyRGB(n),"stroke-opacity":n.getAlpha()})},T.fill=function(i,r){var n=M(r);i.style({fill:T.tinyRGB(n),"fill-opacity":n.getAlpha()})},T.clean=function(i){if(i&&typeof i=="object"){var r,n,o,a,u=Object.keys(i);for(r=0;r0?rt>=gt:rt<=gt));Ie++)rt>dt&&rt0?rt>=gt:rt<=gt));Ie++)rt>nt[0]&&rt1){var st=Math.pow(10,Math.floor(Math.log(xt)/Math.LN10));Qe*=st*s.roundUp(xt/st,[2,5,10]),(Math.abs(le.start)/le.size+1e-6)%1<2e-6&&(Ke.tick0=0)}Ke.dtick=Qe}Ke.domain=G?[He+W/pe.h,He+Ne-W/pe.h]:[He+Y/pe.w,He+Ne-Y/pe.w],Ke.setScale(),C.attr("transform",t(Math.round(pe.l),Math.round(pe.t)));var ot,mt=C.select("."+_.cbtitleunshift).attr("transform",t(-Math.round(pe.l),-Math.round(pe.t))),Tt=Ke.ticklabelposition,wt=Ke.title.font.size,Pt=C.select("."+_.cbaxis),Mt=0,Ye=0;function Xe(Ve,We){var nt={propContainer:Ke,propName:P._propPrefix+"title",traceIndex:P._traceIndex,_meta:P._meta,placeholder:ce._dfltTitle.colorbar,containerGroup:C.select("."+_.cbtitle)},rt=Ve.charAt(0)==="h"?Ve.substr(1):"h"+Ve;C.selectAll("."+rt+",."+rt+"-math-group").remove(),a.draw(R,Ve,i(nt,We||{}))}return s.syncOrAsync([l.previousPromises,function(){var Ve,We;(G&&at||!G&&!at)&&(me==="top"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He-Ne)+3+.75*wt),me==="bottom"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He)-3-.25*wt),me==="right"&&(We=W+pe.t+Me*re+3+.75*wt,Ve=Y+pe.l+fe*He),Xe(Ke._id+"title",{attributes:{x:Ve,y:We,"text-anchor":G?"start":"middle"}}))},function(){if(!G&&!at||G&&at){var Ve,We=C.select("."+_.cbtitle),nt=We.select("text"),rt=[-H/2,H/2],Ie=We.select(".h"+Ke._id+"title-math-group").node(),De=15.6;if(nt.node()&&(De=parseInt(nt.node().style.fontSize,10)*m),Ie?(Ve=n.bBox(Ie),Ye=Ve.width,(Mt=Ve.height)>De&&(rt[1]-=(Mt-De)/2)):nt.node()&&!nt.classed(_.jsPlaceholder)&&(Ve=n.bBox(nt.node()),Ye=Ve.width,Mt=Ve.height),G){if(Mt){if(Mt+=5,me==="top")Ke.domain[1]-=Mt/pe.h,rt[1]*=-1;else{Ke.domain[0]+=Mt/pe.h;var et=u.lineCount(nt);rt[1]+=(1-et)*De}We.attr("transform",t(rt[0],rt[1])),Ke.setScale()}}else Ye&&(me==="right"&&(Ke.domain[0]+=(Ye+wt/2)/pe.w),We.attr("transform",t(rt[0],rt[1])),Ke.setScale())}C.selectAll("."+_.cbfills+",."+_.cblines).attr("transform",G?t(0,Math.round(pe.h*(1-Ke.domain[1]))):t(Math.round(pe.w*Ke.domain[0]),0)),Pt.attr("transform",G?t(0,Math.round(-pe.t)):t(Math.round(-pe.l),0));var tt=C.select("."+_.cbfills).selectAll("rect."+_.cbfill).attr("style","").data(ne);tt.enter().append("rect").classed(_.cbfill,!0).attr("style",""),tt.exit().remove();var gt=Oe.map(Ke.c2p).map(Math.round).sort(function(ut,ft){return ut-ft});tt.each(function(ut,ft){var bt=[ft===0?Oe[0]:(ne[ft]+ne[ft-1])/2,ft===ne.length-1?Oe[1]:(ne[ft]+ne[ft+1])/2].map(Ke.c2p).map(Math.round);G&&(bt[1]=s.constrain(bt[1]+(bt[1]>bt[0])?1:-1,gt[0],gt[1]));var It=M.select(this).attr(G?"x":"y",be).attr(G?"y":"x",M.min(bt)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(M.max(bt)-M.min(bt),2));if(P._fillgradient)n.gradient(It,R,P._id,G?"vertical":"horizontalreversed",P._fillgradient,"fill");else{var Rt=Te(ut).replace("e-","");It.attr("fill",k(Rt).toHexString())}});var ht=C.select("."+_.cblines).selectAll("path."+_.cbline).data(we.color&&we.width?ve:[]);ht.enter().append("path").classed(_.cbline,!0),ht.exit().remove(),ht.each(function(ut){var ft=be,bt=Math.round(Ke.c2p(ut))+we.width/2%1;M.select(this).attr("d","M"+(G?ft+","+bt:bt+","+ft)+(G?"h":"v")+Ee).call(n.lineGroupStyle,we.width,ke(ut),we.dash)}),Pt.selectAll("g."+Ke._id+"tick,path").remove();var dt=be+Ee+(H||0)/2-(P.ticks==="outside"?1:0),ct=b.calcTicks(Ke),kt=b.getTickSigns(Ke)[2];return b.drawTicks(R,Ke,{vals:Ke.ticks==="inside"?b.clipEnds(Ke,ct):ct,layer:Pt,path:b.makeTickPath(Ke,dt,kt),transFn:b.makeTransTickFn(Ke)}),b.drawLabels(R,Ke,{vals:ct,layer:Pt,transFn:b.makeTransTickLabelFn(Ke),labelFns:b.makeLabelFns(Ke,dt)})},function(){if(G&&!at||!G&&at){var Ve,We,nt=Ke.position||0,rt=Ke._offset+Ke._length/2;if(me==="right")We=rt,Ve=pe.l+fe*nt+10+wt*(Ke.showticklabels?1:.5);else if(Ve=rt,me==="bottom"&&(We=pe.t+Me*nt+10+(Tt.indexOf("inside")===-1?Ke.tickfont.size:0)+(Ke.ticks!=="intside"&&P.ticklen||0)),me==="top"){var Ie=ye.text.split("
").length;We=pe.t+Me*nt+10-Ee-m*wt*Ie}Xe((G?"h":"v")+Ke._id+"title",{avoid:{selection:M.select(R).selectAll("g."+Ke._id+"tick"),side:me,offsetTop:G?0:pe.t,offsetLeft:G?pe.l:0,maxShift:G?ce.width:ce.height},attributes:{x:Ve,y:We,"text-anchor":"middle"},transform:{rotate:G?-90:0,offset:0}})}},l.previousPromises,function(){var Ve,We=Ee+H/2;Tt.indexOf("inside")===-1&&(Ve=n.bBox(Pt.node()),We+=G?Ve.width:Ve.height),ot=mt.select("text");var nt=0,rt=G&&me==="top",Ie=!G&&me==="right",De=0;if(ot.node()&&!ot.classed(_.jsPlaceholder)){var et,tt=mt.select(".h"+Ke._id+"title-math-group").node();tt&&(G&&at||!G&&!at)?(nt=(Ve=n.bBox(tt)).width,et=Ve.height):(nt=(Ve=n.bBox(mt.node())).right-pe.l-(G?be:Ge),et=Ve.bottom-pe.t-(G?Ge:be),G||me!=="top"||(We+=Ve.height,De=Ve.height)),Ie&&(ot.attr("transform",t(nt/2+wt/2,0)),nt*=2),We=Math.max(We,G?nt:et)}var gt=2*(G?Y:W)+We+q+H/2,ht=0;!G&&ye.text&&J==="bottom"&&re<=0&&(gt+=ht=gt/2,De+=ht),ce._hColorbarMoveTitle=ht,ce._hColorbarMoveCBTitle=De;var dt=q+H,ct=(G?be:Ge)-dt/2-(G?Y:0),kt=(G?Ge:be)-(G?ze:W+De-ht);C.select("."+_.cbbg).attr("x",ct).attr("y",kt).attr(G?"width":"height",Math.max(gt-ht,2)).attr(G?"height":"width",Math.max(ze+dt,2)).call(o.fill,te).call(o.stroke,P.bordercolor).style("stroke-width",q);var ut=Ie?Math.max(nt-10,0):0;C.selectAll("."+_.cboutline).attr("x",(G?be:Ge+Y)+ut).attr("y",(G?Ge+W-ze:be)+(rt?Mt:0)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(ze-(G?2*W+Mt:2*Y+ut),2)).call(o.stroke,P.outlinecolor).style({fill:"none","stroke-width":H});var ft=G?Ce*gt:0,bt=G?0:(1-Fe)*gt-De;if(ft=oe?pe.l-ft:-ft,bt=ie?pe.t-bt:-bt,C.attr("transform",t(ft,bt)),!G&&(q||k(te).getAlpha()&&!k.equals(ce.paper_bgcolor,te))){var It=Pt.selectAll("text"),Rt=It[0].length,Dt=C.select("."+_.cbbg).node(),Kt=n.bBox(Dt),qt=n.getTranslate(C);It.each(function(fn,vn){var Mn=Rt-1;if(vn===0||vn===Mn){var En,bn=n.bBox(this),Ln=n.getTranslate(this);if(vn===Mn){var Wn=bn.right+Ln.x;(En=Kt.right+qt.x+Ge-q-2+Q-Wn)>0&&(En=0)}else if(vn===0){var Qn=bn.left+Ln.x;(En=Kt.left+qt.x+Ge+q+2-Qn)<0&&(En=0)}En&&(Rt<3?this.setAttribute("transform","translate("+En+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Wt={},Ht=v[K],hn=y[K],yn=v[J],un=y[J],jt=gt-Ee;G?(V==="pixels"?(Wt.y=re,Wt.t=ze*yn,Wt.b=ze*un):(Wt.t=Wt.b=0,Wt.yt=re+O*yn,Wt.yb=re-O*un),B==="pixels"?(Wt.x=Q,Wt.l=gt*Ht,Wt.r=gt*hn):(Wt.l=jt*Ht,Wt.r=jt*hn,Wt.xl=Q-N*Ht,Wt.xr=Q+N*hn)):(V==="pixels"?(Wt.x=Q,Wt.l=ze*Ht,Wt.r=ze*hn):(Wt.l=Wt.r=0,Wt.xl=Q+O*Ht,Wt.xr=Q-O*hn),B==="pixels"?(Wt.y=1-re,Wt.t=gt*yn,Wt.b=gt*un):(Wt.t=jt*yn,Wt.b=jt*un,Wt.yt=re-N*yn,Wt.yb=re+N*un));var nn=P.y<.5?"b":"t",Jt=P.x<.5?"l":"r";R._fullLayout._reservedMargin[P._id]={};var rn={r:ce.width-ct-ft,l:ct+Wt.r,b:ce.height-kt-bt,t:kt+Wt.b};oe&&ie?l.autoMargin(R,P._id,Wt):oe?R._fullLayout._reservedMargin[P._id][nn]=rn[nn]:ie||G?R._fullLayout._reservedMargin[P._id][Jt]=rn[Jt]:R._fullLayout._reservedMargin[P._id][nn]=rn[nn]}],R)}(E,w,f);L&&L.then&&(f._promises||[]).push(L),f._context.edits.colorbarPosition&&function(C,P,R){var G,O,V,N=P.orientation==="v",B=R._fullLayout._size;d.init({element:C.node(),gd:R,prepFn:function(){G=C.attr("transform"),r(C)},moveFn:function(H,q){C.attr("transform",G+t(H,q)),O=d.align((N?P._uFrac:P._vFrac)+H/B.w,N?P._thickFrac:P._lenFrac,0,1,P.xanchor),V=d.align((N?P._vFrac:1-P._uFrac)-q/B.h,N?P._lenFrac:P._thickFrac,0,1,P.yanchor);var te=d.getCursor(O,V,P.xanchor,P.yanchor);r(C,te)},doneFn:function(){if(r(C),O!==void 0&&V!==void 0){var H={};H[P._propPrefix+"x"]=O,H[P._propPrefix+"y"]=V,P._traceIndex!==void 0?T.call("_guiRestyle",R,H,P._traceIndex):T.call("_guiRelayout",R,H)}}})}(E,w,f)}),S.exit().each(function(w){l.autoMargin(f,w._id)}).remove(),S.order()}}},76228:function(ee,z,e){var M=e(71828);ee.exports=function(k){return M.isPlainObject(k.colorbar)}},12311:function(ee,z,e){ee.exports={moduleType:"component",name:"colorbar",attributes:e(63583),supplyDefaults:e(62499),draw:e(98981).draw,hasColorbar:e(76228)}},50693:function(ee,z,e){var M=e(63583),k=e(30587).counter,l=e(78607),T=e(63282).scales;function b(d){return"`"+d+"`"}l(T),ee.exports=function(d,s){d=d||"";var t,i=(s=s||{}).cLetter||"c",r=("onlyIfNumerical"in s?s.onlyIfNumerical:Boolean(d),"noScale"in s?s.noScale:d==="marker.line"),n="showScaleDflt"in s?s.showScaleDflt:i==="z",o=typeof s.colorscaleDflt=="string"?T[s.colorscaleDflt]:null,a=s.editTypeOverride||"",u=d?d+".":"";"colorAttr"in s?(t=s.colorAttr,s.colorAttr):b(u+(t={z:"z",c:"color"}[i]));var p=i+"auto",c=i+"min",x=i+"max",g=i+"mid",h={};h[c]=h[x]=void 0;var m={};m[p]=!1;var v={};return t==="color"&&(v.color={valType:"color",arrayOk:!0,editType:a||"style"},s.anim&&(v.color.anim=!0)),v[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:h},v[c]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[x]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:h},v.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},v.autocolorscale={valType:"boolean",dflt:s.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},v.reversescale={valType:"boolean",dflt:!1,editType:"plot"},r||(v.showscale={valType:"boolean",dflt:n,editType:"calc"},v.colorbar=M),s.noColorAxis||(v.coloraxis={valType:"subplotid",regex:k("coloraxis"),dflt:null,editType:"calc"}),v}},78803:function(ee,z,e){var M=e(92770),k=e(71828),l=e(52075).extractOpts;ee.exports=function(T,b,d){var s,t=T._fullLayout,i=d.vals,r=d.containerStr,n=r?k.nestedProperty(b,r).get():b,o=l(n),a=o.auto!==!1,u=o.min,p=o.max,c=o.mid,x=function(){return k.aggNums(Math.min,null,i)},g=function(){return k.aggNums(Math.max,null,i)};u===void 0?u=x():a&&(u=n._colorAx&&M(u)?Math.min(u,x()):x()),p===void 0?p=g():a&&(p=n._colorAx&&M(p)?Math.max(p,g()):g()),a&&c!==void 0&&(p-c>c-u?u=c-(p-c):p-c=0?t.colorscale.sequential:t.colorscale.sequentialminus,o._sync("colorscale",s))}},33046:function(ee,z,e){var M=e(71828),k=e(52075).hasColorscale,l=e(52075).extractOpts;ee.exports=function(T,b){function d(a,u){var p=a["_"+u];p!==void 0&&(a[u]=p)}function s(a,u){var p=u.container?M.nestedProperty(a,u.container).get():a;if(p)if(p.coloraxis)p._colorAx=b[p.coloraxis];else{var c=l(p),x=c.auto;(x||c.min===void 0)&&d(p,u.min),(x||c.max===void 0)&&d(p,u.max),c.autocolorscale&&d(p,"colorscale")}}for(var t=0;t=0;x--,g++){var h=u[x];c[g]=[1-h[0],h[1]]}return c}function o(u,p){p=p||{};for(var c=u.domain,x=u.range,g=x.length,h=new Array(g),m=0;m1.3333333333333333-d?b:d}},70461:function(ee,z,e){var M=e(71828),k=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ee.exports=function(l,T,b,d){return l=b==="left"?0:b==="center"?1:b==="right"?2:M.constrain(Math.floor(3*l),0,2),T=d==="bottom"?0:d==="middle"?1:d==="top"?2:M.constrain(Math.floor(3*T),0,2),k[T][l]}},64505:function(ee,z){z.selectMode=function(e){return e==="lasso"||e==="select"},z.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.openMode=function(e){return e==="drawline"||e==="drawopenpath"},z.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},z.selectingOrDrawing=function(e){return z.freeMode(e)||z.rectMode(e)}},28569:function(ee,z,e){var M=e(48956),k=e(57035),l=e(38520),T=e(71828).removeElement,b=e(85555),d=ee.exports={};d.align=e(92807),d.getCursor=e(70461);var s=e(26041);function t(){var r=document.createElement("div");r.className="dragcover";var n=r.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(r),r}function i(r){return M(r.changedTouches?r.changedTouches[0]:r,document.body)}d.unhover=s.wrapped,d.unhoverRaw=s.raw,d.init=function(r){var n,o,a,u,p,c,x,g,h=r.gd,m=1,v=h._context.doubleClickDelay,y=r.element;h._mouseDownTime||(h._mouseDownTime=0),y.style.pointerEvents="all",y.onmousedown=f,l?(y._ontouchstart&&y.removeEventListener("touchstart",y._ontouchstart),y._ontouchstart=f,y.addEventListener("touchstart",f,{passive:!1})):y.ontouchstart=f;var _=r.clampFn||function(E,L,C){return Math.abs(E)v&&(m=Math.max(m-1,1)),h._dragged)r.doneFn&&r.doneFn();else if(r.clickFn&&r.clickFn(m,c),!g){var L;try{L=new MouseEvent("click",E)}catch{var C=i(E);(L=document.createEvent("MouseEvents")).initMouseEvent("click",E.bubbles,E.cancelable,E.view,E.detail,E.screenX,E.screenY,C[0],C[1],E.ctrlKey,E.altKey,E.shiftKey,E.metaKey,E.button,E.relatedTarget)}x.dispatchEvent(L)}h._dragging=!1,h._dragged=!1}else h._dragged=!1}},d.coverSlip=t},26041:function(ee,z,e){var M=e(11086),k=e(79990),l=e(24401).getGraphDiv,T=e(26675),b=ee.exports={};b.wrapped=function(d,s,t){(d=l(d))._fullLayout&&k.clear(d._fullLayout._uid+T.HOVERID),b.raw(d,s,t)},b.raw=function(d,s){var t=d._fullLayout,i=d._hoverdata;s||(s={}),s.target&&!d._dragged&&M.triggerHandler(d,"plotly_beforehover",s)===!1||(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),d._hoverdata=void 0,s.target&&i&&d.emit("plotly_unhover",{event:s,points:i}))}},79952:function(ee,z){z.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},z.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(ee,z,e){var M=e(39898),k=e(71828),l=k.numberFormat,T=e(92770),b=e(84267),d=e(73972),s=e(7901),t=e(21081),i=k.strTranslate,r=e(63893),n=e(77922),o=e(18783).LINE_SPACING,a=e(37822).DESELECTDIM,u=e(34098),p=e(39984),c=e(23469).appendArrayPointValue,x=ee.exports={};function g(ke,Te,le){var se=Te.fillpattern,ne=se&&x.getPatternAttr(se.shape,0,"");if(ne){var ve=x.getPatternAttr(se.bgcolor,0,null),Ee=x.getPatternAttr(se.fgcolor,0,null),_e=se.fgopacity,ze=x.getPatternAttr(se.size,0,8),Ne=x.getPatternAttr(se.solidity,0,.3),fe=Te.uid;x.pattern(ke,"point",le,fe,ne,ze,Ne,void 0,se.fillmode,ve,Ee,_e)}else Te.fillcolor&&ke.call(s.fill,Te.fillcolor)}x.font=function(ke,Te,le,se){k.isPlainObject(Te)&&(se=Te.color,le=Te.size,Te=Te.family),Te&&ke.style("font-family",Te),le+1&&ke.style("font-size",le+"px"),se&&ke.call(s.fill,se)},x.setPosition=function(ke,Te,le){ke.attr("x",Te).attr("y",le)},x.setSize=function(ke,Te,le){ke.attr("width",Te).attr("height",le)},x.setRect=function(ke,Te,le,se,ne){ke.call(x.setPosition,Te,le).call(x.setSize,se,ne)},x.translatePoint=function(ke,Te,le,se){var ne=le.c2p(ke.x),ve=se.c2p(ke.y);return!!(T(ne)&&T(ve)&&Te.node())&&(Te.node().nodeName==="text"?Te.attr("x",ne).attr("y",ve):Te.attr("transform",i(ne,ve)),!0)},x.translatePoints=function(ke,Te,le){ke.each(function(se){var ne=M.select(this);x.translatePoint(se,ne,Te,le)})},x.hideOutsideRangePoint=function(ke,Te,le,se,ne,ve){Te.attr("display",le.isPtWithinRange(ke,ne)&&se.isPtWithinRange(ke,ve)?null:"none")},x.hideOutsideRangePoints=function(ke,Te){if(Te._hasClipOnAxisFalse){var le=Te.xaxis,se=Te.yaxis;ke.each(function(ne){var ve=ne[0].trace,Ee=ve.xcalendar,_e=ve.ycalendar,ze=d.traceIs(ve,"bar-like")?".bartext":".point,.textpoint";ke.selectAll(ze).each(function(Ne){x.hideOutsideRangePoint(Ne,M.select(this),le,se,Ee,_e)})})}},x.crispRound=function(ke,Te,le){return Te&&T(Te)?ke._context.staticPlot?Te:Te<1?1:Math.round(Te):le||0},x.singleLineStyle=function(ke,Te,le,se,ne){Te.style("fill","none");var ve=(((ke||[])[0]||{}).trace||{}).line||{},Ee=le||ve.width||0,_e=ne||ve.dash||"";s.stroke(Te,se||ve.color),x.dashLine(Te,_e,Ee)},x.lineGroupStyle=function(ke,Te,le,se){ke.style("fill","none").each(function(ne){var ve=(((ne||[])[0]||{}).trace||{}).line||{},Ee=Te||ve.width||0,_e=se||ve.dash||"";M.select(this).call(s.stroke,le||ve.color).call(x.dashLine,_e,Ee)})},x.dashLine=function(ke,Te,le){le=+le||0,Te=x.dashStyle(Te,le),ke.style({"stroke-dasharray":Te,"stroke-width":le+"px"})},x.dashStyle=function(ke,Te){Te=+Te||1;var le=Math.max(Te,3);return ke==="solid"?ke="":ke==="dot"?ke=le+"px,"+le+"px":ke==="dash"?ke=3*le+"px,"+3*le+"px":ke==="longdash"?ke=5*le+"px,"+5*le+"px":ke==="dashdot"?ke=3*le+"px,"+le+"px,"+le+"px,"+le+"px":ke==="longdashdot"&&(ke=5*le+"px,"+2*le+"px,"+le+"px,"+2*le+"px"),ke},x.singleFillStyle=function(ke,Te){var le=M.select(ke.node());g(ke,((le.data()[0]||[])[0]||{}).trace||{},Te)},x.fillGroupStyle=function(ke,Te){ke.style("stroke-width",0).each(function(le){var se=M.select(this);le[0].trace&&g(se,le[0].trace,Te)})};var h=e(90998);x.symbolNames=[],x.symbolFuncs=[],x.symbolBackOffs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(h).forEach(function(ke){var Te=h[ke],le=Te.n;x.symbolList.push(le,String(le),ke,le+100,String(le+100),ke+"-open"),x.symbolNames[le]=ke,x.symbolFuncs[le]=Te.f,x.symbolBackOffs[le]=Te.backoff||0,Te.needLine&&(x.symbolNeedLines[le]=!0),Te.noDot?x.symbolNoDot[le]=!0:x.symbolList.push(le+200,String(le+200),ke+"-dot",le+300,String(le+300),ke+"-open-dot"),Te.noFill&&(x.symbolNoFill[le]=!0)});var m=x.symbolNames.length;function v(ke,Te,le,se){var ne=ke%100;return x.symbolFuncs[ne](Te,le,se)+(ke>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(ke){if(T(ke))ke=+ke;else if(typeof ke=="string"){var Te=0;ke.indexOf("-open")>0&&(Te=100,ke=ke.replace("-open","")),ke.indexOf("-dot")>0&&(Te+=200,ke=ke.replace("-dot","")),(ke=x.symbolNames.indexOf(ke))>=0&&(ke+=Te)}return ke%100>=m||ke>=400?0:Math.floor(Math.max(ke,0))};var y={x1:1,x2:0,y1:0,y2:0},_={x1:0,x2:0,y1:1,y2:0},f=l("~f"),S={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:y},horizontalreversed:{node:"linearGradient",attrs:y,reversed:!0},vertical:{node:"linearGradient",attrs:_},verticalreversed:{node:"linearGradient",attrs:_,reversed:!0}};x.gradient=function(ke,Te,le,se,ne,ve){for(var Ee=ne.length,_e=S[se],ze=new Array(Ee),Ne=0;Ne=0&&ke.i===void 0&&(ke.i=ve.i),Te.style("opacity",se.selectedOpacityFn?se.selectedOpacityFn(ke):ke.mo===void 0?Ee.opacity:ke.mo),se.ms2mrc){var ze;ze=ke.ms==="various"||Ee.size==="various"?3:se.ms2mrc(ke.ms),ke.mrc=ze,se.selectedSizeFn&&(ze=ke.mrc=se.selectedSizeFn(ke));var Ne=x.symbolNumber(ke.mx||Ee.symbol)||0;ke.om=Ne%200>=100;var fe=Oe(ke,le),Me=W(ke,le);Te.attr("d",v(Ne,ze,fe,Me))}var be,Ce,Fe,Re=!1;if(ke.so)Fe=_e.outlierwidth,Ce=_e.outliercolor,be=Ee.outliercolor;else{var He=(_e||{}).width;Fe=(ke.mlw+1||He+1||(ke.trace?(ke.trace.marker.line||{}).width:0)+1)-1||0,Ce="mlc"in ke?ke.mlcc=se.lineScale(ke.mlc):k.isArrayOrTypedArray(_e.color)?s.defaultLine:_e.color,k.isArrayOrTypedArray(Ee.color)&&(be=s.defaultLine,Re=!0),be="mc"in ke?ke.mcc=se.markerScale(ke.mc):Ee.color||Ee.colors||"rgba(0,0,0,0)",se.selectedColorFn&&(be=se.selectedColorFn(ke))}if(ke.om)Te.call(s.stroke,be).style({"stroke-width":(Fe||1)+"px",fill:"none"});else{Te.style("stroke-width",(ke.isBlank?0:Fe)+"px");var Ge=Ee.gradient,Ke=ke.mgt;Ke?Re=!0:Ke=Ge&&Ge.type,k.isArrayOrTypedArray(Ke)&&(Ke=Ke[0],S[Ke]||(Ke=0));var at=Ee.pattern,Qe=at&&x.getPatternAttr(at.shape,ke.i,"");if(Ke&&Ke!=="none"){var vt=ke.mgc;vt?Re=!0:vt=Ge.color;var xt=le.uid;Re&&(xt+="-"+ke.i),x.gradient(Te,ne,xt,Ke,[[0,vt],[1,be]],"fill")}else if(Qe){var st=!1,ot=at.fgcolor;!ot&&ve&&ve.color&&(ot=ve.color,st=!0);var mt=x.getPatternAttr(ot,ke.i,ve&&ve.color||null),Tt=x.getPatternAttr(at.bgcolor,ke.i,null),wt=at.fgopacity,Pt=x.getPatternAttr(at.size,ke.i,8),Mt=x.getPatternAttr(at.solidity,ke.i,.3);st=st||ke.mcc||k.isArrayOrTypedArray(at.shape)||k.isArrayOrTypedArray(at.bgcolor)||k.isArrayOrTypedArray(at.fgcolor)||k.isArrayOrTypedArray(at.size)||k.isArrayOrTypedArray(at.solidity);var Ye=le.uid;st&&(Ye+="-"+ke.i),x.pattern(Te,"point",ne,Ye,Qe,Pt,Mt,ke.mcc,at.fillmode,Tt,mt,wt)}else k.isArrayOrTypedArray(be)?s.fill(Te,be[ke.i]):s.fill(Te,be);Fe&&s.stroke(Te,Ce)}},x.makePointStyleFns=function(ke){var Te={},le=ke.marker;return Te.markerScale=x.tryColorscale(le,""),Te.lineScale=x.tryColorscale(le,"line"),d.traceIs(ke,"symbols")&&(Te.ms2mrc=u.isBubble(ke)?p(ke):function(){return(le.size||6)/2}),ke.selectedpoints&&k.extendFlat(Te,x.makeSelectedPointStyleFns(ke)),Te},x.makeSelectedPointStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.marker||{},ve=le.marker||{},Ee=se.marker||{},_e=ne.opacity,ze=ve.opacity,Ne=Ee.opacity,fe=ze!==void 0,Me=Ne!==void 0;(k.isArrayOrTypedArray(_e)||fe||Me)&&(Te.selectedOpacityFn=function(Qe){var vt=Qe.mo===void 0?ne.opacity:Qe.mo;return Qe.selected?fe?ze:vt:Me?Ne:a*vt});var be=ne.color,Ce=ve.color,Fe=Ee.color;(Ce||Fe)&&(Te.selectedColorFn=function(Qe){var vt=Qe.mcc||be;return Qe.selected?Ce||vt:Fe||vt});var Re=ne.size,He=ve.size,Ge=Ee.size,Ke=He!==void 0,at=Ge!==void 0;return d.traceIs(ke,"symbols")&&(Ke||at)&&(Te.selectedSizeFn=function(Qe){var vt=Qe.mrc||Re/2;return Qe.selected?Ke?He/2:vt:at?Ge/2:vt}),Te},x.makeSelectedTextStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.textfont||{},ve=le.textfont||{},Ee=se.textfont||{},_e=ne.color,ze=ve.color,Ne=Ee.color;return Te.selectedTextColorFn=function(fe){var Me=fe.tc||_e;return fe.selected?ze||Me:Ne||(ze?Me:s.addOpacity(Me,a))},Te},x.selectedPointStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedPointStyleFns(Te),se=Te.marker||{},ne=[];le.selectedOpacityFn&&ne.push(function(ve,Ee){ve.style("opacity",le.selectedOpacityFn(Ee))}),le.selectedColorFn&&ne.push(function(ve,Ee){s.fill(ve,le.selectedColorFn(Ee))}),le.selectedSizeFn&&ne.push(function(ve,Ee){var _e=Ee.mx||se.symbol||0,ze=le.selectedSizeFn(Ee);ve.attr("d",v(x.symbolNumber(_e),ze,Oe(Ee,Te),W(Ee,Te))),Ee.mrc2=ze}),ne.length&&ke.each(function(ve){for(var Ee=M.select(this),_e=0;_e0?le:0}function R(ke,Te,le){return le&&(ke=H(ke)),Te?O(ke[1]):G(ke[0])}function G(ke){var Te=M.round(ke,2);return w=Te,Te}function O(ke){var Te=M.round(ke,2);return E=Te,Te}function V(ke,Te,le,se){var ne=ke[0]-Te[0],ve=ke[1]-Te[1],Ee=le[0]-Te[0],_e=le[1]-Te[1],ze=Math.pow(ne*ne+ve*ve,.25),Ne=Math.pow(Ee*Ee+_e*_e,.25),fe=(Ne*Ne*ne-ze*ze*Ee)*se,Me=(Ne*Ne*ve-ze*ze*_e)*se,be=3*Ne*(ze+Ne),Ce=3*ze*(ze+Ne);return[[G(Te[0]+(be&&fe/be)),O(Te[1]+(be&&Me/be))],[G(Te[0]-(Ce&&fe/Ce)),O(Te[1]-(Ce&&Me/Ce))]]}x.textPointStyle=function(ke,Te,le){if(ke.size()){var se;if(Te.selectedpoints){var ne=x.makeSelectedTextStyleFns(Te);se=ne.selectedTextColorFn}var ve=Te.texttemplate,Ee=le._fullLayout;ke.each(function(_e){var ze=M.select(this),Ne=ve?k.extractOption(_e,Te,"txt","texttemplate"):k.extractOption(_e,Te,"tx","text");if(Ne||Ne===0){if(ve){var fe=Te._module.formatLabels,Me=fe?fe(_e,Te,Ee):{},be={};c(be,Te,_e.i);var Ce=Te._meta||{};Ne=k.texttemplateString(Ne,Me,Ee._d3locale,be,_e,Ce)}var Fe=_e.tp||Te.textposition,Re=P(_e,Te),He=se?se(_e):_e.tc||Te.textfont.color;ze.call(x.font,_e.tf||Te.textfont.family,Re,He).text(Ne).call(r.convertToTspans,le).call(C,Fe,Re,_e.mrc)}else ze.remove()})}},x.selectedTextStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedTextStyleFns(Te);ke.each(function(se){var ne=M.select(this),ve=le.selectedTextColorFn(se),Ee=se.tp||Te.textposition,_e=P(se,Te);s.fill(ne,ve);var ze=d.traceIs(Te,"bar-like");C(ne,Ee,_e,se.mrc2||se.mrc,ze)})}},x.smoothopen=function(ke,Te){if(ke.length<3)return"M"+ke.join("L");var le,se="M"+ke[0],ne=[];for(le=1;le=ze||Qe>=fe&&Qe<=ze)&&(vt<=Me&&vt>=Ne||vt>=Me&&vt<=Ne)&&(ke=[Qe,vt])}return ke}x.steps=function(ke){var Te=N[ke]||B;return function(le){for(var se="M"+G(le[0][0])+","+O(le[0][1]),ne=le.length,ve=1;ve=1e4&&(x.savedBBoxes={},q=0),le&&(x.savedBBoxes[le]=Ce),q++,k.extendFlat({},Ce)},x.setClipUrl=function(ke,Te,le){ke.attr("clip-path",K(Te,le))},x.getTranslate=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||0,y:+Te[1]||0}},x.setTranslate=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||0,le=le||0,ve=ve.replace(/(\btranslate\(.*?\);?)/,"").trim(),ve=(ve+=i(Te,le)).trim(),ke[ne]("transform",ve),ve},x.getScale=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||1,y:+Te[1]||1}},x.setScale=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||1,le=le||1,ve=ve.replace(/(\bscale\(.*?\);?)/,"").trim(),ve=(ve+="scale("+Te+","+le+")").trim(),ke[ne]("transform",ve),ve};var J=/\s*sc.*/;x.setPointGroupScale=function(ke,Te,le){if(Te=Te||1,le=le||1,ke){var se=Te===1&&le===1?"":"scale("+Te+","+le+")";ke.each(function(){var ne=(this.getAttribute("transform")||"").replace(J,"");ne=(ne+=se).trim(),this.setAttribute("transform",ne)})}};var Y=/translate\([^)]*\)\s*$/;function W(ke,Te){var le;return ke&&(le=ke.mf),le===void 0&&(le=Te.marker&&Te.marker.standoff||0),Te._geo||Te._xA?le:-le}x.setTextPointsScale=function(ke,Te,le){ke&&ke.each(function(){var se,ne=M.select(this),ve=ne.select("text");if(ve.node()){var Ee=parseFloat(ve.attr("x")||0),_e=parseFloat(ve.attr("y")||0),ze=(ne.attr("transform")||"").match(Y);se=Te===1&&le===1?[]:[i(Ee,_e),"scale("+Te+","+le+")",i(-Ee,-_e)],ze&&se.push(ze),ne.attr("transform",se.join(""))}})},x.getMarkerStandoff=W;var Q,re,ie,oe,ce,pe,ge=Math.atan2,we=Math.cos,ye=Math.sin;function me(ke,Te){var le=Te[0],se=Te[1];return[le*we(ke)-se*ye(ke),le*ye(ke)+se*we(ke)]}function Oe(ke,Te){var le,se,ne=ke.ma;ne===void 0&&(ne=Te.marker.angle||0);var ve=Te.marker.angleref;if(ve==="previous"||ve==="north"){if(Te._geo){var Ee=Te._geo.project(ke.lonlat);le=Ee[0],se=Ee[1]}else{var _e=Te._xA,ze=Te._yA;if(!_e||!ze)return 90;le=_e.c2p(ke.x),se=ze.c2p(ke.y)}if(Te._geo){var Ne,fe=ke.lonlat[0],Me=ke.lonlat[1],be=Te._geo.project([fe,Me+1e-5]),Ce=Te._geo.project([fe+1e-5,Me]),Fe=ge(Ce[1]-se,Ce[0]-le),Re=ge(be[1]-se,be[0]-le);if(ve==="north")Ne=ne/180*Math.PI;else if(ve==="previous"){var He=fe/180*Math.PI,Ge=Me/180*Math.PI,Ke=Q/180*Math.PI,at=re/180*Math.PI,Qe=Ke-He,vt=we(at)*ye(Qe),xt=ye(at)*we(Ge)-we(at)*ye(Ge)*we(Qe);Ne=-ge(vt,xt)-Math.PI,Q=fe,re=Me}var st=me(Fe,[we(Ne),0]),ot=me(Re,[ye(Ne),0]);ne=ge(st[1]+ot[1],st[0]+ot[0])/Math.PI*180,ve!=="previous"||pe===Te.uid&&ke.i===ce+1||(ne=null)}if(ve==="previous"&&!Te._geo)if(pe===Te.uid&&ke.i===ce+1&&T(le)&&T(se)){var mt=le-ie,Tt=se-oe,wt=Te.line&&Te.line.shape||"",Pt=wt.slice(wt.length-1);Pt==="h"&&(Tt=0),Pt==="v"&&(mt=0),ne+=ge(Tt,mt)/Math.PI*180+90}else ne=null}return ie=le,oe=se,ce=ke.i,pe=Te.uid,ne}x.getMarkerAngle=Oe},90998:function(ee,z,e){var M,k,l,T,b=e(95616),d=e(39898).round,s="M0,0Z",t=Math.sqrt(2),i=Math.sqrt(3),r=Math.PI,n=Math.cos,o=Math.sin;function a(p){return p===null}function u(p,c,x){if(!(p&&p%360!=0||c))return x;if(l===p&&T===c&&M===x)return k;function g(R,G){var O=n(R),V=o(R),N=G[0],B=G[1]+(c||0);return[N*O-B*V,N*V+B*O]}l=p,T=c,M=x;for(var h=p/180*r,m=0,v=0,y=b(x),_="",f=0;f0,o=b._context.staticPlot;d.each(function(a){var u,p=a[0].trace,c=p.error_x||{},x=p.error_y||{};p.ids&&(u=function(v){return v.id});var g=T.hasMarkers(p)&&p.marker.maxdisplayed>0;x.visible||c.visible||(a=[]);var h=M.select(this).selectAll("g.errorbar").data(a,u);if(h.exit().remove(),a.length){c.visible||h.selectAll("path.xerror").remove(),x.visible||h.selectAll("path.yerror").remove(),h.style("opacity",1);var m=h.enter().append("g").classed("errorbar",!0);n&&m.style("opacity",0).transition().duration(t.duration).style("opacity",1),l.setClipUrl(h,s.layerClipId,b),h.each(function(v){var y=M.select(this),_=function(C,P,R){var G={x:P.c2p(C.x),y:R.c2p(C.y)};return C.yh!==void 0&&(G.yh=R.c2p(C.yh),G.ys=R.c2p(C.ys),k(G.ys)||(G.noYS=!0,G.ys=R.c2p(C.ys,!0))),C.xh!==void 0&&(G.xh=P.c2p(C.xh),G.xs=P.c2p(C.xs),k(G.xs)||(G.noXS=!0,G.xs=P.c2p(C.xs,!0))),G}(v,i,r);if(!g||v.vis){var f,S=y.select("path.yerror");if(x.visible&&k(_.x)&&k(_.yh)&&k(_.ys)){var w=x.width;f="M"+(_.x-w)+","+_.yh+"h"+2*w+"m-"+w+",0V"+_.ys,_.noYS||(f+="m-"+w+",0h"+2*w),S.size()?n&&(S=S.transition().duration(t.duration).ease(t.easing)):S=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("yerror",!0),S.attr("d",f)}else S.remove();var E=y.select("path.xerror");if(c.visible&&k(_.y)&&k(_.xh)&&k(_.xs)){var L=(c.copy_ystyle?x:c).width;f="M"+_.xh+","+(_.y-L)+"v"+2*L+"m0,-"+L+"H"+_.xs,_.noXS||(f+="m0,-"+L+"v"+2*L),E.size()?n&&(E=E.transition().duration(t.duration).ease(t.easing)):E=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("xerror",!0),E.attr("d",f)}else E.remove()}})}})}},62662:function(ee,z,e){var M=e(39898),k=e(7901);ee.exports=function(l){l.each(function(T){var b=T[0].trace,d=b.error_y||{},s=b.error_x||{},t=M.select(this);t.selectAll("path.yerror").style("stroke-width",d.thickness+"px").call(k.stroke,d.color),s.copy_ystyle&&(s=d),t.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(k.stroke,s.color)})}},77914:function(ee,z,e){var M=e(41940),k=e(528).hoverlabel,l=e(1426).extendFlat;ee.exports={hoverlabel:{bgcolor:l({},k.bgcolor,{arrayOk:!0}),bordercolor:l({},k.bordercolor,{arrayOk:!0}),font:M({arrayOk:!0,editType:"none"}),align:l({},k.align,{arrayOk:!0}),namelength:l({},k.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(ee,z,e){var M=e(71828),k=e(73972);function l(T,b,d,s){s=s||M.identity,Array.isArray(T)&&(b[0][d]=s(T))}ee.exports=function(T){var b=T.calcdata,d=T._fullLayout;function s(o){return function(a){return M.coerceHoverinfo({hoverinfo:a},{_module:o._module},d)}}for(var t=0;t=0&&i.indexne[0]._length||Xe<0||Xe>ve[0]._length)return o.unhoverRaw(oe,ce)}else Ye="xpx"in ce?ce.xpx:ne[0]._length/2,Xe="ypx"in ce?ce.ypx:ve[0]._length/2;if(ce.pointerX=Ye+ne[0]._offset,ce.pointerY=Xe+ve[0]._offset,Ce="xval"in ce?p.flat(ye,ce.xval):p.p2c(ne,Ye),Fe="yval"in ce?p.flat(ye,ce.yval):p.p2c(ve,Xe),!k(Ce[0])||!k(Fe[0]))return T.warn("Fx.hover failed",ce,oe),o.unhoverRaw(oe,ce)}var nt=1/0;function rt(Bt,tn){for(He=0;Hemt&&(Tt.splice(0,mt),nt=Tt[0].distance),Te&&be!==0&&Tt.length===0){ot.distance=be,ot.index=!1;var In=Ke._module.hoverPoints(ot,xt,st,"closest",{hoverLayer:me._hoverlayer});if(In&&(In=In.filter(function(Gt){return Gt.spikeDistance<=be})),In&&In.length){var zn,Kn=In.filter(function(Gt){return Gt.xa.showspikes&&Gt.xa.spikesnap!=="hovered data"});if(Kn.length){var Ut=Kn[0];k(Ut.x0)&&k(Ut.y0)&&(zn=De(Ut),(!Pt.vLinePoint||Pt.vLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.vLinePoint=zn))}var _n=In.filter(function(Gt){return Gt.ya.showspikes&&Gt.ya.spikesnap!=="hovered data"});if(_n.length){var At=_n[0];k(At.x0)&&k(At.y0)&&(zn=De(At),(!Pt.hLinePoint||Pt.hLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.hLinePoint=zn))}}}}}function Ie(Bt,tn,cn){for(var dn,kn=null,Vn=1/0,In=0;In0&&Math.abs(Bt.distance)It-1;Rt--)Wt(Tt[Rt]);Tt=Dt,ht()}var Ht=oe._hoverdata,hn=[],yn=te(oe),un=K(oe);for(Re=0;Re1||Tt.length>1)||fe==="closest"&&Mt&&Tt.length>1,ir=n.combine(me.plot_bgcolor||n.background,me.paper_bgcolor),$n=P(Tt,{gd:oe,hovermode:fe,rotateLabels:Qn,bgColor:ir,container:me._hoverlayer,outerContainer:me._paper.node(),commonLabelOpts:me.hoverlabel,hoverdistance:me.hoverdistance}),Gn=$n.hoverLabels;if(p.isUnifiedHover(fe)||(function(Bt,tn,cn,dn){var kn,Vn,In,zn,Kn,Ut,_n,At=tn?"xa":"ya",Gt=tn?"ya":"xa",$t=0,mn=1,xn=Bt.size(),An=new Array(xn),sn=0,Yt=dn.minX,Xt=dn.maxX,on=dn.minY,ln=dn.maxY,Sn=function(ur){return ur*cn._invScaleX},Cn=function(ur){return ur*cn._invScaleY};function jn(ur){var br=ur[0],Zn=ur[ur.length-1];if(Vn=br.pmin-br.pos-br.dp+br.size,In=Zn.pos+Zn.dp+Zn.size-br.pmax,Vn>.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp+=Vn;kn=!1}if(!(In<.01)){if(Vn<-.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp-=In;kn=!1}if(kn){var pr=0;for(zn=0;znbr.pmax&&pr++;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos>br.pmax-1&&(Ut.del=!0,pr--);for(zn=0;zn=0;Kn--)ur[Kn].dp-=In;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos+Ut.dp+Ut.size>br.pmax&&(Ut.del=!0,pr--)}}}for(Bt.each(function(ur){var br=ur[At],Zn=ur[Gt],pr=br._id.charAt(0)==="x",Sr=br.range;sn===0&&Sr&&Sr[0]>Sr[1]!==pr&&(mn=-1);var Gr=0,ai=pr?cn.width:cn.height;if(cn.hovermode==="x"||cn.hovermode==="y"){var ni,ci,Kr=G(ur,tn),bi=ur.anchor,qa=bi==="end"?-1:1;if(bi==="middle")ci=(ni=ur.crossPos+(pr?Cn(Kr.y-ur.by/2):Sn(ur.bx/2+ur.tx2width/2)))+(pr?Cn(ur.by):Sn(ur.bx));else if(pr)ci=(ni=ur.crossPos+Cn(f+Kr.y)-Cn(ur.by/2-f))+Cn(ur.by);else{var ha=Sn(qa*f+Kr.x),to=ha+Sn(qa*ur.bx);ni=ur.crossPos+Math.min(ha,to),ci=ur.crossPos+Math.max(ha,to)}pr?on!==void 0&&ln!==void 0&&Math.min(ci,ln)-Math.max(ni,on)>1&&(Zn.side==="left"?(Gr=Zn._mainLinePosition,ai=cn.width):ai=Zn._mainLinePosition):Yt!==void 0&&Xt!==void 0&&Math.min(ci,Xt)-Math.max(ni,Yt)>1&&(Zn.side==="top"?(Gr=Zn._mainLinePosition,ai=cn.height):ai=Zn._mainLinePosition)}An[sn++]=[{datum:ur,traceIndex:ur.trace.index,dp:0,pos:ur.pos,posref:ur.posref,size:ur.by*(pr?v:1)/2,pmin:Gr,pmax:ai}]}),An.sort(function(ur,br){return ur[0].posref-br[0].posref||mn*(br[0].traceIndex-ur[0].traceIndex)});!kn&&$t<=xn;){for($t++,kn=!0,zn=0;zn.01&&Hn.pmin===nr.pmin&&Hn.pmax===nr.pmax){for(Kn=Xn.length-1;Kn>=0;Kn--)Xn[Kn].dp+=Vn;for(Fn.push.apply(Fn,Xn),An.splice(zn+1,1),_n=0,Kn=Fn.length-1;Kn>=0;Kn--)_n+=Fn[Kn].dp;for(In=_n/Fn.length,Kn=Fn.length-1;Kn>=0;Kn--)Fn[Kn].dp-=In;kn=!1}else zn++}An.forEach(jn)}for(zn=An.length-1;zn>=0;zn--){var er=An[zn];for(Kn=er.length-1;Kn>=0;Kn--){var tr=er[Kn],lr=tr.datum;lr.offset=tr.dp,lr.del=tr.del}}}(Gn,Qn,me,$n.commonLabelBoundingBox),O(Gn,Qn,me._invScaleX,me._invScaleY)),we&&we.tagName){var dr=u.getComponentMethod("annotations","hasClickToShow")(oe,hn);i(M.select(we),dr?"pointer":"")}we&&!ge&&function(Bt,tn,cn){if(!cn||cn.length!==Bt._hoverdata.length)return!0;for(var dn=cn.length-1;dn>=0;dn--){var kn=cn[dn],Vn=Bt._hoverdata[dn];if(kn.curveNumber!==Vn.curveNumber||String(kn.pointNumber)!==String(Vn.pointNumber)||String(kn.pointNumbers)!==String(Vn.pointNumbers))return!0}return!1}(oe,0,Ht)&&(Ht&&oe.emit("plotly_unhover",{event:ce,points:Ht}),oe.emit("plotly_hover",{event:ce,points:oe._hoverdata,xaxes:ne,yaxes:ve,xvals:Ce,yvals:Fe}))})(Y,W,Q,re,ie)})},z.loneHover=function(Y,W){var Q=!0;Array.isArray(Y)||(Q=!1,Y=[Y]);var re=W.gd,ie=te(re),oe=K(re),ce=P(Y.map(function(we){var ye=we._x0||we.x0||we.x||0,me=we._x1||we.x1||we.x||0,Oe=we._y0||we.y0||we.y||0,ke=we._y1||we.y1||we.y||0,Te=we.eventData;if(Te){var le=Math.min(ye,me),se=Math.max(ye,me),ne=Math.min(Oe,ke),ve=Math.max(Oe,ke),Ee=we.trace;if(u.traceIs(Ee,"gl3d")){var _e=re._fullLayout[Ee.scene]._scene.container,ze=_e.offsetLeft,Ne=_e.offsetTop;le+=ze,se+=ze,ne+=Ne,ve+=Ne}Te.bbox={x0:le+oe,x1:se+oe,y0:ne+ie,y1:ve+ie},W.inOut_bbox&&W.inOut_bbox.push(Te.bbox)}else Te=!1;return{color:we.color||n.defaultLine,x0:we.x0||we.x||0,x1:we.x1||we.x||0,y0:we.y0||we.y||0,y1:we.y1||we.y||0,xLabel:we.xLabel,yLabel:we.yLabel,zLabel:we.zLabel,text:we.text,name:we.name,idealAlign:we.idealAlign,borderColor:we.borderColor,fontFamily:we.fontFamily,fontSize:we.fontSize,fontColor:we.fontColor,nameLength:we.nameLength,textAlign:we.textAlign,trace:we.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:we.hovertemplate||!1,hovertemplateLabels:we.hovertemplateLabels||!1,eventData:Te}}),{gd:re,hovermode:"closest",rotateLabels:!1,bgColor:W.bgColor||n.background,container:M.select(W.container),outerContainer:W.outerContainer||W.container}).hoverLabels,pe=0,ge=0;return ce.sort(function(we,ye){return we.y0-ye.y0}).each(function(we,ye){var me=we.y0-we.by/2;we.offset=me-5([\s\S]*)<\/extra>/;function P(Y,W){var Q=W.gd,re=Q._fullLayout,ie=W.hovermode,oe=W.rotateLabels,ce=W.bgColor,pe=W.container,ge=W.outerContainer,we=W.commonLabelOpts||{};if(Y.length===0)return[[]];var ye=W.fontFamily||c.HOVERFONT,me=W.fontSize||c.HOVERFONTSIZE,Oe=Y[0],ke=Oe.xa,Te=Oe.ya,le=ie.charAt(0),se=le+"Label",ne=Oe[se];if(ne===void 0&&ke.type==="multicategory")for(var ve=0;vere.width-un?(Wt=re.width-un,bt.attr("d","M"+(un-f)+",0L"+un+","+yn+f+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H"+(un-2*f)+"Z")):bt.attr("d","M0,0L"+f+","+yn+f+"H"+un+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H-"+f+"Z"),He.minX=Wt-un,He.maxX=Wt+un,ke.side==="top"?(He.minY=Ht-(2*S+hn.height),He.maxY=Ht-S):(He.minY=Ht+S,He.maxY=Ht+(2*S+hn.height))}else{var jt,nn,Jt;Te.side==="right"?(jt="start",nn=1,Jt="",Wt=ke._offset+ke._length):(jt="end",nn=-1,Jt="-",Wt=ke._offset),Ht=Te._offset+(Oe.y0+Oe.y1)/2,It.attr("text-anchor",jt),bt.attr("d","M0,0L"+Jt+f+","+f+"V"+(S+hn.height/2)+"h"+Jt+(2*S+hn.width)+"V-"+(S+hn.height/2)+"H"+Jt+f+"V-"+f+"Z"),He.minY=Ht-(S+hn.height/2),He.maxY=Ht+(S+hn.height/2),Te.side==="right"?(He.minX=Wt+f,He.maxX=Wt+f+(2*S+hn.width)):(He.minX=Wt-f-(2*S+hn.width),He.maxX=Wt-f);var rn,fn=hn.height/2,vn=_e-hn.top-fn,Mn="clip"+re._uid+"commonlabel"+Te._id;if(Wt=0?Xe:Ve+rt=0?Ve:ct+rt=0?Mt:Ye+Ie=0?Ye:kt+Ie=0,ft.idealAlign!=="top"&&Wn||!Qn?Wn?(fn+=Mn/2,ft.anchor="start"):ft.anchor="middle":(fn-=Mn/2,ft.anchor="end"),ft.crossPos=fn;else{if(ft.pos=fn,Wn=rn+vn/2+ir<=ze,Qn=rn-vn/2-ir>=0,ft.idealAlign!=="left"&&Wn||!Qn)if(Wn)rn+=vn/2,ft.anchor="start";else{ft.anchor="middle";var $n=ir/2,Gn=rn+$n-ze,dr=rn-$n;Gn>0&&(rn-=Gn),dr<0&&(rn+=-dr)}else rn-=vn/2,ft.anchor="end";ft.crossPos=rn}yn.attr("text-anchor",ft.anchor),jt&&un.attr("text-anchor",ft.anchor),bt.attr("transform",b(rn,fn)+(oe?d(h):""))}),{hoverLabels:ut,commonLabelBoundingBox:He}}function R(Y,W,Q,re,ie,oe){var ce="",pe="";Y.nameOverride!==void 0&&(Y.name=Y.nameOverride),Y.name&&(Y.trace._meta&&(Y.name=T.templateString(Y.name,Y.trace._meta)),ce=H(Y.name,Y.nameLength));var ge=Q.charAt(0),we=ge==="x"?"y":"x";Y.zLabel!==void 0?(Y.xLabel!==void 0&&(pe+="x: "+Y.xLabel+"
"),Y.yLabel!==void 0&&(pe+="y: "+Y.yLabel+"
"),Y.trace.type!=="choropleth"&&Y.trace.type!=="choroplethmapbox"&&(pe+=(pe?"z: ":"")+Y.zLabel)):W&&Y[ge+"Label"]===ie?pe=Y[we+"Label"]||"":Y.xLabel===void 0?Y.yLabel!==void 0&&Y.trace.type!=="scattercarpet"&&(pe=Y.yLabel):pe=Y.yLabel===void 0?Y.xLabel:"("+Y.xLabel+", "+Y.yLabel+")",!Y.text&&Y.text!==0||Array.isArray(Y.text)||(pe+=(pe?"
":"")+Y.text),Y.extraText!==void 0&&(pe+=(pe?"
":"")+Y.extraText),oe&&pe===""&&!Y.hovertemplate&&(ce===""&&oe.remove(),pe=ce);var ye=Y.hovertemplate||!1;if(ye){var me=Y.hovertemplateLabels||Y;Y[ge+"Label"]!==ie&&(me[ge+"other"]=me[ge+"Val"],me[ge+"otherLabel"]=me[ge+"Label"]),pe=(pe=T.hovertemplateString(ye,me,re._d3locale,Y.eventData[0]||{},Y.trace._meta)).replace(C,function(Oe,ke){return ce=H(ke,Y.nameLength),""})}return[pe,ce]}function G(Y,W){var Q=0,re=Y.offset;return W&&(re*=-_,Q=Y.offset*y),{x:Q,y:re}}function O(Y,W,Q,re){var ie=function(ce){return ce*Q},oe=function(ce){return ce*re};Y.each(function(ce){var pe=M.select(this);if(ce.del)return pe.remove();var ge,we,ye,me,Oe=pe.select("text.nums"),ke=ce.anchor,Te=ke==="end"?-1:1,le=(me=(ye=(we={start:1,end:-1,middle:0}[(ge=ce).anchor])*(f+S))+we*(ge.txwidth+S),ge.anchor==="middle"&&(ye-=ge.tx2width/2,me+=ge.txwidth/2+S),{alignShift:we,textShiftX:ye,text2ShiftX:me}),se=G(ce,W),ne=se.x,ve=se.y,Ee=ke==="middle";pe.select("path").attr("d",Ee?"M-"+ie(ce.bx/2+ce.tx2width/2)+","+oe(ve-ce.by/2)+"h"+ie(ce.bx)+"v"+oe(ce.by)+"h-"+ie(ce.bx)+"Z":"M0,0L"+ie(Te*f+ne)+","+oe(f+ve)+"v"+oe(ce.by/2-f)+"h"+ie(Te*ce.bx)+"v-"+oe(ce.by)+"H"+ie(Te*f+ne)+"V"+oe(ve-f)+"Z");var _e=ne+le.textShiftX,ze=ve+ce.ty0-ce.by/2+S,Ne=ce.textAlign||"auto";Ne!=="auto"&&(Ne==="left"&&ke!=="start"?(Oe.attr("text-anchor","start"),_e=Ee?-ce.bx/2-ce.tx2width/2+S:-ce.bx-S):Ne==="right"&&ke!=="end"&&(Oe.attr("text-anchor","end"),_e=Ee?ce.bx/2-ce.tx2width/2-S:ce.bx+S)),Oe.call(t.positionText,ie(_e),oe(ze)),ce.tx2width&&(pe.select("text.name").call(t.positionText,ie(le.text2ShiftX+le.alignShift*S+ne),oe(ve+ce.ty0-ce.by/2+S)),pe.select("rect").call(r.setRect,ie(le.text2ShiftX+(le.alignShift-1)*ce.tx2width/2+ne),oe(ve-ce.by/2-1),ie(ce.tx2width),oe(ce.by+2)))})}function V(Y,W){var Q=Y.index,re=Y.trace||{},ie=Y.cd[0],oe=Y.cd[Q]||{};function ce(Oe){return Oe||k(Oe)&&Oe===0}var pe=Array.isArray(Q)?function(Oe,ke){var Te=T.castOption(ie,Q,Oe);return ce(Te)?Te:T.extractOption({},re,"",ke)}:function(Oe,ke){return T.extractOption(oe,re,Oe,ke)};function ge(Oe,ke,Te){var le=pe(ke,Te);ce(le)&&(Y[Oe]=le)}if(ge("hoverinfo","hi","hoverinfo"),ge("bgcolor","hbg","hoverlabel.bgcolor"),ge("borderColor","hbc","hoverlabel.bordercolor"),ge("fontFamily","htf","hoverlabel.font.family"),ge("fontSize","hts","hoverlabel.font.size"),ge("fontColor","htc","hoverlabel.font.color"),ge("nameLength","hnl","hoverlabel.namelength"),ge("textAlign","hta","hoverlabel.align"),Y.posref=W==="y"||W==="closest"&&re.orientation==="h"?Y.xa._offset+(Y.x0+Y.x1)/2:Y.ya._offset+(Y.y0+Y.y1)/2,Y.x0=T.constrain(Y.x0,0,Y.xa._length),Y.x1=T.constrain(Y.x1,0,Y.xa._length),Y.y0=T.constrain(Y.y0,0,Y.ya._length),Y.y1=T.constrain(Y.y1,0,Y.ya._length),Y.xLabelVal!==void 0&&(Y.xLabel="xLabel"in Y?Y.xLabel:a.hoverLabelText(Y.xa,Y.xLabelVal,re.xhoverformat),Y.xVal=Y.xa.c2d(Y.xLabelVal)),Y.yLabelVal!==void 0&&(Y.yLabel="yLabel"in Y?Y.yLabel:a.hoverLabelText(Y.ya,Y.yLabelVal,re.yhoverformat),Y.yVal=Y.ya.c2d(Y.yLabelVal)),Y.zLabelVal!==void 0&&Y.zLabel===void 0&&(Y.zLabel=String(Y.zLabelVal)),!(isNaN(Y.xerr)||Y.xa.type==="log"&&Y.xerr<=0)){var we=a.tickText(Y.xa,Y.xa.c2l(Y.xerr),"hover").text;Y.xerrneg!==void 0?Y.xLabel+=" +"+we+" / -"+a.tickText(Y.xa,Y.xa.c2l(Y.xerrneg),"hover").text:Y.xLabel+=" \xB1 "+we,W==="x"&&(Y.distance+=1)}if(!(isNaN(Y.yerr)||Y.ya.type==="log"&&Y.yerr<=0)){var ye=a.tickText(Y.ya,Y.ya.c2l(Y.yerr),"hover").text;Y.yerrneg!==void 0?Y.yLabel+=" +"+ye+" / -"+a.tickText(Y.ya,Y.ya.c2l(Y.yerrneg),"hover").text:Y.yLabel+=" \xB1 "+ye,W==="y"&&(Y.distance+=1)}var me=Y.hoverinfo||Y.trace.hoverinfo;return me&&me!=="all"&&((me=Array.isArray(me)?me:me.split("+")).indexOf("x")===-1&&(Y.xLabel=void 0),me.indexOf("y")===-1&&(Y.yLabel=void 0),me.indexOf("z")===-1&&(Y.zLabel=void 0),me.indexOf("text")===-1&&(Y.text=void 0),me.indexOf("name")===-1&&(Y.name=void 0)),Y}function N(Y,W,Q){var re,ie,oe=Q.container,ce=Q.fullLayout,pe=ce._size,ge=Q.event,we=!!W.hLinePoint,ye=!!W.vLinePoint;if(oe.selectAll(".spikeline").remove(),ye||we){var me=n.combine(ce.plot_bgcolor,ce.paper_bgcolor);if(we){var Oe,ke,Te=W.hLinePoint;re=Te&&Te.xa,(ie=Te&&Te.ya).spikesnap==="cursor"?(Oe=ge.pointerX,ke=ge.pointerY):(Oe=re._offset+Te.x,ke=ie._offset+Te.y);var le,se,ne=l.readability(Te.color,me)<1.5?n.contrast(me):Te.color,ve=ie.spikemode,Ee=ie.spikethickness,_e=ie.spikecolor||ne,ze=a.getPxPosition(Y,ie);if(ve.indexOf("toaxis")!==-1||ve.indexOf("across")!==-1){if(ve.indexOf("toaxis")!==-1&&(le=ze,se=Oe),ve.indexOf("across")!==-1){var Ne=ie._counterDomainMin,fe=ie._counterDomainMax;ie.anchor==="free"&&(Ne=Math.min(Ne,ie.position),fe=Math.max(fe,ie.position)),le=pe.l+Ne*pe.w,se=pe.l+fe*pe.w}oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee,stroke:_e,"stroke-dasharray":r.dashStyle(ie.spikedash,Ee)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}ve.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:ze+(ie.side!=="right"?Ee:-Ee),cy:ke,r:Ee,fill:_e}).classed("spikeline",!0)}if(ye){var Me,be,Ce=W.vLinePoint;re=Ce&&Ce.xa,ie=Ce&&Ce.ya,re.spikesnap==="cursor"?(Me=ge.pointerX,be=ge.pointerY):(Me=re._offset+Ce.x,be=ie._offset+Ce.y);var Fe,Re,He=l.readability(Ce.color,me)<1.5?n.contrast(me):Ce.color,Ge=re.spikemode,Ke=re.spikethickness,at=re.spikecolor||He,Qe=a.getPxPosition(Y,re);if(Ge.indexOf("toaxis")!==-1||Ge.indexOf("across")!==-1){if(Ge.indexOf("toaxis")!==-1&&(Fe=Qe,Re=be),Ge.indexOf("across")!==-1){var vt=re._counterDomainMin,xt=re._counterDomainMax;re.anchor==="free"&&(vt=Math.min(vt,re.position),xt=Math.max(xt,re.position)),Fe=pe.t+(1-xt)*pe.h,Re=pe.t+(1-vt)*pe.h}oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke,stroke:at,"stroke-dasharray":r.dashStyle(re.spikedash,Ke)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}Ge.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:Me,cy:Qe-(re.side!=="top"?Ke:-Ke),r:Ke,fill:at}).classed("spikeline",!0)}}}function B(Y,W){return!W||W.vLinePoint!==Y._spikepoints.vLinePoint||W.hLinePoint!==Y._spikepoints.hLinePoint}function H(Y,W){return t.plainText(Y||"",{len:W,allowedTags:["br","sub","sup","b","i","em"]})}function q(Y,W,Q){var re=W[Y+"a"],ie=W[Y+"Val"],oe=W.cd[0];if(re.type==="category"||re.type==="multicategory")ie=re._categoriesMap[ie];else if(re.type==="date"){var ce=W.trace[Y+"periodalignment"];if(ce){var pe=W.cd[W.index],ge=pe[Y+"Start"];ge===void 0&&(ge=pe[Y]);var we=pe[Y+"End"];we===void 0&&(we=pe[Y]);var ye=we-ge;ce==="end"?ie+=ye:ce==="middle"&&(ie+=ye/2)}ie=re.d2c(ie)}return oe&&oe.t&&oe.t.posLetter===re._id&&(Q.boxmode!=="group"&&Q.violinmode!=="group"||(ie+=oe.t.dPos)),ie}function te(Y){return Y.offsetTop+Y.clientTop}function K(Y){return Y.offsetLeft+Y.clientLeft}function J(Y,W){var Q=Y._fullLayout,re=W.getBoundingClientRect(),ie=re.left,oe=re.top,ce=ie+re.width,pe=oe+re.height,ge=T.apply3DTransform(Q._invTransform)(ie,oe),we=T.apply3DTransform(Q._invTransform)(ce,pe),ye=ge[0],me=ge[1],Oe=we[0],ke=we[1];return{x:ye,y:me,width:Oe-ye,height:ke-me,top:Math.min(me,ke),left:Math.min(ye,Oe),right:Math.max(ye,Oe),bottom:Math.max(me,ke)}}},38048:function(ee,z,e){var M=e(71828),k=e(7901),l=e(23469).isUnifiedHover;ee.exports=function(T,b,d,s){s=s||{};var t=b.legend;function i(r){s.font[r]||(s.font[r]=t?b.legend.font[r]:b.font[r])}b&&l(b.hovermode)&&(s.font||(s.font={}),i("size"),i("family"),i("color"),t?(s.bgcolor||(s.bgcolor=k.combine(b.legend.bgcolor,b.paper_bgcolor)),s.bordercolor||(s.bordercolor=b.legend.bordercolor)):s.bgcolor||(s.bgcolor=b.paper_bgcolor)),d("hoverlabel.bgcolor",s.bgcolor),d("hoverlabel.bordercolor",s.bordercolor),d("hoverlabel.namelength",s.namelength),M.coerceFont(d,"hoverlabel.font",s.font),d("hoverlabel.align",s.align)}},98212:function(ee,z,e){var M=e(71828),k=e(528);ee.exports=function(l,T){function b(d,s){return T[d]!==void 0?T[d]:M.coerce(l,T,k,d,s)}return b("clickmode"),b("hovermode")}},30211:function(ee,z,e){var M=e(39898),k=e(71828),l=e(28569),T=e(23469),b=e(528),d=e(88335);ee.exports={moduleType:"component",name:"fx",constants:e(26675),schema:{layout:b},attributes:e(77914),layoutAttributes:b,supplyLayoutGlobalDefaults:e(22774),supplyDefaults:e(54268),supplyLayoutDefaults:e(34938),calc:e(30732),getDistanceFunction:T.getDistanceFunction,getClosest:T.getClosest,inbox:T.inbox,quadrature:T.quadrature,appendArrayPointValue:T.appendArrayPointValue,castHoverOption:function(s,t,i){return k.castOption(s,t,"hoverlabel."+i)},castHoverinfo:function(s,t,i){return k.castOption(s,i,"hoverinfo",function(r){return k.coerceHoverinfo({hoverinfo:r},{_module:s._module},t)})},hover:d.hover,unhover:l.unhover,loneHover:d.loneHover,loneUnhover:function(s){var t=k.isD3Selection(s)?s:M.select(s);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e(75914)}},528:function(ee,z,e){var M=e(26675),k=e(41940),l=k({editType:"none"});l.family.dflt=M.HOVERFONT,l.size.dflt=M.HOVERFONTSIZE,ee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:l,grouptitlefont:k({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(ee,z,e){var M=e(71828),k=e(528),l=e(98212),T=e(38048);ee.exports=function(b,d){function s(n,o){return M.coerce(b,d,k,n,o)}l(b,d)&&(s("hoverdistance"),s("spikedistance")),s("dragmode")==="select"&&s("selectdirection");var t=d._has("mapbox"),i=d._has("geo"),r=d._basePlotModules.length;d.dragmode==="zoom"&&((t||i)&&r===1||t&&i&&r===2)&&(d.dragmode="pan"),T(b,d,s),M.coerceFont(s,"hoverlabel.grouptitlefont",d.hoverlabel.font)}},22774:function(ee,z,e){var M=e(71828),k=e(38048),l=e(528);ee.exports=function(T,b){k(T,b,function(d,s){return M.coerce(T,b,l,d,s)})}},83312:function(ee,z,e){var M=e(71828),k=e(30587).counter,l=e(27670).Y,T=e(85555).idRegex,b=e(44467),d={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[k("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:l({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function s(r,n,o){var a=n[o+"axes"],u=Object.keys((r._splomAxes||{})[o]||{});return Array.isArray(a)?a:u.length?u:void 0}function t(r,n,o,a,u,p){var c=n(r+"gap",o),x=n("domain."+r);n(r+"side",a);for(var g=new Array(u),h=x[0],m=(x[1]-h)/(u-c),v=m*(1-c),y=0;y1){x||g||h||C("pattern")==="independent"&&(x=!0),v._hasSubplotGrid=x;var f,S,w=C("roworder")==="top to bottom",E=x?.2:.1,L=x?.3:.1;m&&n._splomGridDflt&&(f=n._splomGridDflt.xside,S=n._splomGridDflt.yside),v._domains={x:t("x",C,E,f,_),y:t("y",C,L,S,y,w)}}else delete n.grid}function C(P,R){return M.coerce(o,v,d,P,R)}},contentDefaults:function(r,n){var o=n.grid;if(o&&o._domains){var a,u,p,c,x,g,h,m=r.grid||{},v=n._subplots,y=o._hasSubplotGrid,_=o.rows,f=o.columns,S=o.pattern==="independent",w=o._axisMap={};if(y){var E=m.subplots||[];g=o.subplots=new Array(_);var L=1;for(a=0;a<_;a++){var C=g[a]=new Array(f),P=E[a]||[];for(u=0;u(i==="legend"?1:0));if(L===!1&&(n[i]=void 0),(L!==!1||a.uirevision)&&(p("uirevision",n.uirevision),L!==!1)){p("borderwidth");var C,P,R,G=p("orientation")==="h",O=p("yref")==="paper",V=p("xref")==="paper",N="left";if(G?(C=0,M.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(P=1.1,R="bottom"):(P=1,R="top"):O?(P=-.1,R="top"):(P=0,R="bottom")):(P=1,R="auto",V?C=1.02:(C=1,N="right")),k.coerce(a,u,{x:{valType:"number",editType:"legend",min:V?-2:0,max:V?3:1,dflt:C}},"x"),k.coerce(a,u,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:P}},"y"),p("traceorder",_),s.isGrouped(n[i])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",N),p("yanchor",R),p("valign"),k.noneOrAll(a,u,["x","y"]),p("title.text")){p("title.side",G?"left":"top");var B=k.extendFlat({},c,{size:k.bigFont(c.size)});k.coerceFont(p,"title.font",B)}}}}ee.exports=function(i,r,n){var o,a=n.slice(),u=r.shapes;if(u)for(o=0;o1)}var re=B.hiddenlabels||[];if(!(q||B.showlegend&&te.length))return V.selectAll("."+H).remove(),B._topdefs.select("#"+O).remove(),l.autoMargin(R,H);var ie=k.ensureSingle(V,"g",H,function(ke){q||ke.attr("pointer-events","all")}),oe=k.ensureSingleById(B._topdefs,"clipPath",O,function(ke){ke.append("rect")}),ce=k.ensureSingle(ie,"rect","bg",function(ke){ke.attr("shape-rendering","crispEdges")});ce.call(t.stroke,N.bordercolor).call(t.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px");var pe=k.ensureSingle(ie,"g","scrollbox"),ge=N.title;if(N._titleWidth=0,N._titleHeight=0,ge.text){var we=k.ensureSingle(pe,"text",H+"titletext");we.attr("text-anchor","start").call(s.font,ge.font).text(ge.text),E(we,pe,R,N,h)}else pe.selectAll("."+H+"titletext").remove();var ye=k.ensureSingle(ie,"rect","scrollbar",function(ke){ke.attr(n.scrollBarEnterAttrs).call(t.fill,n.scrollBarColor)}),me=pe.selectAll("g.groups").data(te);me.enter().append("g").attr("class","groups"),me.exit().remove();var Oe=me.selectAll("g.traces").data(k.identity);Oe.enter().append("g").attr("class","traces"),Oe.exit().remove(),Oe.style("opacity",function(ke){var Te=ke[0].trace;return T.traceIs(Te,"pie-like")?re.indexOf(ke[0].label)!==-1?.5:1:Te.visible==="legendonly"?.5:1}).each(function(){M.select(this).call(f,R,N)}).call(x,R,N).each(function(){q||M.select(this).call(w,R,H)}),k.syncOrAsync([l.previousPromises,function(){return function(ke,Te,le,se){var ne=ke._fullLayout,ve=P(se);se||(se=ne[ve]);var Ee=ne._size,_e=g.isVertical(se),ze=g.isGrouped(se),Ne=se.entrywidthmode==="fraction",fe=se.borderwidth,Me=2*fe,be=n.itemGap,Ce=se.itemwidth+2*be,Fe=2*(fe+be),Re=C(se),He=se.y<0||se.y===0&&Re==="top",Ge=se.y>1||se.y===1&&Re==="bottom",Ke=se.tracegroupgap,at={};se._maxHeight=Math.max(He||Ge?ne.height/2:Ee.h,30);var Qe=0;se._width=0,se._height=0;var vt=function(ht){var dt=0,ct=0,kt=ht.title.side;return kt&&(kt.indexOf("left")!==-1&&(dt=ht._titleWidth),kt.indexOf("top")!==-1&&(ct=ht._titleHeight)),[dt,ct]}(se);if(_e)le.each(function(ht){var dt=ht[0].height;s.setTranslate(this,fe+vt[0],fe+vt[1]+se._height+dt/2+be),se._height+=dt,se._width=Math.max(se._width,ht[0].width)}),Qe=Ce+se._width,se._width+=be+Ce+Me,se._height+=Fe,ze&&(Te.each(function(ht,dt){s.setTranslate(this,0,dt*se.tracegroupgap)}),se._height+=(se._lgroupsLength-1)*se.tracegroupgap);else{var xt=L(se),st=se.x<0||se.x===0&&xt==="right",ot=se.x>1||se.x===1&&xt==="left",mt=Ge||He,Tt=ne.width/2;se._maxWidth=Math.max(st?mt&&xt==="left"?Ee.l+Ee.w:Tt:ot?mt&&xt==="right"?Ee.r+Ee.w:Tt:Ee.w,2*Ce);var wt=0,Pt=0;le.each(function(ht){var dt=y(ht,se,Ce);wt=Math.max(wt,dt),Pt+=dt}),Qe=null;var Mt=0;if(ze){var Ye=0,Xe=0,Ve=0;Te.each(function(){var ht=0,dt=0;M.select(this).selectAll("g.traces").each(function(kt){var ut=y(kt,se,Ce),ft=kt[0].height;s.setTranslate(this,vt[0],vt[1]+fe+be+ft/2+dt),dt+=ft,ht=Math.max(ht,ut),at[kt[0].trace.legendgroup]=ht});var ct=ht+be;Xe>0&&ct+fe+Xe>se._maxWidth?(Mt=Math.max(Mt,Xe),Xe=0,Ve+=Ye+Ke,Ye=dt):Ye=Math.max(Ye,dt),s.setTranslate(this,Xe,Ve),Xe+=ct}),se._width=Math.max(Mt,Xe)+fe,se._height=Ve+Ye+Fe}else{var We=le.size(),nt=Pt+Me+(We-1)*be=se._maxWidth&&(Mt=Math.max(Mt,et),Ie=0,De+=rt,se._height+=rt,rt=0),s.setTranslate(this,vt[0]+fe+Ie,vt[1]+fe+De+dt/2+be),et=Ie+ct+be,Ie+=kt,rt=Math.max(rt,dt)}),nt?(se._width=Ie+Me,se._height=rt+Fe):(se._width=Math.max(Mt,et)+Me,se._height+=rt+Fe)}}se._width=Math.ceil(Math.max(se._width+vt[0],se._titleWidth+2*(fe+n.titlePad))),se._height=Math.ceil(Math.max(se._height+vt[1],se._titleHeight+2*(fe+n.itemGap))),se._effHeight=Math.min(se._height,se._maxHeight);var tt=ke._context.edits,gt=tt.legendText||tt.legendPosition;le.each(function(ht){var dt=M.select(this).select("."+ve+"toggle"),ct=ht[0].height,kt=ht[0].trace.legendgroup,ut=y(ht,se,Ce);ze&&kt!==""&&(ut=at[kt]);var ft=gt?Ce:Qe||ut;_e||Ne||(ft+=be/2),s.setRect(dt,0,-ct/2,ft,ct)})}(R,me,Oe,N)},function(){var ke,Te,le,se,ne=B._size,ve=N.borderwidth,Ee=N.xref==="paper",_e=N.yref==="paper";if(!q){var ze,Ne;ze=Ee?ne.l+ne.w*N.x-u[L(N)]*N._width:B.width*N.x-u[L(N)]*N._width,Ne=_e?ne.t+ne.h*(1-N.y)-u[C(N)]*N._effHeight:B.height*(1-N.y)-u[C(N)]*N._effHeight;var fe=function(mt,Tt,wt,Pt){var Mt=mt._fullLayout,Ye=Mt[Tt],Xe=L(Ye),Ve=C(Ye),We=Ye.xref==="paper",nt=Ye.yref==="paper";mt._fullLayout._reservedMargin[Tt]={};var rt=Ye.y<.5?"b":"t",Ie=Ye.x<.5?"l":"r",De={r:Mt.width-wt,l:wt+Ye._width,b:Mt.height-Pt,t:Pt+Ye._effHeight};if(We&&nt)return l.autoMargin(mt,Tt,{x:Ye.x,y:Ye.y,l:Ye._width*u[Xe],r:Ye._width*p[Xe],b:Ye._effHeight*p[Ve],t:Ye._effHeight*u[Ve]});We?mt._fullLayout._reservedMargin[Tt][rt]=De[rt]:nt||Ye.orientation==="v"?mt._fullLayout._reservedMargin[Tt][Ie]=De[Ie]:mt._fullLayout._reservedMargin[Tt][rt]=De[rt]}(R,H,ze,Ne);if(fe)return;if(B.margin.autoexpand){var Me=ze,be=Ne;ze=Ee?k.constrain(ze,0,B.width-N._width):Me,Ne=_e?k.constrain(Ne,0,B.height-N._effHeight):be,ze!==Me&&k.log("Constrain "+H+".x to make legend fit inside graph"),Ne!==be&&k.log("Constrain "+H+".y to make legend fit inside graph")}s.setTranslate(ie,ze,Ne)}if(ye.on(".drag",null),ie.on("wheel",null),q||N._height<=N._maxHeight||R._context.staticPlot){var Ce=N._effHeight;q&&(Ce=N._height),ce.attr({width:N._width-ve,height:Ce-ve,x:ve/2,y:ve/2}),s.setTranslate(pe,0,0),oe.select("rect").attr({width:N._width-2*ve,height:Ce-2*ve,x:ve,y:ve}),s.setClipUrl(pe,O,R),s.setRect(ye,0,0,0,0),delete N._scrollY}else{var Fe,Re,He,Ge=Math.max(n.scrollBarMinHeight,N._effHeight*N._effHeight/N._height),Ke=N._effHeight-Ge-2*n.scrollBarMargin,at=N._height-N._effHeight,Qe=Ke/at,vt=Math.min(N._scrollY||0,at);ce.attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-ve,x:ve/2,y:ve/2}),oe.select("rect").attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-2*ve,x:ve,y:ve+vt}),s.setClipUrl(pe,O,R),ot(vt,Ge,Qe),ie.on("wheel",function(){ot(vt=k.constrain(N._scrollY+M.event.deltaY/Ke*at,0,at),Ge,Qe),vt!==0&&vt!==at&&M.event.preventDefault()});var xt=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;Fe=mt.type==="touchstart"?mt.changedTouches[0].clientY:mt.clientY,He=vt}).on("drag",function(){var mt=M.event.sourceEvent;mt.buttons===2||mt.ctrlKey||(Re=mt.type==="touchmove"?mt.changedTouches[0].clientY:mt.clientY,vt=function(Tt,wt,Pt){var Mt=(Pt-wt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});ye.call(xt);var st=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;mt.type==="touchstart"&&(Fe=mt.changedTouches[0].clientY,He=vt)}).on("drag",function(){var mt=M.event.sourceEvent;mt.type==="touchmove"&&(Re=mt.changedTouches[0].clientY,vt=function(Tt,wt,Pt){var Mt=(wt-Pt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});pe.call(st)}function ot(mt,Tt,wt){N._scrollY=R._fullLayout[H]._scrollY=mt,s.setTranslate(pe,0,-mt),s.setRect(ye,N._width,n.scrollBarMargin+mt*wt,n.scrollBarWidth,Tt),oe.select("rect").attr("y",ve+mt)}R._context.edits.legendPosition&&(ie.classed("cursor-move",!0),d.init({element:ie.node(),gd:R,prepFn:function(){var mt=s.getTranslate(ie);le=mt.x,se=mt.y},moveFn:function(mt,Tt){var wt=le+mt,Pt=se+Tt;s.setTranslate(ie,wt,Pt),ke=d.align(wt,N._width,ne.l,ne.l+ne.w,N.xanchor),Te=d.align(Pt+N._height,-N._height,ne.t+ne.h,ne.t,N.yanchor)},doneFn:function(){if(ke!==void 0&&Te!==void 0){var mt={};mt[H+".x"]=ke,mt[H+".y"]=Te,T.call("_guiRelayout",R,mt)}},clickFn:function(mt,Tt){var wt=V.selectAll("g.traces").filter(function(){var Pt=this.getBoundingClientRect();return Tt.clientX>=Pt.left&&Tt.clientX<=Pt.right&&Tt.clientY>=Pt.top&&Tt.clientY<=Pt.bottom});wt.size()>0&&_(R,ie,wt,mt,Tt)}}))}],R)}}function y(R,G,O){var V=R[0],N=V.width,B=G.entrywidthmode,H=V.trace.legendwidth||G.entrywidth;return B==="fraction"?G._maxWidth*H:O+(H||N)}function _(R,G,O,V,N){var B=O.data()[0][0].trace,H={event:N,node:O.node(),curveNumber:B.index,expandedIndex:B._expandedIndex,data:R.data,layout:R.layout,frames:R._transitionData._frames,config:R._context,fullData:R._fullData,fullLayout:R._fullLayout};B._group&&(H.group=B._group),T.traceIs(B,"pie-like")&&(H.label=O.datum()[0].label),b.triggerHandler(R,"plotly_legendclick",H)!==!1&&(V===1?G._clickTimeout=setTimeout(function(){R._fullLayout&&r(O,R,V)},R._context.doubleClickDelay):V===2&&(G._clickTimeout&&clearTimeout(G._clickTimeout),R._legendMouseDownTime=0,b.triggerHandler(R,"plotly_legenddoubleclick",H)!==!1&&r(O,R,V)))}function f(R,G,O){var V,N,B=P(O),H=R.data()[0][0],q=H.trace,te=T.traceIs(q,"pie-like"),K=!O._inHover&&G._context.edits.legendText&&!te,J=O._maxNameLength;H.groupTitle?(V=H.groupTitle.text,N=H.groupTitle.font):(N=O.font,O.entries?V=H.text:(V=te?H.label:q.name,q._meta&&(V=k.templateString(V,q._meta))));var Y=k.ensureSingle(R,"text",B+"text");Y.attr("text-anchor","start").call(s.font,N).text(K?S(V,J):V);var W=O.itemwidth+2*n.itemGap;i.positionText(Y,W,0),K?Y.call(i.makeEditable,{gd:G,text:V}).call(E,R,G,O).on("edit",function(Q){this.text(S(Q,J)).call(E,R,G,O);var re=H.trace._fullInput||{},ie={};if(T.hasTransform(re,"groupby")){var oe=T.getTransformIndices(re,"groupby"),ce=oe[oe.length-1],pe=k.keyedContainer(re,"transforms["+ce+"].styles","target","value.name");pe.set(H.trace._group,Q),ie=pe.constructUpdate()}else ie.name=Q;return re._isShape?T.call("_guiRelayout",G,"shapes["+q.index+"].name",ie.name):T.call("_guiRestyle",G,ie,q.index)}):E(Y,R,G,O)}function S(R,G){var O=Math.max(4,G);if(R&&R.trim().length>=O/2)return R;for(var V=O-(R=R||"").length;V>0;V--)R+=" ";return R}function w(R,G,O){var V,N=G._context.doubleClickDelay,B=1,H=k.ensureSingle(R,"rect",O+"toggle",function(q){G._context.staticPlot||q.style("cursor","pointer").attr("pointer-events","all"),q.call(t.fill,"rgba(0,0,0,0)")});G._context.staticPlot||(H.on("mousedown",function(){(V=new Date().getTime())-G._legendMouseDownTimeN&&(B=Math.max(B-1,1)),_(G,q,R,B,M.event)}}))}function E(R,G,O,V,N){V._inHover&&R.attr("data-notex",!0),i.convertToTspans(R,O,function(){(function(B,H,q,te){var K=B.data()[0][0];if(q._inHover||!K||K.trace.showlegend){var J=B.select("g[class*=math-group]"),Y=J.node(),W=P(q);q||(q=H._fullLayout[W]);var Q,re,ie=q.borderwidth,oe=(te===h?q.title.font:K.groupTitle?K.groupTitle.font:q.font).size*a;if(Y){var ce=s.bBox(Y);Q=ce.height,re=ce.width,te===h?s.setTranslate(J,ie,ie+.75*Q):s.setTranslate(J,0,.25*Q)}else{var pe="."+W+(te===h?"title":"")+"text",ge=B.select(pe),we=i.lineCount(ge),ye=ge.node();if(Q=oe*we,re=ye?s.bBox(ye).width:0,te===h){var me=0;q.title.side==="left"?re+=2*n.itemGap:q.title.side==="top center"?q._width&&(me=.5*(q._width-2*ie-2*n.titlePad-re)):q.title.side==="top right"&&q._width&&(me=q._width-2*ie-2*n.titlePad-re),i.positionText(ge,ie+n.titlePad+me,ie+oe)}else{var Oe=2*n.itemGap+q.itemwidth;K.groupTitle&&(Oe=n.itemGap,re-=q.itemwidth),i.positionText(ge,Oe,-oe*((we-1)/2-.3))}}te===h?(q._titleWidth=re,q._titleHeight=Q):(K.lineHeight=oe,K.height=Math.max(Q,16)+3,K.width=re)}else B.remove()})(G,O,V,N)})}function L(R){return k.isRightAnchor(R)?"right":k.isCenterAnchor(R)?"center":"left"}function C(R){return k.isBottomAnchor(R)?"bottom":k.isMiddleAnchor(R)?"middle":"top"}function P(R){return R._id||"legend"}ee.exports=function(R,G){if(G)v(R,G);else{var O=R._fullLayout,V=O._legends;O._infolayer.selectAll('[class^="legend"]').each(function(){var H=M.select(this),q=H.attr("class").split(" ")[0];q.match(m)&&V.indexOf(q)===-1&&H.remove()});for(var N=0;NL&&(E=L)}S[d][0]._groupMinRank=E,S[d][0]._preGroupSort=d}var C=function(V,N){return V.trace.legendrank-N.trace.legendrank||V._preSort-N._preSort};for(S.forEach(function(V,N){V[0]._preGroupSort=N}),S.sort(function(V,N){return V[0]._groupMinRank-N[0]._groupMinRank||V[0]._preGroupSort-N[0]._preGroupSort}),d=0;dx?x:p}ee.exports=function(p,c,x){var g=c._fullLayout;x||(x=g.legend);var h=x.itemsizing==="constant",m=x.itemwidth,v=(m+2*n.itemGap)/2,y=T(v,0),_=function(w,E,L,C){var P;if(w+1)P=w;else{if(!(E&&E.width>0))return 0;P=E.width}return h?C:Math.min(P,L)};function f(w,E,L){var C=w[0].trace,P=C.marker||{},R=P.line||{},G=L?C.visible&&C.type===L:k.traceIs(C,"bar"),O=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(G?[w]:[]);O.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),O.exit().remove(),O.each(function(V){var N=M.select(this),B=V[0],H=_(B.mlw,P.line,5,2);N.style("stroke-width",H+"px");var q=B.mcc;if(!x._inHover&&"mc"in B){var te=s(P),K=te.mid;K===void 0&&(K=(te.max+te.min)/2),q=b.tryColorscale(P,"")(K)}var J=q||B.mc||P.color,Y=P.pattern,W=Y&&b.getPatternAttr(Y.shape,0,"");if(W){var Q=b.getPatternAttr(Y.bgcolor,0,null),re=b.getPatternAttr(Y.fgcolor,0,null),ie=Y.fgopacity,oe=u(Y.size,8,10),ce=u(Y.solidity,.5,1),pe="legend-"+C.uid;N.call(b.pattern,"legend",c,pe,W,oe,ce,q,Y.fillmode,Q,re,ie)}else N.call(d.fill,J);H&&d.stroke(N,B.mlc||R.color)})}function S(w,E,L){var C=w[0],P=C.trace,R=L?P.visible&&P.type===L:k.traceIs(P,L),G=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(R?[w]:[]);if(G.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),G.exit().remove(),G.size()){var O=P.marker||{},V=_(r(O.line.width,C.pts),O.line,5,2),N="pieLike",B=l.minExtend(P,{marker:{line:{width:V}}},N),H=l.minExtend(C,{trace:B},N);i(G,H,B,c)}}p.each(function(w){var E=M.select(this),L=l.ensureSingle(E,"g","layers");L.style("opacity",w[0].trace.opacity);var C=x.valign,P=w[0].lineHeight,R=w[0].height;if(C!=="middle"&&P&&R){var G={top:1,bottom:-1}[C]*(.5*(P-R+3));L.attr("transform",T(0,G))}else L.attr("transform",null);L.selectAll("g.legendfill").data([w]).enter().append("g").classed("legendfill",!0),L.selectAll("g.legendlines").data([w]).enter().append("g").classed("legendlines",!0);var O=L.selectAll("g.legendsymbols").data([w]);O.enter().append("g").classed("legendsymbols",!0),O.selectAll("g.legendpoints").data([w]).enter().append("g").classed("legendpoints",!0)}).each(function(w){var E,L=w[0].trace,C=[];if(L.visible)switch(L.type){case"histogram2d":case"heatmap":C=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":C=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":C=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":C=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":C=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":C=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1}var P=M.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(C);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",y).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,G){var O,V=M.select(this),N=s(L),B=N.colorscale,H=N.reversescale;if(B){if(!E){var q=B.length;O=G===0?B[H?q-1:0][1]:G===1?B[H?0:q-1][1]:B[Math.floor((q-1)/2)][1]}}else{var te=L.vertexcolor||L.facecolor||L.color;O=l.isArrayOrTypedArray(te)?te[G]||te[0]:te}V.attr("d",R[0]),O?V.call(d.fill,O):V.call(function(K){if(K.size()){var J="legendfill-"+L.uid;b.gradient(K,c,J,o(H,E==="radial"),B,"fill")}})})}).each(function(w){var E=w[0].trace,L=E.type==="waterfall";if(w[0]._distinct&&L){var C=w[0].trace[w[0].dir].marker;return w[0].mc=C.color,w[0].mlw=C.line.width,w[0].mlc=C.line.color,f(w,this,"waterfall")}var P=[];E.visible&&L&&(P=w[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=M.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",y).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(G){var O=M.select(this),V=E[G[0]].marker,N=_(void 0,V.line,5,2);O.attr("d",G[1]).style("stroke-width",N+"px").call(d.fill,V.color),N&&O.call(d.stroke,V.line.color)})}).each(function(w){f(w,this,"funnel")}).each(function(w){f(w,this)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&k.traceIs(E,"box-violin")?[w]:[]);L.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),L.exit().remove(),L.each(function(){var C=M.select(this);if(E.boxpoints!=="all"&&E.points!=="all"||d.opacity(E.fillcolor)!==0||d.opacity((E.line||{}).color)!==0){var P=_(void 0,E.line,5,2);C.style("stroke-width",P+"px").call(d.fill,E.fillcolor),P&&d.stroke(C,E.line.color)}else{var R=l.minExtend(E,{marker:{size:h?12:l.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});L.call(b.pointStyle,R,c)}})}).each(function(w){S(w,this,"funnelarea")}).each(function(w){S(w,this,"pie")}).each(function(w){var E,L,C=a(w),P=C.showFill,R=C.showLine,G=C.showGradientLine,O=C.showGradientFill,V=C.anyFill,N=C.anyLine,B=w[0],H=B.trace,q=s(H),te=q.colorscale,K=q.reversescale,J=t.hasMarkers(H)||!V?"M5,0":N?"M5,-2":"M5,-3",Y=M.select(this),W=Y.select(".legendfill").selectAll("path").data(P||O?[w]:[]);if(W.enter().append("path").classed("js-fill",!0),W.exit().remove(),W.attr("d",J+"h"+m+"v6h-"+m+"z").call(function(ie){if(ie.size())if(P)b.fillGroupStyle(ie,c);else{var oe="legendfill-"+H.uid;b.gradient(ie,c,oe,o(K),te,"fill")}}),R||G){var Q=_(void 0,H.line,10,5);L=l.minExtend(H,{line:{width:Q}}),E=[l.minExtend(B,{trace:L})]}var re=Y.select(".legendlines").selectAll("path").data(R||G?[E]:[]);re.enter().append("path").classed("js-line",!0),re.exit().remove(),re.attr("d",J+(G?"l"+m+",0.0001":"h"+m)).call(R?b.lineGroupStyle:function(ie){if(ie.size()){var oe="legendline-"+H.uid;b.lineGroupStyle(ie),b.gradient(ie,c,oe,o(K),te,"stroke")}})}).each(function(w){var E,L,C=a(w),P=C.anyFill,R=C.anyLine,G=C.showLine,O=C.showMarker,V=w[0],N=V.trace,B=!O&&!R&&!P&&t.hasText(N);function H(re,ie,oe,ce){var pe=l.nestedProperty(N,re).get(),ge=l.isArrayOrTypedArray(pe)&&ie?ie(pe):pe;if(h&&ge&&ce!==void 0&&(ge=ce),oe){if(geoe[1])return oe[1]}return ge}function q(re){return V._distinct&&V.index&&re[V.index]?re[V.index]:re[0]}if(O||B||G){var te={},K={};if(O){te.mc=H("marker.color",q),te.mx=H("marker.symbol",q),te.mo=H("marker.opacity",l.mean,[.2,1]),te.mlc=H("marker.line.color",q),te.mlw=H("marker.line.width",l.mean,[0,5],2),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var J=H("marker.size",l.mean,[2,16],12);te.ms=J,K.marker.size=J}G&&(K.line={width:H("line.width",q,[0,10],5)}),B&&(te.tx="Aa",te.tp=H("textposition",q),te.ts=10,te.tc=H("textfont.color",q),te.tf=H("textfont.family",q)),E=[l.minExtend(V,te)],(L=l.minExtend(N,K)).selectedpoints=null,L.texttemplate=null}var Y=M.select(this).select("g.legendpoints"),W=Y.selectAll("path.scatterpts").data(O?E:[]);W.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",y),W.exit().remove(),W.call(b.pointStyle,L,c),O&&(E[0].mrc=3);var Q=Y.selectAll("g.pointtext").data(B?E:[]);Q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",y),Q.exit().remove(),Q.selectAll("text").call(b.textPointStyle,L,c)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[w,w]:[]);L.enter().append("path").classed("legendcandle",!0).attr("d",function(C,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("stroke-width",O+"px").call(d.fill,G.fillcolor),O&&d.stroke(R,G.line.color)})}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[w,w]:[]);L.enter().append("path").classed("legendohlc",!0).attr("d",function(C,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("fill","none").call(b.dashLine,G.line.dash,O),O&&d.stroke(R,G.line.color)})})}},42068:function(ee,z,e){e(93348),ee.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(ee,z,e){var M=e(73972),k=e(74875),l=e(41675),T=e(24255),b=e(34031).eraseActiveShape,d=e(71828),s=d._,t=ee.exports={};function i(g,h){var m,v,y=h.currentTarget,_=y.getAttribute("data-attr"),f=y.getAttribute("data-val")||!0,S=g._fullLayout,w={},E=l.list(g,null,!0),L=S._cartesianSpikesEnabled;if(_==="zoom"){var C,P=f==="in"?.5:2,R=(1+P)/2,G=(1-P)/2;for(v=0;v1?(J=["toggleHover"],Y=["resetViews"]):w?(K=["zoomInGeo","zoomOutGeo"],J=["hoverClosestGeo"],Y=["resetGeo"]):S?(J=["hoverClosest3d"],Y=["resetCameraDefault3d","resetCameraLastSave3d"]):R?(K=["zoomInMapbox","zoomOutMapbox"],J=["toggleHover"],Y=["resetViewMapbox"]):C?J=["hoverClosestGl2d"]:E?J=["hoverClosestPie"]:V?(J=["hoverClosestCartesian","hoverCompareCartesian"],Y=["resetViewSankey"]):J=["toggleHover"],f&&(J=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(pe){for(var ge=0;ge0)){var c=function(g,h,m){for(var v=m.filter(function(S){return h[S].anchor===g._id}),y=0,_=0;_=ye.max)ge=ie[we+1];else if(pe=ye.pmax)ge=ie[we+1];else if(pewe._length||_e+Re<0)return;be=Ee+Re,Ce=_e+Re;break;case Oe:if(Fe="col-resize",Ee+Re>we._length)return;be=Ee+Re,Ce=_e;break;case ke:if(Fe="col-resize",_e+Re<0)return;be=Ee,Ce=_e+Re;break;default:Fe="ew-resize",be=ve,Ce=ve+Re}if(Ce=0;C--){var P=h.append("path").attr(v).style("opacity",C?.1:y).call(T.stroke,f).call(T.fill,_).call(b.dashLine,C?"solid":w,C?4+S:S);if(o(P,u,x),E){var R=d(u.layout,"selections",x);P.style({cursor:"move"});var G={element:P.node(),plotinfo:g,gd:u,editHelpers:R,isActiveSelection:!0},O=M(m,u);k(O,P,G)}else P.style("pointer-events",C?"all":"none");L[C]=P}var V=L[0];L[1].node().addEventListener("click",function(){return function(N,B){if(r(N)){var H=+B.node().getAttribute("data-index");if(H>=0){if(H===N._fullLayout._activeSelectionIndex)return void a(N);N._fullLayout._activeSelectionIndex=H,N._fullLayout._deactivateSelection=a,i(N)}}}(u,V)})}(u._fullLayout._selectionLayer)}function o(u,p,c){var x=c.xref+c.yref;b.setClipUrl(u,"clip"+p._fullLayout._uid+x,p)}function a(u){r(u)&&u._fullLayout._activeSelectionIndex>=0&&(l(u),delete u._fullLayout._activeSelectionIndex,i(u))}ee.exports={draw:i,drawOne:n,activateLastSelection:function(u){if(r(u)){var p=u._fullLayout.selections.length-1;u._fullLayout._activeSelectionIndex=p,u._fullLayout._deactivateSelection=a,i(u)}}}},53777:function(ee,z,e){var M=e(79952).P,k=e(1426).extendFlat;ee.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:k({},M,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(ee){ee.exports=function(z,e,M){M("newselection.mode"),M("newselection.line.width")&&(M("newselection.line.color"),M("newselection.line.dash")),M("activeselection.fillcolor"),M("activeselection.opacity")}},35855:function(ee,z,e){var M=e(64505).selectMode,k=e(51873).clearOutline,l=e(60165),T=l.readPaths,b=l.writePaths,d=l.fixDatesForPaths;ee.exports=function(s,t){if(s.length){var i=s[0][0];if(i){var r=i.getAttribute("d"),n=t.gd,o=n._fullLayout.newselection,a=t.plotinfo,u=a.xaxis,p=a.yaxis,c=t.isActiveSelection,x=t.dragmode,g=(n.layout||{}).selections||[];if(!M(x)&&c!==void 0){var h=n._fullLayout._activeSelectionIndex;if(h-1,Pt=[];if(function(We){return We&&Array.isArray(We)&&We[0].hoverOnBox!==!0}(Tt)){Q(fe,Me,Re);var Mt=function(We,nt){var rt,Ie,De=We[0],et=-1,tt=[];for(Ie=0;Ie0?function(We,nt){var rt,Ie,De,et=[];for(De=0;De0&&et.push(rt);if(et.length===1&&et[0]===nt.searchInfo&&(Ie=nt.searchInfo.cd[0].trace).selectedpoints.length===nt.pointNumbers.length){for(De=0;De1||(Ie+=nt.selectedpoints.length)>1))return!1;return Ie===1}(Ge)&&(xt=pe(Mt))){for(He&&He.remove(),mt=0;mt=0})(Fe)&&Fe._fullLayout._deactivateShape(Fe),function(vt){return vt._fullLayout._activeSelectionIndex>=0}(Fe)&&Fe._fullLayout._deactivateSelection(Fe);var Re=Fe._fullLayout._zoomlayer,He=n(be),Ge=a(be);if(He||Ge){var Ke,at,Qe=Re.selectAll(".select-outline-"+Ce.id);Qe&&Fe._fullLayout._outlining&&(He&&(Ke=v(Qe,fe)),Ke&&l.call("_guiRelayout",Fe,{shapes:Ke}),Ge&&!te(fe)&&(at=y(Qe,fe)),at&&(Fe._fullLayout._noEmitSelectedAtStart=!0,l.call("_guiRelayout",Fe,{selections:at}).then(function(){Me&&_(Fe)})),Fe._fullLayout._outlining=!1)}Ce.selection={},Ce.selection.selectionDefs=fe.selectionDefs=[],Ce.selection.mergedPolygons=fe.mergedPolygons=[]}function ie(fe){return fe._id}function oe(fe,Me,be,Ce){if(!fe.calcdata)return[];var Fe,Re,He,Ge=[],Ke=Me.map(ie),at=be.map(ie);for(He=0;He0?Ce[0]:be;return!!Me.selectedpoints&&Me.selectedpoints.indexOf(Fe)>-1}function ge(fe,Me,be){var Ce,Fe;for(Ce=0;Ce-1&&Me;if(!Re&&Me){var nn=se(fe,!0);if(nn.length){var Jt=nn[0].xref,rn=nn[0].yref;if(Jt&&rn){var fn=Ee(nn);_e([L(fe,Jt,"x"),L(fe,rn,"y")])(un,fn)}}fe._fullLayout._noEmitSelectedAtStart?fe._fullLayout._noEmitSelectedAtStart=!1:jt&&ze(fe,un),xt._reselect=!1}if(!Re&&xt._deselect){var vn=xt._deselect;(function(Mn,En,bn){for(var Ln=0;Ln=0)st._fullLayout._deactivateShape(st);else if(!at){var fn=ot.clickmode;E.done(yn).then(function(){if(E.clear(yn),Jt===2){for(Dt.remove(),De=0;De-1&&K(rn,st,Ce.xaxes,Ce.yaxes,Ce.subplot,Ce,Dt),fn==="event"&&ze(st,void 0);d.click(st,rn)}).catch(f.error)}},Ce.doneFn=function(){Ht.remove(),E.done(yn).then(function(){E.clear(yn),!mt&&Ie&&Ce.selectionDefs&&(Ie.subtract=Rt,Ce.selectionDefs.push(Ie),Ce.mergedPolygons.length=0,[].push.apply(Ce.mergedPolygons,rt)),(mt||at)&&re(Ce,mt),Ce.doneFnCompleted&&Ce.doneFnCompleted(un),Qe&&ze(st,tt)}).catch(f.error)}},clearOutline:x,clearSelectionsCache:re,selectOnClick:K}},89827:function(ee,z,e){var M=e(50215),k=e(41940),l=e(82196).line,T=e(79952).P,b=e(1426).extendFlat,d=e(44467).templatedArray,s=(e(24695),e(9012)),t=e(5386).R,i=e(37281);ee.exports=d("shape",{visible:b({},s.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:b({},s.legend,{editType:"calc+arraydraw"}),legendgroup:b({},s.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:b({},s.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:k({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:b({},s.legendrank,{editType:"calc+arraydraw"}),legendwidth:b({},s.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:b({},M.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:b({},M.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:b({},l.color,{editType:"arraydraw"}),width:b({},l.width,{editType:"calc+arraydraw"}),dash:b({},T,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:t({},{keys:Object.keys(i)}),font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(ee,z,e){var M=e(71828),k=e(89298),l=e(21459),T=e(30477);function b(i){return s(i.line.width,i.xsizemode,i.x0,i.x1,i.path,!1)}function d(i){return s(i.line.width,i.ysizemode,i.y0,i.y1,i.path,!0)}function s(i,r,n,o,a,u){var p=i/2,c=u;if(r==="pixel"){var x=a?T.extractPathCoords(a,u?l.paramIsY:l.paramIsX):[n,o],g=M.aggNums(Math.max,null,x),h=M.aggNums(Math.min,null,x),m=h<0?Math.abs(h)+p:p,v=g>0?g+p:p;return{ppad:p,ppadplus:c?m:v,ppadminus:c?v:m}}return{ppad:p}}function t(i,r,n,o,a){var u=i.type==="category"||i.type==="multicategory"?i.r2c:i.d2c;if(r!==void 0)return[u(r),u(n)];if(o){var p,c,x,g,h=1/0,m=-1/0,v=o.match(l.segmentRE);for(i.type==="date"&&(u=T.decodeDate(u)),p=0;pm&&(m=g)));return m>=h?[h,m]:void 0}}ee.exports=function(i){var r=i._fullLayout,n=M.filterVisible(r.shapes);if(n.length&&i._fullData.length)for(var o=0;o=ie?oe-pe:pe-oe,-180/Math.PI*Math.atan2(ge,we)}(m,y,v,_):0),w.call(function(ie){return ie.call(T.font,S).attr({}),l.convertToTspans(ie,r),ie});var Y=function(ie,oe,ce,pe,ge,we,ye){var me,Oe,ke,Te,le=ge.label.textposition,se=ge.label.textangle,ne=ge.label.padding,ve=ge.type,Ee=Math.PI/180*we,_e=Math.sin(Ee),ze=Math.cos(Ee),Ne=ge.label.xanchor,fe=ge.label.yanchor;if(ve==="line"){le==="start"?(me=ie,Oe=oe):le==="end"?(me=ce,Oe=pe):(me=(ie+ce)/2,Oe=(oe+pe)/2),Ne==="auto"&&(Ne=le==="start"?se==="auto"?ce>ie?"left":ceie?"right":ceie?"right":ceie?"left":ce1&&(me.length!==2||me[1][0]!=="Z")&&(V===0&&(me[0][0]="M"),f[O]=me,C(),P())}}()}}function ie(ge,we){(function(ye,me){if(f.length)for(var Oe=0;OeOe?(le=ye,Ee="y0",se=Oe,_e="y1"):(le=Oe,Ee="y1",se=ye,_e="y0"),Ye(rt),We(pe,oe),function(Ie,De,et){var tt=De.xref,gt=De.yref,ht=T.getFromId(et,tt),dt=T.getFromId(et,gt),ct="";tt==="paper"||ht.autorange||(ct+=tt),gt==="paper"||dt.autorange||(ct+=gt),r.setClipUrl(Ie,ct?"clip"+et._fullLayout._uid+ct:null,et)}(ie,oe,re),Mt.moveFn=Me==="move"?Xe:Ve,Mt.altKey=rt.altKey)},doneFn:function(){g(re)||(a(ie),nt(pe),v(ie,re,oe),k.call("_guiRelayout",re,ge.getUpdateObj()))},clickFn:function(){g(re)||nt(pe)}};function Ye(rt){if(g(re))Me=null;else if(He)Me=rt.target.tagName==="path"?"move":rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ie=Mt.element.getBoundingClientRect(),De=Ie.right-Ie.left,et=Ie.bottom-Ie.top,tt=rt.clientX-Ie.left,gt=rt.clientY-Ie.top,ht=!Ge&&De>be&&et>Ce&&!rt.shiftKey?o.getCursor(tt/De,1-gt/et):"move";a(ie,ht),Me=ht.split("-")[0]}}function Xe(rt,Ie){if(oe.type==="path"){var De=function(gt){return gt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(gt){return Tt(ot(gt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(gt){return wt(mt(gt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(Ke("x0",oe.x0=Tt(we+rt)),Ke("x1",oe.x1=Tt(me+rt))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(Ke("y0",oe.y0=wt(ye+Ie)),Ke("y1",oe.y1=wt(Oe+Ie)));ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function Ve(rt,Ie){if(Ge){var De=function(Wt){return Wt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(Wt){return Tt(ot(Wt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(Wt){return wt(mt(Wt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else if(He){if(Me==="resize-over-start-point"){var gt=we+rt,ht=Re?ye-Ie:ye+Ie;Ke("x0",oe.x0=Fe?gt:Tt(gt)),Ke("y0",oe.y0=Re?ht:wt(ht))}else if(Me==="resize-over-end-point"){var dt=me+rt,ct=Re?Oe-Ie:Oe+Ie;Ke("x1",oe.x1=Fe?dt:Tt(dt)),Ke("y1",oe.y1=Re?ct:wt(ct))}}else{var kt=function(Wt){return Me.indexOf(Wt)!==-1},ut=kt("n"),ft=kt("s"),bt=kt("w"),It=kt("e"),Rt=ut?le+Ie:le,Dt=ft?se+Ie:se,Kt=bt?ne+rt:ne,qt=It?ve+rt:ve;Re&&(ut&&(Rt=le-Ie),ft&&(Dt=se-Ie)),(!Re&&Dt-Rt>Ce||Re&&Rt-Dt>Ce)&&(Ke(Ee,oe[Ee]=Re?Rt:wt(Rt)),Ke(_e,oe[_e]=Re?Dt:wt(Dt))),qt-Kt>be&&(Ke(ze,oe[ze]=Fe?Kt:Tt(Kt)),Ke(Ne,oe[Ne]=Fe?qt:Tt(qt)))}ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function We(rt,Ie){(Fe||Re)&&function(){var De=Ie.type!=="path",et=rt.selectAll(".visual-cue").data([0]);et.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var tt=ot(Fe?Ie.xanchor:l.midRange(De?[Ie.x0,Ie.x1]:p.extractPathCoords(Ie.path,u.paramIsX))),gt=mt(Re?Ie.yanchor:l.midRange(De?[Ie.y0,Ie.y1]:p.extractPathCoords(Ie.path,u.paramIsY)));if(tt=p.roundPositionForSharpStrokeRendering(tt,1),gt=p.roundPositionForSharpStrokeRendering(gt,1),Fe&&Re){var ht="M"+(tt-1-1)+","+(gt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";et.attr("d",ht)}else if(Fe){var dt="M"+(tt-1-1)+","+(gt-9-1)+"v18 h2 v-18 Z";et.attr("d",dt)}else{var ct="M"+(tt-9-1)+","+(gt-1-1)+"h18 v2 h-18 Z";et.attr("d",ct)}}()}function nt(rt){rt.selectAll(".visual-cue").remove()}o.init(Mt),Pt.node().onmousemove=Ye}(f,Y,E,S,P,K):E.editable===!0&&Y.style("pointer-events",q||i.opacity(V)*O<=.5?"stroke":"all");Y.node().addEventListener("click",function(){return function(re,ie){if(h(re)){var oe=+ie.node().getAttribute("data-index");if(oe>=0){if(oe===re._fullLayout._activeShapeIndex)return void _(re);re._fullLayout._activeShapeIndex=oe,re._fullLayout._deactivateShape=_,x(re)}}}(f,Y)})}E._input&&E.visible===!0&&(E.layer!=="below"?C(f._fullLayout._shapeUpperLayer):E.xref==="paper"||E.yref==="paper"?C(f._fullLayout._shapeLowerLayer):L._hadPlotinfo?C((L.mainplotinfo||L).shapelayer):C(f._fullLayout._shapeLowerLayer))}function v(f,S,w){var E=(w.xref+w.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");r.setClipUrl(f,E?"clip"+S._fullLayout._uid+E:null,S)}function y(f,S,w){return f.replace(u.segmentRE,function(E){var L=0,C=E.charAt(0),P=u.paramIsX[C],R=u.paramIsY[C],G=u.numParams[C];return C+E.substr(1).replace(u.paramRE,function(O){return L>=G||(P[L]?O=S(O):R[L]&&(O=w(O)),L++),O})})}function _(f){h(f)&&f._fullLayout._activeShapeIndex>=0&&(t(f),delete f._fullLayout._activeShapeIndex,x(f))}ee.exports={draw:x,drawOne:m,eraseActiveShape:function(f){if(h(f)){t(f);var S=f._fullLayout._activeShapeIndex,w=(f.layout||{}).shapes||[];if(S0&&mJ&&(W="X"),W});return H>J&&(Y=Y.replace(/[\s,]*X.*/,""),k.log("Ignoring extra params in segment "+B)),q+Y})}(b,s,i);if(b.xsizemode==="pixel"){var m=s(b.xanchor);r=m+b.x0,n=m+b.x1}else r=s(b.x0),n=s(b.x1);if(b.ysizemode==="pixel"){var v=i(b.yanchor);o=v-b.y0,a=v-b.y1}else o=i(b.y0),a=i(b.y1);if(u==="line")return"M"+r+","+o+"L"+n+","+a;if(u==="rect")return"M"+r+","+o+"H"+n+"V"+a+"H"+r+"Z";var y=(r+n)/2,_=(o+a)/2,f=Math.abs(y-r),S=Math.abs(_-o),w="A"+f+","+S,E=y+f+","+_;return"M"+E+w+" 0 1,1 "+y+","+(_-S)+w+" 0 0,1 "+E+"Z"}},89853:function(ee,z,e){var M=e(34031);ee.exports={moduleType:"component",name:"shapes",layoutAttributes:e(89827),supplyLayoutDefaults:e(84726),supplyDrawNewShapeDefaults:e(45547),includeBasePlot:e(76325)("shapes"),calcAutorange:e(5627),draw:M.draw,drawOne:M.drawOne}},37281:function(ee){function z(l,T){return T?T.d2l(l):l}function e(l,T){return T?T.l2d(l):l}function M(l,T){return z(l.x1,T)-z(l.x0,T)}function k(l,T,b){return z(l.y1,b)-z(l.y0,b)}ee.exports={x0:function(l){return l.x0},x1:function(l){return l.x1},y0:function(l){return l.y0},y1:function(l){return l.y1},slope:function(l,T,b){return l.type!=="line"?void 0:k(l,0,b)/M(l,T)},dx:M,dy:k,width:function(l,T){return Math.abs(M(l,T))},height:function(l,T,b){return Math.abs(k(l,0,b))},length:function(l,T,b){return l.type!=="line"?void 0:Math.sqrt(Math.pow(M(l,T),2)+Math.pow(k(l,0,b),2))},xcenter:function(l,T){return e((z(l.x1,T)+z(l.x0,T))/2,T)},ycenter:function(l,T,b){return e((z(l.y1,b)+z(l.y0,b))/2,b)}}},75067:function(ee,z,e){var M=e(41940),k=e(35025),l=e(1426).extendDeepAll,T=e(30962).overrideAll,b=e(85594),d=e(44467).templatedArray,s=e(98292),t=d("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:t,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:l(k({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:b.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:M({})},font:M({}),activebgcolor:{valType:"color",dflt:s.gripBgActiveColor},bgcolor:{valType:"color",dflt:s.railBgColor},bordercolor:{valType:"color",dflt:s.railBorderColor},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth},ticklen:{valType:"number",min:0,dflt:s.tickLength},tickcolor:{valType:"color",dflt:s.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength}}),"arraydraw","from-root")},98292:function(ee){ee.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(ee,z,e){var M=e(71828),k=e(85501),l=e(75067),T=e(98292).name,b=l.steps;function d(t,i,r){function n(c,x){return M.coerce(t,i,l,c,x)}for(var o=k(t,i,{name:"steps",handleItemDefaults:s}),a=0,u=0;u0&&(H=H.transition().duration(R.transition.duration).ease(R.transition.easing)),H.attr("transform",d(B-.5*i.gripWidth,R._dims.currentValueTotalHeight))}}function w(P,R){var G=P._dims;return G.inputAreaStart+i.stepInset+(G.inputAreaLength-2*i.stepInset)*Math.min(1,Math.max(0,R))}function E(P,R){var G=P._dims;return Math.min(1,Math.max(0,(R-i.stepInset-G.inputAreaStart)/(G.inputAreaLength-2*i.stepInset-2*G.inputAreaStart)))}function L(P,R,G){var O=G._dims,V=b.ensureSingle(P,"rect",i.railTouchRectClass,function(N){N.call(_,R,P,G).style("pointer-events","all")});V.attr({width:O.inputAreaLength,height:Math.max(O.inputAreaWidth,i.tickOffset+G.ticklen+O.labelHeight)}).call(l.fill,G.bgcolor).attr("opacity",0),T.setTranslate(V,0,O.currentValueTotalHeight)}function C(P,R){var G=R._dims,O=G.inputAreaLength-2*i.railInset,V=b.ensureSingle(P,"rect",i.railRectClass);V.attr({width:O,height:i.railWidth,rx:i.railRadius,ry:i.railRadius,"shape-rendering":"crispEdges"}).call(l.stroke,R.bordercolor).call(l.fill,R.bgcolor).style("stroke-width",R.borderwidth+"px"),T.setTranslate(V,i.railInset,.5*(G.inputAreaWidth-i.railWidth)+G.currentValueTotalHeight)}ee.exports=function(P){var R=P._context.staticPlot,G=P._fullLayout,O=function(te,K){for(var J=te[i.name],Y=[],W=0;W0?[0]:[]);function N(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),k.autoMargin(P,u(te))}if(V.enter().append("g").classed(i.containerClassName,!0).style("cursor",R?null:"ew-resize"),V.exit().each(function(){M.select(this).selectAll("g."+i.groupClassName).each(N)}).remove(),O.length!==0){var B=V.selectAll("g."+i.groupClassName).data(O,p);B.enter().append("g").classed(i.groupClassName,!0),B.exit().each(N).remove();for(var H=0;H0||me<0){var le={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[v.side];Y.attr("transform",d(le[0],le[1]))}}}return H.call(q),V&&(C?H.on(".opacity",null):(w=0,E=!0,H.text(h).on("mouseover.opacity",function(){M.select(this).transition().duration(r.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){M.select(this).transition().duration(r.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(i.makeEditable,{gd:a}).on("edit",function(J){m!==void 0?T.call("_guiRestyle",a,g,J,m):T.call("_guiRelayout",a,g,J)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(q)}).on("input",function(J){this.text(J||" ").call(i.positionText,y.x,y.y)})),H.classed("js-placeholder",E),f}}},7163:function(ee,z,e){var M=e(41940),k=e(22399),l=e(1426).extendFlat,T=e(30962).overrideAll,b=e(35025),d=e(44467).templatedArray,s=d("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:s,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:l(b({editType:"arraydraw"}),{}),font:M({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:k.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(ee){ee.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}},64897:function(ee,z,e){var M=e(71828),k=e(85501),l=e(7163),T=e(75909).name,b=l.buttons;function d(t,i,r){function n(o,a){return M.coerce(t,i,l,o,a)}n("visible",k(t,i,{name:"buttons",handleItemDefaults:s}).length>0)&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),M.noneOrAll(t,i,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),M.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function s(t,i){function r(n,o){return M.coerce(t,i,b,n,o)}r("visible",t.method==="skip"||Array.isArray(t.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}ee.exports=function(t,i){k(t,i,{name:T,handleItemDefaults:d})}},13689:function(ee,z,e){var M=e(39898),k=e(74875),l=e(7901),T=e(91424),b=e(71828),d=e(63893),s=e(44467).arrayEditor,t=e(18783).LINE_SPACING,i=e(75909),r=e(25849);function n(w){return w._index}function o(w,E){return+w.attr(i.menuIndexAttrName)===E._index}function a(w,E,L,C,P,R,G,O){E.active=G,s(w.layout,i.name,E).applyUpdate("active",G),E.type==="buttons"?p(w,C,null,null,E):E.type==="dropdown"&&(P.attr(i.menuIndexAttrName,"-1"),u(w,C,P,R,E),O||p(w,C,P,R,E))}function u(w,E,L,C,P){var R=b.ensureSingle(E,"g",i.headerClassName,function(H){H.style("pointer-events","all")}),G=P._dims,O=P.active,V=P.buttons[O]||i.blankHeaderOpts,N={y:P.pad.t,yPad:0,x:P.pad.l,xPad:0,index:0},B={width:G.headerWidth,height:G.headerHeight};R.call(c,P,V,w).call(f,P,N,B),b.ensureSingle(E,"text",i.headerArrowClassName,function(H){H.attr("text-anchor","end").call(T.font,P.font).text(i.arrowSymbol[P.direction])}).attr({x:G.headerWidth-i.arrowOffsetX+P.pad.l,y:G.headerHeight/2+i.textOffsetY+P.pad.t}),R.on("click",function(){L.call(S,String(o(L,P)?-1:P._index)),p(w,E,L,C,P)}),R.on("mouseover",function(){R.call(m)}),R.on("mouseout",function(){R.call(v,P)}),T.setTranslate(E,G.lx,G.ly)}function p(w,E,L,C,P){L||(L=E).attr("pointer-events","all");var R=function(Y){return+Y.attr(i.menuIndexAttrName)==-1}(L)&&P.type!=="buttons"?[]:P.buttons,G=P.type==="dropdown"?i.dropdownButtonClassName:i.buttonClassName,O=L.selectAll("g."+G).data(b.filterVisible(R)),V=O.enter().append("g").classed(G,!0),N=O.exit();P.type==="dropdown"?(V.attr("opacity","0").transition().attr("opacity","1"),N.transition().attr("opacity","0").remove()):N.remove();var B=0,H=0,q=P._dims,te=["up","down"].indexOf(P.direction)!==-1;P.type==="dropdown"&&(te?H=q.headerHeight+i.gapButtonHeader:B=q.headerWidth+i.gapButtonHeader),P.type==="dropdown"&&P.direction==="up"&&(H=-i.gapButtonHeader+i.gapButton-q.openHeight),P.type==="dropdown"&&P.direction==="left"&&(B=-i.gapButtonHeader+i.gapButton-q.openWidth);var K={x:q.lx+B+P.pad.l,y:q.ly+H+P.pad.t,yPad:i.gapButton,xPad:i.gapButton,index:0},J={l:K.x+P.borderwidth,t:K.y+P.borderwidth};O.each(function(Y,W){var Q=M.select(this);Q.call(c,P,Y,w).call(f,P,K),Q.on("click",function(){M.event.defaultPrevented||(Y.execute&&(Y.args2&&P.active===W?(a(w,P,0,E,L,C,-1),k.executeAPICommand(w,Y.method,Y.args2)):(a(w,P,0,E,L,C,W),k.executeAPICommand(w,Y.method,Y.args))),w.emit("plotly_buttonclicked",{menu:P,button:Y,active:P.active}))}),Q.on("mouseover",function(){Q.call(m)}),Q.on("mouseout",function(){Q.call(v,P),O.call(h,P)})}),O.call(h,P),te?(J.w=Math.max(q.openWidth,q.headerWidth),J.h=K.y-J.t):(J.w=K.x-J.l,J.h=Math.max(q.openHeight,q.headerHeight)),J.direction=P.direction,C&&(O.size()?function(Y,W,Q,re,ie,oe){var ce,pe,ge,we=ie.direction,ye=we==="up"||we==="down",me=ie._dims,Oe=ie.active;if(ye)for(pe=0,ge=0;ge0?[0]:[]);if(P.enter().append("g").classed(i.containerClassName,!0).style("cursor","pointer"),P.exit().each(function(){M.select(this).selectAll("g."+i.headerGroupClassName).each(C)}).remove(),L.length!==0){var R=P.selectAll("g."+i.headerGroupClassName).data(L,n);R.enter().append("g").classed(i.headerGroupClassName,!0);for(var G=b.ensureSingle(P,"g",i.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),O=0;Of,E=b.barLength+2*b.barPad,L=b.barWidth+2*b.barPad,C=c,P=g+h;P+L>n&&(P=n-L);var R=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(k.fill,b.barColor),w?(this.hbar=R.attr({rx:b.barRadius,ry:b.barRadius,x:C,y:P,width:E,height:L}),this._hbarXMin=C+E/2,this._hbarTranslateMax=f-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var G=h>S,O=b.barWidth+2*b.barPad,V=b.barLength+2*b.barPad,N=c+x,B=g;N+O>r&&(N=r-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(G?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(k.fill,b.barColor),G?(this.vbar=H.attr({rx:b.barRadius,ry:b.barRadius,x:N,y:B,width:O,height:V}),this._vbarYMin=B+V/2,this._vbarTranslateMax=S-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var q=this.id,te=o-.5,K=G?a+O+.5:a+.5,J=u-.5,Y=w?p+L+.5:p+.5,W=i._topdefs.selectAll("#"+q).data(w||G?[0]:[]);if(W.exit().remove(),W.enter().append("clipPath").attr("id",q).append("rect"),w||G?(this._clipRect=W.select("rect").attr({x:Math.floor(te),y:Math.floor(J),width:Math.ceil(K)-Math.floor(te),height:Math.ceil(Y)-Math.floor(J)}),this.container.call(l.setClipUrl,q,this.gd),this.bg.attr({x:c,y:g,width:x,height:h})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),w||G){var Q=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var re=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault(),M.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(re),G&&this.vbar.on(".drag",null).call(re)}this.setTranslate(s,t)},b.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},b.prototype._onBoxDrag=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d-=M.event.dx),this.vbar&&(s-=M.event.dy),this.setTranslate(d,s)},b.prototype._onBoxWheel=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d+=M.event.deltaY),this.vbar&&(s+=M.event.deltaY),this.setTranslate(d,s)},b.prototype._onBarDrag=function(){var d=this.translateX,s=this.translateY;if(this.hbar){var t=d+this._hbarXMin,i=t+this._hbarTranslateMax;d=(T.constrain(M.event.x,t,i)-t)/(i-t)*(this.position.w-this._box.w)}if(this.vbar){var r=s+this._vbarYMin,n=r+this._vbarTranslateMax;s=(T.constrain(M.event.y,r,n)-r)/(n-r)*(this.position.h-this._box.h)}this.setTranslate(d,s)},b.prototype.setTranslate=function(d,s){var t=this.position.w-this._box.w,i=this.position.h-this._box.h;if(d=T.constrain(d||0,0,t),s=T.constrain(s||0,0,i),this.translateX=d,this.translateY=s,this.container.call(l.setTranslate,this._box.l-this.position.l-d,this._box.t-this.position.t-s),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+d-.5),y:Math.floor(this.position.t+s-.5)}),this.hbar){var r=d/t;this.hbar.call(l.setTranslate,d+r*this._hbarTranslateMax,s)}if(this.vbar){var n=s/i;this.vbar.call(l.setTranslate,d,s+n*this._vbarTranslateMax)}}},18783:function(ee){ee.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(ee){ee.exports={axisRefDescription:function(z,e,M){return["If set to a",z,"axis id (e.g. *"+z+"* or","*"+z+"2*), the `"+z+"` position refers to a",z,"coordinate. If set to *paper*, the `"+z+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+M+"). If set to a",z,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+z+"2 domain* refers to the domain of the second",z," axis and a",z,"position of 0.5 refers to the","point between the",e,"and the",M,"of the domain of the","second",z,"axis."].join(" ")}}},22372:function(ee){ee.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}},31562:function(ee){ee.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(ee){ee.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},29659:function(ee){ee.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87381:function(ee){ee.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}},37822:function(ee){ee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(ee){ee.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},32396:function(ee,z){z.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],z.STYLE=z.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},77922:function(ee,z){z.xmlns="http://www.w3.org/2000/xmlns/",z.svg="http://www.w3.org/2000/svg",z.xlink="http://www.w3.org/1999/xlink",z.svgAttrs={xmlns:z.svg,"xmlns:xlink":z.xlink}},8729:function(ee,z,e){z.version=e(11506).version,e(7417),e(98847);for(var M=e(73972),k=z.register=M.register,l=e(10641),T=Object.keys(l),b=0;b",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(ee,z){z.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},z.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},z.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},z.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},z.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},z.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},26348:function(ee,z,e){var M=e(64872),k=M.mod,l=M.modHalf,T=Math.PI,b=2*T;function d(r){return Math.abs(r[1]-r[0])>b-1e-14}function s(r,n){return l(n-r,b)}function t(r,n){if(d(n))return!0;var o,a;n[0](a=k(a,b))&&(a+=b);var u=k(r,b),p=u+b;return u>=o&&u<=a||p>=o&&p<=a}function i(r,n,o,a,u,p,c){u=u||0,p=p||0;var x,g,h,m,v,y=d([o,a]);function _(E,L){return[E*Math.cos(L)+u,p-E*Math.sin(L)]}y?(x=0,g=T,h=b):o=u&&r<=p);var u,p},pathArc:function(r,n,o,a,u){return i(null,r,n,o,a,u,0)},pathSector:function(r,n,o,a,u){return i(null,r,n,o,a,u,1)},pathAnnulus:function(r,n,o,a,u,p){return i(r,n,o,a,u,p,1)}}},73627:function(ee,z){var e=Array.isArray,M=ArrayBuffer,k=DataView;function l(d){return M.isView(d)&&!(d instanceof k)}function T(d){return e(d)||l(d)}function b(d,s,t){if(T(d)){if(T(d[0])){for(var i=t,r=0;rp.max?a.set(u):a.set(+o)}},integer:{coerceFunction:function(o,a,u,p){o%1||!M(o)||p.min!==void 0&&op.max?a.set(u):a.set(+o)}},string:{coerceFunction:function(o,a,u,p){if(typeof o!="string"){var c=typeof o=="number";p.strict!==!0&&c?a.set(String(o)):a.set(u)}else p.noBlank&&!o?a.set(u):a.set(o)}},color:{coerceFunction:function(o,a,u){k(o).isValid()?a.set(o):a.set(u)}},colorlist:{coerceFunction:function(o,a,u){Array.isArray(o)&&o.length&&o.every(function(p){return k(p).isValid()})?a.set(o):a.set(u)}},colorscale:{coerceFunction:function(o,a,u){a.set(T.get(o,u))}},angle:{coerceFunction:function(o,a,u){o==="auto"?a.set("auto"):M(o)?a.set(i(+o,360)):a.set(u)}},subplotid:{coerceFunction:function(o,a,u,p){var c=p.regex||t(u);typeof o=="string"&&c.test(o)?a.set(o):a.set(u)},validateFunction:function(o,a){var u=a.dflt;return o===u||typeof o=="string"&&!!t(u).test(o)}},flaglist:{coerceFunction:function(o,a,u,p){if((p.extras||[]).indexOf(o)===-1)if(typeof o=="string"){for(var c=o.split("+"),x=0;x=M&&R<=k?R:t}if(typeof R!="string"&&typeof R!="number")return t;R=String(R);var B=h(G),H=R.charAt(0);!B||H!=="G"&&H!=="g"||(R=R.substr(1),G="");var q=B&&G.substr(0,7)==="chinese",te=R.match(q?x:c);if(!te)return t;var K=te[1],J=te[3]||"1",Y=Number(te[5]||1),W=Number(te[7]||0),Q=Number(te[9]||0),re=Number(te[11]||0);if(B){if(K.length===2)return t;var ie;K=Number(K);try{var oe=u.getComponentMethod("calendars","getCal")(G);if(q){var ce=J.charAt(J.length-1)==="i";J=parseInt(J,10),ie=oe.newDate(K,oe.toMonthIndex(K,J,ce),Y)}else ie=oe.newDate(K,Number(J),Y)}catch{return t}return ie?(ie.toJD()-a)*i+W*r+Q*n+re*o:t}K=K.length===2?(Number(K)+2e3-g)%100+g:Number(K),J-=1;var pe=new Date(Date.UTC(2e3,J,Y,W,Q));return pe.setUTCFullYear(K),pe.getUTCMonth()!==J||pe.getUTCDate()!==Y?t:pe.getTime()+re*o},M=z.MIN_MS=z.dateTime2ms("-9999"),k=z.MAX_MS=z.dateTime2ms("9999-12-31 23:59:59.9999"),z.isDateTime=function(R,G){return z.dateTime2ms(R,G)!==t};var v=90*i,y=3*r,_=5*n;function f(R,G,O,V,N){if((G||O||V||N)&&(R+=" "+m(G,2)+":"+m(O,2),(V||N)&&(R+=":"+m(V,2),N))){for(var B=4;N%10==0;)B-=1,N/=10;R+="."+m(N,B)}return R}z.ms2DateTime=function(R,G,O){if(typeof R!="number"||!(R>=M&&R<=k))return t;G||(G=0);var V,N,B,H,q,te,K=Math.floor(10*d(R+.05,1)),J=Math.round(R-K/10);if(h(O)){var Y=Math.floor(J/i)+a,W=Math.floor(d(R,i));try{V=u.getComponentMethod("calendars","getCal")(O).fromJD(Y).formatDate("yyyy-mm-dd")}catch{V=p("G%Y-%m-%d")(new Date(J))}if(V.charAt(0)==="-")for(;V.length<11;)V="-0"+V.substr(1);else for(;V.length<10;)V="0"+V;N=G=M+i&&R<=k-i))return t;var G=Math.floor(10*d(R+.05,1)),O=new Date(Math.round(R-G/10));return f(l("%Y-%m-%d")(O),O.getHours(),O.getMinutes(),O.getSeconds(),10*O.getUTCMilliseconds()+G)},z.cleanDate=function(R,G,O){if(R===t)return G;if(z.isJSDate(R)||typeof R=="number"&&isFinite(R)){if(h(O))return b.error("JS Dates and milliseconds are incompatible with world calendars",R),G;if(!(R=z.ms2DateTimeLocal(+R))&&G!==void 0)return G}else if(!z.isDateTime(R,O))return b.error("unrecognized date",R),G;return R};var S=/%\d?f/g,w=/%h/g,E={1:"1",2:"1",3:"2",4:"2"};function L(R,G,O,V){R=R.replace(S,function(B){var H=Math.min(+B.charAt(1)||6,6);return(G/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var N=new Date(Math.floor(G+.05));if(R=R.replace(w,function(){return E[O("%q")(N)]}),h(V))try{R=u.getComponentMethod("calendars","worldCalFmt")(R,G,V)}catch{return"Invalid"}return O(R)(N)}var C=[59,59.9,59.99,59.999,59.9999];z.formatDate=function(R,G,O,V,N,B){if(N=h(N)&&N,!G)if(O==="y")G=B.year;else if(O==="m")G=B.month;else{if(O!=="d")return function(H,q){var te=d(H+.05,i),K=m(Math.floor(te/r),2)+":"+m(d(Math.floor(te/n),60),2);if(q!=="M"){T(q)||(q=0);var J=(100+Math.min(d(H/o,60),C[q])).toFixed(q).substr(1);q>0&&(J=J.replace(/0+$/,"").replace(/[\.]$/,"")),K+=":"+J}return K}(R,O)+` +import{eH as Td}from"./index.d0f12294.js";(function(){try{var Cs=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Il=new Error().stack;Il&&(Cs._sentryDebugIds=Cs._sentryDebugIds||{},Cs._sentryDebugIds[Il]="468edf5b-3fb1-4888-95e8-11c66a07e2d8",Cs._sentryDebugIdIdentifier="sentry-dbid-468edf5b-3fb1-4888-95e8-11c66a07e2d8")}catch{}})();function kd(Cs,Il){for(var bl=0;blPs[Ha]})}}}return Object.freeze(Object.defineProperty(Cs,Symbol.toStringTag,{value:"Module"}))}var of={exports:{}};(function(Cs,Il){/*! For license information please see plotly.min.js.LICENSE.txt */(function(bl,Ps){Cs.exports=Ps()})(self,function(){return function(){var bl={98847:function(ee,z,e){var M=e(71828),k={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var l in k){var T=l.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");M.addStyleRule(T,k[l])}},98222:function(ee,z,e){ee.exports=e(82887)},27206:function(ee,z,e){ee.exports=e(60822)},59893:function(ee,z,e){ee.exports=e(23381)},5224:function(ee,z,e){ee.exports=e(83832)},59509:function(ee,z,e){ee.exports=e(72201)},75557:function(ee,z,e){ee.exports=e(91815)},40338:function(ee,z,e){ee.exports=e(21462)},35080:function(ee,z,e){ee.exports=e(51319)},61396:function(ee,z,e){ee.exports=e(57516)},40549:function(ee,z,e){ee.exports=e(98128)},49866:function(ee,z,e){ee.exports=e(99442)},36089:function(ee,z,e){ee.exports=e(93740)},19548:function(ee,z,e){ee.exports=e(8729)},35831:function(ee,z,e){ee.exports=e(93814)},61039:function(ee,z,e){ee.exports=e(14382)},97040:function(ee,z,e){ee.exports=e(51759)},77986:function(ee,z,e){ee.exports=e(10421)},24296:function(ee,z,e){ee.exports=e(43102)},58872:function(ee,z,e){ee.exports=e(92165)},29626:function(ee,z,e){ee.exports=e(3325)},65591:function(ee,z,e){ee.exports=e(36071)},69738:function(ee,z,e){ee.exports=e(43905)},92650:function(ee,z,e){ee.exports=e(35902)},35630:function(ee,z,e){ee.exports=e(69816)},73434:function(ee,z,e){ee.exports=e(94507)},27909:function(ee,z,e){var M=e(19548);M.register([e(27206),e(5224),e(58872),e(65591),e(69738),e(92650),e(49866),e(25743),e(6197),e(97040),e(85461),e(73434),e(54201),e(81299),e(47645),e(35630),e(77986),e(83043),e(93005),e(96881),e(4534),e(50581),e(40549),e(77900),e(47582),e(35080),e(21641),e(17280),e(5861),e(29626),e(10021),e(65317),e(96268),e(61396),e(35831),e(16122),e(46163),e(40344),e(40338),e(48131),e(36089),e(55334),e(75557),e(19440),e(99488),e(59893),e(97393),e(98222),e(61039),e(24296),e(66398),e(59509)]),ee.exports=M},46163:function(ee,z,e){ee.exports=e(15154)},96881:function(ee,z,e){ee.exports=e(64943)},50581:function(ee,z,e){ee.exports=e(21164)},55334:function(ee,z,e){ee.exports=e(54186)},65317:function(ee,z,e){ee.exports=e(94873)},10021:function(ee,z,e){ee.exports=e(67618)},54201:function(ee,z,e){ee.exports=e(58810)},5861:function(ee,z,e){ee.exports=e(20593)},16122:function(ee,z,e){ee.exports=e(29396)},83043:function(ee,z,e){ee.exports=e(13551)},48131:function(ee,z,e){ee.exports=e(46858)},47582:function(ee,z,e){ee.exports=e(17988)},21641:function(ee,z,e){ee.exports=e(68868)},96268:function(ee,z,e){ee.exports=e(20467)},19440:function(ee,z,e){ee.exports=e(91271)},99488:function(ee,z,e){ee.exports=e(21461)},97393:function(ee,z,e){ee.exports=e(85956)},25743:function(ee,z,e){ee.exports=e(52979)},66398:function(ee,z,e){ee.exports=e(32275)},17280:function(ee,z,e){ee.exports=e(6419)},77900:function(ee,z,e){ee.exports=e(61510)},81299:function(ee,z,e){ee.exports=e(87619)},93005:function(ee,z,e){ee.exports=e(93601)},40344:function(ee,z,e){ee.exports=e(96595)},47645:function(ee,z,e){ee.exports=e(70954)},6197:function(ee,z,e){ee.exports=e(47462)},4534:function(ee,z,e){ee.exports=e(17659)},85461:function(ee,z,e){ee.exports=e(19990)},82884:function(ee){ee.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(ee,z,e){var M=e(82884),k=e(41940),l=e(85555),T=e(44467).templatedArray;e(24695),ee.exports=T("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:M.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:k({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(ee,z,e){var M=e(71828),k=e(89298),l=e(92605).draw;function T(d){var s=d._fullLayout;M.filterVisible(s.annotations).forEach(function(t){var i=k.getFromId(d,t.xref),r=k.getFromId(d,t.yref),n=k.getRefType(t.xref),o=k.getRefType(t.yref);t._extremes={},n==="range"&&b(t,i),o==="range"&&b(t,r)})}function b(d,s){var t,i=s._id,r=i.charAt(0),n=d[r],o=d["a"+r],a=d[r+"ref"],u=d["a"+r+"ref"],p=d["_"+r+"padplus"],c=d["_"+r+"padminus"],x={x:1,y:-1}[r]*d[r+"shift"],g=3*d.arrowsize*d.arrowwidth||0,h=g+x,m=g-x,v=3*d.startarrowsize*d.arrowwidth||0,y=v+x,_=v-x;if(u===a){var f=k.findExtremes(s,[s.r2c(n)],{ppadplus:h,ppadminus:m}),S=k.findExtremes(s,[s.r2c(o)],{ppadplus:Math.max(p,y),ppadminus:Math.max(c,_)});t={min:[f.min[0],S.min[0]],max:[f.max[0],S.max[0]]}}else y=o?y+o:y,_=o?_-o:_,t=k.findExtremes(s,[s.r2c(n)],{ppadplus:Math.max(p,h,y),ppadminus:Math.max(c,m,_)});d._extremes[i]=t}ee.exports=function(d){var s=d._fullLayout;if(M.filterVisible(s.annotations).length&&d._fullData.length)return M.syncOrAsync([l,T],d)}},44317:function(ee,z,e){var M=e(71828),k=e(73972),l=e(44467).arrayEditor;function T(d,s){var t,i,r,n,o,a,u,p=d._fullLayout.annotations,c=[],x=[],g=[],h=(s||[]).length;for(t=0;t0||t.explicitOff.length>0},onClick:function(d,s){var t,i,r=T(d,s),n=r.on,o=r.off.concat(r.explicitOff),a={},u=d._fullLayout.annotations;if(n.length||o.length){for(t=0;t.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ct]}for(var Ne=!1,fe=["x","y"],Me=0;Me1)&&(at===Ke?((Mt=Qe.r2fraction(h["a"+Ge]))<0||Mt>1)&&(Ne=!0):Ne=!0),be=Qe._offset+Qe.r2p(h[Ge]),Re=.5}else{var Ye=Pt==="domain";Ge==="x"?(Fe=h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.l+E.w*Fe):(Fe=1-h[Ge],be=Ye?Qe._offset+Qe._length*Fe:be=E.t+E.h*Fe),Re=h.showarrow?.5:Fe}if(h.showarrow){wt.head=be;var Xe=h["a"+Ge];if(He=xt*ze(.5,h.xanchor)-st*ze(.5,h.yanchor),at===Ke){var Ve=d.getRefType(at);Ve==="domain"?(Ge==="y"&&(Xe=1-Xe),wt.tail=Qe._offset+Qe._length*Xe):Ve==="paper"?Ge==="y"?(Xe=1-Xe,wt.tail=E.t+E.h*Xe):wt.tail=E.l+E.w*Xe:wt.tail=Qe._offset+Qe.r2p(Xe),Ce=He}else wt.tail=be+Xe,Ce=He+Xe;wt.text=wt.tail+He;var We=w[Ge==="x"?"width":"height"];if(Ke==="paper"&&(wt.head=T.constrain(wt.head,1,We-1)),at==="pixel"){var nt=-Math.max(wt.tail-3,wt.text),rt=Math.min(wt.tail+3,wt.text)-We;nt>0?(wt.tail+=nt,wt.text+=nt):rt>0&&(wt.tail-=rt,wt.text-=rt)}wt.tail+=Tt,wt.head+=Tt}else Ce=He=ot*ze(Re,mt),wt.text=be+He;wt.text+=Tt,He+=Tt,Ce+=Tt,h["_"+Ge+"padplus"]=ot/2+Ce,h["_"+Ge+"padminus"]=ot/2-Ce,h["_"+Ge+"size"]=ot,h["_"+Ge+"shift"]=He}if(Ne)K.remove();else{var Ie=0,De=0;if(h.align!=="left"&&(Ie=(ne-le)*(h.align==="center"?.5:1)),h.valign!=="top"&&(De=(ve-se)*(h.valign==="middle"?.5:1)),ke)Oe.select("svg").attr({x:W+Ie-1,y:W+De}).call(t.setClipUrl,re?O:null,g);else{var et=W+De-Te.top,tt=W+Ie-Te.left;pe.call(r.positionText,tt,et).call(t.setClipUrl,re?O:null,g)}ie.select("rect").call(t.setRect,W,W,ne,ve),Q.call(t.setRect,J/2,J/2,Ee-J,_e-J),K.call(t.setTranslate,Math.round(V.x.text-Ee/2),Math.round(V.y.text-_e/2)),H.attr({transform:"rotate("+N+","+V.x.text+","+V.y.text+")"});var gt,ht=function(dt,ct){B.selectAll(".annotation-arrow-g").remove();var kt=V.x.head,ut=V.y.head,ft=V.x.tail+dt,bt=V.y.tail+ct,It=V.x.text+dt,Rt=V.y.text+ct,Dt=T.rotationXYMatrix(N,It,Rt),Kt=T.apply2DTransform(Dt),qt=T.apply2DTransform2(Dt),Wt=+Q.attr("width"),Ht=+Q.attr("height"),hn=It-.5*Wt,yn=hn+Wt,un=Rt-.5*Ht,jt=un+Ht,nn=[[hn,un,hn,jt],[hn,jt,yn,jt],[yn,jt,yn,un],[yn,un,hn,un]].map(qt);if(!nn.reduce(function($n,Gn){return $n^!!T.segmentsIntersect(kt,ut,kt+1e6,ut+1e6,Gn[0],Gn[1],Gn[2],Gn[3])},!1)){nn.forEach(function($n){var Gn=T.segmentsIntersect(ft,bt,kt,ut,$n[0],$n[1],$n[2],$n[3]);Gn&&(ft=Gn.x,bt=Gn.y)});var Jt=h.arrowwidth,rn=h.arrowcolor,fn=h.arrowside,vn=B.append("g").style({opacity:s.opacity(rn)}).classed("annotation-arrow-g",!0),Mn=vn.append("path").attr("d","M"+ft+","+bt+"L"+kt+","+ut).style("stroke-width",Jt+"px").call(s.stroke,s.rgb(rn));if(u(Mn,fn,h),L.annotationPosition&&Mn.node().parentNode&&!v){var En=kt,bn=ut;if(h.standoff){var Ln=Math.sqrt(Math.pow(kt-ft,2)+Math.pow(ut-bt,2));En+=h.standoff*(ft-kt)/Ln,bn+=h.standoff*(bt-ut)/Ln}var Wn,Qn,ir=vn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ft-En)+","+(bt-bn),transform:b(En,bn)}).style("stroke-width",Jt+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");o.init({element:ir.node(),gd:g,prepFn:function(){var $n=t.getTranslate(K);Wn=$n.x,Qn=$n.y,y&&y.autorange&&P(y._name+".autorange",!0),_&&_.autorange&&P(_._name+".autorange",!0)},moveFn:function($n,Gn){var dr=Kt(Wn,Qn),Bt=dr[0]+$n,tn=dr[1]+Gn;K.call(t.setTranslate,Bt,tn),R("x",c(y,$n,"x",E,h)),R("y",c(_,Gn,"y",E,h)),h.axref===h.xref&&R("ax",c(y,$n,"ax",E,h)),h.ayref===h.yref&&R("ay",c(_,Gn,"ay",E,h)),vn.attr("transform",b($n,Gn)),H.attr({transform:"rotate("+N+","+Bt+","+tn+")"})},doneFn:function(){k.call("_guiRelayout",g,G());var $n=document.querySelector(".js-notes-box-panel");$n&&$n.redraw($n.selectedObj)}})}}};h.showarrow&&ht(0,0),q&&o.init({element:K.node(),gd:g,prepFn:function(){gt=H.attr("transform")},moveFn:function(dt,ct){var kt="pointer";if(h.showarrow)h.axref===h.xref?R("ax",c(y,dt,"ax",E,h)):R("ax",h.ax+dt),h.ayref===h.yref?R("ay",c(_,ct,"ay",E.w,h)):R("ay",h.ay+ct),ht(dt,ct);else{if(v)return;var ut,ft;if(y)ut=c(y,dt,"x",E,h);else{var bt=h._xsize/E.w,It=h.x+(h._xshift-h.xshift)/E.w-bt/2;ut=o.align(It+dt/E.w,bt,0,1,h.xanchor)}if(_)ft=c(_,ct,"y",E,h);else{var Rt=h._ysize/E.h,Dt=h.y-(h._yshift+h.yshift)/E.h-Rt/2;ft=o.align(Dt-ct/E.h,Rt,0,1,h.yanchor)}R("x",ut),R("y",ft),y&&_||(kt=o.getCursor(y?.5:ut,_?.5:ft,h.xanchor,h.yanchor))}H.attr({transform:b(dt,ct)+gt}),n(K,kt)},clickFn:function(dt,ct){h.captureevents&&g.emit("plotly_clickannotation",ge(ct))},doneFn:function(){n(K),k.call("_guiRelayout",g,G());var dt=document.querySelector(".js-notes-box-panel");dt&&dt.redraw(dt.selectedObj)}})}}}ee.exports={draw:function(g){var h=g._fullLayout;h._infolayer.selectAll(".annotation").remove();for(var m=0;m=0,v=i.indexOf("end")>=0,y=c.backoff*g+r.standoff,_=x.backoff*h+r.startstandoff;if(p.nodeName==="line"){n={x:+t.attr("x1"),y:+t.attr("y1")},o={x:+t.attr("x2"),y:+t.attr("y2")};var f=n.x-o.x,S=n.y-o.y;if(u=(a=Math.atan2(S,f))+Math.PI,y&&_&&y+_>Math.sqrt(f*f+S*S))return void B();if(y){if(y*y>f*f+S*S)return void B();var w=y*Math.cos(a),E=y*Math.sin(a);o.x+=w,o.y+=E,t.attr({x2:o.x,y2:o.y})}if(_){if(_*_>f*f+S*S)return void B();var L=_*Math.cos(a),C=_*Math.sin(a);n.x-=L,n.y-=C,t.attr({x1:n.x,y1:n.y})}}else if(p.nodeName==="path"){var P=p.getTotalLength(),R="";if(P1){r=!0;break}}r?T.fullLayout._infolayer.select(".annotation-"+T.id+'[data-index="'+t+'"]').remove():(i._pdata=k(T.glplot.cameraParams,[b.xaxis.r2l(i.x)*d[0],b.yaxis.r2l(i.y)*d[1],b.zaxis.r2l(i.z)*d[2]]),M(T.graphDiv,i,t,T.id,i._xa,i._ya))}}},2468:function(ee,z,e){var M=e(73972),k=e(71828);ee.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(26997)}}},layoutAttributes:e(26997),handleDefaults:e(20226),includeBasePlot:function(l,T){var b=M.subplotsRegistry.gl3d;if(b)for(var d=b.attrRegex,s=Object.keys(l),t=0;t=0)))return i;if(u===3)o[u]>1&&(o[u]=1);else if(o[u]>=1)return i}var p=Math.round(255*o[0])+", "+Math.round(255*o[1])+", "+Math.round(255*o[2]);return a?"rgba("+p+", "+o[3]+")":"rgb("+p+")"}T.tinyRGB=function(i){var r=i.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"},T.rgb=function(i){return T.tinyRGB(M(i))},T.opacity=function(i){return i?M(i).getAlpha():0},T.addOpacity=function(i,r){var n=M(i).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+r+")"},T.combine=function(i,r){var n=M(i).toRgb();if(n.a===1)return M(i).toRgbString();var o=M(r||s).toRgb(),a=o.a===1?o:{r:255*(1-o.a)+o.r*o.a,g:255*(1-o.a)+o.g*o.a,b:255*(1-o.a)+o.b*o.a},u={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return M(u).toRgbString()},T.contrast=function(i,r,n){var o=M(i);return o.getAlpha()!==1&&(o=M(T.combine(i,s))),(o.isDark()?r?o.lighten(r):s:n?o.darken(n):d).toString()},T.stroke=function(i,r){var n=M(r);i.style({stroke:T.tinyRGB(n),"stroke-opacity":n.getAlpha()})},T.fill=function(i,r){var n=M(r);i.style({fill:T.tinyRGB(n),"fill-opacity":n.getAlpha()})},T.clean=function(i){if(i&&typeof i=="object"){var r,n,o,a,u=Object.keys(i);for(r=0;r0?rt>=gt:rt<=gt));Ie++)rt>dt&&rt0?rt>=gt:rt<=gt));Ie++)rt>nt[0]&&rt1){var st=Math.pow(10,Math.floor(Math.log(xt)/Math.LN10));Qe*=st*s.roundUp(xt/st,[2,5,10]),(Math.abs(le.start)/le.size+1e-6)%1<2e-6&&(Ke.tick0=0)}Ke.dtick=Qe}Ke.domain=G?[He+W/pe.h,He+Ne-W/pe.h]:[He+Y/pe.w,He+Ne-Y/pe.w],Ke.setScale(),C.attr("transform",t(Math.round(pe.l),Math.round(pe.t)));var ot,mt=C.select("."+_.cbtitleunshift).attr("transform",t(-Math.round(pe.l),-Math.round(pe.t))),Tt=Ke.ticklabelposition,wt=Ke.title.font.size,Pt=C.select("."+_.cbaxis),Mt=0,Ye=0;function Xe(Ve,We){var nt={propContainer:Ke,propName:P._propPrefix+"title",traceIndex:P._traceIndex,_meta:P._meta,placeholder:ce._dfltTitle.colorbar,containerGroup:C.select("."+_.cbtitle)},rt=Ve.charAt(0)==="h"?Ve.substr(1):"h"+Ve;C.selectAll("."+rt+",."+rt+"-math-group").remove(),a.draw(R,Ve,i(nt,We||{}))}return s.syncOrAsync([l.previousPromises,function(){var Ve,We;(G&&at||!G&&!at)&&(me==="top"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He-Ne)+3+.75*wt),me==="bottom"&&(Ve=Y+pe.l+fe*Q,We=W+pe.t+Me*(1-He)-3-.25*wt),me==="right"&&(We=W+pe.t+Me*re+3+.75*wt,Ve=Y+pe.l+fe*He),Xe(Ke._id+"title",{attributes:{x:Ve,y:We,"text-anchor":G?"start":"middle"}}))},function(){if(!G&&!at||G&&at){var Ve,We=C.select("."+_.cbtitle),nt=We.select("text"),rt=[-H/2,H/2],Ie=We.select(".h"+Ke._id+"title-math-group").node(),De=15.6;if(nt.node()&&(De=parseInt(nt.node().style.fontSize,10)*m),Ie?(Ve=n.bBox(Ie),Ye=Ve.width,(Mt=Ve.height)>De&&(rt[1]-=(Mt-De)/2)):nt.node()&&!nt.classed(_.jsPlaceholder)&&(Ve=n.bBox(nt.node()),Ye=Ve.width,Mt=Ve.height),G){if(Mt){if(Mt+=5,me==="top")Ke.domain[1]-=Mt/pe.h,rt[1]*=-1;else{Ke.domain[0]+=Mt/pe.h;var et=u.lineCount(nt);rt[1]+=(1-et)*De}We.attr("transform",t(rt[0],rt[1])),Ke.setScale()}}else Ye&&(me==="right"&&(Ke.domain[0]+=(Ye+wt/2)/pe.w),We.attr("transform",t(rt[0],rt[1])),Ke.setScale())}C.selectAll("."+_.cbfills+",."+_.cblines).attr("transform",G?t(0,Math.round(pe.h*(1-Ke.domain[1]))):t(Math.round(pe.w*Ke.domain[0]),0)),Pt.attr("transform",G?t(0,Math.round(-pe.t)):t(Math.round(-pe.l),0));var tt=C.select("."+_.cbfills).selectAll("rect."+_.cbfill).attr("style","").data(ne);tt.enter().append("rect").classed(_.cbfill,!0).attr("style",""),tt.exit().remove();var gt=Oe.map(Ke.c2p).map(Math.round).sort(function(ut,ft){return ut-ft});tt.each(function(ut,ft){var bt=[ft===0?Oe[0]:(ne[ft]+ne[ft-1])/2,ft===ne.length-1?Oe[1]:(ne[ft]+ne[ft+1])/2].map(Ke.c2p).map(Math.round);G&&(bt[1]=s.constrain(bt[1]+(bt[1]>bt[0])?1:-1,gt[0],gt[1]));var It=M.select(this).attr(G?"x":"y",be).attr(G?"y":"x",M.min(bt)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(M.max(bt)-M.min(bt),2));if(P._fillgradient)n.gradient(It,R,P._id,G?"vertical":"horizontalreversed",P._fillgradient,"fill");else{var Rt=Te(ut).replace("e-","");It.attr("fill",k(Rt).toHexString())}});var ht=C.select("."+_.cblines).selectAll("path."+_.cbline).data(we.color&&we.width?ve:[]);ht.enter().append("path").classed(_.cbline,!0),ht.exit().remove(),ht.each(function(ut){var ft=be,bt=Math.round(Ke.c2p(ut))+we.width/2%1;M.select(this).attr("d","M"+(G?ft+","+bt:bt+","+ft)+(G?"h":"v")+Ee).call(n.lineGroupStyle,we.width,ke(ut),we.dash)}),Pt.selectAll("g."+Ke._id+"tick,path").remove();var dt=be+Ee+(H||0)/2-(P.ticks==="outside"?1:0),ct=b.calcTicks(Ke),kt=b.getTickSigns(Ke)[2];return b.drawTicks(R,Ke,{vals:Ke.ticks==="inside"?b.clipEnds(Ke,ct):ct,layer:Pt,path:b.makeTickPath(Ke,dt,kt),transFn:b.makeTransTickFn(Ke)}),b.drawLabels(R,Ke,{vals:ct,layer:Pt,transFn:b.makeTransTickLabelFn(Ke),labelFns:b.makeLabelFns(Ke,dt)})},function(){if(G&&!at||!G&&at){var Ve,We,nt=Ke.position||0,rt=Ke._offset+Ke._length/2;if(me==="right")We=rt,Ve=pe.l+fe*nt+10+wt*(Ke.showticklabels?1:.5);else if(Ve=rt,me==="bottom"&&(We=pe.t+Me*nt+10+(Tt.indexOf("inside")===-1?Ke.tickfont.size:0)+(Ke.ticks!=="intside"&&P.ticklen||0)),me==="top"){var Ie=ye.text.split("
").length;We=pe.t+Me*nt+10-Ee-m*wt*Ie}Xe((G?"h":"v")+Ke._id+"title",{avoid:{selection:M.select(R).selectAll("g."+Ke._id+"tick"),side:me,offsetTop:G?0:pe.t,offsetLeft:G?pe.l:0,maxShift:G?ce.width:ce.height},attributes:{x:Ve,y:We,"text-anchor":"middle"},transform:{rotate:G?-90:0,offset:0}})}},l.previousPromises,function(){var Ve,We=Ee+H/2;Tt.indexOf("inside")===-1&&(Ve=n.bBox(Pt.node()),We+=G?Ve.width:Ve.height),ot=mt.select("text");var nt=0,rt=G&&me==="top",Ie=!G&&me==="right",De=0;if(ot.node()&&!ot.classed(_.jsPlaceholder)){var et,tt=mt.select(".h"+Ke._id+"title-math-group").node();tt&&(G&&at||!G&&!at)?(nt=(Ve=n.bBox(tt)).width,et=Ve.height):(nt=(Ve=n.bBox(mt.node())).right-pe.l-(G?be:Ge),et=Ve.bottom-pe.t-(G?Ge:be),G||me!=="top"||(We+=Ve.height,De=Ve.height)),Ie&&(ot.attr("transform",t(nt/2+wt/2,0)),nt*=2),We=Math.max(We,G?nt:et)}var gt=2*(G?Y:W)+We+q+H/2,ht=0;!G&&ye.text&&J==="bottom"&&re<=0&&(gt+=ht=gt/2,De+=ht),ce._hColorbarMoveTitle=ht,ce._hColorbarMoveCBTitle=De;var dt=q+H,ct=(G?be:Ge)-dt/2-(G?Y:0),kt=(G?Ge:be)-(G?ze:W+De-ht);C.select("."+_.cbbg).attr("x",ct).attr("y",kt).attr(G?"width":"height",Math.max(gt-ht,2)).attr(G?"height":"width",Math.max(ze+dt,2)).call(o.fill,te).call(o.stroke,P.bordercolor).style("stroke-width",q);var ut=Ie?Math.max(nt-10,0):0;C.selectAll("."+_.cboutline).attr("x",(G?be:Ge+Y)+ut).attr("y",(G?Ge+W-ze:be)+(rt?Mt:0)).attr(G?"width":"height",Math.max(Ee,2)).attr(G?"height":"width",Math.max(ze-(G?2*W+Mt:2*Y+ut),2)).call(o.stroke,P.outlinecolor).style({fill:"none","stroke-width":H});var ft=G?Ce*gt:0,bt=G?0:(1-Fe)*gt-De;if(ft=oe?pe.l-ft:-ft,bt=ie?pe.t-bt:-bt,C.attr("transform",t(ft,bt)),!G&&(q||k(te).getAlpha()&&!k.equals(ce.paper_bgcolor,te))){var It=Pt.selectAll("text"),Rt=It[0].length,Dt=C.select("."+_.cbbg).node(),Kt=n.bBox(Dt),qt=n.getTranslate(C);It.each(function(fn,vn){var Mn=Rt-1;if(vn===0||vn===Mn){var En,bn=n.bBox(this),Ln=n.getTranslate(this);if(vn===Mn){var Wn=bn.right+Ln.x;(En=Kt.right+qt.x+Ge-q-2+Q-Wn)>0&&(En=0)}else if(vn===0){var Qn=bn.left+Ln.x;(En=Kt.left+qt.x+Ge+q+2-Qn)<0&&(En=0)}En&&(Rt<3?this.setAttribute("transform","translate("+En+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Wt={},Ht=v[K],hn=y[K],yn=v[J],un=y[J],jt=gt-Ee;G?(V==="pixels"?(Wt.y=re,Wt.t=ze*yn,Wt.b=ze*un):(Wt.t=Wt.b=0,Wt.yt=re+O*yn,Wt.yb=re-O*un),B==="pixels"?(Wt.x=Q,Wt.l=gt*Ht,Wt.r=gt*hn):(Wt.l=jt*Ht,Wt.r=jt*hn,Wt.xl=Q-N*Ht,Wt.xr=Q+N*hn)):(V==="pixels"?(Wt.x=Q,Wt.l=ze*Ht,Wt.r=ze*hn):(Wt.l=Wt.r=0,Wt.xl=Q+O*Ht,Wt.xr=Q-O*hn),B==="pixels"?(Wt.y=1-re,Wt.t=gt*yn,Wt.b=gt*un):(Wt.t=jt*yn,Wt.b=jt*un,Wt.yt=re-N*yn,Wt.yb=re+N*un));var nn=P.y<.5?"b":"t",Jt=P.x<.5?"l":"r";R._fullLayout._reservedMargin[P._id]={};var rn={r:ce.width-ct-ft,l:ct+Wt.r,b:ce.height-kt-bt,t:kt+Wt.b};oe&&ie?l.autoMargin(R,P._id,Wt):oe?R._fullLayout._reservedMargin[P._id][nn]=rn[nn]:ie||G?R._fullLayout._reservedMargin[P._id][Jt]=rn[Jt]:R._fullLayout._reservedMargin[P._id][nn]=rn[nn]}],R)}(E,w,f);L&&L.then&&(f._promises||[]).push(L),f._context.edits.colorbarPosition&&function(C,P,R){var G,O,V,N=P.orientation==="v",B=R._fullLayout._size;d.init({element:C.node(),gd:R,prepFn:function(){G=C.attr("transform"),r(C)},moveFn:function(H,q){C.attr("transform",G+t(H,q)),O=d.align((N?P._uFrac:P._vFrac)+H/B.w,N?P._thickFrac:P._lenFrac,0,1,P.xanchor),V=d.align((N?P._vFrac:1-P._uFrac)-q/B.h,N?P._lenFrac:P._thickFrac,0,1,P.yanchor);var te=d.getCursor(O,V,P.xanchor,P.yanchor);r(C,te)},doneFn:function(){if(r(C),O!==void 0&&V!==void 0){var H={};H[P._propPrefix+"x"]=O,H[P._propPrefix+"y"]=V,P._traceIndex!==void 0?T.call("_guiRestyle",R,H,P._traceIndex):T.call("_guiRelayout",R,H)}}})}(E,w,f)}),S.exit().each(function(w){l.autoMargin(f,w._id)}).remove(),S.order()}}},76228:function(ee,z,e){var M=e(71828);ee.exports=function(k){return M.isPlainObject(k.colorbar)}},12311:function(ee,z,e){ee.exports={moduleType:"component",name:"colorbar",attributes:e(63583),supplyDefaults:e(62499),draw:e(98981).draw,hasColorbar:e(76228)}},50693:function(ee,z,e){var M=e(63583),k=e(30587).counter,l=e(78607),T=e(63282).scales;function b(d){return"`"+d+"`"}l(T),ee.exports=function(d,s){d=d||"";var t,i=(s=s||{}).cLetter||"c",r=("onlyIfNumerical"in s?s.onlyIfNumerical:Boolean(d),"noScale"in s?s.noScale:d==="marker.line"),n="showScaleDflt"in s?s.showScaleDflt:i==="z",o=typeof s.colorscaleDflt=="string"?T[s.colorscaleDflt]:null,a=s.editTypeOverride||"",u=d?d+".":"";"colorAttr"in s?(t=s.colorAttr,s.colorAttr):b(u+(t={z:"z",c:"color"}[i]));var p=i+"auto",c=i+"min",x=i+"max",g=i+"mid",h={};h[c]=h[x]=void 0;var m={};m[p]=!1;var v={};return t==="color"&&(v.color={valType:"color",arrayOk:!0,editType:a||"style"},s.anim&&(v.color.anim=!0)),v[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:h},v[c]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[x]={valType:"number",dflt:null,editType:a||"plot",impliedEdits:m},v[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:h},v.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},v.autocolorscale={valType:"boolean",dflt:s.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},v.reversescale={valType:"boolean",dflt:!1,editType:"plot"},r||(v.showscale={valType:"boolean",dflt:n,editType:"calc"},v.colorbar=M),s.noColorAxis||(v.coloraxis={valType:"subplotid",regex:k("coloraxis"),dflt:null,editType:"calc"}),v}},78803:function(ee,z,e){var M=e(92770),k=e(71828),l=e(52075).extractOpts;ee.exports=function(T,b,d){var s,t=T._fullLayout,i=d.vals,r=d.containerStr,n=r?k.nestedProperty(b,r).get():b,o=l(n),a=o.auto!==!1,u=o.min,p=o.max,c=o.mid,x=function(){return k.aggNums(Math.min,null,i)},g=function(){return k.aggNums(Math.max,null,i)};u===void 0?u=x():a&&(u=n._colorAx&&M(u)?Math.min(u,x()):x()),p===void 0?p=g():a&&(p=n._colorAx&&M(p)?Math.max(p,g()):g()),a&&c!==void 0&&(p-c>c-u?u=c-(p-c):p-c=0?t.colorscale.sequential:t.colorscale.sequentialminus,o._sync("colorscale",s))}},33046:function(ee,z,e){var M=e(71828),k=e(52075).hasColorscale,l=e(52075).extractOpts;ee.exports=function(T,b){function d(a,u){var p=a["_"+u];p!==void 0&&(a[u]=p)}function s(a,u){var p=u.container?M.nestedProperty(a,u.container).get():a;if(p)if(p.coloraxis)p._colorAx=b[p.coloraxis];else{var c=l(p),x=c.auto;(x||c.min===void 0)&&d(p,u.min),(x||c.max===void 0)&&d(p,u.max),c.autocolorscale&&d(p,"colorscale")}}for(var t=0;t=0;x--,g++){var h=u[x];c[g]=[1-h[0],h[1]]}return c}function o(u,p){p=p||{};for(var c=u.domain,x=u.range,g=x.length,h=new Array(g),m=0;m1.3333333333333333-d?b:d}},70461:function(ee,z,e){var M=e(71828),k=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ee.exports=function(l,T,b,d){return l=b==="left"?0:b==="center"?1:b==="right"?2:M.constrain(Math.floor(3*l),0,2),T=d==="bottom"?0:d==="middle"?1:d==="top"?2:M.constrain(Math.floor(3*T),0,2),k[T][l]}},64505:function(ee,z){z.selectMode=function(e){return e==="lasso"||e==="select"},z.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.openMode=function(e){return e==="drawline"||e==="drawopenpath"},z.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},z.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},z.selectingOrDrawing=function(e){return z.freeMode(e)||z.rectMode(e)}},28569:function(ee,z,e){var M=e(48956),k=e(57035),l=e(38520),T=e(71828).removeElement,b=e(85555),d=ee.exports={};d.align=e(92807),d.getCursor=e(70461);var s=e(26041);function t(){var r=document.createElement("div");r.className="dragcover";var n=r.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(r),r}function i(r){return M(r.changedTouches?r.changedTouches[0]:r,document.body)}d.unhover=s.wrapped,d.unhoverRaw=s.raw,d.init=function(r){var n,o,a,u,p,c,x,g,h=r.gd,m=1,v=h._context.doubleClickDelay,y=r.element;h._mouseDownTime||(h._mouseDownTime=0),y.style.pointerEvents="all",y.onmousedown=f,l?(y._ontouchstart&&y.removeEventListener("touchstart",y._ontouchstart),y._ontouchstart=f,y.addEventListener("touchstart",f,{passive:!1})):y.ontouchstart=f;var _=r.clampFn||function(E,L,C){return Math.abs(E)v&&(m=Math.max(m-1,1)),h._dragged)r.doneFn&&r.doneFn();else if(r.clickFn&&r.clickFn(m,c),!g){var L;try{L=new MouseEvent("click",E)}catch{var C=i(E);(L=document.createEvent("MouseEvents")).initMouseEvent("click",E.bubbles,E.cancelable,E.view,E.detail,E.screenX,E.screenY,C[0],C[1],E.ctrlKey,E.altKey,E.shiftKey,E.metaKey,E.button,E.relatedTarget)}x.dispatchEvent(L)}h._dragging=!1,h._dragged=!1}else h._dragged=!1}},d.coverSlip=t},26041:function(ee,z,e){var M=e(11086),k=e(79990),l=e(24401).getGraphDiv,T=e(26675),b=ee.exports={};b.wrapped=function(d,s,t){(d=l(d))._fullLayout&&k.clear(d._fullLayout._uid+T.HOVERID),b.raw(d,s,t)},b.raw=function(d,s){var t=d._fullLayout,i=d._hoverdata;s||(s={}),s.target&&!d._dragged&&M.triggerHandler(d,"plotly_beforehover",s)===!1||(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),d._hoverdata=void 0,s.target&&i&&d.emit("plotly_unhover",{event:s,points:i}))}},79952:function(ee,z){z.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},z.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(ee,z,e){var M=e(39898),k=e(71828),l=k.numberFormat,T=e(92770),b=e(84267),d=e(73972),s=e(7901),t=e(21081),i=k.strTranslate,r=e(63893),n=e(77922),o=e(18783).LINE_SPACING,a=e(37822).DESELECTDIM,u=e(34098),p=e(39984),c=e(23469).appendArrayPointValue,x=ee.exports={};function g(ke,Te,le){var se=Te.fillpattern,ne=se&&x.getPatternAttr(se.shape,0,"");if(ne){var ve=x.getPatternAttr(se.bgcolor,0,null),Ee=x.getPatternAttr(se.fgcolor,0,null),_e=se.fgopacity,ze=x.getPatternAttr(se.size,0,8),Ne=x.getPatternAttr(se.solidity,0,.3),fe=Te.uid;x.pattern(ke,"point",le,fe,ne,ze,Ne,void 0,se.fillmode,ve,Ee,_e)}else Te.fillcolor&&ke.call(s.fill,Te.fillcolor)}x.font=function(ke,Te,le,se){k.isPlainObject(Te)&&(se=Te.color,le=Te.size,Te=Te.family),Te&&ke.style("font-family",Te),le+1&&ke.style("font-size",le+"px"),se&&ke.call(s.fill,se)},x.setPosition=function(ke,Te,le){ke.attr("x",Te).attr("y",le)},x.setSize=function(ke,Te,le){ke.attr("width",Te).attr("height",le)},x.setRect=function(ke,Te,le,se,ne){ke.call(x.setPosition,Te,le).call(x.setSize,se,ne)},x.translatePoint=function(ke,Te,le,se){var ne=le.c2p(ke.x),ve=se.c2p(ke.y);return!!(T(ne)&&T(ve)&&Te.node())&&(Te.node().nodeName==="text"?Te.attr("x",ne).attr("y",ve):Te.attr("transform",i(ne,ve)),!0)},x.translatePoints=function(ke,Te,le){ke.each(function(se){var ne=M.select(this);x.translatePoint(se,ne,Te,le)})},x.hideOutsideRangePoint=function(ke,Te,le,se,ne,ve){Te.attr("display",le.isPtWithinRange(ke,ne)&&se.isPtWithinRange(ke,ve)?null:"none")},x.hideOutsideRangePoints=function(ke,Te){if(Te._hasClipOnAxisFalse){var le=Te.xaxis,se=Te.yaxis;ke.each(function(ne){var ve=ne[0].trace,Ee=ve.xcalendar,_e=ve.ycalendar,ze=d.traceIs(ve,"bar-like")?".bartext":".point,.textpoint";ke.selectAll(ze).each(function(Ne){x.hideOutsideRangePoint(Ne,M.select(this),le,se,Ee,_e)})})}},x.crispRound=function(ke,Te,le){return Te&&T(Te)?ke._context.staticPlot?Te:Te<1?1:Math.round(Te):le||0},x.singleLineStyle=function(ke,Te,le,se,ne){Te.style("fill","none");var ve=(((ke||[])[0]||{}).trace||{}).line||{},Ee=le||ve.width||0,_e=ne||ve.dash||"";s.stroke(Te,se||ve.color),x.dashLine(Te,_e,Ee)},x.lineGroupStyle=function(ke,Te,le,se){ke.style("fill","none").each(function(ne){var ve=(((ne||[])[0]||{}).trace||{}).line||{},Ee=Te||ve.width||0,_e=se||ve.dash||"";M.select(this).call(s.stroke,le||ve.color).call(x.dashLine,_e,Ee)})},x.dashLine=function(ke,Te,le){le=+le||0,Te=x.dashStyle(Te,le),ke.style({"stroke-dasharray":Te,"stroke-width":le+"px"})},x.dashStyle=function(ke,Te){Te=+Te||1;var le=Math.max(Te,3);return ke==="solid"?ke="":ke==="dot"?ke=le+"px,"+le+"px":ke==="dash"?ke=3*le+"px,"+3*le+"px":ke==="longdash"?ke=5*le+"px,"+5*le+"px":ke==="dashdot"?ke=3*le+"px,"+le+"px,"+le+"px,"+le+"px":ke==="longdashdot"&&(ke=5*le+"px,"+2*le+"px,"+le+"px,"+2*le+"px"),ke},x.singleFillStyle=function(ke,Te){var le=M.select(ke.node());g(ke,((le.data()[0]||[])[0]||{}).trace||{},Te)},x.fillGroupStyle=function(ke,Te){ke.style("stroke-width",0).each(function(le){var se=M.select(this);le[0].trace&&g(se,le[0].trace,Te)})};var h=e(90998);x.symbolNames=[],x.symbolFuncs=[],x.symbolBackOffs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(h).forEach(function(ke){var Te=h[ke],le=Te.n;x.symbolList.push(le,String(le),ke,le+100,String(le+100),ke+"-open"),x.symbolNames[le]=ke,x.symbolFuncs[le]=Te.f,x.symbolBackOffs[le]=Te.backoff||0,Te.needLine&&(x.symbolNeedLines[le]=!0),Te.noDot?x.symbolNoDot[le]=!0:x.symbolList.push(le+200,String(le+200),ke+"-dot",le+300,String(le+300),ke+"-open-dot"),Te.noFill&&(x.symbolNoFill[le]=!0)});var m=x.symbolNames.length;function v(ke,Te,le,se){var ne=ke%100;return x.symbolFuncs[ne](Te,le,se)+(ke>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(ke){if(T(ke))ke=+ke;else if(typeof ke=="string"){var Te=0;ke.indexOf("-open")>0&&(Te=100,ke=ke.replace("-open","")),ke.indexOf("-dot")>0&&(Te+=200,ke=ke.replace("-dot","")),(ke=x.symbolNames.indexOf(ke))>=0&&(ke+=Te)}return ke%100>=m||ke>=400?0:Math.floor(Math.max(ke,0))};var y={x1:1,x2:0,y1:0,y2:0},_={x1:0,x2:0,y1:1,y2:0},f=l("~f"),S={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:y},horizontalreversed:{node:"linearGradient",attrs:y,reversed:!0},vertical:{node:"linearGradient",attrs:_},verticalreversed:{node:"linearGradient",attrs:_,reversed:!0}};x.gradient=function(ke,Te,le,se,ne,ve){for(var Ee=ne.length,_e=S[se],ze=new Array(Ee),Ne=0;Ne=0&&ke.i===void 0&&(ke.i=ve.i),Te.style("opacity",se.selectedOpacityFn?se.selectedOpacityFn(ke):ke.mo===void 0?Ee.opacity:ke.mo),se.ms2mrc){var ze;ze=ke.ms==="various"||Ee.size==="various"?3:se.ms2mrc(ke.ms),ke.mrc=ze,se.selectedSizeFn&&(ze=ke.mrc=se.selectedSizeFn(ke));var Ne=x.symbolNumber(ke.mx||Ee.symbol)||0;ke.om=Ne%200>=100;var fe=Oe(ke,le),Me=W(ke,le);Te.attr("d",v(Ne,ze,fe,Me))}var be,Ce,Fe,Re=!1;if(ke.so)Fe=_e.outlierwidth,Ce=_e.outliercolor,be=Ee.outliercolor;else{var He=(_e||{}).width;Fe=(ke.mlw+1||He+1||(ke.trace?(ke.trace.marker.line||{}).width:0)+1)-1||0,Ce="mlc"in ke?ke.mlcc=se.lineScale(ke.mlc):k.isArrayOrTypedArray(_e.color)?s.defaultLine:_e.color,k.isArrayOrTypedArray(Ee.color)&&(be=s.defaultLine,Re=!0),be="mc"in ke?ke.mcc=se.markerScale(ke.mc):Ee.color||Ee.colors||"rgba(0,0,0,0)",se.selectedColorFn&&(be=se.selectedColorFn(ke))}if(ke.om)Te.call(s.stroke,be).style({"stroke-width":(Fe||1)+"px",fill:"none"});else{Te.style("stroke-width",(ke.isBlank?0:Fe)+"px");var Ge=Ee.gradient,Ke=ke.mgt;Ke?Re=!0:Ke=Ge&&Ge.type,k.isArrayOrTypedArray(Ke)&&(Ke=Ke[0],S[Ke]||(Ke=0));var at=Ee.pattern,Qe=at&&x.getPatternAttr(at.shape,ke.i,"");if(Ke&&Ke!=="none"){var vt=ke.mgc;vt?Re=!0:vt=Ge.color;var xt=le.uid;Re&&(xt+="-"+ke.i),x.gradient(Te,ne,xt,Ke,[[0,vt],[1,be]],"fill")}else if(Qe){var st=!1,ot=at.fgcolor;!ot&&ve&&ve.color&&(ot=ve.color,st=!0);var mt=x.getPatternAttr(ot,ke.i,ve&&ve.color||null),Tt=x.getPatternAttr(at.bgcolor,ke.i,null),wt=at.fgopacity,Pt=x.getPatternAttr(at.size,ke.i,8),Mt=x.getPatternAttr(at.solidity,ke.i,.3);st=st||ke.mcc||k.isArrayOrTypedArray(at.shape)||k.isArrayOrTypedArray(at.bgcolor)||k.isArrayOrTypedArray(at.fgcolor)||k.isArrayOrTypedArray(at.size)||k.isArrayOrTypedArray(at.solidity);var Ye=le.uid;st&&(Ye+="-"+ke.i),x.pattern(Te,"point",ne,Ye,Qe,Pt,Mt,ke.mcc,at.fillmode,Tt,mt,wt)}else k.isArrayOrTypedArray(be)?s.fill(Te,be[ke.i]):s.fill(Te,be);Fe&&s.stroke(Te,Ce)}},x.makePointStyleFns=function(ke){var Te={},le=ke.marker;return Te.markerScale=x.tryColorscale(le,""),Te.lineScale=x.tryColorscale(le,"line"),d.traceIs(ke,"symbols")&&(Te.ms2mrc=u.isBubble(ke)?p(ke):function(){return(le.size||6)/2}),ke.selectedpoints&&k.extendFlat(Te,x.makeSelectedPointStyleFns(ke)),Te},x.makeSelectedPointStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.marker||{},ve=le.marker||{},Ee=se.marker||{},_e=ne.opacity,ze=ve.opacity,Ne=Ee.opacity,fe=ze!==void 0,Me=Ne!==void 0;(k.isArrayOrTypedArray(_e)||fe||Me)&&(Te.selectedOpacityFn=function(Qe){var vt=Qe.mo===void 0?ne.opacity:Qe.mo;return Qe.selected?fe?ze:vt:Me?Ne:a*vt});var be=ne.color,Ce=ve.color,Fe=Ee.color;(Ce||Fe)&&(Te.selectedColorFn=function(Qe){var vt=Qe.mcc||be;return Qe.selected?Ce||vt:Fe||vt});var Re=ne.size,He=ve.size,Ge=Ee.size,Ke=He!==void 0,at=Ge!==void 0;return d.traceIs(ke,"symbols")&&(Ke||at)&&(Te.selectedSizeFn=function(Qe){var vt=Qe.mrc||Re/2;return Qe.selected?Ke?He/2:vt:at?Ge/2:vt}),Te},x.makeSelectedTextStyleFns=function(ke){var Te={},le=ke.selected||{},se=ke.unselected||{},ne=ke.textfont||{},ve=le.textfont||{},Ee=se.textfont||{},_e=ne.color,ze=ve.color,Ne=Ee.color;return Te.selectedTextColorFn=function(fe){var Me=fe.tc||_e;return fe.selected?ze||Me:Ne||(ze?Me:s.addOpacity(Me,a))},Te},x.selectedPointStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedPointStyleFns(Te),se=Te.marker||{},ne=[];le.selectedOpacityFn&&ne.push(function(ve,Ee){ve.style("opacity",le.selectedOpacityFn(Ee))}),le.selectedColorFn&&ne.push(function(ve,Ee){s.fill(ve,le.selectedColorFn(Ee))}),le.selectedSizeFn&&ne.push(function(ve,Ee){var _e=Ee.mx||se.symbol||0,ze=le.selectedSizeFn(Ee);ve.attr("d",v(x.symbolNumber(_e),ze,Oe(Ee,Te),W(Ee,Te))),Ee.mrc2=ze}),ne.length&&ke.each(function(ve){for(var Ee=M.select(this),_e=0;_e0?le:0}function R(ke,Te,le){return le&&(ke=H(ke)),Te?O(ke[1]):G(ke[0])}function G(ke){var Te=M.round(ke,2);return w=Te,Te}function O(ke){var Te=M.round(ke,2);return E=Te,Te}function V(ke,Te,le,se){var ne=ke[0]-Te[0],ve=ke[1]-Te[1],Ee=le[0]-Te[0],_e=le[1]-Te[1],ze=Math.pow(ne*ne+ve*ve,.25),Ne=Math.pow(Ee*Ee+_e*_e,.25),fe=(Ne*Ne*ne-ze*ze*Ee)*se,Me=(Ne*Ne*ve-ze*ze*_e)*se,be=3*Ne*(ze+Ne),Ce=3*ze*(ze+Ne);return[[G(Te[0]+(be&&fe/be)),O(Te[1]+(be&&Me/be))],[G(Te[0]-(Ce&&fe/Ce)),O(Te[1]-(Ce&&Me/Ce))]]}x.textPointStyle=function(ke,Te,le){if(ke.size()){var se;if(Te.selectedpoints){var ne=x.makeSelectedTextStyleFns(Te);se=ne.selectedTextColorFn}var ve=Te.texttemplate,Ee=le._fullLayout;ke.each(function(_e){var ze=M.select(this),Ne=ve?k.extractOption(_e,Te,"txt","texttemplate"):k.extractOption(_e,Te,"tx","text");if(Ne||Ne===0){if(ve){var fe=Te._module.formatLabels,Me=fe?fe(_e,Te,Ee):{},be={};c(be,Te,_e.i);var Ce=Te._meta||{};Ne=k.texttemplateString(Ne,Me,Ee._d3locale,be,_e,Ce)}var Fe=_e.tp||Te.textposition,Re=P(_e,Te),He=se?se(_e):_e.tc||Te.textfont.color;ze.call(x.font,_e.tf||Te.textfont.family,Re,He).text(Ne).call(r.convertToTspans,le).call(C,Fe,Re,_e.mrc)}else ze.remove()})}},x.selectedTextStyle=function(ke,Te){if(ke.size()&&Te.selectedpoints){var le=x.makeSelectedTextStyleFns(Te);ke.each(function(se){var ne=M.select(this),ve=le.selectedTextColorFn(se),Ee=se.tp||Te.textposition,_e=P(se,Te);s.fill(ne,ve);var ze=d.traceIs(Te,"bar-like");C(ne,Ee,_e,se.mrc2||se.mrc,ze)})}},x.smoothopen=function(ke,Te){if(ke.length<3)return"M"+ke.join("L");var le,se="M"+ke[0],ne=[];for(le=1;le=ze||Qe>=fe&&Qe<=ze)&&(vt<=Me&&vt>=Ne||vt>=Me&&vt<=Ne)&&(ke=[Qe,vt])}return ke}x.steps=function(ke){var Te=N[ke]||B;return function(le){for(var se="M"+G(le[0][0])+","+O(le[0][1]),ne=le.length,ve=1;ve=1e4&&(x.savedBBoxes={},q=0),le&&(x.savedBBoxes[le]=Ce),q++,k.extendFlat({},Ce)},x.setClipUrl=function(ke,Te,le){ke.attr("clip-path",K(Te,le))},x.getTranslate=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||0,y:+Te[1]||0}},x.setTranslate=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||0,le=le||0,ve=ve.replace(/(\btranslate\(.*?\);?)/,"").trim(),ve=(ve+=i(Te,le)).trim(),ke[ne]("transform",ve),ve},x.getScale=function(ke){var Te=(ke[ke.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(le,se,ne){return[se,ne].join(" ")}).split(" ");return{x:+Te[0]||1,y:+Te[1]||1}},x.setScale=function(ke,Te,le){var se=ke.attr?"attr":"getAttribute",ne=ke.attr?"attr":"setAttribute",ve=ke[se]("transform")||"";return Te=Te||1,le=le||1,ve=ve.replace(/(\bscale\(.*?\);?)/,"").trim(),ve=(ve+="scale("+Te+","+le+")").trim(),ke[ne]("transform",ve),ve};var J=/\s*sc.*/;x.setPointGroupScale=function(ke,Te,le){if(Te=Te||1,le=le||1,ke){var se=Te===1&&le===1?"":"scale("+Te+","+le+")";ke.each(function(){var ne=(this.getAttribute("transform")||"").replace(J,"");ne=(ne+=se).trim(),this.setAttribute("transform",ne)})}};var Y=/translate\([^)]*\)\s*$/;function W(ke,Te){var le;return ke&&(le=ke.mf),le===void 0&&(le=Te.marker&&Te.marker.standoff||0),Te._geo||Te._xA?le:-le}x.setTextPointsScale=function(ke,Te,le){ke&&ke.each(function(){var se,ne=M.select(this),ve=ne.select("text");if(ve.node()){var Ee=parseFloat(ve.attr("x")||0),_e=parseFloat(ve.attr("y")||0),ze=(ne.attr("transform")||"").match(Y);se=Te===1&&le===1?[]:[i(Ee,_e),"scale("+Te+","+le+")",i(-Ee,-_e)],ze&&se.push(ze),ne.attr("transform",se.join(""))}})},x.getMarkerStandoff=W;var Q,re,ie,oe,ce,pe,ge=Math.atan2,we=Math.cos,ye=Math.sin;function me(ke,Te){var le=Te[0],se=Te[1];return[le*we(ke)-se*ye(ke),le*ye(ke)+se*we(ke)]}function Oe(ke,Te){var le,se,ne=ke.ma;ne===void 0&&(ne=Te.marker.angle||0);var ve=Te.marker.angleref;if(ve==="previous"||ve==="north"){if(Te._geo){var Ee=Te._geo.project(ke.lonlat);le=Ee[0],se=Ee[1]}else{var _e=Te._xA,ze=Te._yA;if(!_e||!ze)return 90;le=_e.c2p(ke.x),se=ze.c2p(ke.y)}if(Te._geo){var Ne,fe=ke.lonlat[0],Me=ke.lonlat[1],be=Te._geo.project([fe,Me+1e-5]),Ce=Te._geo.project([fe+1e-5,Me]),Fe=ge(Ce[1]-se,Ce[0]-le),Re=ge(be[1]-se,be[0]-le);if(ve==="north")Ne=ne/180*Math.PI;else if(ve==="previous"){var He=fe/180*Math.PI,Ge=Me/180*Math.PI,Ke=Q/180*Math.PI,at=re/180*Math.PI,Qe=Ke-He,vt=we(at)*ye(Qe),xt=ye(at)*we(Ge)-we(at)*ye(Ge)*we(Qe);Ne=-ge(vt,xt)-Math.PI,Q=fe,re=Me}var st=me(Fe,[we(Ne),0]),ot=me(Re,[ye(Ne),0]);ne=ge(st[1]+ot[1],st[0]+ot[0])/Math.PI*180,ve!=="previous"||pe===Te.uid&&ke.i===ce+1||(ne=null)}if(ve==="previous"&&!Te._geo)if(pe===Te.uid&&ke.i===ce+1&&T(le)&&T(se)){var mt=le-ie,Tt=se-oe,wt=Te.line&&Te.line.shape||"",Pt=wt.slice(wt.length-1);Pt==="h"&&(Tt=0),Pt==="v"&&(mt=0),ne+=ge(Tt,mt)/Math.PI*180+90}else ne=null}return ie=le,oe=se,ce=ke.i,pe=Te.uid,ne}x.getMarkerAngle=Oe},90998:function(ee,z,e){var M,k,l,T,b=e(95616),d=e(39898).round,s="M0,0Z",t=Math.sqrt(2),i=Math.sqrt(3),r=Math.PI,n=Math.cos,o=Math.sin;function a(p){return p===null}function u(p,c,x){if(!(p&&p%360!=0||c))return x;if(l===p&&T===c&&M===x)return k;function g(R,G){var O=n(R),V=o(R),N=G[0],B=G[1]+(c||0);return[N*O-B*V,N*V+B*O]}l=p,T=c,M=x;for(var h=p/180*r,m=0,v=0,y=b(x),_="",f=0;f0,o=b._context.staticPlot;d.each(function(a){var u,p=a[0].trace,c=p.error_x||{},x=p.error_y||{};p.ids&&(u=function(v){return v.id});var g=T.hasMarkers(p)&&p.marker.maxdisplayed>0;x.visible||c.visible||(a=[]);var h=M.select(this).selectAll("g.errorbar").data(a,u);if(h.exit().remove(),a.length){c.visible||h.selectAll("path.xerror").remove(),x.visible||h.selectAll("path.yerror").remove(),h.style("opacity",1);var m=h.enter().append("g").classed("errorbar",!0);n&&m.style("opacity",0).transition().duration(t.duration).style("opacity",1),l.setClipUrl(h,s.layerClipId,b),h.each(function(v){var y=M.select(this),_=function(C,P,R){var G={x:P.c2p(C.x),y:R.c2p(C.y)};return C.yh!==void 0&&(G.yh=R.c2p(C.yh),G.ys=R.c2p(C.ys),k(G.ys)||(G.noYS=!0,G.ys=R.c2p(C.ys,!0))),C.xh!==void 0&&(G.xh=P.c2p(C.xh),G.xs=P.c2p(C.xs),k(G.xs)||(G.noXS=!0,G.xs=P.c2p(C.xs,!0))),G}(v,i,r);if(!g||v.vis){var f,S=y.select("path.yerror");if(x.visible&&k(_.x)&&k(_.yh)&&k(_.ys)){var w=x.width;f="M"+(_.x-w)+","+_.yh+"h"+2*w+"m-"+w+",0V"+_.ys,_.noYS||(f+="m-"+w+",0h"+2*w),S.size()?n&&(S=S.transition().duration(t.duration).ease(t.easing)):S=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("yerror",!0),S.attr("d",f)}else S.remove();var E=y.select("path.xerror");if(c.visible&&k(_.y)&&k(_.xh)&&k(_.xs)){var L=(c.copy_ystyle?x:c).width;f="M"+_.xh+","+(_.y-L)+"v"+2*L+"m0,-"+L+"H"+_.xs,_.noXS||(f+="m0,-"+L+"v"+2*L),E.size()?n&&(E=E.transition().duration(t.duration).ease(t.easing)):E=y.append("path").style("vector-effect",o?"none":"non-scaling-stroke").classed("xerror",!0),E.attr("d",f)}else E.remove()}})}})}},62662:function(ee,z,e){var M=e(39898),k=e(7901);ee.exports=function(l){l.each(function(T){var b=T[0].trace,d=b.error_y||{},s=b.error_x||{},t=M.select(this);t.selectAll("path.yerror").style("stroke-width",d.thickness+"px").call(k.stroke,d.color),s.copy_ystyle&&(s=d),t.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(k.stroke,s.color)})}},77914:function(ee,z,e){var M=e(41940),k=e(528).hoverlabel,l=e(1426).extendFlat;ee.exports={hoverlabel:{bgcolor:l({},k.bgcolor,{arrayOk:!0}),bordercolor:l({},k.bordercolor,{arrayOk:!0}),font:M({arrayOk:!0,editType:"none"}),align:l({},k.align,{arrayOk:!0}),namelength:l({},k.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(ee,z,e){var M=e(71828),k=e(73972);function l(T,b,d,s){s=s||M.identity,Array.isArray(T)&&(b[0][d]=s(T))}ee.exports=function(T){var b=T.calcdata,d=T._fullLayout;function s(o){return function(a){return M.coerceHoverinfo({hoverinfo:a},{_module:o._module},d)}}for(var t=0;t=0&&i.indexne[0]._length||Xe<0||Xe>ve[0]._length)return o.unhoverRaw(oe,ce)}else Ye="xpx"in ce?ce.xpx:ne[0]._length/2,Xe="ypx"in ce?ce.ypx:ve[0]._length/2;if(ce.pointerX=Ye+ne[0]._offset,ce.pointerY=Xe+ve[0]._offset,Ce="xval"in ce?p.flat(ye,ce.xval):p.p2c(ne,Ye),Fe="yval"in ce?p.flat(ye,ce.yval):p.p2c(ve,Xe),!k(Ce[0])||!k(Fe[0]))return T.warn("Fx.hover failed",ce,oe),o.unhoverRaw(oe,ce)}var nt=1/0;function rt(Bt,tn){for(He=0;Hemt&&(Tt.splice(0,mt),nt=Tt[0].distance),Te&&be!==0&&Tt.length===0){ot.distance=be,ot.index=!1;var In=Ke._module.hoverPoints(ot,xt,st,"closest",{hoverLayer:me._hoverlayer});if(In&&(In=In.filter(function(Gt){return Gt.spikeDistance<=be})),In&&In.length){var zn,Kn=In.filter(function(Gt){return Gt.xa.showspikes&&Gt.xa.spikesnap!=="hovered data"});if(Kn.length){var Ut=Kn[0];k(Ut.x0)&&k(Ut.y0)&&(zn=De(Ut),(!Pt.vLinePoint||Pt.vLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.vLinePoint=zn))}var _n=In.filter(function(Gt){return Gt.ya.showspikes&&Gt.ya.spikesnap!=="hovered data"});if(_n.length){var At=_n[0];k(At.x0)&&k(At.y0)&&(zn=De(At),(!Pt.hLinePoint||Pt.hLinePoint.spikeDistance>zn.spikeDistance)&&(Pt.hLinePoint=zn))}}}}}function Ie(Bt,tn,cn){for(var dn,kn=null,Vn=1/0,In=0;In0&&Math.abs(Bt.distance)It-1;Rt--)Wt(Tt[Rt]);Tt=Dt,ht()}var Ht=oe._hoverdata,hn=[],yn=te(oe),un=K(oe);for(Re=0;Re1||Tt.length>1)||fe==="closest"&&Mt&&Tt.length>1,ir=n.combine(me.plot_bgcolor||n.background,me.paper_bgcolor),$n=P(Tt,{gd:oe,hovermode:fe,rotateLabels:Qn,bgColor:ir,container:me._hoverlayer,outerContainer:me._paper.node(),commonLabelOpts:me.hoverlabel,hoverdistance:me.hoverdistance}),Gn=$n.hoverLabels;if(p.isUnifiedHover(fe)||(function(Bt,tn,cn,dn){var kn,Vn,In,zn,Kn,Ut,_n,At=tn?"xa":"ya",Gt=tn?"ya":"xa",$t=0,mn=1,xn=Bt.size(),An=new Array(xn),sn=0,Yt=dn.minX,Xt=dn.maxX,on=dn.minY,ln=dn.maxY,Sn=function(ur){return ur*cn._invScaleX},Cn=function(ur){return ur*cn._invScaleY};function jn(ur){var br=ur[0],Zn=ur[ur.length-1];if(Vn=br.pmin-br.pos-br.dp+br.size,In=Zn.pos+Zn.dp+Zn.size-br.pmax,Vn>.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp+=Vn;kn=!1}if(!(In<.01)){if(Vn<-.01){for(Kn=ur.length-1;Kn>=0;Kn--)ur[Kn].dp-=In;kn=!1}if(kn){var pr=0;for(zn=0;znbr.pmax&&pr++;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos>br.pmax-1&&(Ut.del=!0,pr--);for(zn=0;zn=0;Kn--)ur[Kn].dp-=In;for(zn=ur.length-1;zn>=0&&!(pr<=0);zn--)(Ut=ur[zn]).pos+Ut.dp+Ut.size>br.pmax&&(Ut.del=!0,pr--)}}}for(Bt.each(function(ur){var br=ur[At],Zn=ur[Gt],pr=br._id.charAt(0)==="x",Sr=br.range;sn===0&&Sr&&Sr[0]>Sr[1]!==pr&&(mn=-1);var Gr=0,ai=pr?cn.width:cn.height;if(cn.hovermode==="x"||cn.hovermode==="y"){var ni,ci,Kr=G(ur,tn),bi=ur.anchor,qa=bi==="end"?-1:1;if(bi==="middle")ci=(ni=ur.crossPos+(pr?Cn(Kr.y-ur.by/2):Sn(ur.bx/2+ur.tx2width/2)))+(pr?Cn(ur.by):Sn(ur.bx));else if(pr)ci=(ni=ur.crossPos+Cn(f+Kr.y)-Cn(ur.by/2-f))+Cn(ur.by);else{var ha=Sn(qa*f+Kr.x),to=ha+Sn(qa*ur.bx);ni=ur.crossPos+Math.min(ha,to),ci=ur.crossPos+Math.max(ha,to)}pr?on!==void 0&&ln!==void 0&&Math.min(ci,ln)-Math.max(ni,on)>1&&(Zn.side==="left"?(Gr=Zn._mainLinePosition,ai=cn.width):ai=Zn._mainLinePosition):Yt!==void 0&&Xt!==void 0&&Math.min(ci,Xt)-Math.max(ni,Yt)>1&&(Zn.side==="top"?(Gr=Zn._mainLinePosition,ai=cn.height):ai=Zn._mainLinePosition)}An[sn++]=[{datum:ur,traceIndex:ur.trace.index,dp:0,pos:ur.pos,posref:ur.posref,size:ur.by*(pr?v:1)/2,pmin:Gr,pmax:ai}]}),An.sort(function(ur,br){return ur[0].posref-br[0].posref||mn*(br[0].traceIndex-ur[0].traceIndex)});!kn&&$t<=xn;){for($t++,kn=!0,zn=0;zn.01&&Hn.pmin===nr.pmin&&Hn.pmax===nr.pmax){for(Kn=Xn.length-1;Kn>=0;Kn--)Xn[Kn].dp+=Vn;for(Fn.push.apply(Fn,Xn),An.splice(zn+1,1),_n=0,Kn=Fn.length-1;Kn>=0;Kn--)_n+=Fn[Kn].dp;for(In=_n/Fn.length,Kn=Fn.length-1;Kn>=0;Kn--)Fn[Kn].dp-=In;kn=!1}else zn++}An.forEach(jn)}for(zn=An.length-1;zn>=0;zn--){var er=An[zn];for(Kn=er.length-1;Kn>=0;Kn--){var tr=er[Kn],lr=tr.datum;lr.offset=tr.dp,lr.del=tr.del}}}(Gn,Qn,me,$n.commonLabelBoundingBox),O(Gn,Qn,me._invScaleX,me._invScaleY)),we&&we.tagName){var dr=u.getComponentMethod("annotations","hasClickToShow")(oe,hn);i(M.select(we),dr?"pointer":"")}we&&!ge&&function(Bt,tn,cn){if(!cn||cn.length!==Bt._hoverdata.length)return!0;for(var dn=cn.length-1;dn>=0;dn--){var kn=cn[dn],Vn=Bt._hoverdata[dn];if(kn.curveNumber!==Vn.curveNumber||String(kn.pointNumber)!==String(Vn.pointNumber)||String(kn.pointNumbers)!==String(Vn.pointNumbers))return!0}return!1}(oe,0,Ht)&&(Ht&&oe.emit("plotly_unhover",{event:ce,points:Ht}),oe.emit("plotly_hover",{event:ce,points:oe._hoverdata,xaxes:ne,yaxes:ve,xvals:Ce,yvals:Fe}))})(Y,W,Q,re,ie)})},z.loneHover=function(Y,W){var Q=!0;Array.isArray(Y)||(Q=!1,Y=[Y]);var re=W.gd,ie=te(re),oe=K(re),ce=P(Y.map(function(we){var ye=we._x0||we.x0||we.x||0,me=we._x1||we.x1||we.x||0,Oe=we._y0||we.y0||we.y||0,ke=we._y1||we.y1||we.y||0,Te=we.eventData;if(Te){var le=Math.min(ye,me),se=Math.max(ye,me),ne=Math.min(Oe,ke),ve=Math.max(Oe,ke),Ee=we.trace;if(u.traceIs(Ee,"gl3d")){var _e=re._fullLayout[Ee.scene]._scene.container,ze=_e.offsetLeft,Ne=_e.offsetTop;le+=ze,se+=ze,ne+=Ne,ve+=Ne}Te.bbox={x0:le+oe,x1:se+oe,y0:ne+ie,y1:ve+ie},W.inOut_bbox&&W.inOut_bbox.push(Te.bbox)}else Te=!1;return{color:we.color||n.defaultLine,x0:we.x0||we.x||0,x1:we.x1||we.x||0,y0:we.y0||we.y||0,y1:we.y1||we.y||0,xLabel:we.xLabel,yLabel:we.yLabel,zLabel:we.zLabel,text:we.text,name:we.name,idealAlign:we.idealAlign,borderColor:we.borderColor,fontFamily:we.fontFamily,fontSize:we.fontSize,fontColor:we.fontColor,nameLength:we.nameLength,textAlign:we.textAlign,trace:we.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:we.hovertemplate||!1,hovertemplateLabels:we.hovertemplateLabels||!1,eventData:Te}}),{gd:re,hovermode:"closest",rotateLabels:!1,bgColor:W.bgColor||n.background,container:M.select(W.container),outerContainer:W.outerContainer||W.container}).hoverLabels,pe=0,ge=0;return ce.sort(function(we,ye){return we.y0-ye.y0}).each(function(we,ye){var me=we.y0-we.by/2;we.offset=me-5([\s\S]*)<\/extra>/;function P(Y,W){var Q=W.gd,re=Q._fullLayout,ie=W.hovermode,oe=W.rotateLabels,ce=W.bgColor,pe=W.container,ge=W.outerContainer,we=W.commonLabelOpts||{};if(Y.length===0)return[[]];var ye=W.fontFamily||c.HOVERFONT,me=W.fontSize||c.HOVERFONTSIZE,Oe=Y[0],ke=Oe.xa,Te=Oe.ya,le=ie.charAt(0),se=le+"Label",ne=Oe[se];if(ne===void 0&&ke.type==="multicategory")for(var ve=0;vere.width-un?(Wt=re.width-un,bt.attr("d","M"+(un-f)+",0L"+un+","+yn+f+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H"+(un-2*f)+"Z")):bt.attr("d","M0,0L"+f+","+yn+f+"H"+un+"v"+yn+(2*S+hn.height)+"H-"+un+"V"+yn+f+"H-"+f+"Z"),He.minX=Wt-un,He.maxX=Wt+un,ke.side==="top"?(He.minY=Ht-(2*S+hn.height),He.maxY=Ht-S):(He.minY=Ht+S,He.maxY=Ht+(2*S+hn.height))}else{var jt,nn,Jt;Te.side==="right"?(jt="start",nn=1,Jt="",Wt=ke._offset+ke._length):(jt="end",nn=-1,Jt="-",Wt=ke._offset),Ht=Te._offset+(Oe.y0+Oe.y1)/2,It.attr("text-anchor",jt),bt.attr("d","M0,0L"+Jt+f+","+f+"V"+(S+hn.height/2)+"h"+Jt+(2*S+hn.width)+"V-"+(S+hn.height/2)+"H"+Jt+f+"V-"+f+"Z"),He.minY=Ht-(S+hn.height/2),He.maxY=Ht+(S+hn.height/2),Te.side==="right"?(He.minX=Wt+f,He.maxX=Wt+f+(2*S+hn.width)):(He.minX=Wt-f-(2*S+hn.width),He.maxX=Wt-f);var rn,fn=hn.height/2,vn=_e-hn.top-fn,Mn="clip"+re._uid+"commonlabel"+Te._id;if(Wt=0?Xe:Ve+rt=0?Ve:ct+rt=0?Mt:Ye+Ie=0?Ye:kt+Ie=0,ft.idealAlign!=="top"&&Wn||!Qn?Wn?(fn+=Mn/2,ft.anchor="start"):ft.anchor="middle":(fn-=Mn/2,ft.anchor="end"),ft.crossPos=fn;else{if(ft.pos=fn,Wn=rn+vn/2+ir<=ze,Qn=rn-vn/2-ir>=0,ft.idealAlign!=="left"&&Wn||!Qn)if(Wn)rn+=vn/2,ft.anchor="start";else{ft.anchor="middle";var $n=ir/2,Gn=rn+$n-ze,dr=rn-$n;Gn>0&&(rn-=Gn),dr<0&&(rn+=-dr)}else rn-=vn/2,ft.anchor="end";ft.crossPos=rn}yn.attr("text-anchor",ft.anchor),jt&&un.attr("text-anchor",ft.anchor),bt.attr("transform",b(rn,fn)+(oe?d(h):""))}),{hoverLabels:ut,commonLabelBoundingBox:He}}function R(Y,W,Q,re,ie,oe){var ce="",pe="";Y.nameOverride!==void 0&&(Y.name=Y.nameOverride),Y.name&&(Y.trace._meta&&(Y.name=T.templateString(Y.name,Y.trace._meta)),ce=H(Y.name,Y.nameLength));var ge=Q.charAt(0),we=ge==="x"?"y":"x";Y.zLabel!==void 0?(Y.xLabel!==void 0&&(pe+="x: "+Y.xLabel+"
"),Y.yLabel!==void 0&&(pe+="y: "+Y.yLabel+"
"),Y.trace.type!=="choropleth"&&Y.trace.type!=="choroplethmapbox"&&(pe+=(pe?"z: ":"")+Y.zLabel)):W&&Y[ge+"Label"]===ie?pe=Y[we+"Label"]||"":Y.xLabel===void 0?Y.yLabel!==void 0&&Y.trace.type!=="scattercarpet"&&(pe=Y.yLabel):pe=Y.yLabel===void 0?Y.xLabel:"("+Y.xLabel+", "+Y.yLabel+")",!Y.text&&Y.text!==0||Array.isArray(Y.text)||(pe+=(pe?"
":"")+Y.text),Y.extraText!==void 0&&(pe+=(pe?"
":"")+Y.extraText),oe&&pe===""&&!Y.hovertemplate&&(ce===""&&oe.remove(),pe=ce);var ye=Y.hovertemplate||!1;if(ye){var me=Y.hovertemplateLabels||Y;Y[ge+"Label"]!==ie&&(me[ge+"other"]=me[ge+"Val"],me[ge+"otherLabel"]=me[ge+"Label"]),pe=(pe=T.hovertemplateString(ye,me,re._d3locale,Y.eventData[0]||{},Y.trace._meta)).replace(C,function(Oe,ke){return ce=H(ke,Y.nameLength),""})}return[pe,ce]}function G(Y,W){var Q=0,re=Y.offset;return W&&(re*=-_,Q=Y.offset*y),{x:Q,y:re}}function O(Y,W,Q,re){var ie=function(ce){return ce*Q},oe=function(ce){return ce*re};Y.each(function(ce){var pe=M.select(this);if(ce.del)return pe.remove();var ge,we,ye,me,Oe=pe.select("text.nums"),ke=ce.anchor,Te=ke==="end"?-1:1,le=(me=(ye=(we={start:1,end:-1,middle:0}[(ge=ce).anchor])*(f+S))+we*(ge.txwidth+S),ge.anchor==="middle"&&(ye-=ge.tx2width/2,me+=ge.txwidth/2+S),{alignShift:we,textShiftX:ye,text2ShiftX:me}),se=G(ce,W),ne=se.x,ve=se.y,Ee=ke==="middle";pe.select("path").attr("d",Ee?"M-"+ie(ce.bx/2+ce.tx2width/2)+","+oe(ve-ce.by/2)+"h"+ie(ce.bx)+"v"+oe(ce.by)+"h-"+ie(ce.bx)+"Z":"M0,0L"+ie(Te*f+ne)+","+oe(f+ve)+"v"+oe(ce.by/2-f)+"h"+ie(Te*ce.bx)+"v-"+oe(ce.by)+"H"+ie(Te*f+ne)+"V"+oe(ve-f)+"Z");var _e=ne+le.textShiftX,ze=ve+ce.ty0-ce.by/2+S,Ne=ce.textAlign||"auto";Ne!=="auto"&&(Ne==="left"&&ke!=="start"?(Oe.attr("text-anchor","start"),_e=Ee?-ce.bx/2-ce.tx2width/2+S:-ce.bx-S):Ne==="right"&&ke!=="end"&&(Oe.attr("text-anchor","end"),_e=Ee?ce.bx/2-ce.tx2width/2-S:ce.bx+S)),Oe.call(t.positionText,ie(_e),oe(ze)),ce.tx2width&&(pe.select("text.name").call(t.positionText,ie(le.text2ShiftX+le.alignShift*S+ne),oe(ve+ce.ty0-ce.by/2+S)),pe.select("rect").call(r.setRect,ie(le.text2ShiftX+(le.alignShift-1)*ce.tx2width/2+ne),oe(ve-ce.by/2-1),ie(ce.tx2width),oe(ce.by+2)))})}function V(Y,W){var Q=Y.index,re=Y.trace||{},ie=Y.cd[0],oe=Y.cd[Q]||{};function ce(Oe){return Oe||k(Oe)&&Oe===0}var pe=Array.isArray(Q)?function(Oe,ke){var Te=T.castOption(ie,Q,Oe);return ce(Te)?Te:T.extractOption({},re,"",ke)}:function(Oe,ke){return T.extractOption(oe,re,Oe,ke)};function ge(Oe,ke,Te){var le=pe(ke,Te);ce(le)&&(Y[Oe]=le)}if(ge("hoverinfo","hi","hoverinfo"),ge("bgcolor","hbg","hoverlabel.bgcolor"),ge("borderColor","hbc","hoverlabel.bordercolor"),ge("fontFamily","htf","hoverlabel.font.family"),ge("fontSize","hts","hoverlabel.font.size"),ge("fontColor","htc","hoverlabel.font.color"),ge("nameLength","hnl","hoverlabel.namelength"),ge("textAlign","hta","hoverlabel.align"),Y.posref=W==="y"||W==="closest"&&re.orientation==="h"?Y.xa._offset+(Y.x0+Y.x1)/2:Y.ya._offset+(Y.y0+Y.y1)/2,Y.x0=T.constrain(Y.x0,0,Y.xa._length),Y.x1=T.constrain(Y.x1,0,Y.xa._length),Y.y0=T.constrain(Y.y0,0,Y.ya._length),Y.y1=T.constrain(Y.y1,0,Y.ya._length),Y.xLabelVal!==void 0&&(Y.xLabel="xLabel"in Y?Y.xLabel:a.hoverLabelText(Y.xa,Y.xLabelVal,re.xhoverformat),Y.xVal=Y.xa.c2d(Y.xLabelVal)),Y.yLabelVal!==void 0&&(Y.yLabel="yLabel"in Y?Y.yLabel:a.hoverLabelText(Y.ya,Y.yLabelVal,re.yhoverformat),Y.yVal=Y.ya.c2d(Y.yLabelVal)),Y.zLabelVal!==void 0&&Y.zLabel===void 0&&(Y.zLabel=String(Y.zLabelVal)),!(isNaN(Y.xerr)||Y.xa.type==="log"&&Y.xerr<=0)){var we=a.tickText(Y.xa,Y.xa.c2l(Y.xerr),"hover").text;Y.xerrneg!==void 0?Y.xLabel+=" +"+we+" / -"+a.tickText(Y.xa,Y.xa.c2l(Y.xerrneg),"hover").text:Y.xLabel+=" \xB1 "+we,W==="x"&&(Y.distance+=1)}if(!(isNaN(Y.yerr)||Y.ya.type==="log"&&Y.yerr<=0)){var ye=a.tickText(Y.ya,Y.ya.c2l(Y.yerr),"hover").text;Y.yerrneg!==void 0?Y.yLabel+=" +"+ye+" / -"+a.tickText(Y.ya,Y.ya.c2l(Y.yerrneg),"hover").text:Y.yLabel+=" \xB1 "+ye,W==="y"&&(Y.distance+=1)}var me=Y.hoverinfo||Y.trace.hoverinfo;return me&&me!=="all"&&((me=Array.isArray(me)?me:me.split("+")).indexOf("x")===-1&&(Y.xLabel=void 0),me.indexOf("y")===-1&&(Y.yLabel=void 0),me.indexOf("z")===-1&&(Y.zLabel=void 0),me.indexOf("text")===-1&&(Y.text=void 0),me.indexOf("name")===-1&&(Y.name=void 0)),Y}function N(Y,W,Q){var re,ie,oe=Q.container,ce=Q.fullLayout,pe=ce._size,ge=Q.event,we=!!W.hLinePoint,ye=!!W.vLinePoint;if(oe.selectAll(".spikeline").remove(),ye||we){var me=n.combine(ce.plot_bgcolor,ce.paper_bgcolor);if(we){var Oe,ke,Te=W.hLinePoint;re=Te&&Te.xa,(ie=Te&&Te.ya).spikesnap==="cursor"?(Oe=ge.pointerX,ke=ge.pointerY):(Oe=re._offset+Te.x,ke=ie._offset+Te.y);var le,se,ne=l.readability(Te.color,me)<1.5?n.contrast(me):Te.color,ve=ie.spikemode,Ee=ie.spikethickness,_e=ie.spikecolor||ne,ze=a.getPxPosition(Y,ie);if(ve.indexOf("toaxis")!==-1||ve.indexOf("across")!==-1){if(ve.indexOf("toaxis")!==-1&&(le=ze,se=Oe),ve.indexOf("across")!==-1){var Ne=ie._counterDomainMin,fe=ie._counterDomainMax;ie.anchor==="free"&&(Ne=Math.min(Ne,ie.position),fe=Math.max(fe,ie.position)),le=pe.l+Ne*pe.w,se=pe.l+fe*pe.w}oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee,stroke:_e,"stroke-dasharray":r.dashStyle(ie.spikedash,Ee)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:le,x2:se,y1:ke,y2:ke,"stroke-width":Ee+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}ve.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:ze+(ie.side!=="right"?Ee:-Ee),cy:ke,r:Ee,fill:_e}).classed("spikeline",!0)}if(ye){var Me,be,Ce=W.vLinePoint;re=Ce&&Ce.xa,ie=Ce&&Ce.ya,re.spikesnap==="cursor"?(Me=ge.pointerX,be=ge.pointerY):(Me=re._offset+Ce.x,be=ie._offset+Ce.y);var Fe,Re,He=l.readability(Ce.color,me)<1.5?n.contrast(me):Ce.color,Ge=re.spikemode,Ke=re.spikethickness,at=re.spikecolor||He,Qe=a.getPxPosition(Y,re);if(Ge.indexOf("toaxis")!==-1||Ge.indexOf("across")!==-1){if(Ge.indexOf("toaxis")!==-1&&(Fe=Qe,Re=be),Ge.indexOf("across")!==-1){var vt=re._counterDomainMin,xt=re._counterDomainMax;re.anchor==="free"&&(vt=Math.min(vt,re.position),xt=Math.max(xt,re.position)),Fe=pe.t+(1-xt)*pe.h,Re=pe.t+(1-vt)*pe.h}oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke,stroke:at,"stroke-dasharray":r.dashStyle(re.spikedash,Ke)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:Me,x2:Me,y1:Fe,y2:Re,"stroke-width":Ke+2,stroke:me}).classed("spikeline",!0).classed("crisp",!0)}Ge.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:Me,cy:Qe-(re.side!=="top"?Ke:-Ke),r:Ke,fill:at}).classed("spikeline",!0)}}}function B(Y,W){return!W||W.vLinePoint!==Y._spikepoints.vLinePoint||W.hLinePoint!==Y._spikepoints.hLinePoint}function H(Y,W){return t.plainText(Y||"",{len:W,allowedTags:["br","sub","sup","b","i","em"]})}function q(Y,W,Q){var re=W[Y+"a"],ie=W[Y+"Val"],oe=W.cd[0];if(re.type==="category"||re.type==="multicategory")ie=re._categoriesMap[ie];else if(re.type==="date"){var ce=W.trace[Y+"periodalignment"];if(ce){var pe=W.cd[W.index],ge=pe[Y+"Start"];ge===void 0&&(ge=pe[Y]);var we=pe[Y+"End"];we===void 0&&(we=pe[Y]);var ye=we-ge;ce==="end"?ie+=ye:ce==="middle"&&(ie+=ye/2)}ie=re.d2c(ie)}return oe&&oe.t&&oe.t.posLetter===re._id&&(Q.boxmode!=="group"&&Q.violinmode!=="group"||(ie+=oe.t.dPos)),ie}function te(Y){return Y.offsetTop+Y.clientTop}function K(Y){return Y.offsetLeft+Y.clientLeft}function J(Y,W){var Q=Y._fullLayout,re=W.getBoundingClientRect(),ie=re.left,oe=re.top,ce=ie+re.width,pe=oe+re.height,ge=T.apply3DTransform(Q._invTransform)(ie,oe),we=T.apply3DTransform(Q._invTransform)(ce,pe),ye=ge[0],me=ge[1],Oe=we[0],ke=we[1];return{x:ye,y:me,width:Oe-ye,height:ke-me,top:Math.min(me,ke),left:Math.min(ye,Oe),right:Math.max(ye,Oe),bottom:Math.max(me,ke)}}},38048:function(ee,z,e){var M=e(71828),k=e(7901),l=e(23469).isUnifiedHover;ee.exports=function(T,b,d,s){s=s||{};var t=b.legend;function i(r){s.font[r]||(s.font[r]=t?b.legend.font[r]:b.font[r])}b&&l(b.hovermode)&&(s.font||(s.font={}),i("size"),i("family"),i("color"),t?(s.bgcolor||(s.bgcolor=k.combine(b.legend.bgcolor,b.paper_bgcolor)),s.bordercolor||(s.bordercolor=b.legend.bordercolor)):s.bgcolor||(s.bgcolor=b.paper_bgcolor)),d("hoverlabel.bgcolor",s.bgcolor),d("hoverlabel.bordercolor",s.bordercolor),d("hoverlabel.namelength",s.namelength),M.coerceFont(d,"hoverlabel.font",s.font),d("hoverlabel.align",s.align)}},98212:function(ee,z,e){var M=e(71828),k=e(528);ee.exports=function(l,T){function b(d,s){return T[d]!==void 0?T[d]:M.coerce(l,T,k,d,s)}return b("clickmode"),b("hovermode")}},30211:function(ee,z,e){var M=e(39898),k=e(71828),l=e(28569),T=e(23469),b=e(528),d=e(88335);ee.exports={moduleType:"component",name:"fx",constants:e(26675),schema:{layout:b},attributes:e(77914),layoutAttributes:b,supplyLayoutGlobalDefaults:e(22774),supplyDefaults:e(54268),supplyLayoutDefaults:e(34938),calc:e(30732),getDistanceFunction:T.getDistanceFunction,getClosest:T.getClosest,inbox:T.inbox,quadrature:T.quadrature,appendArrayPointValue:T.appendArrayPointValue,castHoverOption:function(s,t,i){return k.castOption(s,t,"hoverlabel."+i)},castHoverinfo:function(s,t,i){return k.castOption(s,i,"hoverinfo",function(r){return k.coerceHoverinfo({hoverinfo:r},{_module:s._module},t)})},hover:d.hover,unhover:l.unhover,loneHover:d.loneHover,loneUnhover:function(s){var t=k.isD3Selection(s)?s:M.select(s);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e(75914)}},528:function(ee,z,e){var M=e(26675),k=e(41940),l=k({editType:"none"});l.family.dflt=M.HOVERFONT,l.size.dflt=M.HOVERFONTSIZE,ee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:l,grouptitlefont:k({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(ee,z,e){var M=e(71828),k=e(528),l=e(98212),T=e(38048);ee.exports=function(b,d){function s(n,o){return M.coerce(b,d,k,n,o)}l(b,d)&&(s("hoverdistance"),s("spikedistance")),s("dragmode")==="select"&&s("selectdirection");var t=d._has("mapbox"),i=d._has("geo"),r=d._basePlotModules.length;d.dragmode==="zoom"&&((t||i)&&r===1||t&&i&&r===2)&&(d.dragmode="pan"),T(b,d,s),M.coerceFont(s,"hoverlabel.grouptitlefont",d.hoverlabel.font)}},22774:function(ee,z,e){var M=e(71828),k=e(38048),l=e(528);ee.exports=function(T,b){k(T,b,function(d,s){return M.coerce(T,b,l,d,s)})}},83312:function(ee,z,e){var M=e(71828),k=e(30587).counter,l=e(27670).Y,T=e(85555).idRegex,b=e(44467),d={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[k("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[T.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:l({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function s(r,n,o){var a=n[o+"axes"],u=Object.keys((r._splomAxes||{})[o]||{});return Array.isArray(a)?a:u.length?u:void 0}function t(r,n,o,a,u,p){var c=n(r+"gap",o),x=n("domain."+r);n(r+"side",a);for(var g=new Array(u),h=x[0],m=(x[1]-h)/(u-c),v=m*(1-c),y=0;y1){x||g||h||C("pattern")==="independent"&&(x=!0),v._hasSubplotGrid=x;var f,S,w=C("roworder")==="top to bottom",E=x?.2:.1,L=x?.3:.1;m&&n._splomGridDflt&&(f=n._splomGridDflt.xside,S=n._splomGridDflt.yside),v._domains={x:t("x",C,E,f,_),y:t("y",C,L,S,y,w)}}else delete n.grid}function C(P,R){return M.coerce(o,v,d,P,R)}},contentDefaults:function(r,n){var o=n.grid;if(o&&o._domains){var a,u,p,c,x,g,h,m=r.grid||{},v=n._subplots,y=o._hasSubplotGrid,_=o.rows,f=o.columns,S=o.pattern==="independent",w=o._axisMap={};if(y){var E=m.subplots||[];g=o.subplots=new Array(_);var L=1;for(a=0;a<_;a++){var C=g[a]=new Array(f),P=E[a]||[];for(u=0;u(i==="legend"?1:0));if(L===!1&&(n[i]=void 0),(L!==!1||a.uirevision)&&(p("uirevision",n.uirevision),L!==!1)){p("borderwidth");var C,P,R,G=p("orientation")==="h",O=p("yref")==="paper",V=p("xref")==="paper",N="left";if(G?(C=0,M.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(P=1.1,R="bottom"):(P=1,R="top"):O?(P=-.1,R="top"):(P=0,R="bottom")):(P=1,R="auto",V?C=1.02:(C=1,N="right")),k.coerce(a,u,{x:{valType:"number",editType:"legend",min:V?-2:0,max:V?3:1,dflt:C}},"x"),k.coerce(a,u,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:P}},"y"),p("traceorder",_),s.isGrouped(n[i])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",N),p("yanchor",R),p("valign"),k.noneOrAll(a,u,["x","y"]),p("title.text")){p("title.side",G?"left":"top");var B=k.extendFlat({},c,{size:k.bigFont(c.size)});k.coerceFont(p,"title.font",B)}}}}ee.exports=function(i,r,n){var o,a=n.slice(),u=r.shapes;if(u)for(o=0;o1)}var re=B.hiddenlabels||[];if(!(q||B.showlegend&&te.length))return V.selectAll("."+H).remove(),B._topdefs.select("#"+O).remove(),l.autoMargin(R,H);var ie=k.ensureSingle(V,"g",H,function(ke){q||ke.attr("pointer-events","all")}),oe=k.ensureSingleById(B._topdefs,"clipPath",O,function(ke){ke.append("rect")}),ce=k.ensureSingle(ie,"rect","bg",function(ke){ke.attr("shape-rendering","crispEdges")});ce.call(t.stroke,N.bordercolor).call(t.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px");var pe=k.ensureSingle(ie,"g","scrollbox"),ge=N.title;if(N._titleWidth=0,N._titleHeight=0,ge.text){var we=k.ensureSingle(pe,"text",H+"titletext");we.attr("text-anchor","start").call(s.font,ge.font).text(ge.text),E(we,pe,R,N,h)}else pe.selectAll("."+H+"titletext").remove();var ye=k.ensureSingle(ie,"rect","scrollbar",function(ke){ke.attr(n.scrollBarEnterAttrs).call(t.fill,n.scrollBarColor)}),me=pe.selectAll("g.groups").data(te);me.enter().append("g").attr("class","groups"),me.exit().remove();var Oe=me.selectAll("g.traces").data(k.identity);Oe.enter().append("g").attr("class","traces"),Oe.exit().remove(),Oe.style("opacity",function(ke){var Te=ke[0].trace;return T.traceIs(Te,"pie-like")?re.indexOf(ke[0].label)!==-1?.5:1:Te.visible==="legendonly"?.5:1}).each(function(){M.select(this).call(f,R,N)}).call(x,R,N).each(function(){q||M.select(this).call(w,R,H)}),k.syncOrAsync([l.previousPromises,function(){return function(ke,Te,le,se){var ne=ke._fullLayout,ve=P(se);se||(se=ne[ve]);var Ee=ne._size,_e=g.isVertical(se),ze=g.isGrouped(se),Ne=se.entrywidthmode==="fraction",fe=se.borderwidth,Me=2*fe,be=n.itemGap,Ce=se.itemwidth+2*be,Fe=2*(fe+be),Re=C(se),He=se.y<0||se.y===0&&Re==="top",Ge=se.y>1||se.y===1&&Re==="bottom",Ke=se.tracegroupgap,at={};se._maxHeight=Math.max(He||Ge?ne.height/2:Ee.h,30);var Qe=0;se._width=0,se._height=0;var vt=function(ht){var dt=0,ct=0,kt=ht.title.side;return kt&&(kt.indexOf("left")!==-1&&(dt=ht._titleWidth),kt.indexOf("top")!==-1&&(ct=ht._titleHeight)),[dt,ct]}(se);if(_e)le.each(function(ht){var dt=ht[0].height;s.setTranslate(this,fe+vt[0],fe+vt[1]+se._height+dt/2+be),se._height+=dt,se._width=Math.max(se._width,ht[0].width)}),Qe=Ce+se._width,se._width+=be+Ce+Me,se._height+=Fe,ze&&(Te.each(function(ht,dt){s.setTranslate(this,0,dt*se.tracegroupgap)}),se._height+=(se._lgroupsLength-1)*se.tracegroupgap);else{var xt=L(se),st=se.x<0||se.x===0&&xt==="right",ot=se.x>1||se.x===1&&xt==="left",mt=Ge||He,Tt=ne.width/2;se._maxWidth=Math.max(st?mt&&xt==="left"?Ee.l+Ee.w:Tt:ot?mt&&xt==="right"?Ee.r+Ee.w:Tt:Ee.w,2*Ce);var wt=0,Pt=0;le.each(function(ht){var dt=y(ht,se,Ce);wt=Math.max(wt,dt),Pt+=dt}),Qe=null;var Mt=0;if(ze){var Ye=0,Xe=0,Ve=0;Te.each(function(){var ht=0,dt=0;M.select(this).selectAll("g.traces").each(function(kt){var ut=y(kt,se,Ce),ft=kt[0].height;s.setTranslate(this,vt[0],vt[1]+fe+be+ft/2+dt),dt+=ft,ht=Math.max(ht,ut),at[kt[0].trace.legendgroup]=ht});var ct=ht+be;Xe>0&&ct+fe+Xe>se._maxWidth?(Mt=Math.max(Mt,Xe),Xe=0,Ve+=Ye+Ke,Ye=dt):Ye=Math.max(Ye,dt),s.setTranslate(this,Xe,Ve),Xe+=ct}),se._width=Math.max(Mt,Xe)+fe,se._height=Ve+Ye+Fe}else{var We=le.size(),nt=Pt+Me+(We-1)*be=se._maxWidth&&(Mt=Math.max(Mt,et),Ie=0,De+=rt,se._height+=rt,rt=0),s.setTranslate(this,vt[0]+fe+Ie,vt[1]+fe+De+dt/2+be),et=Ie+ct+be,Ie+=kt,rt=Math.max(rt,dt)}),nt?(se._width=Ie+Me,se._height=rt+Fe):(se._width=Math.max(Mt,et)+Me,se._height+=rt+Fe)}}se._width=Math.ceil(Math.max(se._width+vt[0],se._titleWidth+2*(fe+n.titlePad))),se._height=Math.ceil(Math.max(se._height+vt[1],se._titleHeight+2*(fe+n.itemGap))),se._effHeight=Math.min(se._height,se._maxHeight);var tt=ke._context.edits,gt=tt.legendText||tt.legendPosition;le.each(function(ht){var dt=M.select(this).select("."+ve+"toggle"),ct=ht[0].height,kt=ht[0].trace.legendgroup,ut=y(ht,se,Ce);ze&&kt!==""&&(ut=at[kt]);var ft=gt?Ce:Qe||ut;_e||Ne||(ft+=be/2),s.setRect(dt,0,-ct/2,ft,ct)})}(R,me,Oe,N)},function(){var ke,Te,le,se,ne=B._size,ve=N.borderwidth,Ee=N.xref==="paper",_e=N.yref==="paper";if(!q){var ze,Ne;ze=Ee?ne.l+ne.w*N.x-u[L(N)]*N._width:B.width*N.x-u[L(N)]*N._width,Ne=_e?ne.t+ne.h*(1-N.y)-u[C(N)]*N._effHeight:B.height*(1-N.y)-u[C(N)]*N._effHeight;var fe=function(mt,Tt,wt,Pt){var Mt=mt._fullLayout,Ye=Mt[Tt],Xe=L(Ye),Ve=C(Ye),We=Ye.xref==="paper",nt=Ye.yref==="paper";mt._fullLayout._reservedMargin[Tt]={};var rt=Ye.y<.5?"b":"t",Ie=Ye.x<.5?"l":"r",De={r:Mt.width-wt,l:wt+Ye._width,b:Mt.height-Pt,t:Pt+Ye._effHeight};if(We&&nt)return l.autoMargin(mt,Tt,{x:Ye.x,y:Ye.y,l:Ye._width*u[Xe],r:Ye._width*p[Xe],b:Ye._effHeight*p[Ve],t:Ye._effHeight*u[Ve]});We?mt._fullLayout._reservedMargin[Tt][rt]=De[rt]:nt||Ye.orientation==="v"?mt._fullLayout._reservedMargin[Tt][Ie]=De[Ie]:mt._fullLayout._reservedMargin[Tt][rt]=De[rt]}(R,H,ze,Ne);if(fe)return;if(B.margin.autoexpand){var Me=ze,be=Ne;ze=Ee?k.constrain(ze,0,B.width-N._width):Me,Ne=_e?k.constrain(Ne,0,B.height-N._effHeight):be,ze!==Me&&k.log("Constrain "+H+".x to make legend fit inside graph"),Ne!==be&&k.log("Constrain "+H+".y to make legend fit inside graph")}s.setTranslate(ie,ze,Ne)}if(ye.on(".drag",null),ie.on("wheel",null),q||N._height<=N._maxHeight||R._context.staticPlot){var Ce=N._effHeight;q&&(Ce=N._height),ce.attr({width:N._width-ve,height:Ce-ve,x:ve/2,y:ve/2}),s.setTranslate(pe,0,0),oe.select("rect").attr({width:N._width-2*ve,height:Ce-2*ve,x:ve,y:ve}),s.setClipUrl(pe,O,R),s.setRect(ye,0,0,0,0),delete N._scrollY}else{var Fe,Re,He,Ge=Math.max(n.scrollBarMinHeight,N._effHeight*N._effHeight/N._height),Ke=N._effHeight-Ge-2*n.scrollBarMargin,at=N._height-N._effHeight,Qe=Ke/at,vt=Math.min(N._scrollY||0,at);ce.attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-ve,x:ve/2,y:ve/2}),oe.select("rect").attr({width:N._width-2*ve+n.scrollBarWidth+n.scrollBarMargin,height:N._effHeight-2*ve,x:ve,y:ve+vt}),s.setClipUrl(pe,O,R),ot(vt,Ge,Qe),ie.on("wheel",function(){ot(vt=k.constrain(N._scrollY+M.event.deltaY/Ke*at,0,at),Ge,Qe),vt!==0&&vt!==at&&M.event.preventDefault()});var xt=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;Fe=mt.type==="touchstart"?mt.changedTouches[0].clientY:mt.clientY,He=vt}).on("drag",function(){var mt=M.event.sourceEvent;mt.buttons===2||mt.ctrlKey||(Re=mt.type==="touchmove"?mt.changedTouches[0].clientY:mt.clientY,vt=function(Tt,wt,Pt){var Mt=(Pt-wt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});ye.call(xt);var st=M.behavior.drag().on("dragstart",function(){var mt=M.event.sourceEvent;mt.type==="touchstart"&&(Fe=mt.changedTouches[0].clientY,He=vt)}).on("drag",function(){var mt=M.event.sourceEvent;mt.type==="touchmove"&&(Re=mt.changedTouches[0].clientY,vt=function(Tt,wt,Pt){var Mt=(wt-Pt)/Qe+Tt;return k.constrain(Mt,0,at)}(He,Fe,Re),ot(vt,Ge,Qe))});pe.call(st)}function ot(mt,Tt,wt){N._scrollY=R._fullLayout[H]._scrollY=mt,s.setTranslate(pe,0,-mt),s.setRect(ye,N._width,n.scrollBarMargin+mt*wt,n.scrollBarWidth,Tt),oe.select("rect").attr("y",ve+mt)}R._context.edits.legendPosition&&(ie.classed("cursor-move",!0),d.init({element:ie.node(),gd:R,prepFn:function(){var mt=s.getTranslate(ie);le=mt.x,se=mt.y},moveFn:function(mt,Tt){var wt=le+mt,Pt=se+Tt;s.setTranslate(ie,wt,Pt),ke=d.align(wt,N._width,ne.l,ne.l+ne.w,N.xanchor),Te=d.align(Pt+N._height,-N._height,ne.t+ne.h,ne.t,N.yanchor)},doneFn:function(){if(ke!==void 0&&Te!==void 0){var mt={};mt[H+".x"]=ke,mt[H+".y"]=Te,T.call("_guiRelayout",R,mt)}},clickFn:function(mt,Tt){var wt=V.selectAll("g.traces").filter(function(){var Pt=this.getBoundingClientRect();return Tt.clientX>=Pt.left&&Tt.clientX<=Pt.right&&Tt.clientY>=Pt.top&&Tt.clientY<=Pt.bottom});wt.size()>0&&_(R,ie,wt,mt,Tt)}}))}],R)}}function y(R,G,O){var V=R[0],N=V.width,B=G.entrywidthmode,H=V.trace.legendwidth||G.entrywidth;return B==="fraction"?G._maxWidth*H:O+(H||N)}function _(R,G,O,V,N){var B=O.data()[0][0].trace,H={event:N,node:O.node(),curveNumber:B.index,expandedIndex:B._expandedIndex,data:R.data,layout:R.layout,frames:R._transitionData._frames,config:R._context,fullData:R._fullData,fullLayout:R._fullLayout};B._group&&(H.group=B._group),T.traceIs(B,"pie-like")&&(H.label=O.datum()[0].label),b.triggerHandler(R,"plotly_legendclick",H)!==!1&&(V===1?G._clickTimeout=setTimeout(function(){R._fullLayout&&r(O,R,V)},R._context.doubleClickDelay):V===2&&(G._clickTimeout&&clearTimeout(G._clickTimeout),R._legendMouseDownTime=0,b.triggerHandler(R,"plotly_legenddoubleclick",H)!==!1&&r(O,R,V)))}function f(R,G,O){var V,N,B=P(O),H=R.data()[0][0],q=H.trace,te=T.traceIs(q,"pie-like"),K=!O._inHover&&G._context.edits.legendText&&!te,J=O._maxNameLength;H.groupTitle?(V=H.groupTitle.text,N=H.groupTitle.font):(N=O.font,O.entries?V=H.text:(V=te?H.label:q.name,q._meta&&(V=k.templateString(V,q._meta))));var Y=k.ensureSingle(R,"text",B+"text");Y.attr("text-anchor","start").call(s.font,N).text(K?S(V,J):V);var W=O.itemwidth+2*n.itemGap;i.positionText(Y,W,0),K?Y.call(i.makeEditable,{gd:G,text:V}).call(E,R,G,O).on("edit",function(Q){this.text(S(Q,J)).call(E,R,G,O);var re=H.trace._fullInput||{},ie={};if(T.hasTransform(re,"groupby")){var oe=T.getTransformIndices(re,"groupby"),ce=oe[oe.length-1],pe=k.keyedContainer(re,"transforms["+ce+"].styles","target","value.name");pe.set(H.trace._group,Q),ie=pe.constructUpdate()}else ie.name=Q;return re._isShape?T.call("_guiRelayout",G,"shapes["+q.index+"].name",ie.name):T.call("_guiRestyle",G,ie,q.index)}):E(Y,R,G,O)}function S(R,G){var O=Math.max(4,G);if(R&&R.trim().length>=O/2)return R;for(var V=O-(R=R||"").length;V>0;V--)R+=" ";return R}function w(R,G,O){var V,N=G._context.doubleClickDelay,B=1,H=k.ensureSingle(R,"rect",O+"toggle",function(q){G._context.staticPlot||q.style("cursor","pointer").attr("pointer-events","all"),q.call(t.fill,"rgba(0,0,0,0)")});G._context.staticPlot||(H.on("mousedown",function(){(V=new Date().getTime())-G._legendMouseDownTimeN&&(B=Math.max(B-1,1)),_(G,q,R,B,M.event)}}))}function E(R,G,O,V,N){V._inHover&&R.attr("data-notex",!0),i.convertToTspans(R,O,function(){(function(B,H,q,te){var K=B.data()[0][0];if(q._inHover||!K||K.trace.showlegend){var J=B.select("g[class*=math-group]"),Y=J.node(),W=P(q);q||(q=H._fullLayout[W]);var Q,re,ie=q.borderwidth,oe=(te===h?q.title.font:K.groupTitle?K.groupTitle.font:q.font).size*a;if(Y){var ce=s.bBox(Y);Q=ce.height,re=ce.width,te===h?s.setTranslate(J,ie,ie+.75*Q):s.setTranslate(J,0,.25*Q)}else{var pe="."+W+(te===h?"title":"")+"text",ge=B.select(pe),we=i.lineCount(ge),ye=ge.node();if(Q=oe*we,re=ye?s.bBox(ye).width:0,te===h){var me=0;q.title.side==="left"?re+=2*n.itemGap:q.title.side==="top center"?q._width&&(me=.5*(q._width-2*ie-2*n.titlePad-re)):q.title.side==="top right"&&q._width&&(me=q._width-2*ie-2*n.titlePad-re),i.positionText(ge,ie+n.titlePad+me,ie+oe)}else{var Oe=2*n.itemGap+q.itemwidth;K.groupTitle&&(Oe=n.itemGap,re-=q.itemwidth),i.positionText(ge,Oe,-oe*((we-1)/2-.3))}}te===h?(q._titleWidth=re,q._titleHeight=Q):(K.lineHeight=oe,K.height=Math.max(Q,16)+3,K.width=re)}else B.remove()})(G,O,V,N)})}function L(R){return k.isRightAnchor(R)?"right":k.isCenterAnchor(R)?"center":"left"}function C(R){return k.isBottomAnchor(R)?"bottom":k.isMiddleAnchor(R)?"middle":"top"}function P(R){return R._id||"legend"}ee.exports=function(R,G){if(G)v(R,G);else{var O=R._fullLayout,V=O._legends;O._infolayer.selectAll('[class^="legend"]').each(function(){var H=M.select(this),q=H.attr("class").split(" ")[0];q.match(m)&&V.indexOf(q)===-1&&H.remove()});for(var N=0;NL&&(E=L)}S[d][0]._groupMinRank=E,S[d][0]._preGroupSort=d}var C=function(V,N){return V.trace.legendrank-N.trace.legendrank||V._preSort-N._preSort};for(S.forEach(function(V,N){V[0]._preGroupSort=N}),S.sort(function(V,N){return V[0]._groupMinRank-N[0]._groupMinRank||V[0]._preGroupSort-N[0]._preGroupSort}),d=0;dx?x:p}ee.exports=function(p,c,x){var g=c._fullLayout;x||(x=g.legend);var h=x.itemsizing==="constant",m=x.itemwidth,v=(m+2*n.itemGap)/2,y=T(v,0),_=function(w,E,L,C){var P;if(w+1)P=w;else{if(!(E&&E.width>0))return 0;P=E.width}return h?C:Math.min(P,L)};function f(w,E,L){var C=w[0].trace,P=C.marker||{},R=P.line||{},G=L?C.visible&&C.type===L:k.traceIs(C,"bar"),O=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(G?[w]:[]);O.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),O.exit().remove(),O.each(function(V){var N=M.select(this),B=V[0],H=_(B.mlw,P.line,5,2);N.style("stroke-width",H+"px");var q=B.mcc;if(!x._inHover&&"mc"in B){var te=s(P),K=te.mid;K===void 0&&(K=(te.max+te.min)/2),q=b.tryColorscale(P,"")(K)}var J=q||B.mc||P.color,Y=P.pattern,W=Y&&b.getPatternAttr(Y.shape,0,"");if(W){var Q=b.getPatternAttr(Y.bgcolor,0,null),re=b.getPatternAttr(Y.fgcolor,0,null),ie=Y.fgopacity,oe=u(Y.size,8,10),ce=u(Y.solidity,.5,1),pe="legend-"+C.uid;N.call(b.pattern,"legend",c,pe,W,oe,ce,q,Y.fillmode,Q,re,ie)}else N.call(d.fill,J);H&&d.stroke(N,B.mlc||R.color)})}function S(w,E,L){var C=w[0],P=C.trace,R=L?P.visible&&P.type===L:k.traceIs(P,L),G=M.select(E).select("g.legendpoints").selectAll("path.legend"+L).data(R?[w]:[]);if(G.enter().append("path").classed("legend"+L,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),G.exit().remove(),G.size()){var O=P.marker||{},V=_(r(O.line.width,C.pts),O.line,5,2),N="pieLike",B=l.minExtend(P,{marker:{line:{width:V}}},N),H=l.minExtend(C,{trace:B},N);i(G,H,B,c)}}p.each(function(w){var E=M.select(this),L=l.ensureSingle(E,"g","layers");L.style("opacity",w[0].trace.opacity);var C=x.valign,P=w[0].lineHeight,R=w[0].height;if(C!=="middle"&&P&&R){var G={top:1,bottom:-1}[C]*(.5*(P-R+3));L.attr("transform",T(0,G))}else L.attr("transform",null);L.selectAll("g.legendfill").data([w]).enter().append("g").classed("legendfill",!0),L.selectAll("g.legendlines").data([w]).enter().append("g").classed("legendlines",!0);var O=L.selectAll("g.legendsymbols").data([w]);O.enter().append("g").classed("legendsymbols",!0),O.selectAll("g.legendpoints").data([w]).enter().append("g").classed("legendpoints",!0)}).each(function(w){var E,L=w[0].trace,C=[];if(L.visible)switch(L.type){case"histogram2d":case"heatmap":C=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":C=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":C=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":C=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":C=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":C=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":C=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1}var P=M.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(C);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",y).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,G){var O,V=M.select(this),N=s(L),B=N.colorscale,H=N.reversescale;if(B){if(!E){var q=B.length;O=G===0?B[H?q-1:0][1]:G===1?B[H?0:q-1][1]:B[Math.floor((q-1)/2)][1]}}else{var te=L.vertexcolor||L.facecolor||L.color;O=l.isArrayOrTypedArray(te)?te[G]||te[0]:te}V.attr("d",R[0]),O?V.call(d.fill,O):V.call(function(K){if(K.size()){var J="legendfill-"+L.uid;b.gradient(K,c,J,o(H,E==="radial"),B,"fill")}})})}).each(function(w){var E=w[0].trace,L=E.type==="waterfall";if(w[0]._distinct&&L){var C=w[0].trace[w[0].dir].marker;return w[0].mc=C.color,w[0].mlw=C.line.width,w[0].mlc=C.line.color,f(w,this,"waterfall")}var P=[];E.visible&&L&&(P=w[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=M.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",y).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(G){var O=M.select(this),V=E[G[0]].marker,N=_(void 0,V.line,5,2);O.attr("d",G[1]).style("stroke-width",N+"px").call(d.fill,V.color),N&&O.call(d.stroke,V.line.color)})}).each(function(w){f(w,this,"funnel")}).each(function(w){f(w,this)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&k.traceIs(E,"box-violin")?[w]:[]);L.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),L.exit().remove(),L.each(function(){var C=M.select(this);if(E.boxpoints!=="all"&&E.points!=="all"||d.opacity(E.fillcolor)!==0||d.opacity((E.line||{}).color)!==0){var P=_(void 0,E.line,5,2);C.style("stroke-width",P+"px").call(d.fill,E.fillcolor),P&&d.stroke(C,E.line.color)}else{var R=l.minExtend(E,{marker:{size:h?12:l.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});L.call(b.pointStyle,R,c)}})}).each(function(w){S(w,this,"funnelarea")}).each(function(w){S(w,this,"pie")}).each(function(w){var E,L,C=a(w),P=C.showFill,R=C.showLine,G=C.showGradientLine,O=C.showGradientFill,V=C.anyFill,N=C.anyLine,B=w[0],H=B.trace,q=s(H),te=q.colorscale,K=q.reversescale,J=t.hasMarkers(H)||!V?"M5,0":N?"M5,-2":"M5,-3",Y=M.select(this),W=Y.select(".legendfill").selectAll("path").data(P||O?[w]:[]);if(W.enter().append("path").classed("js-fill",!0),W.exit().remove(),W.attr("d",J+"h"+m+"v6h-"+m+"z").call(function(ie){if(ie.size())if(P)b.fillGroupStyle(ie,c);else{var oe="legendfill-"+H.uid;b.gradient(ie,c,oe,o(K),te,"fill")}}),R||G){var Q=_(void 0,H.line,10,5);L=l.minExtend(H,{line:{width:Q}}),E=[l.minExtend(B,{trace:L})]}var re=Y.select(".legendlines").selectAll("path").data(R||G?[E]:[]);re.enter().append("path").classed("js-line",!0),re.exit().remove(),re.attr("d",J+(G?"l"+m+",0.0001":"h"+m)).call(R?b.lineGroupStyle:function(ie){if(ie.size()){var oe="legendline-"+H.uid;b.lineGroupStyle(ie),b.gradient(ie,c,oe,o(K),te,"stroke")}})}).each(function(w){var E,L,C=a(w),P=C.anyFill,R=C.anyLine,G=C.showLine,O=C.showMarker,V=w[0],N=V.trace,B=!O&&!R&&!P&&t.hasText(N);function H(re,ie,oe,ce){var pe=l.nestedProperty(N,re).get(),ge=l.isArrayOrTypedArray(pe)&&ie?ie(pe):pe;if(h&&ge&&ce!==void 0&&(ge=ce),oe){if(geoe[1])return oe[1]}return ge}function q(re){return V._distinct&&V.index&&re[V.index]?re[V.index]:re[0]}if(O||B||G){var te={},K={};if(O){te.mc=H("marker.color",q),te.mx=H("marker.symbol",q),te.mo=H("marker.opacity",l.mean,[.2,1]),te.mlc=H("marker.line.color",q),te.mlw=H("marker.line.width",l.mean,[0,5],2),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var J=H("marker.size",l.mean,[2,16],12);te.ms=J,K.marker.size=J}G&&(K.line={width:H("line.width",q,[0,10],5)}),B&&(te.tx="Aa",te.tp=H("textposition",q),te.ts=10,te.tc=H("textfont.color",q),te.tf=H("textfont.family",q)),E=[l.minExtend(V,te)],(L=l.minExtend(N,K)).selectedpoints=null,L.texttemplate=null}var Y=M.select(this).select("g.legendpoints"),W=Y.selectAll("path.scatterpts").data(O?E:[]);W.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",y),W.exit().remove(),W.call(b.pointStyle,L,c),O&&(E[0].mrc=3);var Q=Y.selectAll("g.pointtext").data(B?E:[]);Q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",y),Q.exit().remove(),Q.selectAll("text").call(b.textPointStyle,L,c)}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[w,w]:[]);L.enter().append("path").classed("legendcandle",!0).attr("d",function(C,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("stroke-width",O+"px").call(d.fill,G.fillcolor),O&&d.stroke(R,G.line.color)})}).each(function(w){var E=w[0].trace,L=M.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[w,w]:[]);L.enter().append("path").classed("legendohlc",!0).attr("d",function(C,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",y).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(C,P){var R=M.select(this),G=E[P?"increasing":"decreasing"],O=_(void 0,G.line,5,2);R.style("fill","none").call(b.dashLine,G.line.dash,O),O&&d.stroke(R,G.line.color)})})}},42068:function(ee,z,e){e(93348),ee.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(ee,z,e){var M=e(73972),k=e(74875),l=e(41675),T=e(24255),b=e(34031).eraseActiveShape,d=e(71828),s=d._,t=ee.exports={};function i(g,h){var m,v,y=h.currentTarget,_=y.getAttribute("data-attr"),f=y.getAttribute("data-val")||!0,S=g._fullLayout,w={},E=l.list(g,null,!0),L=S._cartesianSpikesEnabled;if(_==="zoom"){var C,P=f==="in"?.5:2,R=(1+P)/2,G=(1-P)/2;for(v=0;v1?(J=["toggleHover"],Y=["resetViews"]):w?(K=["zoomInGeo","zoomOutGeo"],J=["hoverClosestGeo"],Y=["resetGeo"]):S?(J=["hoverClosest3d"],Y=["resetCameraDefault3d","resetCameraLastSave3d"]):R?(K=["zoomInMapbox","zoomOutMapbox"],J=["toggleHover"],Y=["resetViewMapbox"]):C?J=["hoverClosestGl2d"]:E?J=["hoverClosestPie"]:V?(J=["hoverClosestCartesian","hoverCompareCartesian"],Y=["resetViewSankey"]):J=["toggleHover"],f&&(J=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(pe){for(var ge=0;ge0)){var c=function(g,h,m){for(var v=m.filter(function(S){return h[S].anchor===g._id}),y=0,_=0;_=ye.max)ge=ie[we+1];else if(pe=ye.pmax)ge=ie[we+1];else if(pewe._length||_e+Re<0)return;be=Ee+Re,Ce=_e+Re;break;case Oe:if(Fe="col-resize",Ee+Re>we._length)return;be=Ee+Re,Ce=_e;break;case ke:if(Fe="col-resize",_e+Re<0)return;be=Ee,Ce=_e+Re;break;default:Fe="ew-resize",be=ve,Ce=ve+Re}if(Ce=0;C--){var P=h.append("path").attr(v).style("opacity",C?.1:y).call(T.stroke,f).call(T.fill,_).call(b.dashLine,C?"solid":w,C?4+S:S);if(o(P,u,x),E){var R=d(u.layout,"selections",x);P.style({cursor:"move"});var G={element:P.node(),plotinfo:g,gd:u,editHelpers:R,isActiveSelection:!0},O=M(m,u);k(O,P,G)}else P.style("pointer-events",C?"all":"none");L[C]=P}var V=L[0];L[1].node().addEventListener("click",function(){return function(N,B){if(r(N)){var H=+B.node().getAttribute("data-index");if(H>=0){if(H===N._fullLayout._activeSelectionIndex)return void a(N);N._fullLayout._activeSelectionIndex=H,N._fullLayout._deactivateSelection=a,i(N)}}}(u,V)})}(u._fullLayout._selectionLayer)}function o(u,p,c){var x=c.xref+c.yref;b.setClipUrl(u,"clip"+p._fullLayout._uid+x,p)}function a(u){r(u)&&u._fullLayout._activeSelectionIndex>=0&&(l(u),delete u._fullLayout._activeSelectionIndex,i(u))}ee.exports={draw:i,drawOne:n,activateLastSelection:function(u){if(r(u)){var p=u._fullLayout.selections.length-1;u._fullLayout._activeSelectionIndex=p,u._fullLayout._deactivateSelection=a,i(u)}}}},53777:function(ee,z,e){var M=e(79952).P,k=e(1426).extendFlat;ee.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:k({},M,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(ee){ee.exports=function(z,e,M){M("newselection.mode"),M("newselection.line.width")&&(M("newselection.line.color"),M("newselection.line.dash")),M("activeselection.fillcolor"),M("activeselection.opacity")}},35855:function(ee,z,e){var M=e(64505).selectMode,k=e(51873).clearOutline,l=e(60165),T=l.readPaths,b=l.writePaths,d=l.fixDatesForPaths;ee.exports=function(s,t){if(s.length){var i=s[0][0];if(i){var r=i.getAttribute("d"),n=t.gd,o=n._fullLayout.newselection,a=t.plotinfo,u=a.xaxis,p=a.yaxis,c=t.isActiveSelection,x=t.dragmode,g=(n.layout||{}).selections||[];if(!M(x)&&c!==void 0){var h=n._fullLayout._activeSelectionIndex;if(h-1,Pt=[];if(function(We){return We&&Array.isArray(We)&&We[0].hoverOnBox!==!0}(Tt)){Q(fe,Me,Re);var Mt=function(We,nt){var rt,Ie,De=We[0],et=-1,tt=[];for(Ie=0;Ie0?function(We,nt){var rt,Ie,De,et=[];for(De=0;De0&&et.push(rt);if(et.length===1&&et[0]===nt.searchInfo&&(Ie=nt.searchInfo.cd[0].trace).selectedpoints.length===nt.pointNumbers.length){for(De=0;De1||(Ie+=nt.selectedpoints.length)>1))return!1;return Ie===1}(Ge)&&(xt=pe(Mt))){for(He&&He.remove(),mt=0;mt=0})(Fe)&&Fe._fullLayout._deactivateShape(Fe),function(vt){return vt._fullLayout._activeSelectionIndex>=0}(Fe)&&Fe._fullLayout._deactivateSelection(Fe);var Re=Fe._fullLayout._zoomlayer,He=n(be),Ge=a(be);if(He||Ge){var Ke,at,Qe=Re.selectAll(".select-outline-"+Ce.id);Qe&&Fe._fullLayout._outlining&&(He&&(Ke=v(Qe,fe)),Ke&&l.call("_guiRelayout",Fe,{shapes:Ke}),Ge&&!te(fe)&&(at=y(Qe,fe)),at&&(Fe._fullLayout._noEmitSelectedAtStart=!0,l.call("_guiRelayout",Fe,{selections:at}).then(function(){Me&&_(Fe)})),Fe._fullLayout._outlining=!1)}Ce.selection={},Ce.selection.selectionDefs=fe.selectionDefs=[],Ce.selection.mergedPolygons=fe.mergedPolygons=[]}function ie(fe){return fe._id}function oe(fe,Me,be,Ce){if(!fe.calcdata)return[];var Fe,Re,He,Ge=[],Ke=Me.map(ie),at=be.map(ie);for(He=0;He0?Ce[0]:be;return!!Me.selectedpoints&&Me.selectedpoints.indexOf(Fe)>-1}function ge(fe,Me,be){var Ce,Fe;for(Ce=0;Ce-1&&Me;if(!Re&&Me){var nn=se(fe,!0);if(nn.length){var Jt=nn[0].xref,rn=nn[0].yref;if(Jt&&rn){var fn=Ee(nn);_e([L(fe,Jt,"x"),L(fe,rn,"y")])(un,fn)}}fe._fullLayout._noEmitSelectedAtStart?fe._fullLayout._noEmitSelectedAtStart=!1:jt&&ze(fe,un),xt._reselect=!1}if(!Re&&xt._deselect){var vn=xt._deselect;(function(Mn,En,bn){for(var Ln=0;Ln=0)st._fullLayout._deactivateShape(st);else if(!at){var fn=ot.clickmode;E.done(yn).then(function(){if(E.clear(yn),Jt===2){for(Dt.remove(),De=0;De-1&&K(rn,st,Ce.xaxes,Ce.yaxes,Ce.subplot,Ce,Dt),fn==="event"&&ze(st,void 0);d.click(st,rn)}).catch(f.error)}},Ce.doneFn=function(){Ht.remove(),E.done(yn).then(function(){E.clear(yn),!mt&&Ie&&Ce.selectionDefs&&(Ie.subtract=Rt,Ce.selectionDefs.push(Ie),Ce.mergedPolygons.length=0,[].push.apply(Ce.mergedPolygons,rt)),(mt||at)&&re(Ce,mt),Ce.doneFnCompleted&&Ce.doneFnCompleted(un),Qe&&ze(st,tt)}).catch(f.error)}},clearOutline:x,clearSelectionsCache:re,selectOnClick:K}},89827:function(ee,z,e){var M=e(50215),k=e(41940),l=e(82196).line,T=e(79952).P,b=e(1426).extendFlat,d=e(44467).templatedArray,s=(e(24695),e(9012)),t=e(5386).R,i=e(37281);ee.exports=d("shape",{visible:b({},s.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:b({},s.legend,{editType:"calc+arraydraw"}),legendgroup:b({},s.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:b({},s.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:k({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:b({},s.legendrank,{editType:"calc+arraydraw"}),legendwidth:b({},s.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:b({},M.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:b({},M.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:b({},l.color,{editType:"arraydraw"}),width:b({},l.width,{editType:"calc+arraydraw"}),dash:b({},T,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:t({},{keys:Object.keys(i)}),font:k({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(ee,z,e){var M=e(71828),k=e(89298),l=e(21459),T=e(30477);function b(i){return s(i.line.width,i.xsizemode,i.x0,i.x1,i.path,!1)}function d(i){return s(i.line.width,i.ysizemode,i.y0,i.y1,i.path,!0)}function s(i,r,n,o,a,u){var p=i/2,c=u;if(r==="pixel"){var x=a?T.extractPathCoords(a,u?l.paramIsY:l.paramIsX):[n,o],g=M.aggNums(Math.max,null,x),h=M.aggNums(Math.min,null,x),m=h<0?Math.abs(h)+p:p,v=g>0?g+p:p;return{ppad:p,ppadplus:c?m:v,ppadminus:c?v:m}}return{ppad:p}}function t(i,r,n,o,a){var u=i.type==="category"||i.type==="multicategory"?i.r2c:i.d2c;if(r!==void 0)return[u(r),u(n)];if(o){var p,c,x,g,h=1/0,m=-1/0,v=o.match(l.segmentRE);for(i.type==="date"&&(u=T.decodeDate(u)),p=0;pm&&(m=g)));return m>=h?[h,m]:void 0}}ee.exports=function(i){var r=i._fullLayout,n=M.filterVisible(r.shapes);if(n.length&&i._fullData.length)for(var o=0;o=ie?oe-pe:pe-oe,-180/Math.PI*Math.atan2(ge,we)}(m,y,v,_):0),w.call(function(ie){return ie.call(T.font,S).attr({}),l.convertToTspans(ie,r),ie});var Y=function(ie,oe,ce,pe,ge,we,ye){var me,Oe,ke,Te,le=ge.label.textposition,se=ge.label.textangle,ne=ge.label.padding,ve=ge.type,Ee=Math.PI/180*we,_e=Math.sin(Ee),ze=Math.cos(Ee),Ne=ge.label.xanchor,fe=ge.label.yanchor;if(ve==="line"){le==="start"?(me=ie,Oe=oe):le==="end"?(me=ce,Oe=pe):(me=(ie+ce)/2,Oe=(oe+pe)/2),Ne==="auto"&&(Ne=le==="start"?se==="auto"?ce>ie?"left":ceie?"right":ceie?"right":ceie?"left":ce1&&(me.length!==2||me[1][0]!=="Z")&&(V===0&&(me[0][0]="M"),f[O]=me,C(),P())}}()}}function ie(ge,we){(function(ye,me){if(f.length)for(var Oe=0;OeOe?(le=ye,Ee="y0",se=Oe,_e="y1"):(le=Oe,Ee="y1",se=ye,_e="y0"),Ye(rt),We(pe,oe),function(Ie,De,et){var tt=De.xref,gt=De.yref,ht=T.getFromId(et,tt),dt=T.getFromId(et,gt),ct="";tt==="paper"||ht.autorange||(ct+=tt),gt==="paper"||dt.autorange||(ct+=gt),r.setClipUrl(Ie,ct?"clip"+et._fullLayout._uid+ct:null,et)}(ie,oe,re),Mt.moveFn=Me==="move"?Xe:Ve,Mt.altKey=rt.altKey)},doneFn:function(){g(re)||(a(ie),nt(pe),v(ie,re,oe),k.call("_guiRelayout",re,ge.getUpdateObj()))},clickFn:function(){g(re)||nt(pe)}};function Ye(rt){if(g(re))Me=null;else if(He)Me=rt.target.tagName==="path"?"move":rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ie=Mt.element.getBoundingClientRect(),De=Ie.right-Ie.left,et=Ie.bottom-Ie.top,tt=rt.clientX-Ie.left,gt=rt.clientY-Ie.top,ht=!Ge&&De>be&&et>Ce&&!rt.shiftKey?o.getCursor(tt/De,1-gt/et):"move";a(ie,ht),Me=ht.split("-")[0]}}function Xe(rt,Ie){if(oe.type==="path"){var De=function(gt){return gt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(gt){return Tt(ot(gt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(gt){return wt(mt(gt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(Ke("x0",oe.x0=Tt(we+rt)),Ke("x1",oe.x1=Tt(me+rt))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(Ke("y0",oe.y0=wt(ye+Ie)),Ke("y1",oe.y1=wt(Oe+Ie)));ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function Ve(rt,Ie){if(Ge){var De=function(Wt){return Wt},et=De,tt=De;Fe?Ke("xanchor",oe.xanchor=Tt(ke+rt)):(et=function(Wt){return Tt(ot(Wt)+rt)},Qe&&Qe.type==="date"&&(et=p.encodeDate(et))),Re?Ke("yanchor",oe.yanchor=wt(Te+Ie)):(tt=function(Wt){return wt(mt(Wt)+Ie)},xt&&xt.type==="date"&&(tt=p.encodeDate(tt))),Ke("path",oe.path=y(fe,et,tt))}else if(He){if(Me==="resize-over-start-point"){var gt=we+rt,ht=Re?ye-Ie:ye+Ie;Ke("x0",oe.x0=Fe?gt:Tt(gt)),Ke("y0",oe.y0=Re?ht:wt(ht))}else if(Me==="resize-over-end-point"){var dt=me+rt,ct=Re?Oe-Ie:Oe+Ie;Ke("x1",oe.x1=Fe?dt:Tt(dt)),Ke("y1",oe.y1=Re?ct:wt(ct))}}else{var kt=function(Wt){return Me.indexOf(Wt)!==-1},ut=kt("n"),ft=kt("s"),bt=kt("w"),It=kt("e"),Rt=ut?le+Ie:le,Dt=ft?se+Ie:se,Kt=bt?ne+rt:ne,qt=It?ve+rt:ve;Re&&(ut&&(Rt=le-Ie),ft&&(Dt=se-Ie)),(!Re&&Dt-Rt>Ce||Re&&Rt-Dt>Ce)&&(Ke(Ee,oe[Ee]=Re?Rt:wt(Rt)),Ke(_e,oe[_e]=Re?Dt:wt(Dt))),qt-Kt>be&&(Ke(ze,oe[ze]=Fe?Kt:Tt(Kt)),Ke(Ne,oe[Ne]=Fe?qt:Tt(qt)))}ie.attr("d",c(re,oe)),We(pe,oe),s(re,ce,oe,at)}function We(rt,Ie){(Fe||Re)&&function(){var De=Ie.type!=="path",et=rt.selectAll(".visual-cue").data([0]);et.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var tt=ot(Fe?Ie.xanchor:l.midRange(De?[Ie.x0,Ie.x1]:p.extractPathCoords(Ie.path,u.paramIsX))),gt=mt(Re?Ie.yanchor:l.midRange(De?[Ie.y0,Ie.y1]:p.extractPathCoords(Ie.path,u.paramIsY)));if(tt=p.roundPositionForSharpStrokeRendering(tt,1),gt=p.roundPositionForSharpStrokeRendering(gt,1),Fe&&Re){var ht="M"+(tt-1-1)+","+(gt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";et.attr("d",ht)}else if(Fe){var dt="M"+(tt-1-1)+","+(gt-9-1)+"v18 h2 v-18 Z";et.attr("d",dt)}else{var ct="M"+(tt-9-1)+","+(gt-1-1)+"h18 v2 h-18 Z";et.attr("d",ct)}}()}function nt(rt){rt.selectAll(".visual-cue").remove()}o.init(Mt),Pt.node().onmousemove=Ye}(f,Y,E,S,P,K):E.editable===!0&&Y.style("pointer-events",q||i.opacity(V)*O<=.5?"stroke":"all");Y.node().addEventListener("click",function(){return function(re,ie){if(h(re)){var oe=+ie.node().getAttribute("data-index");if(oe>=0){if(oe===re._fullLayout._activeShapeIndex)return void _(re);re._fullLayout._activeShapeIndex=oe,re._fullLayout._deactivateShape=_,x(re)}}}(f,Y)})}E._input&&E.visible===!0&&(E.layer!=="below"?C(f._fullLayout._shapeUpperLayer):E.xref==="paper"||E.yref==="paper"?C(f._fullLayout._shapeLowerLayer):L._hadPlotinfo?C((L.mainplotinfo||L).shapelayer):C(f._fullLayout._shapeLowerLayer))}function v(f,S,w){var E=(w.xref+w.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");r.setClipUrl(f,E?"clip"+S._fullLayout._uid+E:null,S)}function y(f,S,w){return f.replace(u.segmentRE,function(E){var L=0,C=E.charAt(0),P=u.paramIsX[C],R=u.paramIsY[C],G=u.numParams[C];return C+E.substr(1).replace(u.paramRE,function(O){return L>=G||(P[L]?O=S(O):R[L]&&(O=w(O)),L++),O})})}function _(f){h(f)&&f._fullLayout._activeShapeIndex>=0&&(t(f),delete f._fullLayout._activeShapeIndex,x(f))}ee.exports={draw:x,drawOne:m,eraseActiveShape:function(f){if(h(f)){t(f);var S=f._fullLayout._activeShapeIndex,w=(f.layout||{}).shapes||[];if(S0&&mJ&&(W="X"),W});return H>J&&(Y=Y.replace(/[\s,]*X.*/,""),k.log("Ignoring extra params in segment "+B)),q+Y})}(b,s,i);if(b.xsizemode==="pixel"){var m=s(b.xanchor);r=m+b.x0,n=m+b.x1}else r=s(b.x0),n=s(b.x1);if(b.ysizemode==="pixel"){var v=i(b.yanchor);o=v-b.y0,a=v-b.y1}else o=i(b.y0),a=i(b.y1);if(u==="line")return"M"+r+","+o+"L"+n+","+a;if(u==="rect")return"M"+r+","+o+"H"+n+"V"+a+"H"+r+"Z";var y=(r+n)/2,_=(o+a)/2,f=Math.abs(y-r),S=Math.abs(_-o),w="A"+f+","+S,E=y+f+","+_;return"M"+E+w+" 0 1,1 "+y+","+(_-S)+w+" 0 0,1 "+E+"Z"}},89853:function(ee,z,e){var M=e(34031);ee.exports={moduleType:"component",name:"shapes",layoutAttributes:e(89827),supplyLayoutDefaults:e(84726),supplyDrawNewShapeDefaults:e(45547),includeBasePlot:e(76325)("shapes"),calcAutorange:e(5627),draw:M.draw,drawOne:M.drawOne}},37281:function(ee){function z(l,T){return T?T.d2l(l):l}function e(l,T){return T?T.l2d(l):l}function M(l,T){return z(l.x1,T)-z(l.x0,T)}function k(l,T,b){return z(l.y1,b)-z(l.y0,b)}ee.exports={x0:function(l){return l.x0},x1:function(l){return l.x1},y0:function(l){return l.y0},y1:function(l){return l.y1},slope:function(l,T,b){return l.type!=="line"?void 0:k(l,0,b)/M(l,T)},dx:M,dy:k,width:function(l,T){return Math.abs(M(l,T))},height:function(l,T,b){return Math.abs(k(l,0,b))},length:function(l,T,b){return l.type!=="line"?void 0:Math.sqrt(Math.pow(M(l,T),2)+Math.pow(k(l,0,b),2))},xcenter:function(l,T){return e((z(l.x1,T)+z(l.x0,T))/2,T)},ycenter:function(l,T,b){return e((z(l.y1,b)+z(l.y0,b))/2,b)}}},75067:function(ee,z,e){var M=e(41940),k=e(35025),l=e(1426).extendDeepAll,T=e(30962).overrideAll,b=e(85594),d=e(44467).templatedArray,s=e(98292),t=d("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:t,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:l(k({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:b.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:M({})},font:M({}),activebgcolor:{valType:"color",dflt:s.gripBgActiveColor},bgcolor:{valType:"color",dflt:s.railBgColor},bordercolor:{valType:"color",dflt:s.railBorderColor},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth},ticklen:{valType:"number",min:0,dflt:s.tickLength},tickcolor:{valType:"color",dflt:s.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength}}),"arraydraw","from-root")},98292:function(ee){ee.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(ee,z,e){var M=e(71828),k=e(85501),l=e(75067),T=e(98292).name,b=l.steps;function d(t,i,r){function n(c,x){return M.coerce(t,i,l,c,x)}for(var o=k(t,i,{name:"steps",handleItemDefaults:s}),a=0,u=0;u0&&(H=H.transition().duration(R.transition.duration).ease(R.transition.easing)),H.attr("transform",d(B-.5*i.gripWidth,R._dims.currentValueTotalHeight))}}function w(P,R){var G=P._dims;return G.inputAreaStart+i.stepInset+(G.inputAreaLength-2*i.stepInset)*Math.min(1,Math.max(0,R))}function E(P,R){var G=P._dims;return Math.min(1,Math.max(0,(R-i.stepInset-G.inputAreaStart)/(G.inputAreaLength-2*i.stepInset-2*G.inputAreaStart)))}function L(P,R,G){var O=G._dims,V=b.ensureSingle(P,"rect",i.railTouchRectClass,function(N){N.call(_,R,P,G).style("pointer-events","all")});V.attr({width:O.inputAreaLength,height:Math.max(O.inputAreaWidth,i.tickOffset+G.ticklen+O.labelHeight)}).call(l.fill,G.bgcolor).attr("opacity",0),T.setTranslate(V,0,O.currentValueTotalHeight)}function C(P,R){var G=R._dims,O=G.inputAreaLength-2*i.railInset,V=b.ensureSingle(P,"rect",i.railRectClass);V.attr({width:O,height:i.railWidth,rx:i.railRadius,ry:i.railRadius,"shape-rendering":"crispEdges"}).call(l.stroke,R.bordercolor).call(l.fill,R.bgcolor).style("stroke-width",R.borderwidth+"px"),T.setTranslate(V,i.railInset,.5*(G.inputAreaWidth-i.railWidth)+G.currentValueTotalHeight)}ee.exports=function(P){var R=P._context.staticPlot,G=P._fullLayout,O=function(te,K){for(var J=te[i.name],Y=[],W=0;W0?[0]:[]);function N(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),k.autoMargin(P,u(te))}if(V.enter().append("g").classed(i.containerClassName,!0).style("cursor",R?null:"ew-resize"),V.exit().each(function(){M.select(this).selectAll("g."+i.groupClassName).each(N)}).remove(),O.length!==0){var B=V.selectAll("g."+i.groupClassName).data(O,p);B.enter().append("g").classed(i.groupClassName,!0),B.exit().each(N).remove();for(var H=0;H0||me<0){var le={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[v.side];Y.attr("transform",d(le[0],le[1]))}}}return H.call(q),V&&(C?H.on(".opacity",null):(w=0,E=!0,H.text(h).on("mouseover.opacity",function(){M.select(this).transition().duration(r.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){M.select(this).transition().duration(r.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(i.makeEditable,{gd:a}).on("edit",function(J){m!==void 0?T.call("_guiRestyle",a,g,J,m):T.call("_guiRelayout",a,g,J)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(q)}).on("input",function(J){this.text(J||" ").call(i.positionText,y.x,y.y)})),H.classed("js-placeholder",E),f}}},7163:function(ee,z,e){var M=e(41940),k=e(22399),l=e(1426).extendFlat,T=e(30962).overrideAll,b=e(35025),d=e(44467).templatedArray,s=d("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});ee.exports=T(d("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:s,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:l(b({editType:"arraydraw"}),{}),font:M({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:k.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(ee){ee.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}},64897:function(ee,z,e){var M=e(71828),k=e(85501),l=e(7163),T=e(75909).name,b=l.buttons;function d(t,i,r){function n(o,a){return M.coerce(t,i,l,o,a)}n("visible",k(t,i,{name:"buttons",handleItemDefaults:s}).length>0)&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),M.noneOrAll(t,i,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),M.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function s(t,i){function r(n,o){return M.coerce(t,i,b,n,o)}r("visible",t.method==="skip"||Array.isArray(t.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}ee.exports=function(t,i){k(t,i,{name:T,handleItemDefaults:d})}},13689:function(ee,z,e){var M=e(39898),k=e(74875),l=e(7901),T=e(91424),b=e(71828),d=e(63893),s=e(44467).arrayEditor,t=e(18783).LINE_SPACING,i=e(75909),r=e(25849);function n(w){return w._index}function o(w,E){return+w.attr(i.menuIndexAttrName)===E._index}function a(w,E,L,C,P,R,G,O){E.active=G,s(w.layout,i.name,E).applyUpdate("active",G),E.type==="buttons"?p(w,C,null,null,E):E.type==="dropdown"&&(P.attr(i.menuIndexAttrName,"-1"),u(w,C,P,R,E),O||p(w,C,P,R,E))}function u(w,E,L,C,P){var R=b.ensureSingle(E,"g",i.headerClassName,function(H){H.style("pointer-events","all")}),G=P._dims,O=P.active,V=P.buttons[O]||i.blankHeaderOpts,N={y:P.pad.t,yPad:0,x:P.pad.l,xPad:0,index:0},B={width:G.headerWidth,height:G.headerHeight};R.call(c,P,V,w).call(f,P,N,B),b.ensureSingle(E,"text",i.headerArrowClassName,function(H){H.attr("text-anchor","end").call(T.font,P.font).text(i.arrowSymbol[P.direction])}).attr({x:G.headerWidth-i.arrowOffsetX+P.pad.l,y:G.headerHeight/2+i.textOffsetY+P.pad.t}),R.on("click",function(){L.call(S,String(o(L,P)?-1:P._index)),p(w,E,L,C,P)}),R.on("mouseover",function(){R.call(m)}),R.on("mouseout",function(){R.call(v,P)}),T.setTranslate(E,G.lx,G.ly)}function p(w,E,L,C,P){L||(L=E).attr("pointer-events","all");var R=function(Y){return+Y.attr(i.menuIndexAttrName)==-1}(L)&&P.type!=="buttons"?[]:P.buttons,G=P.type==="dropdown"?i.dropdownButtonClassName:i.buttonClassName,O=L.selectAll("g."+G).data(b.filterVisible(R)),V=O.enter().append("g").classed(G,!0),N=O.exit();P.type==="dropdown"?(V.attr("opacity","0").transition().attr("opacity","1"),N.transition().attr("opacity","0").remove()):N.remove();var B=0,H=0,q=P._dims,te=["up","down"].indexOf(P.direction)!==-1;P.type==="dropdown"&&(te?H=q.headerHeight+i.gapButtonHeader:B=q.headerWidth+i.gapButtonHeader),P.type==="dropdown"&&P.direction==="up"&&(H=-i.gapButtonHeader+i.gapButton-q.openHeight),P.type==="dropdown"&&P.direction==="left"&&(B=-i.gapButtonHeader+i.gapButton-q.openWidth);var K={x:q.lx+B+P.pad.l,y:q.ly+H+P.pad.t,yPad:i.gapButton,xPad:i.gapButton,index:0},J={l:K.x+P.borderwidth,t:K.y+P.borderwidth};O.each(function(Y,W){var Q=M.select(this);Q.call(c,P,Y,w).call(f,P,K),Q.on("click",function(){M.event.defaultPrevented||(Y.execute&&(Y.args2&&P.active===W?(a(w,P,0,E,L,C,-1),k.executeAPICommand(w,Y.method,Y.args2)):(a(w,P,0,E,L,C,W),k.executeAPICommand(w,Y.method,Y.args))),w.emit("plotly_buttonclicked",{menu:P,button:Y,active:P.active}))}),Q.on("mouseover",function(){Q.call(m)}),Q.on("mouseout",function(){Q.call(v,P),O.call(h,P)})}),O.call(h,P),te?(J.w=Math.max(q.openWidth,q.headerWidth),J.h=K.y-J.t):(J.w=K.x-J.l,J.h=Math.max(q.openHeight,q.headerHeight)),J.direction=P.direction,C&&(O.size()?function(Y,W,Q,re,ie,oe){var ce,pe,ge,we=ie.direction,ye=we==="up"||we==="down",me=ie._dims,Oe=ie.active;if(ye)for(pe=0,ge=0;ge0?[0]:[]);if(P.enter().append("g").classed(i.containerClassName,!0).style("cursor","pointer"),P.exit().each(function(){M.select(this).selectAll("g."+i.headerGroupClassName).each(C)}).remove(),L.length!==0){var R=P.selectAll("g."+i.headerGroupClassName).data(L,n);R.enter().append("g").classed(i.headerGroupClassName,!0);for(var G=b.ensureSingle(P,"g",i.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),O=0;Of,E=b.barLength+2*b.barPad,L=b.barWidth+2*b.barPad,C=c,P=g+h;P+L>n&&(P=n-L);var R=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(k.fill,b.barColor),w?(this.hbar=R.attr({rx:b.barRadius,ry:b.barRadius,x:C,y:P,width:E,height:L}),this._hbarXMin=C+E/2,this._hbarTranslateMax=f-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var G=h>S,O=b.barWidth+2*b.barPad,V=b.barLength+2*b.barPad,N=c+x,B=g;N+O>r&&(N=r-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(G?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(k.fill,b.barColor),G?(this.vbar=H.attr({rx:b.barRadius,ry:b.barRadius,x:N,y:B,width:O,height:V}),this._vbarYMin=B+V/2,this._vbarTranslateMax=S-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var q=this.id,te=o-.5,K=G?a+O+.5:a+.5,J=u-.5,Y=w?p+L+.5:p+.5,W=i._topdefs.selectAll("#"+q).data(w||G?[0]:[]);if(W.exit().remove(),W.enter().append("clipPath").attr("id",q).append("rect"),w||G?(this._clipRect=W.select("rect").attr({x:Math.floor(te),y:Math.floor(J),width:Math.ceil(K)-Math.floor(te),height:Math.ceil(Y)-Math.floor(J)}),this.container.call(l.setClipUrl,q,this.gd),this.bg.attr({x:c,y:g,width:x,height:h})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),w||G){var Q=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var re=M.behavior.drag().on("dragstart",function(){M.event.sourceEvent.preventDefault(),M.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(re),G&&this.vbar.on(".drag",null).call(re)}this.setTranslate(s,t)},b.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},b.prototype._onBoxDrag=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d-=M.event.dx),this.vbar&&(s-=M.event.dy),this.setTranslate(d,s)},b.prototype._onBoxWheel=function(){var d=this.translateX,s=this.translateY;this.hbar&&(d+=M.event.deltaY),this.vbar&&(s+=M.event.deltaY),this.setTranslate(d,s)},b.prototype._onBarDrag=function(){var d=this.translateX,s=this.translateY;if(this.hbar){var t=d+this._hbarXMin,i=t+this._hbarTranslateMax;d=(T.constrain(M.event.x,t,i)-t)/(i-t)*(this.position.w-this._box.w)}if(this.vbar){var r=s+this._vbarYMin,n=r+this._vbarTranslateMax;s=(T.constrain(M.event.y,r,n)-r)/(n-r)*(this.position.h-this._box.h)}this.setTranslate(d,s)},b.prototype.setTranslate=function(d,s){var t=this.position.w-this._box.w,i=this.position.h-this._box.h;if(d=T.constrain(d||0,0,t),s=T.constrain(s||0,0,i),this.translateX=d,this.translateY=s,this.container.call(l.setTranslate,this._box.l-this.position.l-d,this._box.t-this.position.t-s),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+d-.5),y:Math.floor(this.position.t+s-.5)}),this.hbar){var r=d/t;this.hbar.call(l.setTranslate,d+r*this._hbarTranslateMax,s)}if(this.vbar){var n=s/i;this.vbar.call(l.setTranslate,d,s+n*this._vbarTranslateMax)}}},18783:function(ee){ee.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(ee){ee.exports={axisRefDescription:function(z,e,M){return["If set to a",z,"axis id (e.g. *"+z+"* or","*"+z+"2*), the `"+z+"` position refers to a",z,"coordinate. If set to *paper*, the `"+z+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+M+"). If set to a",z,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+z+"2 domain* refers to the domain of the second",z," axis and a",z,"position of 0.5 refers to the","point between the",e,"and the",M,"of the domain of the","second",z,"axis."].join(" ")}}},22372:function(ee){ee.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}},31562:function(ee){ee.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(ee){ee.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},29659:function(ee){ee.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87381:function(ee){ee.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}},37822:function(ee){ee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(ee){ee.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},32396:function(ee,z){z.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],z.STYLE=z.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},77922:function(ee,z){z.xmlns="http://www.w3.org/2000/xmlns/",z.svg="http://www.w3.org/2000/svg",z.xlink="http://www.w3.org/1999/xlink",z.svgAttrs={xmlns:z.svg,"xmlns:xlink":z.xlink}},8729:function(ee,z,e){z.version=e(11506).version,e(7417),e(98847);for(var M=e(73972),k=z.register=M.register,l=e(10641),T=Object.keys(l),b=0;b",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(ee,z){z.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},z.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},z.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},z.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},z.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},z.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},26348:function(ee,z,e){var M=e(64872),k=M.mod,l=M.modHalf,T=Math.PI,b=2*T;function d(r){return Math.abs(r[1]-r[0])>b-1e-14}function s(r,n){return l(n-r,b)}function t(r,n){if(d(n))return!0;var o,a;n[0](a=k(a,b))&&(a+=b);var u=k(r,b),p=u+b;return u>=o&&u<=a||p>=o&&p<=a}function i(r,n,o,a,u,p,c){u=u||0,p=p||0;var x,g,h,m,v,y=d([o,a]);function _(E,L){return[E*Math.cos(L)+u,p-E*Math.sin(L)]}y?(x=0,g=T,h=b):o=u&&r<=p);var u,p},pathArc:function(r,n,o,a,u){return i(null,r,n,o,a,u,0)},pathSector:function(r,n,o,a,u){return i(null,r,n,o,a,u,1)},pathAnnulus:function(r,n,o,a,u,p){return i(r,n,o,a,u,p,1)}}},73627:function(ee,z){var e=Array.isArray,M=ArrayBuffer,k=DataView;function l(d){return M.isView(d)&&!(d instanceof k)}function T(d){return e(d)||l(d)}function b(d,s,t){if(T(d)){if(T(d[0])){for(var i=t,r=0;rp.max?a.set(u):a.set(+o)}},integer:{coerceFunction:function(o,a,u,p){o%1||!M(o)||p.min!==void 0&&op.max?a.set(u):a.set(+o)}},string:{coerceFunction:function(o,a,u,p){if(typeof o!="string"){var c=typeof o=="number";p.strict!==!0&&c?a.set(String(o)):a.set(u)}else p.noBlank&&!o?a.set(u):a.set(o)}},color:{coerceFunction:function(o,a,u){k(o).isValid()?a.set(o):a.set(u)}},colorlist:{coerceFunction:function(o,a,u){Array.isArray(o)&&o.length&&o.every(function(p){return k(p).isValid()})?a.set(o):a.set(u)}},colorscale:{coerceFunction:function(o,a,u){a.set(T.get(o,u))}},angle:{coerceFunction:function(o,a,u){o==="auto"?a.set("auto"):M(o)?a.set(i(+o,360)):a.set(u)}},subplotid:{coerceFunction:function(o,a,u,p){var c=p.regex||t(u);typeof o=="string"&&c.test(o)?a.set(o):a.set(u)},validateFunction:function(o,a){var u=a.dflt;return o===u||typeof o=="string"&&!!t(u).test(o)}},flaglist:{coerceFunction:function(o,a,u,p){if((p.extras||[]).indexOf(o)===-1)if(typeof o=="string"){for(var c=o.split("+"),x=0;x=M&&R<=k?R:t}if(typeof R!="string"&&typeof R!="number")return t;R=String(R);var B=h(G),H=R.charAt(0);!B||H!=="G"&&H!=="g"||(R=R.substr(1),G="");var q=B&&G.substr(0,7)==="chinese",te=R.match(q?x:c);if(!te)return t;var K=te[1],J=te[3]||"1",Y=Number(te[5]||1),W=Number(te[7]||0),Q=Number(te[9]||0),re=Number(te[11]||0);if(B){if(K.length===2)return t;var ie;K=Number(K);try{var oe=u.getComponentMethod("calendars","getCal")(G);if(q){var ce=J.charAt(J.length-1)==="i";J=parseInt(J,10),ie=oe.newDate(K,oe.toMonthIndex(K,J,ce),Y)}else ie=oe.newDate(K,Number(J),Y)}catch{return t}return ie?(ie.toJD()-a)*i+W*r+Q*n+re*o:t}K=K.length===2?(Number(K)+2e3-g)%100+g:Number(K),J-=1;var pe=new Date(Date.UTC(2e3,J,Y,W,Q));return pe.setUTCFullYear(K),pe.getUTCMonth()!==J||pe.getUTCDate()!==Y?t:pe.getTime()+re*o},M=z.MIN_MS=z.dateTime2ms("-9999"),k=z.MAX_MS=z.dateTime2ms("9999-12-31 23:59:59.9999"),z.isDateTime=function(R,G){return z.dateTime2ms(R,G)!==t};var v=90*i,y=3*r,_=5*n;function f(R,G,O,V,N){if((G||O||V||N)&&(R+=" "+m(G,2)+":"+m(O,2),(V||N)&&(R+=":"+m(V,2),N))){for(var B=4;N%10==0;)B-=1,N/=10;R+="."+m(N,B)}return R}z.ms2DateTime=function(R,G,O){if(typeof R!="number"||!(R>=M&&R<=k))return t;G||(G=0);var V,N,B,H,q,te,K=Math.floor(10*d(R+.05,1)),J=Math.round(R-K/10);if(h(O)){var Y=Math.floor(J/i)+a,W=Math.floor(d(R,i));try{V=u.getComponentMethod("calendars","getCal")(O).fromJD(Y).formatDate("yyyy-mm-dd")}catch{V=p("G%Y-%m-%d")(new Date(J))}if(V.charAt(0)==="-")for(;V.length<11;)V="-0"+V.substr(1);else for(;V.length<10;)V="0"+V;N=G=M+i&&R<=k-i))return t;var G=Math.floor(10*d(R+.05,1)),O=new Date(Math.round(R-G/10));return f(l("%Y-%m-%d")(O),O.getHours(),O.getMinutes(),O.getSeconds(),10*O.getUTCMilliseconds()+G)},z.cleanDate=function(R,G,O){if(R===t)return G;if(z.isJSDate(R)||typeof R=="number"&&isFinite(R)){if(h(O))return b.error("JS Dates and milliseconds are incompatible with world calendars",R),G;if(!(R=z.ms2DateTimeLocal(+R))&&G!==void 0)return G}else if(!z.isDateTime(R,O))return b.error("unrecognized date",R),G;return R};var S=/%\d?f/g,w=/%h/g,E={1:"1",2:"1",3:"2",4:"2"};function L(R,G,O,V){R=R.replace(S,function(B){var H=Math.min(+B.charAt(1)||6,6);return(G/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var N=new Date(Math.floor(G+.05));if(R=R.replace(w,function(){return E[O("%q")(N)]}),h(V))try{R=u.getComponentMethod("calendars","worldCalFmt")(R,G,V)}catch{return"Invalid"}return O(R)(N)}var C=[59,59.9,59.99,59.999,59.9999];z.formatDate=function(R,G,O,V,N,B){if(N=h(N)&&N,!G)if(O==="y")G=B.year;else if(O==="m")G=B.month;else{if(O!=="d")return function(H,q){var te=d(H+.05,i),K=m(Math.floor(te/r),2)+":"+m(d(Math.floor(te/n),60),2);if(q!=="M"){T(q)||(q=0);var J=(100+Math.min(d(H/o,60),C[q])).toFixed(q).substr(1);q>0&&(J=J.replace(/0+$/,"").replace(/[\.]$/,"")),K+=":"+J}return K}(R,O)+` `+L(B.dayMonthYear,R,V,N);G=B.dayMonth+` `+B.year}return L(G,R,V,N)};var P=3*i;z.incrementMonth=function(R,G,O){O=h(O)&&O;var V=d(R,i);if(R=Math.round(R-V),O)try{var N=Math.round(R/i)+a,B=u.getComponentMethod("calendars","getCal")(O),H=B.fromJD(N);return G%12?B.add(H,G,"m"):B.add(H,G/12,"y"),(H.toJD()-a)*i+V}catch{b.error("invalid ms "+R+" in calendar "+O)}var q=new Date(R+P);return q.setUTCMonth(q.getUTCMonth()+G)+V-P},z.findExactDates=function(R,G){for(var O,V,N=0,B=0,H=0,q=0,te=h(G)&&u.getComponentMethod("calendars","getCal")(G),K=0;K0&&f[S+1][0]<0)return S;return null}switch(p=v==="RUS"||v==="FJI"?function(f){var S;if(_(f)===null)S=f;else for(S=new Array(f.length),g=0;gS?w[E++]=[f[g][0]+360,f[g][1]]:g===S?(w[E++]=f[g],w[E++]=[f[g][0],-90]):w[E++]=f[g];var L=r.tester(w);L.pts.pop(),y.push(L)}:function(f){y.push(r.tester(f))},h.type){case"MultiPolygon":for(c=0;cO&&(O=B,P=N)}else P=R;return T.default(P).geometry.coordinates}(L),w.fIn=f,w.fOut=L,h.push(L)}else s.log(["Location",w.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete g[S]}switch(c.type){case"FeatureCollection":var y=c.features;for(x=0;x100?(clearInterval(S),_("Unexpected error while fetching from "+v)):void f++},50)})}for(var h=0;h0&&(T.push(b),b=[])}return b.length>0&&T.push(b),T},z.makeLine=function(k){return k.length===1?{type:"LineString",coordinates:k[0]}:{type:"MultiLineString",coordinates:k}},z.makePolygon=function(k){if(k.length===1)return{type:"Polygon",coordinates:k};for(var l=new Array(k.length),T=0;T1||y<0||y>1?null:{x:s+p*y,y:t+g*y}}function d(s,t,i,r,n){var o=r*s+n*t;if(o<0)return r*r+n*n;if(o>i){var a=r-s,u=n-t;return a*a+u*u}var p=r*t-n*s;return p*p/i}z.segmentsIntersect=b,z.segmentDistance=function(s,t,i,r,n,o,a,u){if(b(s,t,i,r,n,o,a,u))return 0;var p=i-s,c=r-t,x=a-n,g=u-o,h=p*p+c*c,m=x*x+g*g,v=Math.min(d(p,c,h,n-s,o-t),d(p,c,h,a-s,u-t),d(x,g,m,s-n,t-o),d(x,g,m,i-n,r-o));return Math.sqrt(v)},z.getTextLocation=function(s,t,i,r){if(s===k&&r===l||(M={},k=s,l=r),M[i])return M[i];var n=s.getPointAtLength(T(i-r/2,t)),o=s.getPointAtLength(T(i+r/2,t)),a=Math.atan((o.y-n.y)/(o.x-n.x)),u=s.getPointAtLength(T(i,t)),p={x:(4*u.x+n.x+o.x)/6,y:(4*u.y+n.y+o.y)/6,theta:a};return M[i]=p,p},z.clearLocationCache=function(){k=null},z.getVisibleSegment=function(s,t,i){var r,n,o=t.left,a=t.right,u=t.top,p=t.bottom,c=0,x=s.getTotalLength(),g=x;function h(v){var y=s.getPointAtLength(v);v===0?r=y:v===x&&(n=y);var _=y.xa?y.x-a:0,f=y.yp?y.y-p:0;return Math.sqrt(_*_+f*f)}for(var m=h(c);m;){if((c+=m+i)>g)return;m=h(c)}for(m=h(g);m;){if(c>(g-=m+i))return;m=h(g)}return{min:c,max:g,len:g-c,total:x,isClosed:c===0&&g===x&&Math.abs(r.x-n.x)<.1&&Math.abs(r.y-n.y)<.1}},z.findPointOnPath=function(s,t,i,r){for(var n,o,a,u=(r=r||{}).pathLength||s.getTotalLength(),p=r.tolerance||.001,c=r.iterationLimit||30,x=s.getPointAtLength(0)[i]>s.getPointAtLength(u)[i]?-1:1,g=0,h=0,m=u;g0?m=n:h=n,g++}return o}},81697:function(ee,z,e){var M=e(92770),k=e(84267),l=e(25075),T=e(21081),b=e(22399).defaultLine,d=e(73627).isArrayOrTypedArray,s=l(b);function t(n,o){var a=n;return a[3]*=o,a}function i(n){if(M(n))return s;var o=l(n);return o.length?o:s}function r(n){return M(n)?n:1}ee.exports={formatColor:function(n,o,a){var u,p,c,x,g,h=n.color,m=d(h),v=d(o),y=T.extractOpts(n),_=[];if(u=y.colorscale!==void 0?T.makeColorScaleFuncFromTrace(n):i,p=m?function(S,w){return S[w]===void 0?s:l(u(S[w]))}:i,c=v?function(S,w){return S[w]===void 0?1:r(S[w])}:r,m||v)for(var f=0;f1?(M*z+M*e)/M:z+e,l=String(k).length;if(l>16){var T=String(e).length;if(l>=String(z).length+T){var b=parseFloat(k).toPrecision(12);b.indexOf("e+")===-1&&(k=+b)}}return k}},71828:function(ee,z,e){var M=e(39898),k=e(84096).g0,l=e(60721).WU,T=e(92770),b=e(50606),d=b.FP_SAFE,s=-d,t=b.BADNUM,i=ee.exports={};i.adjustFormat=function(W){return!W||/^\d[.]\df/.test(W)||/[.]\d%/.test(W)?W:W==="0.f"?"~f":/^\d%/.test(W)?"~%":/^\ds/.test(W)?"~s":!/^[~,.0$]/.test(W)&&/[&fps]/.test(W)?"~"+W:W};var r={};i.warnBadFormat=function(W){var Q=String(W);r[Q]||(r[Q]=1,i.warn('encountered bad format: "'+Q+'"'))},i.noFormat=function(W){return String(W)},i.numberFormat=function(W){var Q;try{Q=l(i.adjustFormat(W))}catch{return i.warnBadFormat(W),i.noFormat}return Q},i.nestedProperty=e(65487),i.keyedContainer=e(66636),i.relativeAttr=e(6962),i.isPlainObject=e(41965),i.toLogRange=e(58163),i.relinkPrivateKeys=e(51332);var n=e(73627);i.isTypedArray=n.isTypedArray,i.isArrayOrTypedArray=n.isArrayOrTypedArray,i.isArray1D=n.isArray1D,i.ensureArray=n.ensureArray,i.concat=n.concat,i.maxRowLength=n.maxRowLength,i.minRowLength=n.minRowLength;var o=e(64872);i.mod=o.mod,i.modHalf=o.modHalf;var a=e(96554);i.valObjectMeta=a.valObjectMeta,i.coerce=a.coerce,i.coerce2=a.coerce2,i.coerceFont=a.coerceFont,i.coercePattern=a.coercePattern,i.coerceHoverinfo=a.coerceHoverinfo,i.coerceSelectionMarkerOpacity=a.coerceSelectionMarkerOpacity,i.validate=a.validate;var u=e(41631);i.dateTime2ms=u.dateTime2ms,i.isDateTime=u.isDateTime,i.ms2DateTime=u.ms2DateTime,i.ms2DateTimeLocal=u.ms2DateTimeLocal,i.cleanDate=u.cleanDate,i.isJSDate=u.isJSDate,i.formatDate=u.formatDate,i.incrementMonth=u.incrementMonth,i.dateTick0=u.dateTick0,i.dfltRange=u.dfltRange,i.findExactDates=u.findExactDates,i.MIN_MS=u.MIN_MS,i.MAX_MS=u.MAX_MS;var p=e(65888);i.findBin=p.findBin,i.sorterAsc=p.sorterAsc,i.sorterDes=p.sorterDes,i.distinctVals=p.distinctVals,i.roundUp=p.roundUp,i.sort=p.sort,i.findIndexOfMin=p.findIndexOfMin,i.sortObjectKeys=e(78607);var c=e(80038);i.aggNums=c.aggNums,i.len=c.len,i.mean=c.mean,i.median=c.median,i.midRange=c.midRange,i.variance=c.variance,i.stdev=c.stdev,i.interp=c.interp;var x=e(35657);i.init2dArray=x.init2dArray,i.transposeRagged=x.transposeRagged,i.dot=x.dot,i.translationMatrix=x.translationMatrix,i.rotationMatrix=x.rotationMatrix,i.rotationXYMatrix=x.rotationXYMatrix,i.apply3DTransform=x.apply3DTransform,i.apply2DTransform=x.apply2DTransform,i.apply2DTransform2=x.apply2DTransform2,i.convertCssMatrix=x.convertCssMatrix,i.inverseTransformMatrix=x.inverseTransformMatrix;var g=e(26348);i.deg2rad=g.deg2rad,i.rad2deg=g.rad2deg,i.angleDelta=g.angleDelta,i.angleDist=g.angleDist,i.isFullCircle=g.isFullCircle,i.isAngleInsideSector=g.isAngleInsideSector,i.isPtInsideSector=g.isPtInsideSector,i.pathArc=g.pathArc,i.pathSector=g.pathSector,i.pathAnnulus=g.pathAnnulus;var h=e(99863);i.isLeftAnchor=h.isLeftAnchor,i.isCenterAnchor=h.isCenterAnchor,i.isRightAnchor=h.isRightAnchor,i.isTopAnchor=h.isTopAnchor,i.isMiddleAnchor=h.isMiddleAnchor,i.isBottomAnchor=h.isBottomAnchor;var m=e(87642);i.segmentsIntersect=m.segmentsIntersect,i.segmentDistance=m.segmentDistance,i.getTextLocation=m.getTextLocation,i.clearLocationCache=m.clearLocationCache,i.getVisibleSegment=m.getVisibleSegment,i.findPointOnPath=m.findPointOnPath;var v=e(1426);i.extendFlat=v.extendFlat,i.extendDeep=v.extendDeep,i.extendDeepAll=v.extendDeepAll,i.extendDeepNoArrays=v.extendDeepNoArrays;var y=e(47769);i.log=y.log,i.warn=y.warn,i.error=y.error;var _=e(30587);i.counterRegex=_.counter;var f=e(79990);i.throttle=f.throttle,i.throttleDone=f.done,i.clearThrottle=f.clear;var S=e(24401);function w(W){var Q={};for(var re in W)for(var ie=W[re],oe=0;oed||W=Q)&&T(W)&&W>=0&&W%1==0},i.noop=e(64213),i.identity=e(23389),i.repeat=function(W,Q){for(var re=new Array(Q),ie=0;iere?Math.max(re,Math.min(Q,W)):Math.max(Q,Math.min(re,W))},i.bBoxIntersect=function(W,Q,re){return re=re||0,W.left<=Q.right+re&&Q.left<=W.right+re&&W.top<=Q.bottom+re&&Q.top<=W.bottom+re},i.simpleMap=function(W,Q,re,ie,oe){for(var ce=W.length,pe=new Array(ce),ge=0;ge=Math.pow(2,re)?oe>10?(i.warn("randstr failed uniqueness"),we):W(Q,re,ie,(oe||0)+1):we},i.OptionControl=function(W,Q){W||(W={}),Q||(Q="opt");var re={optionList:[],_newoption:function(ie){ie[Q]=W,re[ie.name]=ie,re.optionList.push(ie)}};return re["_"+Q]=W,re},i.smooth=function(W,Q){if((Q=Math.round(Q)||0)<2)return W;var re,ie,oe,ce,pe=W.length,ge=2*pe,we=2*Q-1,ye=new Array(we),me=new Array(pe);for(re=0;re=ge&&(oe-=ge*Math.floor(oe/ge)),oe<0?oe=-1-oe:oe>=pe&&(oe=ge-1-oe),ce+=W[oe]*ye[ie];me[re]=ce}return me},i.syncOrAsync=function(W,Q,re){var ie;function oe(){return i.syncOrAsync(W,Q,re)}for(;W.length;)if((ie=(0,W.splice(0,1)[0])(Q))&&ie.then)return ie.then(oe);return re&&re(Q)},i.stripTrailingSlash=function(W){return W.substr(-1)==="/"?W.substr(0,W.length-1):W},i.noneOrAll=function(W,Q,re){if(W){var ie,oe=!1,ce=!0;for(ie=0;ie0?oe:0})},i.fillArray=function(W,Q,re,ie){if(ie=ie||i.identity,i.isArrayOrTypedArray(W))for(var oe=0;oe1?oe+pe[1]:"";if(ce&&(pe.length>1||ge.length>4||re))for(;ie.test(ge);)ge=ge.replace(ie,"$1"+ce+"$2");return ge+we},i.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var O=/^\w*$/;i.templateString=function(W,Q){var re={};return W.replace(i.TEMPLATE_STRING_REGEX,function(ie,oe){var ce;return O.test(oe)?ce=Q[oe]:(re[oe]=re[oe]||i.nestedProperty(Q,oe).get,ce=re[oe]()),i.isValidTextValue(ce)?ce:""})};var V={max:10,count:0,name:"hovertemplate"};i.hovertemplateString=function(){return te.apply(V,arguments)};var N={max:10,count:0,name:"texttemplate"};i.texttemplateString=function(){return te.apply(N,arguments)};var B=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};i.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var q=/^[:|\|]/;function te(W,Q,re){var ie=this,oe=arguments;Q||(Q={});var ce={};return W.replace(i.TEMPLATE_STRING_REGEX,function(pe,ge,we){var ye=ge==="_xother"||ge==="_yother",me=ge==="_xother_"||ge==="_yother_",Oe=ge==="xother_"||ge==="yother_",ke=ge==="xother"||ge==="yother"||ye||Oe||me,Te=ge;(ye||me)&&(Te=Te.substring(1)),(Oe||me)&&(Te=Te.substring(0,Te.length-1));var le,se,ne,ve=null,Ee=null;if(ie.parseMultDiv){var _e=function(Me){var be=Me.match(B);return be?{key:be[1],op:be[2],number:Number(be[3])}:{key:Me,op:null,number:null}}(Te);Te=_e.key,ve=_e.op,Ee=_e.number}if(ke){if((le=Q[Te])===void 0)return""}else for(ne=3;ne=48&&pe<=57,ye=ge>=48&&ge<=57;if(we&&(ie=10*ie+pe-48),ye&&(oe=10*oe+ge-48),!we||!ye){if(ie!==oe)return ie-oe;if(pe!==ge)return pe-ge}}return oe-ie};var K=2e9;i.seedPseudoRandom=function(){K=2e9},i.pseudoRandom=function(){var W=K;return K=(69069*K+1)%4294967296,Math.abs(K-W)<429496729?i.pseudoRandom():K/4294967296},i.fillText=function(W,Q,re){var ie=Array.isArray(re)?function(pe){re.push(pe)}:function(pe){re.text=pe},oe=i.extractOption(W,Q,"htx","hovertext");if(i.isValidTextValue(oe))return ie(oe);var ce=i.extractOption(W,Q,"tx","text");return i.isValidTextValue(ce)?ie(ce):void 0},i.isValidTextValue=function(W){return W||W===0},i.formatPercent=function(W,Q){Q=Q||0;for(var re=(Math.round(100*W*Math.pow(10,Q))*Math.pow(.1,Q)).toFixed(Q)+"%",ie=0;ie1&&(ye=1):ye=0,i.strTranslate(oe-ye*(re+pe),ce-ye*(ie+ge))+i.strScale(ye)+(we?"rotate("+we+(Q?"":" "+re+" "+ie)+")":"")},i.setTransormAndDisplay=function(W,Q){W.attr("transform",i.getTextTransform(Q)),W.style("display",Q.scale?null:"none")},i.ensureUniformFontSize=function(W,Q){var re=i.extendFlat({},Q);return re.size=Math.max(Q.size,W._fullLayout.uniformtext.minsize||0),re},i.join2=function(W,Q,re){var ie=W.length;return ie>1?W.slice(0,-1).join(Q)+re+W[ie-1]:W.join(Q)},i.bigFont=function(W){return Math.round(1.2*W)};var J=i.getFirefoxVersion(),Y=J!==null&&J<86;i.getPositionFromD3Event=function(){return Y?[M.event.layerX,M.event.layerY]:[M.event.offsetX,M.event.offsetY]}},41965:function(ee){ee.exports=function(z){return window&&window.process&&window.process.versions?Object.prototype.toString.call(z)==="[object Object]":Object.prototype.toString.call(z)==="[object Object]"&&Object.getPrototypeOf(z).hasOwnProperty("hasOwnProperty")}},66636:function(ee,z,e){var M=e(65487),k=/^\w*$/;ee.exports=function(l,T,b,d){var s,t,i;b=b||"name",d=d||"value";var r={};T&&T.length?(i=M(l,T),t=i.get()):t=l,T=T||"";var n={};if(t)for(s=0;s2)return r[p]=2|r[p],a.set(u,null);if(o){for(s=p;s1){var b=["LOG:"];for(T=0;T1){var d=[];for(T=0;T"),"long")}},l.warn=function(){var T;if(M.logging>0){var b=["WARN:"];for(T=0;T0){var d=[];for(T=0;T"),"stick")}},l.error=function(){var T;if(M.logging>0){var b=["ERROR:"];for(T=0;T0){var d=[];for(T=0;T"),"stick")}}},77310:function(ee,z,e){var M=e(39898);ee.exports=function(k,l,T){var b=k.selectAll("g."+T.replace(/\s/g,".")).data(l,function(s){return s[0].trace.uid});b.exit().remove(),b.enter().append("g").attr("class",T),b.order();var d=k.classed("rangeplot")?"nodeRangePlot3":"node3";return b.each(function(s){s[0][d]=M.select(this)}),b}},35657:function(ee,z,e){var M=e(79576);z.init2dArray=function(k,l){for(var T=new Array(k),b=0;be/2?z-Math.round(z/e)*e:z}}},65487:function(ee,z,e){var M=e(92770),k=e(73627).isArrayOrTypedArray;function l(r,n){return function(){var o,a,u,p,c,x=r;for(p=0;p/g),a=0;at||g===k||gr||c&&n(p))}:function(p,c){var x=p[0],g=p[1];if(x===k||xt||g===k||gr)return!1;var h,m,v,y,_,f=d.length,S=d[0][0],w=d[0][1],E=0;for(h=1;hMath.max(m,S)||g>Math.max(v,w)))if(ga||Math.abs(M(i,p))>s)return!0;return!1},l.filter=function(T,b){var d=[T[0]],s=0,t=0;function i(r){T.push(r);var n=d.length,o=s;d.splice(t+1);for(var a=o+1;a1&&i(T.pop()),{addPt:i,raw:T,filtered:d}}},79749:function(ee,z,e){var M=e(58617),k=e(98580);ee.exports=function(l,T,b){var d=l._fullLayout,s=!0;return d._glcanvas.each(function(t){if(t.regl)t.regl.preloadCachedCode(b);else if(!t.pick||d._has("parcoords")){try{t.regl=k({canvas:this,attributes:{antialias:!t.pick,preserveDrawingBuffer:!0},pixelRatio:l._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:T||[],cachedCode:b||{}})}catch{s=!1}t.regl||(s=!1),s&&this.addEventListener("webglcontextlost",function(i){l&&l.emit&&l.emit("plotly_webglcontextlost",{event:i,layer:t.key})},!1)}}),s||M({container:d._glcontainer.node()}),s}},45142:function(ee,z,e){var M=e(92770),k=e(35791);ee.exports=function(l){var T;if(typeof(T=l&&l.hasOwnProperty("userAgent")?l.userAgent:function(){var n;return typeof navigator<"u"&&(n=navigator.userAgent),n&&n.headers&&typeof n.headers["user-agent"]=="string"&&(n=n.headers["user-agent"]),n}())!="string")return!0;var b=k({ua:{headers:{"user-agent":T}},tablet:!0,featureDetect:!1});if(!b){for(var d=T.split(" "),s=1;s-1;t--){var i=d[t];if(i.substr(0,8)==="Version/"){var r=i.substr(8).split(".")[0];if(M(r)&&(r=+r),r>=13)return!0}}}return b}},75138:function(ee){ee.exports=function(z,e){if(e instanceof RegExp){for(var M=e.toString(),k=0;kk.queueLength&&(T.undoQueue.queue.shift(),T.undoQueue.index--))},startSequence:function(T){T.undoQueue=T.undoQueue||{index:0,queue:[],sequence:!1},T.undoQueue.sequence=!0,T.undoQueue.beginSequence=!0},stopSequence:function(T){T.undoQueue=T.undoQueue||{index:0,queue:[],sequence:!1},T.undoQueue.sequence=!1,T.undoQueue.beginSequence=!1},undo:function(T){var b,d;if(!(T.undoQueue===void 0||isNaN(T.undoQueue.index)||T.undoQueue.index<=0)){for(T.undoQueue.index--,b=T.undoQueue.queue[T.undoQueue.index],T.undoQueue.inSequence=!0,d=0;d=T.undoQueue.queue.length)){for(b=T.undoQueue.queue[T.undoQueue.index],T.undoQueue.inSequence=!0,d=0;dn}function i(r,n){return r>=n}z.findBin=function(r,n,o){if(M(n.start))return o?Math.ceil((r-n.start)/n.size-b)-1:Math.floor((r-n.start)/n.size+b);var a,u,p=0,c=n.length,x=0,g=c>1?(n[c-1]-n[0])/(c-1):1;for(u=g>=0?o?d:s:o?i:t,r+=g*b*(o?-1:1)*(g>=0?1:-1);p90&&k.log("Long binary search..."),p-1},z.sorterAsc=function(r,n){return r-n},z.sorterDes=function(r,n){return n-r},z.distinctVals=function(r){var n,o=r.slice();for(o.sort(z.sorterAsc),n=o.length-1;n>-1&&o[n]===T;n--);for(var a,u=o[n]-o[0]||1,p=u/(n||1)/1e4,c=[],x=0;x<=n;x++){var g=o[x],h=g-a;a===void 0?(c.push(g),a=g):h>p&&(u=Math.min(u,h),c.push(g),a=g)}return{vals:c,minDiff:u}},z.roundUp=function(r,n,o){for(var a,u=0,p=n.length-1,c=0,x=o?0:1,g=o?1:0,h=o?Math.ceil:Math.floor;u0&&(a=1),o&&a)return r.sort(n)}return a?r:r.reverse()},z.findIndexOfMin=function(r,n){n=n||l;for(var o,a=1/0,u=0;ub.length)&&(d=b.length),M(T)||(T=!1),k(b[0])){for(t=new Array(d),s=0;sl.length-1)return l[l.length-1];var b=T%1;return b*l[Math.ceil(T)]+(1-b)*l[Math.floor(T)]}},78614:function(ee,z,e){var M=e(25075);ee.exports=function(k){return k?M(k):[0,0,0,1]}},3883:function(ee,z,e){var M=e(32396),k=e(91424),l=e(71828),T=null;ee.exports=function(){if(T!==null)return T;T=!1;var b=l.isIE()||l.isSafari()||l.isIOS();if(window.navigator.userAgent&&!b){var d=Array.from(M.CSS_DECLARATIONS).reverse(),s=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof s=="function")T=d.some(function(r){return s.apply(null,r)});else{var t=k.tester.append("image").attr("style",M.STYLE),i=window.getComputedStyle(t.node()).imageRendering;T=d.some(function(r){var n=r[1];return i===n||i===n.toLowerCase()}),t.remove()}}return T}},63893:function(ee,z,e){var M=e(39898),k=e(71828),l=k.strTranslate,T=e(77922),b=e(18783).LINE_SPACING,d=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;z.convertToTspans=function(R,G,O){var V=R.text(),N=!R.attr("data-notex")&&G&&G._context.typesetMath&&typeof MathJax<"u"&&V.match(d),B=M.select(R.node().parentNode);if(!B.empty()){var H=R.attr("class")?R.attr("class").split(" ")[0]:"text";return H+="-math",B.selectAll("svg."+H).remove(),B.selectAll("g."+H+"-group").remove(),R.style("display",null).attr({"data-unformatted":V,"data-math":"N"}),N?(G&&G._promises||[]).push(new Promise(function(te){R.style("display","none");var K=parseInt(R.node().style.fontSize,10),J={fontSize:K};(function(Y,W,Q){var re,ie,oe,ce,pe=parseInt((MathJax.version||"").split(".")[0]);if(pe===2||pe===3){var ge=function(){var ye="math-output-"+k.randstr({},64),me=(ce=M.select("body").append("div").attr({id:ye}).style({visibility:"hidden",position:"absolute","font-size":W.fontSize+"px"}).text(Y.replace(s,"\\lt ").replace(t,"\\gt "))).node();return pe===2?MathJax.Hub.Typeset(me):MathJax.typeset([me])},we=function(){var ye=ce.select(pe===2?".MathJax_SVG":".MathJax"),me=!ye.empty()&&ce.select("svg").node();if(me){var Oe,ke=me.getBoundingClientRect();Oe=pe===2?M.select("body").select("#MathJax_SVG_glyphs"):ye.select("defs"),Q(ye,Oe,ke)}else k.log("There was an error in the tex syntax.",Y),Q();ce.remove()};pe===2?MathJax.Hub.Queue(function(){return ie=k.extendDeepAll({},MathJax.Hub.config),oe=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:i},displayAlign:"left"})},function(){if((re=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},ge,we,function(){if(re!=="SVG")return MathJax.Hub.setRenderer(re)},function(){return oe!==void 0&&(MathJax.Hub.processSectionDelay=oe),MathJax.Hub.Config(ie)}):pe===3&&(ie=k.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=i,(re=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){ge(),we(),re!=="svg"&&(MathJax.config.startup.output=re),MathJax.config=ie}))}else k.warn("No MathJax version:",MathJax.version)})(N[2],J,function(Y,W,Q){B.selectAll("svg."+H).remove(),B.selectAll("g."+H+"-group").remove();var re=Y&&Y.select("svg");if(!re||!re.node())return q(),void te();var ie=B.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":V,"data-math":"Y"});ie.node().appendChild(re.node()),W&&W.node()&&re.node().insertBefore(W.node().cloneNode(!0),re.node().firstChild);var oe=Q.width,ce=Q.height;re.attr({class:H,height:ce,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var pe=R.node().style.fill||"black",ge=re.select("g");ge.attr({fill:pe,stroke:pe});var we=ge.node().getBoundingClientRect(),ye=we.width,me=we.height;(ye>oe||me>ce)&&(re.style("overflow","hidden"),ye=(we=re.node().getBoundingClientRect()).width,me=we.height);var Oe=+R.attr("x"),ke=+R.attr("y"),Te=-(K||R.node().getBoundingClientRect().height)/4;if(H[0]==="y")ie.attr({transform:"rotate("+[-90,Oe,ke]+")"+l(-ye/2,Te-me/2)});else if(H[0]==="l")ke=Te-me/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Oe=0,ke=Te;else{var le=R.attr("text-anchor");Oe-=ye*(le==="middle"?.5:le==="end"?1:0),ke=ke+Te-me/2}re.attr({x:Oe,y:ke}),O&&O.call(R,ie),te(ie)})})):q(),R}function q(){B.empty()||(H=R.attr("class")+"-math",B.select("svg."+H).remove()),R.text("").style("white-space","pre");var te=function(K,J){J=J.replace(p," ");var Y,W=!1,Q=[],re=-1;function ie(){re++;var Ee=document.createElementNS(T.svg,"tspan");M.select(Ee).attr({class:"line",dy:re*b+"em"}),K.appendChild(Ee),Y=Ee;var _e=Q;if(Q=[{node:Ee}],_e.length>1)for(var ze=1;ze<_e.length;ze++)oe(_e[ze])}function oe(Ee){var _e,ze=Ee.type,Ne={};if(ze==="a"){_e="a";var fe=Ee.target,Me=Ee.href,be=Ee.popup;Me&&(Ne={"xlink:xlink:show":fe==="_blank"||fe.charAt(0)!=="_"?"new":"replace",target:fe,"xlink:xlink:href":Me},be&&(Ne.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+be+'");return false;'))}else _e="tspan";Ee.style&&(Ne.style=Ee.style);var Ce=document.createElementNS(T.svg,_e);if(ze==="sup"||ze==="sub"){ce(Y,a),Y.appendChild(Ce);var Fe=document.createElementNS(T.svg,"tspan");ce(Fe,a),M.select(Fe).attr("dy",o[ze]),Ne.dy=n[ze],Y.appendChild(Ce),Y.appendChild(Fe)}else Y.appendChild(Ce);M.select(Ce).attr(Ne),Y=Ee.node=Ce,Q.push(Ee)}function ce(Ee,_e){Ee.appendChild(document.createTextNode(_e))}function pe(Ee){if(Q.length!==1){var _e=Q.pop();Ee!==_e.type&&k.log("Start tag <"+_e.type+"> doesnt match end tag <"+Ee+">. Pretending it did match.",J),Y=Q[Q.length-1].node}else k.log("Ignoring unexpected end tag .",J)}g.test(J)?ie():(Y=K,Q=[{node:K}]);for(var ge=J.split(c),we=0;we|>|>)/g,i=[["$","$"],["\\(","\\)"]],r={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},n={sub:"0.3em",sup:"-0.6em"},o={sub:"-0.21em",sup:"0.42em"},a="\u200B",u=["http:","https:","mailto:","",void 0,":"],p=z.NEWLINES=/(\r\n?|\n)/g,c=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,g=//i;z.BR_TAG_ALL=//gi;var h=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,m=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,v=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,y=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _(R,G){if(!R)return null;var O=R.match(G),V=O&&(O[3]||O[4]);return V&&E(V)}var f=/(^|;)\s*color:/;z.plainText=function(R,G){for(var O=(G=G||{}).len!==void 0&&G.len!==-1?G.len:1/0,V=G.allowedTags!==void 0?G.allowedTags:["br"],N=R.split(c),B=[],H="",q=0,te=0;te3?B.push(K.substr(0,Q-3)+"..."):B.push(K.substr(0,Q));break}H=""}}return B.join("")};var S={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},w=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(R){return R.replace(w,function(G,O){return(O.charAt(0)==="#"?function(V){if(!(V>1114111)){var N=String.fromCodePoint;if(N)return N(V);var B=String.fromCharCode;return V<=65535?B(V):B(55232+(V>>10),V%1024+56320)}}(O.charAt(1)==="x"?parseInt(O.substr(2),16):parseInt(O.substr(1),10)):S[O])||G})}function L(R){var G=encodeURI(decodeURI(R)),O=document.createElement("a"),V=document.createElement("a");O.href=R,V.href=G;var N=O.protocol,B=V.protocol;return u.indexOf(N)!==-1&&u.indexOf(B)!==-1?G:""}function C(R,G,O){var V,N,B,H=O.horizontalAlign,q=O.verticalAlign||"top",te=R.node().getBoundingClientRect(),K=G.node().getBoundingClientRect();return N=q==="bottom"?function(){return te.bottom-V.height}:q==="middle"?function(){return te.top+(te.height-V.height)/2}:function(){return te.top},B=H==="right"?function(){return te.right-V.width}:H==="center"?function(){return te.left+(te.width-V.width)/2}:function(){return te.left},function(){V=this.node().getBoundingClientRect();var J=B()-K.left,Y=N()-K.top,W=O.gd||{};if(O.gd){W._fullLayout._calcInverseTransform(W);var Q=k.apply3DTransform(W._fullLayout._invTransform)(J,Y);J=Q[0],Y=Q[1]}return this.style({top:Y+"px",left:J+"px","z-index":1e3}),this}}z.convertEntities=E,z.sanitizeHTML=function(R){R=R.replace(p," ");for(var G=document.createElement("p"),O=G,V=[],N=R.split(c),B=0;Bb.ts+l?t():b.timer=setTimeout(function(){t(),b.timer=null},l)},z.done=function(k){var l=e[k];return l&&l.timer?new Promise(function(T){var b=l.onDone;l.onDone=function(){b&&b(),T(),l.onDone=null}}):Promise.resolve()},z.clear=function(k){if(k)M(e[k]),delete e[k];else for(var l in e)z.clear(l)}},58163:function(ee,z,e){var M=e(92770);ee.exports=function(k,l){if(k>0)return Math.log(k)/Math.LN10;var T=Math.log(Math.min(l[0],l[1]))/Math.LN10;return M(T)||(T=Math.log(Math.max(l[0],l[1]))/Math.LN10-6),T}},90973:function(ee,z,e){var M=ee.exports={},k=e(78776).locationmodeToLayer,l=e(96892).zL;M.getTopojsonName=function(T){return[T.scope.replace(/ /g,"-"),"_",T.resolution.toString(),"m"].join("")},M.getTopojsonPath=function(T,b){return T+b+".json"},M.getTopojsonFeatures=function(T,b){var d=k[T.locationmode],s=b.objects[d];return l(b,s).features}},37815:function(ee){ee.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(ee){ee.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(ee,z,e){var M=e(73972);ee.exports=function(k){for(var l,T,b=M.layoutArrayContainers,d=M.layoutArrayRegexes,s=k.split("[")[0],t=0;t0&&T.log("Clearing previous rejected promises from queue."),m._promises=[]},z.cleanLayout=function(m){var v,y;m||(m={}),m.xaxis1&&(m.xaxis||(m.xaxis=m.xaxis1),delete m.xaxis1),m.yaxis1&&(m.yaxis||(m.yaxis=m.yaxis1),delete m.yaxis1),m.scene1&&(m.scene||(m.scene=m.scene1),delete m.scene1);var _=(b.subplotsRegistry.cartesian||{}).attrRegex,f=(b.subplotsRegistry.polar||{}).attrRegex,S=(b.subplotsRegistry.ternary||{}).attrRegex,w=(b.subplotsRegistry.gl3d||{}).attrRegex,E=Object.keys(m);for(v=0;v3?(Q.x=1.02,Q.xanchor="left"):Q.x<-2&&(Q.x=-.02,Q.xanchor="right"),Q.y>3?(Q.y=1.02,Q.yanchor="bottom"):Q.y<-2&&(Q.y=-.02,Q.yanchor="top")),o(m),m.dragmode==="rotate"&&(m.dragmode="orbit"),s.clean(m),m.template&&m.template.layout&&z.cleanLayout(m.template.layout),m},z.cleanData=function(m){for(var v=0;v0)return m.substr(0,v)}z.hasParent=function(m,v){for(var y=g(v);y;){if(y in m)return!0;y=g(y)}return!1};var h=["x","y","z"];z.clearAxisTypes=function(m,v,y){for(var _=0;_1&&l.warn("Full array edits are incompatible with other edits",a);var m=r[""][""];if(s(m))i.set(null);else{if(!Array.isArray(m))return l.warn("Unrecognized full array edit value",a,m),!0;i.set(m)}return!x&&(u(g,h),p(t),!0)}var v,y,_,f,S,w,E,L,C=Object.keys(r).map(Number).sort(T),P=i.get(),R=P||[],G=o(h,a).get(),O=[],V=-1,N=R.length;for(v=0;vR.length-(E?0:1))l.warn("index out of range",a,_);else if(w!==void 0)S.length>1&&l.warn("Insertion & removal are incompatible with edits to the same index.",a,_),s(w)?O.push(_):E?(w==="add"&&(w={}),R.splice(_,0,w),G&&G.splice(_,0,{})):l.warn("Unrecognized full object edit value",a,_,w),V===-1&&(V=_);else for(y=0;y=0;v--)R.splice(O[v],1),G&&G.splice(O[v],1);if(R.length?P||i.set(R):i.set(null),x)return!1;if(u(g,h),c!==k){var B;if(V===-1)B=C;else{for(N=Math.max(R.length,N),B=[],v=0;v=V);v++)B.push(_);for(v=V;v=ne.data.length||ze<-ne.data.length)throw new Error(Ee+" must be valid indices for gd.data.");if(ve.indexOf(ze,_e+1)>-1||ze>=0&&ve.indexOf(-ne.data.length+ze)>-1||ze<0&&ve.indexOf(ne.data.length+ze)>-1)throw new Error("each index in "+Ee+" must be unique.")}}function P(ne,ve,Ee){if(!Array.isArray(ne.data))throw new Error("gd.data must be an array.");if(ve===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ve)||(ve=[ve]),C(ne,ve,"currentIndices"),Ee===void 0||Array.isArray(Ee)||(Ee=[Ee]),Ee!==void 0&&C(ne,Ee,"newIndices"),Ee!==void 0&&ve.length!==Ee.length)throw new Error("current and new indices must be of equal length.")}function R(ne,ve,Ee,_e,ze){(function(He,Ge,Ke,at){var Qe=T.isPlainObject(at);if(!Array.isArray(He.data))throw new Error("gd.data must be an array");if(!T.isPlainObject(Ge))throw new Error("update must be a key:value object");if(Ke===void 0)throw new Error("indices must be an integer or array of integers");for(var vt in C(He,Ke,"indices"),Ge){if(!Array.isArray(Ge[vt])||Ge[vt].length!==Ke.length)throw new Error("attribute "+vt+" must be an array of length equal to indices array length");if(Qe&&(!(vt in at)||!Array.isArray(at[vt])||at[vt].length!==Ge[vt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ne,ve,Ee,_e);for(var Ne=function(He,Ge,Ke,at){var Qe,vt,xt,st,ot,mt=T.isPlainObject(at),Tt=[];for(var wt in Array.isArray(Ke)||(Ke=[Ke]),Ke=L(Ke,He.data.length-1),Ge)for(var Pt=0;Pt-1&&Ee.indexOf("grouptitlefont")===-1?Me(Ee,Ee.replace("titlefont","title.font")):Ee.indexOf("titleposition")>-1?Me(Ee,Ee.replace("titleposition","title.position")):Ee.indexOf("titleside")>-1?Me(Ee,Ee.replace("titleside","title.side")):Ee.indexOf("titleoffset")>-1&&Me(Ee,Ee.replace("titleoffset","title.offset")):Me(Ee,Ee.replace("title","title.text"));function Me(be,Ce){ne[Ce]=ne[be],delete ne[be]}}function te(ne,ve,Ee){ne=T.getGraphDiv(ne),h.clearPromiseQueue(ne);var _e={};if(typeof ve=="string")_e[ve]=Ee;else{if(!T.isPlainObject(ve))return T.warn("Relayout fail.",ve,Ee),Promise.reject();_e=T.extendFlat({},ve)}Object.keys(_e).length&&(ne.changed=!0);var ze=re(ne,_e),Ne=ze.flags;Ne.calc&&(ne.calcdata=void 0);var fe=[r.previousPromises];Ne.layoutReplot?fe.push(m.layoutReplot):Object.keys(_e).length&&(K(ne,Ne,ze)||r.supplyDefaults(ne),Ne.legend&&fe.push(m.doLegend),Ne.layoutstyle&&fe.push(m.layoutStyles),Ne.axrange&&J(fe,ze.rangesAltered),Ne.ticks&&fe.push(m.doTicksRelayout),Ne.modebar&&fe.push(m.doModeBar),Ne.camera&&fe.push(m.doCamera),Ne.colorbars&&fe.push(m.doColorBars),fe.push(f)),fe.push(r.rehover,r.redrag,r.reselect),s.add(ne,te,[ne,ze.undoit],te,[ne,ze.redoit]);var Me=T.syncOrAsync(fe,ne);return Me&&Me.then||(Me=Promise.resolve(ne)),Me.then(function(){return ne.emit("plotly_relayout",ze.eventData),ne})}function K(ne,ve,Ee){var _e=ne._fullLayout;if(!ve.axrange)return!1;for(var ze in ve)if(ze!=="axrange"&&ve[ze])return!1;for(var Ne in Ee.rangesAltered){var fe=n.id2name(Ne),Me=ne.layout[fe],be=_e[fe];be.autorange=Me.autorange;var Ce=be._rangeInitial0,Fe=be._rangeInitial1;if(Ce===void 0&&Fe!==void 0||Ce!==void 0&&Fe===void 0)return!1;if(Me.range&&(be.range=Me.range.slice()),be.cleanRange(),be._matchGroup){for(var Re in be._matchGroup)if(Re!==Ne){var He=_e[n.id2name(Re)];He.autorange=be.autorange,He.range=be.range.slice(),He._input.range=be.range.slice()}}}return!0}function J(ne,ve){var Ee=ve?function(_e){var ze=[];for(var Ne in ve){var fe=n.getFromId(_e,Ne);if(ze.push(Ne),(fe.ticklabelposition||"").indexOf("inside")!==-1&&fe._anchorAxis&&ze.push(fe._anchorAxis._id),fe._matchGroup)for(var Me in fe._matchGroup)ve[Me]||ze.push(Me)}return n.draw(_e,ze,{skipTitle:!0})}:function(_e){return n.draw(_e,"redraw")};ne.push(c,m.doAutoRangeAndConstraints,Ee,m.drawData,m.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,Q=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function re(ne,ve){var Ee,_e,ze,Ne=ne.layout,fe=ne._fullLayout,Me=fe._guiEditing,be=N(fe._preGUI,Me),Ce=Object.keys(ve),Fe=n.list(ne),Re=T.extendDeepAll({},ve),He={};for(q(ve),Ce=Object.keys(ve),_e=0;_e0&&typeof Pt.parts[Ye]!="string";)Ye--;var Xe=Pt.parts[Ye],Ve=Pt.parts[Ye-1]+"."+Xe,We=Pt.parts.slice(0,Ye).join("."),nt=b(ne.layout,We).get(),rt=b(fe,We).get(),Ie=Pt.get();if(Mt!==void 0){vt[wt]=Mt,xt[wt]=Xe==="reverse"?Mt:V(Ie);var De=i.getLayoutValObject(fe,Pt.parts);if(De&&De.impliedEdits&&Mt!==null)for(var et in De.impliedEdits)st(T.relativeAttr(wt,et),De.impliedEdits[et]);if(["width","height"].indexOf(wt)!==-1)if(Mt){st("autosize",null);var tt=wt==="height"?"width":"height";st(tt,fe[tt])}else fe[wt]=ne._initialAutoSize[wt];else if(wt==="autosize")st("width",Mt?null:fe.width),st("height",Mt?null:fe.height);else if(Ve.match(Y))Tt(Ve),b(fe,We+"._inputRange").set(null);else if(Ve.match(W)){Tt(Ve),b(fe,We+"._inputRange").set(null);var gt=b(fe,We).get();gt._inputDomain&&(gt._input.domain=gt._inputDomain.slice())}else Ve.match(Q)&&b(fe,We+"._inputDomain").set(null);if(Xe==="type"){ot=nt;var ht=rt.type==="linear"&&Mt==="log",dt=rt.type==="log"&&Mt==="linear";if(ht||dt){if(ot&&ot.range)if(rt.autorange)ht&&(ot.range=ot.range[1]>ot.range[0]?[1,2]:[2,1]);else{var ct=ot.range[0],kt=ot.range[1];ht?(ct<=0&&kt<=0&&st(We+".autorange",!0),ct<=0?ct=kt/1e6:kt<=0&&(kt=ct/1e6),st(We+".range[0]",Math.log(ct)/Math.LN10),st(We+".range[1]",Math.log(kt)/Math.LN10)):(st(We+".range[0]",Math.pow(10,ct)),st(We+".range[1]",Math.pow(10,kt)))}else st(We+".autorange",!0);Array.isArray(fe._subplots.polar)&&fe._subplots.polar.length&&fe[Pt.parts[0]]&&Pt.parts[1]==="radialaxis"&&delete fe[Pt.parts[0]]._subplot.viewInitial["radialaxis.range"],t.getComponentMethod("annotations","convertCoords")(ne,rt,Mt,st),t.getComponentMethod("images","convertCoords")(ne,rt,Mt,st)}else st(We+".autorange",!0),st(We+".range",null);b(fe,We+"._inputRange").set(null)}else if(Xe.match(y)){var ut=b(fe,wt).get(),ft=(Mt||{}).type;ft&&ft!=="-"||(ft="linear"),t.getComponentMethod("annotations","convertCoords")(ne,ut,ft,st),t.getComponentMethod("images","convertCoords")(ne,ut,ft,st)}var bt=g.containerArrayMatch(wt);if(bt){Ee=bt.array,_e=bt.index;var It=bt.property,Rt=De||{editType:"calc"};_e!==""&&It===""&&(g.isAddVal(Mt)?xt[wt]=null:g.isRemoveVal(Mt)?xt[wt]=(b(Ne,Ee).get()||[])[_e]:T.warn("unrecognized full object value",ve)),v.update(Qe,Rt),He[Ee]||(He[Ee]={});var Dt=He[Ee][_e];Dt||(Dt=He[Ee][_e]={}),Dt[It]=Mt,delete ve[wt]}else Xe==="reverse"?(nt.range?nt.range.reverse():(st(We+".autorange",!0),nt.range=[1,0]),rt.autorange?Qe.calc=!0:Qe.plot=!0):(wt==="dragmode"&&(Mt===!1&&Ie!==!1||Mt!==!1&&Ie===!1)||fe._has("scatter-like")&&fe._has("regl")&&wt==="dragmode"&&(Mt==="lasso"||Mt==="select")&&Ie!=="lasso"&&Ie!=="select"||fe._has("gl2d")?Qe.plot=!0:De?v.update(Qe,De):Qe.calc=!0,Pt.set(Mt))}}for(Ee in He)g.applyContainerArrayChanges(ne,be(Ne,Ee),He[Ee],Qe,be)||(Qe.plot=!0);for(var Kt in mt){var qt=(ot=n.getFromId(ne,Kt))&&ot._constraintGroup;if(qt)for(var Wt in Qe.calc=!0,qt)mt[Wt]||(n.getFromId(ne,Wt)._constraintShrinkable=!0)}(ie(ne)||ve.height||ve.width)&&(Qe.plot=!0);var Ht=fe.shapes;for(_e=0;_e1;)if(_e.pop(),(Ee=b(ve,_e.join(".")+".uirevision").get())!==void 0)return Ee;return ve.uirevision}function me(ne,ve){for(var Ee=0;Ee=ze.length?ze[0]:ze[Ce]:ze}function Me(Ce){return Array.isArray(Ne)?Ce>=Ne.length?Ne[0]:Ne[Ce]:Ne}function be(Ce,Fe){var Re=0;return function(){if(Ce&&++Re===Fe)return Ce()}}return _e._frameWaitingCnt===void 0&&(_e._frameWaitingCnt=0),new Promise(function(Ce,Fe){function Re(){ne.emit("plotly_animating"),_e._lastFrameAt=-1/0,_e._timeToNext=0,_e._runningTransitions=0,_e._currentFrame=null;var wt=function(){_e._animationRaf=window.requestAnimationFrame(wt),Date.now()-_e._lastFrameAt>_e._timeToNext&&function(){_e._currentFrame&&_e._currentFrame.onComplete&&_e._currentFrame.onComplete();var Pt=_e._currentFrame=_e._frameQueue.shift();if(Pt){var Mt=Pt.name?Pt.name.toString():null;ne._fullLayout._currentFrame=Mt,_e._lastFrameAt=Date.now(),_e._timeToNext=Pt.frameOpts.duration,r.transition(ne,Pt.frame.data,Pt.frame.layout,h.coerceTraceIndices(ne,Pt.frame.traces),Pt.frameOpts,Pt.transitionOpts).then(function(){Pt.onComplete&&Pt.onComplete()}),ne.emit("plotly_animatingframe",{name:Mt,frame:Pt.frame,animation:{frame:Pt.frameOpts,transition:Pt.transitionOpts}})}else ne.emit("plotly_animated"),window.cancelAnimationFrame(_e._animationRaf),_e._animationRaf=null}()};wt()}var He,Ge,Ke=0;function at(wt){return Array.isArray(ze)?Ke>=ze.length?wt.transitionOpts=ze[Ke]:wt.transitionOpts=ze[0]:wt.transitionOpts=ze,Ke++,wt}var Qe=[],vt=ve==null,xt=Array.isArray(ve);if(vt||xt||!T.isPlainObject(ve)){if(vt||["string","number"].indexOf(typeof ve)!==-1)for(He=0;He<_e._frames.length;He++)(Ge=_e._frames[He])&&(vt||String(Ge.group)===String(ve))&&Qe.push({type:"byname",name:String(Ge.name),data:at({name:Ge.name})});else if(xt)for(He=0;He0&&mtmt)&&Tt.push(Ge);Qe=Tt}}Qe.length>0?function(wt){if(wt.length!==0){for(var Pt=0;Pt=0;_e--)if(T.isPlainObject(ve[_e])){var He=ve[_e].name,Ge=(be[He]||Re[He]||{}).name,Ke=ve[_e].name,at=be[Ge]||Re[Ge];Ge&&Ke&&typeof Ke=="number"&&at&&_<5&&(_++,T.warn('addFrames: overwriting frame "'+(be[Ge]||Re[Ge]).name+'" with a frame whose name of type "number" also equates to "'+Ge+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),_===5&&T.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Re[He]={name:He},Fe.push({frame:r.supplyFrameDefaults(ve[_e]),index:Ee&&Ee[_e]!==void 0&&Ee[_e]!==null?Ee[_e]:Ce+_e})}Fe.sort(function(wt,Pt){return wt.index>Pt.index?-1:wt.index=0;_e--){if(typeof(ze=Fe[_e].frame).name=="number"&&T.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ze.name)for(;be[ze.name="frame "+ne._transitionData._counter++];);if(be[ze.name]){for(Ne=0;Ne=0;Ee--)_e=ve[Ee],Ne.push({type:"delete",index:_e}),fe.unshift({type:"insert",index:_e,value:ze[_e]});var Me=r.modifyFrames,be=r.modifyFrames,Ce=[ne,fe],Fe=[ne,Ne];return s&&s.add(ne,Me,Ce,be,Fe),r.modifyFrames(ne,Ne)},z.addTraces=function ne(ve,Ee,_e){ve=T.getGraphDiv(ve);var ze,Ne,fe=[],Me=z.deleteTraces,be=ne,Ce=[ve,fe],Fe=[ve,Ee];for(function(Re,He,Ge){var Ke,at;if(!Array.isArray(Re.data))throw new Error("gd.data must be an array.");if(He===void 0)throw new Error("traces must be defined.");for(Array.isArray(He)||(He=[He]),Ke=0;Ke=0&&Fe=0&&Fe=C.length)return!1;if(f.dimensions===2){if(w++,S.length===w)return f;var P=S[w];if(!h(P))return!1;f=C[L][P]}else f=C[L]}else f=C}}return f}function h(f){return f===Math.round(f)&&f>=0}function m(){var f,S,w={};for(f in i(w,T),M.subplotsRegistry)if((S=M.subplotsRegistry[f]).layoutAttributes)if(Array.isArray(S.attr))for(var E=0;E=P.length)return!1;E=(w=(M.transformsRegistry[P[R].type]||{}).attributes)&&w[S[2]],C=3}else{var G=f._module;if(G||(G=(M.modules[f.type||l.type.dflt]||{})._module),!G)return!1;if(!(E=(w=G.attributes)&&w[L])){var O=G.basePlotModule;O&&O.attributes&&(E=O.attributes[L])}E||(E=l[L])}return g(E,S,C)},z.getLayoutValObject=function(f,S){var w=function(E,L){var C,P,R,G,O=E._basePlotModules;if(O){var V;for(C=0;C=r&&(i._input||{})._templateitemname;o&&(n=r);var a,u=t+"["+n+"]";function p(){a={},o&&(a[u]={},a[u][l]=o)}function c(g,h){o?M.nestedProperty(a[u],g).set(h):a[u+"."+g]=h}function x(){var g=a;return p(),g}return p(),{modifyBase:function(g,h){a[g]=h},modifyItem:c,getUpdateObj:x,applyUpdate:function(g,h){g&&c(g,h);var m=x();for(var v in m)M.nestedProperty(s,v).set(m[v])}}}},61549:function(ee,z,e){var M=e(39898),k=e(73972),l=e(74875),T=e(71828),b=e(63893),d=e(33306),s=e(7901),t=e(91424),i=e(92998),r=e(64168),n=e(89298),o=e(18783),a=e(99082),u=a.enforce,p=a.clean,c=e(71739).doAutoRange,x="start";function g(_,f,S){for(var w=0;w=_[1]||E[1]<=_[0])&&L[0]f[0])return!0}return!1}function h(_){var f,S,w,E,L,C,P=_._fullLayout,R=P._size,G=R.p,O=n.list(_,"",!0);if(P._paperdiv.style({width:_._context.responsive&&P.autosize&&!_._context._hasZeroWidth&&!_.layout.width?"100%":P.width+"px",height:_._context.responsive&&P.autosize&&!_._context._hasZeroHeight&&!_.layout.height?"100%":P.height+"px"}).selectAll(".main-svg").call(t.setSize,P.width,P.height),_._context.setBackground(_,P.paper_bgcolor),z.drawMainTitle(_),r.manage(_),!P._has("cartesian"))return l.previousPromises(_);function V(Re,He,Ge){var Ke=Re._lw/2;return Re._id.charAt(0)==="x"?He?Ge==="top"?He._offset-G-Ke:He._offset+He._length+G+Ke:R.t+R.h*(1-(Re.position||0))+Ke%1:He?Ge==="right"?He._offset+He._length+G+Ke:He._offset-G-Ke:R.l+R.w*(Re.position||0)+Ke%1}for(f=0;f.5?"t":"b",K=V._fullLayout.margin[te],J=0;return N.yref==="paper"?J=B+N.pad.t+N.pad.b:N.yref==="container"&&(J=function(Y,W,Q,re,ie){var oe=0;return Q==="middle"&&(oe+=ie/2),Y==="t"?(Q==="top"&&(oe+=ie),oe+=re-W*re):(Q==="bottom"&&(oe+=ie),oe+=W*re),oe}(te,H,q,V._fullLayout.height,B)+N.pad.t+N.pad.b),J>K?J:0}(_,S,G);O>0&&(function(V,N,B,H){var q="title.automargin",te=V._fullLayout.title,K=te.y>.5?"t":"b",J={x:te.x,y:te.y,t:0,b:0},Y={};te.yref==="paper"&&function(W,Q,re,ie,oe){var ce=Q.yref==="paper"?W._fullLayout._size.h:W._fullLayout.height,pe=T.isTopAnchor(Q)?ie:ie-oe,ge=re==="b"?ce-pe:pe;return!(T.isTopAnchor(Q)&&re==="t"||T.isBottomAnchor(Q)&&re==="b")&&geR?y.push({code:"unused",traceType:w,templateCount:P,dataCount:R}):R>P&&y.push({code:"reused",traceType:w,templateCount:P,dataCount:R})}}else y.push({code:"data"});if(function G(O,V){for(var N in O)if(N.charAt(0)!=="_"){var B=O[N],H=a(O,N,V);k(B)?(Array.isArray(O)&&B._template===!1&&B.templateitemname&&y.push({code:"missing",path:H,templateitemname:B.templateitemname}),G(B,H)):Array.isArray(B)&&u(B)&&G(B,H)}}({data:f,layout:_},""),y.length)return y.map(p)}},403:function(ee,z,e){var M=e(92770),k=e(72391),l=e(74875),T=e(71828),b=e(25095),d=e(5900),s=e(70942),t=e(11506).version,i={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};ee.exports=function(r,n){var o,a,u,p;function c(R){return!(R in n)||T.validate(n[R],i[R])}if(n=n||{},T.isPlainObject(r)?(o=r.data||[],a=r.layout||{},u=r.config||{},p={}):(r=T.getGraphDiv(r),o=T.extendDeep([],r.data),a=T.extendDeep({},r.layout),u=r._context,p=r._fullLayout||{}),!c("width")&&n.width!==null||!c("height")&&n.height!==null)throw new Error("Height and width should be pixel values.");if(!c("format"))throw new Error("Export format is not "+T.join2(i.format.values,", "," or ")+".");var x={};function g(R,G){return T.coerce(n,x,i,R,G)}var h=g("format"),m=g("width"),v=g("height"),y=g("scale"),_=g("setBackground"),f=g("imageDataOnly"),S=document.createElement("div");S.style.position="absolute",S.style.left="-5000px",document.body.appendChild(S);var w=T.extendFlat({},a);m?w.width=m:n.width===null&&M(p.width)&&(w.width=p.width),v?w.height=v:n.height===null&&M(p.height)&&(w.height=p.height);var E=T.extendFlat({},u,{_exportedPlot:!0,staticPlot:!0,setBackground:_}),L=b.getRedrawFunc(S);function C(){return new Promise(function(R){setTimeout(R,b.getDelay(S._fullLayout))})}function P(){return new Promise(function(R,G){var O=d(S,h,y),V=S._fullLayout.width,N=S._fullLayout.height;function B(){k.purge(S),document.body.removeChild(S)}if(h==="full-json"){var H=l.graphJson(S,!1,"keepdata","object",!0,!0);return H.version=t,H=JSON.stringify(H),B(),R(f?H:b.encodeJSON(H))}if(B(),h==="svg")return R(f?O:b.encodeSVG(O));var q=document.createElement("canvas");q.id=T.randstr(),s({format:h,width:V,height:N,scale:y,canvas:q,svg:O,promise:!0}).then(R).catch(G)})}return new Promise(function(R,G){k.newPlot(S,o,w,E).then(L).then(C).then(P).then(function(O){R(function(V){return f?V.replace(b.IMAGE_URL_PREFIX,""):V}(O))}).catch(function(O){G(O)})})}},84936:function(ee,z,e){var M=e(71828),k=e(74875),l=e(86281),T=e(72075).dfltConfig,b=M.isPlainObject,d=Array.isArray,s=M.isArrayOrTypedArray;function t(c,x,g,h,m,v){v=v||[];for(var y=Object.keys(c),_=0;_E.length&&h.push(n("unused",m,S.concat(E.length)));var O,V,N,B,H,q=E.length,te=Array.isArray(G);if(te&&(q=Math.min(q,G.length)),L.dimensions===2)for(V=0;VE[V].length&&h.push(n("unused",m,S.concat(V,E[V].length)));var K=E[V].length;for(O=0;O<(te?Math.min(K,G[V].length):K);O++)N=te?G[V][O]:G,B=w[V][O],H=E[V][O],M.validate(B,N)?H!==B&&H!==+B&&h.push(n("dynamic",m,S.concat(V,O),B,H)):h.push(n("value",m,S.concat(V,O),B))}else h.push(n("array",m,S.concat(V),w[V]));else for(V=0;V1&&v.push(n("object","layout"))),k.supplyDefaults(y);for(var _=y._fullData,f=g.length,S=0;S0&&Math.round(a)===a))return{vals:i};n=a}for(var u=s.calendar,p=r==="start",c=r==="end",x=d[t+"period0"],g=l(x,u)||0,h=[],m=[],v=[],y=i.length,_=0;_E;)w=T(w,-n,u);for(;w<=E;)w=T(w,n,u);S=T(w,-n,u)}else{for(w=g+(f=Math.round((E-g)/o))*o;w>E;)w-=o;for(;w<=E;)w+=o;S=w-o}h[_]=p?S:c?w:(S+w)/2,m[_]=S,v[_]=w}return{vals:h,starts:m,ends:v}}},89502:function(ee){ee.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(ee,z,e){var M=e(39898),k=e(92770),l=e(71828),T=e(50606).FP_SAFE,b=e(73972),d=e(91424),s=e(41675),t=s.getFromId,i=s.isLinked;function r(_,f){var S,w,E=[],L=_._fullLayout,C=o(L,f,0),P=o(L,f,1),R=u(_,f),G=R.min,O=R.max;if(G.length===0||O.length===0)return l.simpleMap(f.range,f.r2l);var V=G[0].val,N=O[0].val;for(S=1;S0&&((W=ce-C(te)-P(K))>pe?Q/W>ge&&(J=te,Y=K,ge=Q/W):Q/ce>ge&&(J={val:te.val,nopad:1},Y={val:K.val,nopad:1},ge=Q/ce));if(V===N){var we=V-1,ye=V+1;if(ie)if(V===0)E=[0,1];else{var me=(V>0?O:G).reduce(function(ke,Te){return Math.max(ke,P(Te))},0),Oe=V/(1-Math.min(.5,me/ce));E=V>0?[0,Oe]:[Oe,0]}else E=oe?[Math.max(0,we),Math.max(1,ye)]:[we,ye]}else ie?(J.val>=0&&(J={val:0,nopad:1}),Y.val<=0&&(Y={val:0,nopad:1})):oe&&(J.val-ge*C(J)<0&&(J={val:0,nopad:1}),Y.val<=0&&(Y={val:1,nopad:1})),ge=(Y.val-J.val-n(f,te.val,K.val))/(ce-C(J)-P(Y)),E=[J.val-ge*C(J),Y.val+ge*P(Y)];return E=y(E,f),f.limitRange&&f.limitRange(),H&&E.reverse(),l.simpleMap(E,f.l2r||Number)}function n(_,f,S){var w=0;if(_.rangebreaks)for(var E=_.locateBreaks(f,S),L=0;L0?S.ppadplus:S.ppadminus)||S.ppad||0),re=W((_._m>0?S.ppadminus:S.ppadplus)||S.ppad||0),ie=W(S.vpadplus||S.vpad),oe=W(S.vpadminus||S.vpad);if(!J){if(O=1/0,V=-1/0,K)for(w=0;w0&&(O=E),E>V&&E-T&&(O=E),E>V&&E=ge;w--)pe(w);return{min:N,max:B,opts:S}},concatExtremes:u};var a=3;function u(_,f,S){var w,E,L,C=f._id,P=_._fullData,R=_._fullLayout,G=[],O=[];function V(te,K){for(w=0;w=S&&(G.extrapad||!C)){P=!1;break}E(f,G.val)&&G.pad<=S&&(C||!G.extrapad)&&(_.splice(R,1),R--)}if(P){var O=L&&f===0;_.push({val:f,pad:O?0:S,extrapad:!O&&C})}}function g(_){return k(_)&&Math.abs(_)=f}function v(_,f,S){return f===void 0||S===void 0||(f=_.d2l(f))<_.d2l(S)}function y(_,f){if(!f||!f.autorangeoptions)return _;var S=_[0],w=_[1],E=f.autorangeoptions.include;if(E!==void 0){var L=f.d2l(S),C=f.d2l(w);l.isArrayOrTypedArray(E)||(E=[E]);for(var P=0;P=R&&(L=R,S=R),C<=R&&(C=R,w=R)}}return S=function(G,O){var V=O.autorangeoptions;return V&&V.minallowed!==void 0&&v(O,V.minallowed,V.maxallowed)?V.minallowed:V&&V.clipmin!==void 0&&v(O,V.clipmin,V.clipmax)?Math.max(G,O.d2l(V.clipmin)):G}(S,f),w=function(G,O){var V=O.autorangeoptions;return V&&V.maxallowed!==void 0&&v(O,V.minallowed,V.maxallowed)?V.maxallowed:V&&V.clipmax!==void 0&&v(O,V.clipmin,V.clipmax)?Math.min(G,O.d2l(V.clipmax)):G}(w,f),[S,w]}},23074:function(ee){ee.exports=function(z,e,M){var k,l;if(M){var T=e==="reversed"||e==="min reversed"||e==="max reversed";k=M[T?1:0],l=M[T?0:1]}var b=z("autorangeoptions.minallowed",l===null?k:void 0),d=z("autorangeoptions.maxallowed",k===null?l:void 0);b===void 0&&z("autorangeoptions.clipmin"),d===void 0&&z("autorangeoptions.clipmax"),z("autorangeoptions.include")}},89298:function(ee,z,e){var M=e(39898),k=e(92770),l=e(74875),T=e(73972),b=e(71828),d=b.strTranslate,s=e(63893),t=e(92998),i=e(7901),r=e(91424),n=e(13838),o=e(66287),a=e(50606),u=a.ONEMAXYEAR,p=a.ONEAVGYEAR,c=a.ONEMINYEAR,x=a.ONEMAXQUARTER,g=a.ONEAVGQUARTER,h=a.ONEMINQUARTER,m=a.ONEMAXMONTH,v=a.ONEAVGMONTH,y=a.ONEMINMONTH,_=a.ONEWEEK,f=a.ONEDAY,S=f/2,w=a.ONEHOUR,E=a.ONEMIN,L=a.ONESEC,C=a.MINUS_SIGN,P=a.BADNUM,R={K:"zeroline"},G={K:"gridline",L:"path"},O={K:"minor-gridline",L:"path"},V={K:"tick",L:"path"},N={K:"tick",L:"text"},B={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=e(18783),q=H.MID_SHIFT,te=H.CAP_SHIFT,K=H.LINE_SPACING,J=H.OPPOSITE_SIDE,Y=ee.exports={};Y.setConvert=e(21994);var W=e(4322),Q=e(41675),re=Q.idSort,ie=Q.isLinked;Y.id2name=Q.id2name,Y.name2id=Q.name2id,Y.cleanId=Q.cleanId,Y.list=Q.list,Y.listIds=Q.listIds,Y.getFromId=Q.getFromId,Y.getFromTrace=Q.getFromTrace;var oe=e(71739);Y.getAutoRange=oe.getAutoRange,Y.findExtremes=oe.findExtremes;var ce=1e-4;function pe(Ie){var De=(Ie[1]-Ie[0])*ce;return[Ie[0]-De,Ie[1]+De]}Y.coerceRef=function(Ie,De,et,tt,gt,ht){var dt=tt.charAt(tt.length-1),ct=et._fullLayout._subplots[dt+"axis"],kt=tt+"ref",ut={};return gt||(gt=ct[0]||(typeof ht=="string"?ht:ht[0])),ht||(ht=gt),ct=ct.concat(ct.map(function(ft){return ft+" domain"})),ut[kt]={valType:"enumerated",values:ct.concat(ht?typeof ht=="string"?[ht]:ht:[]),dflt:gt},b.coerce(Ie,De,ut,kt)},Y.getRefType=function(Ie){return Ie===void 0?Ie:Ie==="paper"?"paper":Ie==="pixel"?"pixel":/( domain)$/.test(Ie)?"domain":"range"},Y.coercePosition=function(Ie,De,et,tt,gt,ht){var dt,ct;if(Y.getRefType(tt)!=="range")dt=b.ensureNumber,ct=et(gt,ht);else{var kt=Y.getFromId(De,tt);ct=et(gt,ht=kt.fraction2r(ht)),dt=kt.cleanPos}Ie[gt]=dt(ct)},Y.cleanPosition=function(Ie,De,et){return(et==="paper"||et==="pixel"?b.ensureNumber:Y.getFromId(De,et).cleanPos)(Ie)},Y.redrawComponents=function(Ie,De){De=De||Y.listIds(Ie);var et=Ie._fullLayout;function tt(gt,ht,dt,ct){for(var kt=T.getComponentMethod(gt,ht),ut={},ft=0;ftet&&ft2e-6||((et-Ie._forceTick0)/Ie._minDtick%1+1.000001)%1>2e-6)&&(Ie._minDtick=0)):Ie._minDtick=0},Y.saveRangeInitial=function(Ie,De){for(var et=Y.list(Ie,"",!0),tt=!1,gt=0;gt.3*vn||rn(hn)||rn(yn))){var Mn=Ht.dtick/2;qt+=qt+Mn.8){var jt=Number(Ht.substr(1));un.exactYears>.8&&jt%12==0?qt=Y.tickIncrement(qt,"M6","reverse")+1.5*f:un.exactMonths>.8?qt=Y.tickIncrement(qt,"M1","reverse")+15.5*f:qt-=S;var nn=Y.tickIncrement(qt,Ht);if(nn<=hn)return nn}return qt}(Kt,Ie,Dt,ct,gt)),Rt=Kt;Rt<=kt;)Rt=Y.tickIncrement(Rt,Dt,!1,gt);return{start:De.c2r(Kt,0,gt),end:De.c2r(Rt,0,gt),size:Dt,_dataSpan:kt-ct}},Y.prepMinorTicks=function(Ie,De,et){if(!De.minor.dtick){delete Ie.dtick;var tt,gt=De.dtick&&k(De._tmin);if(gt){var ht=Y.tickIncrement(De._tmin,De.dtick,!0);tt=[De._tmin,.99*ht+.01*De._tmin]}else{var dt=b.simpleMap(De.range,De.r2l);tt=[dt[0],.8*dt[0]+.2*dt[1]]}if(Ie.range=b.simpleMap(tt,De.l2r),Ie._isMinor=!0,Y.prepTicks(Ie,et),gt){var ct=k(De.dtick),kt=k(Ie.dtick),ut=ct?De.dtick:+De.dtick.substring(1),ft=kt?Ie.dtick:+Ie.dtick.substring(1);ct&&kt?me(ut,ft)?ut===2*_&&ft===2*f&&(Ie.dtick=_):ut===2*_&&ft===3*f?Ie.dtick=_:ut!==_||(De._input.minor||{}).nticks?Oe(ut/ft,2.5)?Ie.dtick=ut/2:Ie.dtick=ut:Ie.dtick=f:String(De.dtick).charAt(0)==="M"?kt?Ie.dtick="M1":me(ut,ft)?ut>=12&&ft===2&&(Ie.dtick="M3"):Ie.dtick=De.dtick:String(Ie.dtick).charAt(0)==="L"?String(De.dtick).charAt(0)==="L"?me(ut,ft)||(Ie.dtick=Oe(ut/ft,2.5)?De.dtick/2:De.dtick):Ie.dtick="D1":Ie.dtick==="D2"&&+De.dtick>1&&(Ie.dtick=1)}Ie.range=De.range}De.minor._tick0Init===void 0&&(Ie.tick0=De.tick0)},Y.prepTicks=function(Ie,De){var et=b.simpleMap(Ie.range,Ie.r2l,void 0,void 0,De);if(Ie.tickmode==="auto"||!Ie.dtick){var tt,gt=Ie.nticks;gt||(Ie.type==="category"||Ie.type==="multicategory"?(tt=Ie.tickfont?b.bigFont(Ie.tickfont.size||12):15,gt=Ie._length/tt):(tt=Ie._id.charAt(0)==="y"?40:80,gt=b.constrain(Ie._length/tt,4,9)+1),Ie._name==="radialaxis"&&(gt*=2)),Ie.minor&&Ie.minor.tickmode!=="array"||Ie.tickmode==="array"&&(gt*=100),Ie._roughDTick=Math.abs(et[1]-et[0])/gt,Y.autoTicks(Ie,Ie._roughDTick),Ie._minDtick>0&&Ie.dtick<2*Ie._minDtick&&(Ie.dtick=Ie._minDtick,Ie.tick0=Ie.l2r(Ie._forceTick0))}Ie.ticklabelmode==="period"&&function(ht){var dt;function ct(){return!(k(ht.dtick)||ht.dtick.charAt(0)!=="M")}var kt=ct(),ut=Y.getTickFormat(ht);if(ut){var ft=ht._dtickInit!==ht.dtick;/%[fLQsSMX]/.test(ut)||(/%[HI]/.test(ut)?(dt=w,ft&&!kt&&ht.dtick=(Wt?0:1);Ht--){var hn=!Ht;Ht?(Ie._dtickInit=Ie.dtick,Ie._tick0Init=Ie.tick0):(Ie.minor._dtickInit=Ie.minor.dtick,Ie.minor._tick0Init=Ie.minor.tick0);var yn=Ht?Ie:b.extendFlat({},Ie,Ie.minor);if(hn?Y.prepMinorTicks(yn,Ie,De):Y.prepTicks(yn,De),yn.tickmode!=="array")if(yn.tickmode!=="sync"){var un=pe(kt),jt=un[0],nn=un[1],Jt=k(yn.dtick),rn=gt==="log"&&!(Jt||yn.dtick.charAt(0)==="L"),fn=Y.tickFirst(yn,De);if(Ht){if(Ie._tmin=fn,fn=nn:bn<=nn;bn=Y.tickIncrement(bn,Ln,ut,ht)){if(Ht&&vn++,yn.rangebreaks&&!ut){if(bn=bt)break}if(Kt.length>It||bn===En)break;En=bn;var Wn={value:bn};Ht?(rn&&bn!==(0|bn)&&(Wn.simpleLabel=!0),dt>1&&vn%dt&&(Wn.skipLabel=!0),Kt.push(Wn)):(Wn.minor=!0,qt.push(Wn))}}else Kt=[],Rt=le(Ie);else Ht?(Kt=[],Rt=se(Ie)):(qt=[],Dt=se(Ie))}if(Wt&&!(Ie.minor.ticks==="inside"&&Ie.ticks==="outside"||Ie.minor.ticks==="outside"&&Ie.ticks==="inside")){for(var Qn=Kt.map(function(At){return At.value}),ir=[],$n=0;$n0?(An=mn-1,sn=mn):(An=mn,sn=mn);var Yt,Xt=At[An].value,on=At[sn].value,ln=Math.abs(on-Xt),Sn=$t||ln,Cn=0;Sn>=c?Cn=ln>=c&&ln<=u?ln:p:$t===g&&Sn>=h?Cn=ln>=h&&ln<=x?ln:g:Sn>=y?Cn=ln>=y&&ln<=m?ln:v:$t===_&&Sn>=_?Cn=_:Sn>=f?Cn=f:$t===S&&Sn>=S?Cn=S:$t===w&&Sn>=w&&(Cn=w),Cn>=ln&&(Cn=ln,Yt=!0);var jn=xn+Cn;if(Gt.rangebreaks&&Cn>0){for(var Fn=0,Xn=0;Xn<84;Xn++){var Hn=(Xn+.5)/84;Gt.maskBreaks(xn*(1-Hn)+Hn*jn)!==P&&Fn++}(Cn*=Fn/84)||(At[mn].drop=!0),Yt&&ln>_&&(Cn=ln)}(Cn>0||mn===0)&&(At[mn].periodX=xn+Cn/2)}}(Kt,Ie,Ie._definedDelta),Ie.rangebreaks){var cn=Ie._id.charAt(0)==="y",dn=1;Ie.tickmode==="auto"&&(dn=Ie.tickfont?Ie.tickfont.size:12);var kn=NaN;for(et=Kt.length-1;et>-1;et--)if(Kt[et].drop)Kt.splice(et,1);else{Kt[et].value=Ve(Kt[et].value,Ie);var Vn=Ie.c2p(Kt[et].value);(cn?kn>Vn-dn:knbt||znbt&&(In.periodX=bt),zn10||tt.substr(5)!=="01-01"?Ie._tickround="d":Ie._tickround=+De.substr(1)%12==0?"y":"m";else if(De>=f&><=10||De>=15*f)Ie._tickround="d";else if(De>=E&><=16||De>=w)Ie._tickround="M";else if(De>=L&><=19||De>=E)Ie._tickround="S";else{var ht=Ie.l2r(et+De).replace(/^-/,"").length;Ie._tickround=Math.max(gt,ht)-20,Ie._tickround<0&&(Ie._tickround=4)}}else if(k(De)||De.charAt(0)==="L"){var dt=Ie.range.map(Ie.r2d||Number);k(De)||(De=Number(De.substr(1))),Ie._tickround=2-Math.floor(Math.log(De)/Math.LN10+.01);var ct=Math.max(Math.abs(dt[0]),Math.abs(dt[1])),kt=Math.floor(Math.log(ct)/Math.LN10+.01),ut=Ie.minexponent===void 0?3:Ie.minexponent;Math.abs(kt)>ut&&(Re(Ie.exponentformat)&&!He(kt)?Ie._tickexponent=3*Math.round((kt-1)/3):Ie._tickexponent=kt)}else Ie._tickround=null}function Ce(Ie,De,et){var tt=Ie.tickfont||{};return{x:De,dx:0,dy:0,text:et||"",fontSize:tt.size,font:tt.family,fontColor:tt.color}}Y.autoTicks=function(Ie,De,et){var tt;function gt(bt){return Math.pow(bt,Math.floor(Math.log(De)/Math.LN10))}if(Ie.type==="date"){Ie.tick0=b.dateTick0(Ie.calendar,0);var ht=2*De;if(ht>p)De/=p,tt=gt(10),Ie.dtick="M"+12*Me(De,tt,ne);else if(ht>v)De/=v,Ie.dtick="M"+Me(De,1,ve);else if(ht>f){if(Ie.dtick=Me(De,f,Ie._hasDayOfWeekBreaks?[1,2,7,14]:_e),!et){var dt=Y.getTickFormat(Ie),ct=Ie.ticklabelmode==="period";ct&&(Ie._rawTick0=Ie.tick0),/%[uVW]/.test(dt)?Ie.tick0=b.dateTick0(Ie.calendar,2):Ie.tick0=b.dateTick0(Ie.calendar,1),ct&&(Ie._dowTick0=Ie.tick0)}}else ht>w?Ie.dtick=Me(De,w,ve):ht>E?Ie.dtick=Me(De,E,Ee):ht>L?Ie.dtick=Me(De,L,Ee):(tt=gt(10),Ie.dtick=Me(De,tt,ne))}else if(Ie.type==="log"){Ie.tick0=0;var kt=b.simpleMap(Ie.range,Ie.r2l);if(Ie._isMinor&&(De*=1.5),De>.7)Ie.dtick=Math.ceil(De);else if(Math.abs(kt[1]-kt[0])<1){var ut=1.5*Math.abs((kt[1]-kt[0])/De);De=Math.abs(Math.pow(10,kt[1])-Math.pow(10,kt[0]))/ut,tt=gt(10),Ie.dtick="L"+Me(De,tt,ne)}else Ie.dtick=De>.3?"D2":"D1"}else Ie.type==="category"||Ie.type==="multicategory"?(Ie.tick0=0,Ie.dtick=Math.ceil(Math.max(De,1))):Xe(Ie)?(Ie.tick0=0,tt=1,Ie.dtick=Me(De,tt,fe)):(Ie.tick0=0,tt=gt(10),Ie.dtick=Me(De,tt,ne));if(Ie.dtick===0&&(Ie.dtick=1),!k(Ie.dtick)&&typeof Ie.dtick!="string"){var ft=Ie.dtick;throw Ie.dtick=1,"ax.dtick error: "+String(ft)}},Y.tickIncrement=function(Ie,De,et,tt){var gt=et?-1:1;if(k(De))return b.increment(Ie,gt*De);var ht=De.charAt(0),dt=gt*Number(De.substr(1));if(ht==="M")return b.incrementMonth(Ie,dt,tt);if(ht==="L")return Math.log(Math.pow(10,Ie)+dt)/Math.LN10;if(ht==="D"){var ct=De==="D2"?Ne:ze,kt=Ie+.01*gt,ut=b.roundUp(b.mod(kt,1),ct,et);return Math.floor(kt)+Math.log(M.round(Math.pow(10,ut),1))/Math.LN10}throw"unrecognized dtick "+String(De)},Y.tickFirst=function(Ie,De){var et=Ie.r2l||Number,tt=b.simpleMap(Ie.range,et,void 0,void 0,De),gt=tt[1] ")}else qt._prevDateHead=jt,nn+="
"+jt;Wt.text=nn}(Ie,ht,et,ct):kt==="log"?function(qt,Wt,Ht,hn,yn){var un=qt.dtick,jt=Wt.x,nn=qt.tickformat,Jt=typeof un=="string"&&un.charAt(0);if(yn==="never"&&(yn=""),hn&&Jt!=="L"&&(un="L3",Jt="L"),nn||Jt==="L")Wt.text=Ge(Math.pow(10,jt),qt,yn,hn);else if(k(un)||Jt==="D"&&b.mod(jt+.01,1)<.1){var rn=Math.round(jt),fn=Math.abs(rn),vn=qt.exponentformat;vn==="power"||Re(vn)&&He(rn)?(Wt.text=rn===0?1:rn===1?"10":"10"+(rn>1?"":C)+fn+"",Wt.fontSize*=1.25):(vn==="e"||vn==="E")&&fn>2?Wt.text="1"+vn+(rn>0?"+":C)+fn:(Wt.text=Ge(Math.pow(10,jt),qt,"","fakehover"),un==="D1"&&qt._id.charAt(0)==="y"&&(Wt.dy-=Wt.fontSize/6))}else{if(Jt!=="D")throw"unrecognized dtick "+String(un);Wt.text=String(Math.round(Math.pow(10,b.mod(jt,1)))),Wt.fontSize*=.75}if(qt.dtick==="D1"){var Mn=String(Wt.text).charAt(0);Mn!=="0"&&Mn!=="1"||(qt._id.charAt(0)==="y"?Wt.dx-=Wt.fontSize/4:(Wt.dy+=Wt.fontSize/2,Wt.dx+=(qt.range[1]>qt.range[0]?1:-1)*Wt.fontSize*(jt<0?.5:.25)))}}(Ie,ht,0,ct,Rt):kt==="category"?function(qt,Wt){var Ht=qt._categories[Math.round(Wt.x)];Ht===void 0&&(Ht=""),Wt.text=String(Ht)}(Ie,ht):kt==="multicategory"?function(qt,Wt,Ht){var hn=Math.round(Wt.x),yn=qt._categories[hn]||[],un=yn[1]===void 0?"":String(yn[1]),jt=yn[0]===void 0?"":String(yn[0]);Ht?Wt.text=jt+" - "+un:(Wt.text=un,Wt.text2=jt)}(Ie,ht,et):Xe(Ie)?function(qt,Wt,Ht,hn,yn){if(qt.thetaunit!=="radians"||Ht)Wt.text=Ge(Wt.x,qt,yn,hn);else{var un=Wt.x/180;if(un===0)Wt.text="0";else{var jt=function(Jt){function rn(En,bn){return Math.abs(En-bn)<=1e-6}var fn=function(En){for(var bn=1;!rn(Math.round(En*bn)/bn,En);)bn*=10;return bn}(Jt),vn=Jt*fn,Mn=Math.abs(function En(bn,Ln){return rn(Ln,0)?bn:En(Ln,bn%Ln)}(vn,fn));return[Math.round(vn/Mn),Math.round(fn/Mn)]}(un);if(jt[1]>=100)Wt.text=Ge(b.deg2rad(Wt.x),qt,yn,hn);else{var nn=Wt.x<0;jt[1]===1?jt[0]===1?Wt.text="\u03C0":Wt.text=jt[0]+"\u03C0":Wt.text=["",jt[0],"","\u2044","",jt[1],"","\u03C0"].join(""),nn&&(Wt.text=C+Wt.text)}}}}(Ie,ht,et,ct,Rt):function(qt,Wt,Ht,hn,yn){yn==="never"?yn="":qt.showexponent==="all"&&Math.abs(Wt.x/qt.dtick)<1e-6&&(yn="hide"),Wt.text=Ge(Wt.x,qt,yn,hn)}(Ie,ht,0,ct,Rt),tt||(Ie.tickprefix&&!It(Ie.showtickprefix)&&(ht.text=Ie.tickprefix+ht.text),Ie.ticksuffix&&!It(Ie.showticksuffix)&&(ht.text+=Ie.ticksuffix)),Ie.labelalias&&Ie.labelalias.hasOwnProperty(ht.text)){var Dt=Ie.labelalias[ht.text];typeof Dt=="string"&&(ht.text=Dt)}if(Ie.tickson==="boundaries"||Ie.showdividers){var Kt=function(qt){var Wt=Ie.l2p(qt);return Wt>=0&&Wt<=Ie._length?qt:null};ht.xbnd=[Kt(ht.x-.5),Kt(ht.x+Ie.dtick-.5)]}return ht},Y.hoverLabelText=function(Ie,De,et){et&&(Ie=b.extendFlat({},Ie,{hoverformat:et}));var tt=Array.isArray(De)?De[0]:De,gt=Array.isArray(De)?De[1]:void 0;if(gt!==void 0&>!==tt)return Y.hoverLabelText(Ie,tt,et)+" - "+Y.hoverLabelText(Ie,gt,et);var ht=Ie.type==="log"&&tt<=0,dt=Y.tickText(Ie,Ie.c2l(ht?-tt:tt),"hover").text;return ht?tt===0?"0":C+dt:dt};var Fe=["f","p","n","\u03BC","m","","k","M","G","T"];function Re(Ie){return Ie==="SI"||Ie==="B"}function He(Ie){return Ie>14||Ie<-15}function Ge(Ie,De,et,tt){var gt=Ie<0,ht=De._tickround,dt=et||De.exponentformat||"B",ct=De._tickexponent,kt=Y.getTickFormat(De),ut=De.separatethousands;if(tt){var ft={exponentformat:dt,minexponent:De.minexponent,dtick:De.showexponent==="none"?De.dtick:k(Ie)&&Math.abs(Ie)||1,range:De.showexponent==="none"?De.range.map(De.r2d):[0,Ie||1]};be(ft),ht=(Number(ft._tickround)||0)+4,ct=ft._tickexponent,De.hoverformat&&(kt=De.hoverformat)}if(kt)return De._numFormat(kt)(Ie).replace(/-/g,C);var bt,It=Math.pow(10,-ht)/2;if(dt==="none"&&(ct=0),(Ie=Math.abs(Ie))"+bt+"":dt==="B"&&ct===9?Ie+="B":Re(dt)&&(Ie+=Fe[ct/3+5])),gt?C+Ie:Ie}function Ke(Ie,De){if(Ie){var et=Object.keys(B).reduce(function(tt,gt){return De.indexOf(gt)!==-1&&B[gt].forEach(function(ht){tt[ht]=1}),tt},{});Object.keys(Ie).forEach(function(tt){et[tt]||(tt.length===1?Ie[tt]=0:delete Ie[tt])})}}function at(Ie,De){for(var et=[],tt={},gt=0;gt1&&et=gt.min&&Ie=0,Wt=ft(It,Rt[1])<=0;return(Dt||qt)&&(Kt||Wt)}if(Ie.tickformatstops&&Ie.tickformatstops.length>0)switch(Ie.type){case"date":case"linear":for(De=0;De=dt(gt)))){et=tt;break}break;case"log":for(De=0;De=0&>.unshift(gt.splice(ut,1).shift())}});var dt={false:{left:0,right:0}};return b.syncOrAsync(gt.map(function(ct){return function(){if(ct){var kt=Y.getFromId(Ie,ct);et||(et={}),et.axShifts=dt,et.overlayingShiftedAx=ht;var ut=Y.drawOne(Ie,kt,et);return kt._shiftPusher&&rt(kt,kt._fullDepth||0,dt,!0),kt._r=kt.range.slice(),kt._rl=b.simpleMap(kt._r,kt.r2l),ut}}}))},Y.drawOne=function(Ie,De,et){var tt,gt,ht,dt=(et=et||{}).axShifts||{},ct=et.overlayingShiftedAx||[];De.setScale();var kt=Ie._fullLayout,ut=De._id,ft=ut.charAt(0),bt=Y.counterLetter(ut),It=kt._plots[De._mainSubplot];if(It){if(De._shiftPusher=De.autoshift||ct.indexOf(De._id)!==-1||ct.indexOf(De.overlaying)!==-1,De._shiftPusher&De.anchor==="free"){var Rt=De.linewidth/2||0;De.ticks==="inside"&&(Rt+=De.ticklen),rt(De,Rt,dt,!0),rt(De,De.shift||0,dt,!1)}et.skipTitle===!0&&De._shift!==void 0||(De._shift=function(sn,Yt){return sn.autoshift?Yt[sn.overlaying][sn.side]:sn.shift||0}(De,dt));var Dt=It[ft+"axislayer"],Kt=De._mainLinePosition,qt=Kt+=De._shift,Wt=De._mainMirrorPosition,Ht=De._vals=Y.calcTicks(De),hn=[De.mirror,qt,Wt].join("_");for(tt=0;tt0?sn.bottom-Cn:0,jn))));var Fn=0,Xn=0;if(De._shiftPusher&&(Fn=Math.max(jn,sn.height>0?ln==="l"?Cn-sn.left:sn.right-Cn:0),De.title.text!==kt._dfltTitle[ft]&&(Xn=(De._titleStandoff||0)+(De._titleScoot||0),ln==="l"&&(Xn+=xt(De))),De._fullDepth=Math.max(Fn,Xn)),De.automargin){Yt={x:0,y:0,r:0,l:0,t:0,b:0};var Hn=[0,1],nr=typeof De._shift=="number"?De._shift:0;if(ft==="x"){if(ln==="b"?Yt[ln]=De._depth:(Yt[ln]=De._depth=Math.max(sn.width>0?Cn-sn.top:0,jn),Hn.reverse()),sn.width>0){var er=sn.right-(De._offset+De._length);er>0&&(Yt.xr=1,Yt.r=er);var tr=De._offset-sn.left;tr>0&&(Yt.xl=0,Yt.l=tr)}}else if(ln==="l"?(De._depth=Math.max(sn.height>0?Cn-sn.left:0,jn),Yt[ln]=De._depth-nr):(De._depth=Math.max(sn.height>0?sn.right-Cn:0,jn),Yt[ln]=De._depth+nr,Hn.reverse()),sn.height>0){var lr=sn.bottom-(De._offset+De._length);lr>0&&(Yt.yb=0,Yt.b=lr);var ur=De._offset-sn.top;ur>0&&(Yt.yt=1,Yt.t=ur)}Yt[bt]=De.anchor==="free"?De.position:De._anchorAxis.domain[Hn[0]],De.title.text!==kt._dfltTitle[ft]&&(Yt[ln]+=xt(De)+(De.title.standoff||0)),De.mirror&&De.anchor!=="free"&&((Xt={x:0,y:0,r:0,l:0,t:0,b:0})[Sn]=De.linewidth,De.mirror&&De.mirror!==!0&&(Xt[Sn]+=jn),De.mirror===!0||De.mirror==="ticks"?Xt[bt]=De._anchorAxis.domain[Hn[1]]:De.mirror!=="all"&&De.mirror!=="allticks"||(Xt[bt]=[De._counterDomainMin,De._counterDomainMax][Hn[1]]))}xn&&(on=T.getComponentMethod("rangeslider","autoMarginOpts")(Ie,De)),typeof De.automargin=="string"&&(Ke(Yt,De.automargin),Ke(Xt,De.automargin)),l.autoMargin(Ie,mt(De),Yt),l.autoMargin(Ie,Tt(De),Xt),l.autoMargin(Ie,wt(De),on)}),b.syncOrAsync($t)}}function An(sn){var Yt=ut+(sn||"tick");return yn[Yt]||(yn[Yt]=function(Xt,on){var ln,Sn,Cn,jn;return Xt._selections[on].size()?(ln=1/0,Sn=-1/0,Cn=1/0,jn=-1/0,Xt._selections[on].each(function(){var Fn=ot(this),Xn=r.bBox(Fn.node().parentNode);ln=Math.min(ln,Xn.top),Sn=Math.max(Sn,Xn.bottom),Cn=Math.min(Cn,Xn.left),jn=Math.max(jn,Xn.right)})):(ln=0,Sn=0,Cn=0,jn=0),{top:ln,bottom:Sn,left:Cn,right:jn,height:Sn-ln,width:jn-Cn}}(De,Yt)),yn[Yt]}},Y.getTickSigns=function(Ie,De){var et=Ie._id.charAt(0),tt={x:"top",y:"right"}[et],gt=Ie.side===tt?1:-1,ht=[-1,1,gt,-gt];return(De?(Ie.minor||{}).ticks:Ie.ticks)!=="inside"==(et==="x")&&(ht=ht.map(function(dt){return-dt})),Ie.side&&ht.push({l:-1,t:-1,r:1,b:1}[Ie.side.charAt(0)]),ht},Y.makeTransTickFn=function(Ie){return Ie._id.charAt(0)==="x"?function(De){return d(Ie._offset+Ie.l2p(De.x),0)}:function(De){return d(0,Ie._offset+Ie.l2p(De.x))}},Y.makeTransTickLabelFn=function(Ie){var De=function(gt){var ht=gt.ticklabelposition||"",dt=function(Wt){return ht.indexOf(Wt)!==-1},ct=dt("top"),kt=dt("left"),ut=dt("right"),ft=dt("bottom"),bt=dt("inside"),It=ft||kt||ct||ut;if(!It&&!bt)return[0,0];var Rt=gt.side,Dt=It?(gt.tickwidth||0)/2:0,Kt=3,qt=gt.tickfont?gt.tickfont.size:12;return(ft||ct)&&(Dt+=qt*te,Kt+=(gt.linewidth||0)/2),(kt||ut)&&(Dt+=(gt.linewidth||0)/2,Kt+=3),bt&&Rt==="top"&&(Kt-=qt*(1-te)),(kt||ct)&&(Dt=-Dt),Rt!=="bottom"&&Rt!=="right"||(Kt=-Kt),[It?Dt:0,bt?Kt:0]}(Ie),et=De[0],tt=De[1];return Ie._id.charAt(0)==="x"?function(gt){return d(et+Ie._offset+Ie.l2p(Qe(gt)),tt)}:function(gt){return d(tt,et+Ie._offset+Ie.l2p(Qe(gt)))}},Y.makeTickPath=function(Ie,De,et,tt){tt||(tt={});var gt=tt.minor;if(gt&&!Ie.minor)return"";var ht=tt.len!==void 0?tt.len:gt?Ie.minor.ticklen:Ie.ticklen,dt=Ie._id.charAt(0),ct=(Ie.linewidth||1)/2;return dt==="x"?"M0,"+(De+ct*et)+"v"+ht*et:"M"+(De+ct*et)+",0h"+ht*et},Y.makeLabelFns=function(Ie,De,et){var tt=Ie.ticklabelposition||"",gt=function(vn){return tt.indexOf(vn)!==-1},ht=gt("top"),dt=gt("left"),ct=gt("right"),kt=gt("bottom")||dt||ht||ct,ut=gt("inside"),ft=tt==="inside"&&Ie.ticks==="inside"||!ut&&Ie.ticks==="outside"&&Ie.tickson!=="boundaries",bt=0,It=0,Rt=ft?Ie.ticklen:0;if(ut?Rt*=-1:kt&&(Rt=0),ft&&(bt+=Rt,et)){var Dt=b.deg2rad(et);bt=Rt*Math.cos(Dt)+1,It=Rt*Math.sin(Dt)}Ie.showticklabels&&(ft||Ie.showline)&&(bt+=.2*Ie.tickfont.size);var Kt,qt,Wt,Ht,hn,yn={labelStandoff:bt+=(Ie.linewidth||1)/2*(ut?-1:1),labelShift:It},un=0,jt=Ie.side,nn=Ie._id.charAt(0),Jt=Ie.tickangle;if(nn==="x")Ht=(hn=!ut&&jt==="bottom"||ut&&jt==="top")?1:-1,ut&&(Ht*=-1),Kt=It*Ht,qt=De+bt*Ht,Wt=hn?1:-.2,Math.abs(Jt)===90&&(ut?Wt+=q:Wt=Jt===-90&&jt==="bottom"?te:Jt===90&&jt==="top"?q:.5,un=q/2*(Jt/90)),yn.xFn=function(vn){return vn.dx+Kt+un*vn.fontSize},yn.yFn=function(vn){return vn.dy+qt+vn.fontSize*Wt},yn.anchorFn=function(vn,Mn){if(kt){if(dt)return"end";if(ct)return"start"}return k(Mn)&&Mn!==0&&Mn!==180?Mn*Ht<0!==ut?"end":"start":"middle"},yn.heightFn=function(vn,Mn,En){return Mn<-60||Mn>60?-.5*En:Ie.side==="top"!==ut?-En:0};else if(nn==="y"){if(Ht=(hn=!ut&&jt==="left"||ut&&jt==="right")?1:-1,ut&&(Ht*=-1),Kt=bt,qt=It*Ht,Wt=0,ut||Math.abs(Jt)!==90||(Wt=Jt===-90&&jt==="left"||Jt===90&&jt==="right"?te:.5),ut){var rn=k(Jt)?+Jt:0;if(rn!==0){var fn=b.deg2rad(rn);un=Math.abs(Math.sin(fn))*te*Ht,Wt=0}}yn.xFn=function(vn){return vn.dx+De-(Kt+vn.fontSize*Wt)*Ht+un*vn.fontSize},yn.yFn=function(vn){return vn.dy+qt+vn.fontSize*q},yn.anchorFn=function(vn,Mn){return k(Mn)&&Math.abs(Mn)===90?"middle":hn?"end":"start"},yn.heightFn=function(vn,Mn,En){return Ie.side==="right"&&(Mn*=-1),Mn<-30?-En:Mn<30?-.5*En:0}}return yn},Y.drawTicks=function(Ie,De,et){et=et||{};var tt=De._id+"tick",gt=[].concat(De.minor&&De.minor.ticks?et.vals.filter(function(dt){return dt.minor&&!dt.noTick}):[]).concat(De.ticks?et.vals.filter(function(dt){return!dt.minor&&!dt.noTick}):[]),ht=et.layer.selectAll("path."+tt).data(gt,vt);ht.exit().remove(),ht.enter().append("path").classed(tt,1).classed("ticks",1).classed("crisp",et.crisp!==!1).each(function(dt){return i.stroke(M.select(this),dt.minor?De.minor.tickcolor:De.tickcolor)}).style("stroke-width",function(dt){return r.crispRound(Ie,dt.minor?De.minor.tickwidth:De.tickwidth,1)+"px"}).attr("d",et.path).style("display",null),nt(De,[V]),ht.attr("transform",et.transFn)},Y.drawGrid=function(Ie,De,et){if(et=et||{},De.tickmode!=="sync"){var tt=De._id+"grid",gt=De.minor&&De.minor.showgrid,ht=gt?et.vals.filter(function(Wt){return Wt.minor}):[],dt=De.showgrid?et.vals.filter(function(Wt){return!Wt.minor}):[],ct=et.counterAxis;if(ct&&Y.shouldShowZeroLine(Ie,De,ct))for(var kt=De.tickmode==="array",ut=0;ut=0;Dt--){var Kt=Dt?It:Rt;if(Kt){var qt=Kt.selectAll("path."+tt).data(Dt?dt:ht,vt);qt.exit().remove(),qt.enter().append("path").classed(tt,1).classed("crisp",et.crisp!==!1),qt.attr("transform",et.transFn).attr("d",et.path).each(function(Wt){return i.stroke(M.select(this),Wt.minor?De.minor.gridcolor:De.gridcolor||"#ddd")}).style("stroke-dasharray",function(Wt){return r.dashStyle(Wt.minor?De.minor.griddash:De.griddash,Wt.minor?De.minor.gridwidth:De.gridwidth)}).style("stroke-width",function(Wt){return(Wt.minor?bt:De._gw)+"px"}).style("display",null),typeof et.path=="function"&&qt.attr("d",et.path)}}nt(De,[G,O])}},Y.drawZeroLine=function(Ie,De,et){et=et||et;var tt=De._id+"zl",gt=Y.shouldShowZeroLine(Ie,De,et.counterAxis),ht=et.layer.selectAll("path."+tt).data(gt?[{x:0,id:De._id}]:[]);ht.exit().remove(),ht.enter().append("path").classed(tt,1).classed("zl",1).classed("crisp",et.crisp!==!1).each(function(){et.layer.selectAll("path").sort(function(dt,ct){return re(dt.id,ct.id)})}),ht.attr("transform",et.transFn).attr("d",et.path).call(i.stroke,De.zerolinecolor||i.defaultLine).style("stroke-width",r.crispRound(Ie,De.zerolinewidth,De._gw||1)+"px").style("display",null),nt(De,[R])},Y.drawLabels=function(Ie,De,et){et=et||{};var tt=Ie._fullLayout,gt=De._id,ht=gt.charAt(0),dt=et.cls||gt+"tick",ct=et.vals.filter(function(Ht){return Ht.text}),kt=et.labelFns,ut=et.secondary?0:De.tickangle,ft=(De._prevTickAngles||{})[dt],bt=et.layer.selectAll("g."+dt).data(De.showticklabels?ct:[],vt),It=[];function Rt(Ht,hn){Ht.each(function(yn){var un=M.select(this),jt=un.select(".text-math-group"),nn=kt.anchorFn(yn,hn),Jt=et.transFn.call(un.node(),yn)+(k(hn)&&+hn!=0?" rotate("+hn+","+kt.xFn(yn)+","+(kt.yFn(yn)-yn.fontSize/2)+")":""),rn=s.lineCount(un),fn=K*yn.fontSize,vn=kt.heightFn(yn,k(hn)?+hn:0,(rn-1)*fn);if(vn&&(Jt+=d(0,vn)),jt.empty()){var Mn=un.select("text");Mn.attr({transform:Jt,"text-anchor":nn}),Mn.style("opacity",1),De._adjustTickLabelsOverflow&&De._adjustTickLabelsOverflow()}else{var En=r.bBox(jt.node()).width*{end:-.5,start:.5}[nn];jt.attr("transform",Jt+d(En,0))}})}bt.enter().append("g").classed(dt,1).append("text").attr("text-anchor","middle").each(function(Ht){var hn=M.select(this),yn=Ie._promises.length;hn.call(s.positionText,kt.xFn(Ht),kt.yFn(Ht)).call(r.font,Ht.font,Ht.fontSize,Ht.fontColor).text(Ht.text).call(s.convertToTspans,Ie),Ie._promises[yn]?It.push(Ie._promises.pop().then(function(){Rt(hn,ut)})):Rt(hn,ut)}),nt(De,[N]),bt.exit().remove(),et.repositionOnUpdate&&bt.each(function(Ht){M.select(this).select("text").call(s.positionText,kt.xFn(Ht),kt.yFn(Ht))}),De._adjustTickLabelsOverflow=function(){var Ht=De.ticklabeloverflow;if(Ht&&Ht!=="allow"){var hn=Ht.indexOf("hide")!==-1,yn=De._id.charAt(0)==="x",un=0,jt=yn?Ie._fullLayout.width:Ie._fullLayout.height;if(Ht.indexOf("domain")!==-1){var nn=b.simpleMap(De.range,De.r2l);un=De.l2p(nn[0])+De._offset,jt=De.l2p(nn[1])+De._offset}var Jt=Math.min(un,jt),rn=Math.max(un,jt),fn=De.side,vn=1/0,Mn=-1/0;for(var En in bt.each(function(Wn){var Qn=M.select(this);if(Qn.select(".text-math-group").empty()){var ir=r.bBox(Qn.node()),$n=0;yn?(ir.right>rn||ir.leftrn||ir.top+(De.tickangle?0:Wn.fontSize/4)De["_visibleLabelMin_"+nn._id]?Ln.style("display","none"):rn.K!=="tick"||Jt||Ln.style("display",null)})})})})},Rt(bt,ft+1?ft:ut);var Dt=null;De._selections&&(De._selections[dt]=bt);var Kt=[function(){return It.length&&Promise.all(It)}];De.automargin&&tt._redrawFromAutoMarginCount&&ft===90?(Dt=90,Kt.push(function(){Rt(bt,ft)})):Kt.push(function(){if(Rt(bt,ut),ct.length&&ht==="x"&&!k(ut)&&(De.type!=="log"||String(De.dtick).charAt(0)!=="D")){Dt=0;var Ht,hn=0,yn=[];if(bt.each(function(Qn){hn=Math.max(hn,Qn.fontSize);var ir=De.l2p(Qn.x),$n=ot(this),Gn=r.bBox($n.node());yn.push({top:0,bottom:10,height:10,left:ir-Gn.width/2,right:ir+Gn.width/2+2,width:Gn.width+2})}),De.tickson!=="boundaries"&&!De.showdividers||et.secondary){var un=ct.length,jt=Math.abs((ct[un-1].x-ct[0].x)*De._m)/(un-1),nn=De.ticklabelposition||"",Jt=function(Qn){return nn.indexOf(Qn)!==-1},rn=Jt("top"),fn=Jt("left"),vn=Jt("right"),Mn=Jt("bottom")||fn||rn||vn?(De.tickwidth||0)+6:0,En=jt<2.5*hn||De.type==="multicategory"||De._name==="realaxis";for(Ht=0;Ht1)for(ct=1;ct2*f}(a,n))return"date";var g=o.autotypenumbers!=="strict";return function(h,m){for(var v=h.length,y=i(v),_=0,f=0,S={},w=0;w2*_}(a,g)?"category":function(h,m){for(var v=h.length,y=0;y=2){var S,w,E="";if(f.length===2){for(S=0;S<2;S++)if(w=h(f[S])){E=p;break}}var L=_("pattern",E);if(L===p)for(S=0;S<2;S++)(w=h(f[S]))&&(v.bounds[S]=f[S]=w-1);if(L)for(S=0;S<2;S++)switch(w=f[S],L){case p:if(!M(w)||(w=+w)!==Math.floor(w)||w<0||w>=7)return void(v.enabled=!1);v.bounds[S]=f[S]=w;break;case c:if(!M(w)||(w=+w)<0||w>24)return void(v.enabled=!1);v.bounds[S]=f[S]=w}if(y.autorange===!1){var C=y.range;if(C[0]C[1])return void(v.enabled=!1)}else if(f[0]>C[0]&&f[1]s?1:-1:+(T.substr(1)||1)-+(b.substr(1)||1)},z.ref2id=function(T){return!!/^[xyz]/.test(T)&&T.split(" ")[0]},z.isLinked=function(T,b){return l(b,T._axisMatchGroups)||l(b,T._axisConstraintGroups)}},15258:function(ee){ee.exports=function(z,e,M,k){if(e.type==="category"){var l,T=z.categoryarray,b=Array.isArray(T)&&T.length>0;b&&(l="array");var d,s=M("categoryorder",l);s==="array"&&(d=M("categoryarray")),b||s!=="array"||(s=e.categoryorder="trace"),s==="trace"?e._initialCategories=[]:s==="array"?e._initialCategories=d.slice():(d=function(t,i){var r,n,o,a=i.dataAttr||t._id.charAt(0),u={};if(i.axData)r=i.axData;else for(r=[],n=0;nh?m.substr(h):v.substr(g))+y:m+v+c*x:y}function u(c,x){for(var g=x._size,h=g.h/g.w,m={},v=Object.keys(c),y=0;ys*C)||O){for(g=0;gW&&oeJ&&(J=oe);f/=(J-K)/(2*Y),K=v.l2r(K),J=v.l2r(J),v.range=v._input.range=H=0?Math.min(oe,.9):1/(1/Math.max(oe,-.3)+3.222))}function H(oe,ce,pe,ge,we){return oe.append("path").attr("class","zoombox").style({fill:ce>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",s(pe,ge)).attr("d",we+"Z")}function q(oe,ce,pe){return oe.append("path").attr("class","zoombox-corners").style({fill:i.background,stroke:i.defaultLine,"stroke-width":1,opacity:0}).attr("transform",s(ce,pe)).attr("d","M0,0Z")}function te(oe,ce,pe,ge,we,ye){oe.attr("d",ge+"M"+pe.l+","+pe.t+"v"+pe.h+"h"+pe.w+"v-"+pe.h+"h-"+pe.w+"Z"),K(oe,ce,we,ye)}function K(oe,ce,pe,ge){pe||(oe.transition().style("fill",ge>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ce.transition().style("opacity",1).duration(200))}function J(oe){M.select(oe).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Y(oe){P&&oe.data&&oe._context.showTips&&(k.notifier(k._(oe,"Double-click to zoom back out"),"long"),P=!1)}function W(oe){var ce=Math.floor(Math.min(oe.b-oe.t,oe.r-oe.l,C)/2);return"M"+(oe.l-3.5)+","+(oe.t-.5+ce)+"h3v"+-ce+"h"+ce+"v-3h-"+(ce+3)+"ZM"+(oe.r+3.5)+","+(oe.t-.5+ce)+"h-3v"+-ce+"h"+-ce+"v-3h"+(ce+3)+"ZM"+(oe.r+3.5)+","+(oe.b+.5-ce)+"h-3v"+ce+"h"+-ce+"v3h"+(ce+3)+"ZM"+(oe.l-3.5)+","+(oe.b+.5-ce)+"h3v"+ce+"h"+ce+"v3h-"+(ce+3)+"Z"}function Q(oe,ce,pe,ge,we){for(var ye,me,Oe,ke,Te=!1,le={},se={},ne=(we||{}).xaHash,ve=(we||{}).yaHash,Ee=0;Ee=0)Jt._fullLayout._deactivateShape(Jt);else{var rn=Jt._fullLayout.clickmode;if(J(Jt),jt!==2||mt||qt(),ot)rn.indexOf("select")>-1&&S(nn,Jt,ne,ve,ce.id,tt),rn.indexOf("event")>-1&&n.click(Jt,nn,ce.id);else if(jt===1&&mt){var fn=me?Te:ke,vn=me==="s"||Oe==="w"?0:1,Mn=fn._name+".range["+vn+"]",En=function(Wn,Qn){var ir,$n=Wn.range[Qn],Gn=Math.abs($n-Wn.range[1-Qn]);return Wn.type==="date"?$n:Wn.type==="log"?(ir=Math.ceil(Math.max(0,-Math.log(Gn)/Math.LN10))+3,l("."+ir+"g")(Math.pow(10,$n))):(ir=Math.floor(Math.log(Math.abs($n))/Math.LN10)-Math.floor(Math.log(Gn)/Math.LN10)+4,l("."+String(ir)+"g")($n))}(fn,vn),bn="left",Ln="middle";if(fn.fixedrange)return;me?(Ln=me==="n"?"top":"bottom",fn.side==="right"&&(bn="right")):Oe==="e"&&(bn="right"),Jt._context.showAxisRangeEntryBoxes&&M.select(Pt).call(t.makeEditable,{gd:Jt,immediate:!0,background:Jt._fullLayout.paper_bgcolor,text:String(En),fill:fn.tickfont?fn.tickfont.color:"#444",horizontalAlign:bn,verticalAlign:Ln}).on("edit",function(Wn){var Qn=fn.d2r(Wn);Qn!==void 0&&d.call("_guiRelayout",Jt,Mn,Qn)})}}}function dt(jt,nn){if(oe._transitioningWithDuration)return!1;var Jt=Math.max(0,Math.min(ze,vt*jt+Mt)),rn=Math.max(0,Math.min(Ne,xt*nn+Ye)),fn=Math.abs(Jt-Mt),vn=Math.abs(rn-Ye);function Mn(){rt="",Xe.r=Xe.l,Xe.t=Xe.b,De.attr("d","M0,0Z")}if(Xe.l=Math.min(Mt,Jt),Xe.r=Math.max(Mt,Jt),Xe.t=Math.min(Ye,rn),Xe.b=Math.max(Ye,rn),fe.isSubplotConstrained)fn>C||vn>C?(rt="xy",fn/ze>vn/Ne?(vn=fn*Ne/ze,Ye>rn?Xe.t=Ye-vn:Xe.b=Ye+vn):(fn=vn*ze/Ne,Mt>Jt?Xe.l=Mt-fn:Xe.r=Mt+fn),De.attr("d",W(Xe))):Mn();else if(Me.isSubplotConstrained)if(fn>C||vn>C){rt="xy";var En=Math.min(Xe.l/ze,(Ne-Xe.b)/Ne),bn=Math.max(Xe.r/ze,(Ne-Xe.t)/Ne);Xe.l=En*ze,Xe.r=bn*ze,Xe.b=(1-En)*Ne,Xe.t=(1-bn)*Ne,De.attr("d",W(Xe))}else Mn();else!Ce||vn0){var Ln;if(Me.isSubplotConstrained||!be&&Ce.length===1){for(Ln=0;Ln1&&(rn.maxallowed!==void 0&&Re===(rn.range[0]1&&(fn.maxallowed!==void 0&&He===(fn.range[0]v[1]-.000244140625&&(T.domain=t),k.noneOrAll(l.domain,T.domain,t),T.tickmode==="sync"&&(T.tickmode="auto")}return b("layer"),T}},89426:function(ee,z,e){var M=e(59652);ee.exports=function(k,l,T,b,d){d||(d={});var s=d.tickSuffixDflt,t=M(k);T("tickprefix")&&T("showtickprefix",t),T("ticksuffix",s)&&T("showticksuffix",t)}},42449:function(ee,z,e){var M=e(18783).FROM_BL;ee.exports=function(k,l,T){T===void 0&&(T=M[k.constraintoward||"center"]);var b=[k.r2l(k.range[0]),k.r2l(k.range[1])],d=b[0]+(b[1]-b[0])*T;k.range=k._input.range=[k.l2r(d+(b[0]-d)*l),k.l2r(d+(b[1]-d)*l)],k.setScale()}},21994:function(ee,z,e){var M=e(39898),k=e(84096).g0,l=e(71828),T=l.numberFormat,b=e(92770),d=l.cleanNumber,s=l.ms2DateTime,t=l.dateTime2ms,i=l.ensureNumber,r=l.isArrayOrTypedArray,n=e(50606),o=n.FP_SAFE,a=n.BADNUM,u=n.LOG_CLIP,p=n.ONEWEEK,c=n.ONEDAY,x=n.ONEHOUR,g=n.ONEMIN,h=n.ONESEC,m=e(41675),v=e(85555),y=v.HOUR_PATTERN,_=v.WEEKDAY_PATTERN;function f(w){return Math.pow(10,w)}function S(w){return w!=null}ee.exports=function(w,E){E=E||{};var L=w._id||"x",C=L.charAt(0);function P(Q,re){if(Q>0)return Math.log(Q)/Math.LN10;if(Q<=0&&re&&w.range&&w.range.length===2){var ie=w.range[0],oe=w.range[1];return .5*(ie+oe-2*u*Math.abs(ie-oe))}return a}function R(Q,re,ie,oe){if((oe||{}).msUTC&&b(Q))return+Q;var ce=t(Q,ie||w.calendar);if(ce===a){if(!b(Q))return a;Q=+Q;var pe=Math.floor(10*l.mod(Q+.05,1)),ge=Math.round(Q-pe/10);ce=t(new Date(ge))+pe/10}return ce}function G(Q,re,ie){return s(Q,re,ie||w.calendar)}function O(Q){return w._categories[Math.round(Q)]}function V(Q){if(S(Q)){if(w._categoriesMap===void 0&&(w._categoriesMap={}),w._categoriesMap[Q]!==void 0)return w._categoriesMap[Q];w._categories.push(typeof Q=="number"?String(Q):Q);var re=w._categories.length-1;return w._categoriesMap[Q]=re,re}return a}function N(Q){if(w._categoriesMap)return w._categoriesMap[Q]}function B(Q){var re=N(Q);return re!==void 0?re:b(Q)?+Q:void 0}function H(Q){return b(Q)?+Q:N(Q)}function q(Q,re,ie){return M.round(ie+re*Q,2)}function te(Q,re,ie){return(Q-ie)/re}var K=function(Q){return b(Q)?q(Q,w._m,w._b):a},J=function(Q){return te(Q,w._m,w._b)};if(w.rangebreaks){var Y=C==="y";K=function(Q){if(!b(Q))return a;var re=w._rangebreaks.length;if(!re)return q(Q,w._m,w._b);var ie=Y;w.range[0]>w.range[1]&&(ie=!ie);for(var oe=ie?-1:1,ce=oe*Q,pe=0,ge=0;geye)){pe=ce<(we+ye)/2?ge:ge+1;break}pe=ge+1}var me=w._B[pe]||0;return isFinite(me)?q(Q,w._m2,me):0},J=function(Q){var re=w._rangebreaks.length;if(!re)return te(Q,w._m,w._b);for(var ie=0,oe=0;oew._rangebreaks[oe].pmax&&(ie=oe+1);return te(Q,w._m2,w._B[ie])}}w.c2l=w.type==="log"?P:i,w.l2c=w.type==="log"?f:i,w.l2p=K,w.p2l=J,w.c2p=w.type==="log"?function(Q,re){return K(P(Q,re))}:K,w.p2c=w.type==="log"?function(Q){return f(J(Q))}:J,["linear","-"].indexOf(w.type)!==-1?(w.d2r=w.r2d=w.d2c=w.r2c=w.d2l=w.r2l=d,w.c2d=w.c2r=w.l2d=w.l2r=i,w.d2p=w.r2p=function(Q){return w.l2p(d(Q))},w.p2d=w.p2r=J,w.cleanPos=i):w.type==="log"?(w.d2r=w.d2l=function(Q,re){return P(d(Q),re)},w.r2d=w.r2c=function(Q){return f(d(Q))},w.d2c=w.r2l=d,w.c2d=w.l2r=i,w.c2r=P,w.l2d=f,w.d2p=function(Q,re){return w.l2p(w.d2r(Q,re))},w.p2d=function(Q){return f(J(Q))},w.r2p=function(Q){return w.l2p(d(Q))},w.p2r=J,w.cleanPos=i):w.type==="date"?(w.d2r=w.r2d=l.identity,w.d2c=w.r2c=w.d2l=w.r2l=R,w.c2d=w.c2r=w.l2d=w.l2r=G,w.d2p=w.r2p=function(Q,re,ie){return w.l2p(R(Q,0,ie))},w.p2d=w.p2r=function(Q,re,ie){return G(J(Q),re,ie)},w.cleanPos=function(Q){return l.cleanDate(Q,a,w.calendar)}):w.type==="category"?(w.d2c=w.d2l=V,w.r2d=w.c2d=w.l2d=O,w.d2r=w.d2l_noadd=B,w.r2c=function(Q){var re=H(Q);return re!==void 0?re:w.fraction2r(.5)},w.l2r=w.c2r=i,w.r2l=H,w.d2p=function(Q){return w.l2p(w.r2c(Q))},w.p2d=function(Q){return O(J(Q))},w.r2p=w.d2p,w.p2r=J,w.cleanPos=function(Q){return typeof Q=="string"&&Q!==""?Q:i(Q)}):w.type==="multicategory"&&(w.r2d=w.c2d=w.l2d=O,w.d2r=w.d2l_noadd=B,w.r2c=function(Q){var re=B(Q);return re!==void 0?re:w.fraction2r(.5)},w.r2c_just_indices=N,w.l2r=w.c2r=i,w.r2l=B,w.d2p=function(Q){return w.l2p(w.r2c(Q))},w.p2d=function(Q){return O(J(Q))},w.r2p=w.d2p,w.p2r=J,w.cleanPos=function(Q){return Array.isArray(Q)||typeof Q=="string"&&Q!==""?Q:i(Q)},w.setupMultiCategory=function(Q){var re,ie,oe=w._traceIndices,ce=w._matchGroup;if(ce&&w._categories.length===0){for(var pe in ce)if(pe!==L){var ge=E[m.id2name(pe)];oe=oe.concat(ge._traceIndices)}}var we=[[0,{}],[0,{}]],ye=[];for(re=0;rege[1]&&(oe[pe?0:1]=ie)}},w.cleanRange=function(Q,re){w._cleanRange(Q,re),w.limitRange(Q)},w._cleanRange=function(Q,re){re||(re={}),Q||(Q="range");var ie,oe,ce=l.nestedProperty(w,Q).get();if(oe=(oe=w.type==="date"?l.dfltRange(w.calendar):C==="y"?v.DFLTRANGEY:w._name==="realaxis"?[0,1]:re.dfltRange||v.DFLTRANGEX).slice(),w.rangemode!=="tozero"&&w.rangemode!=="nonnegative"||(oe[0]=0),ce&&ce.length===2){var pe=ce[0]===null,ge=ce[1]===null;for(w.type!=="date"||w.autorange||(ce[0]=l.cleanDate(ce[0],a,w.calendar),ce[1]=l.cleanDate(ce[1],a,w.calendar)),ie=0;ie<2;ie++)if(w.type==="date"){if(!l.isDateTime(ce[ie],w.calendar)){w[Q]=oe;break}if(w.r2l(ce[0])===w.r2l(ce[1])){var we=l.constrain(w.r2l(ce[0]),l.MIN_MS+1e3,l.MAX_MS-1e3);ce[0]=w.l2r(we-1e3),ce[1]=w.l2r(we+1e3);break}}else{if(!b(ce[ie])){if(pe||ge||!b(ce[1-ie])){w[Q]=oe;break}ce[ie]=ce[1-ie]*(ie?10:.1)}if(ce[ie]<-o?ce[ie]=-o:ce[ie]>o&&(ce[ie]=o),ce[0]===ce[1]){var ye=Math.max(1,Math.abs(1e-6*ce[0]));ce[0]-=ye,ce[1]+=ye}}}else l.nestedProperty(w,Q).set(oe)},w.setScale=function(Q){var re=E._size;if(w.overlaying){var ie=m.getFromId({_fullLayout:E},w.overlaying);w.domain=ie.domain}var oe=Q&&w._r?"_r":"range",ce=w.calendar;w.cleanRange(oe);var pe,ge,we=w.r2l(w[oe][0],ce),ye=w.r2l(w[oe][1],ce),me=C==="y";if(me?(w._offset=re.t+(1-w.domain[1])*re.h,w._length=re.h*(w.domain[1]-w.domain[0]),w._m=w._length/(we-ye),w._b=-w._m*ye):(w._offset=re.l+w.domain[0]*re.w,w._length=re.w*(w.domain[1]-w.domain[0]),w._m=w._length/(ye-we),w._b=-w._m*we),w._rangebreaks=[],w._lBreaks=0,w._m2=0,w._B=[],w.rangebreaks&&(w._rangebreaks=w.locateBreaks(Math.min(we,ye),Math.max(we,ye)),w._rangebreaks.length)){for(pe=0;peye&&(Oe=!Oe),Oe&&w._rangebreaks.reverse();var ke=Oe?-1:1;for(w._m2=ke*w._length/(Math.abs(ye-we)-w._lBreaks),w._B.push(-w._m2*(me?ye:we)),pe=0;peoe&&(oe+=7,ceoe&&(oe+=24,ce=ie&&ce=ie&&Q=Me.min&&(_eMe.max&&(Me.max=ze),Ne=!1)}Ne&&ge.push({min:_e,max:ze})}};for(ie=0;iet.duration?(function(){for(var y={},_=0;_ rect").call(T.setTranslate,0,0).call(T.setScale,1,1),g.plot.call(T.setTranslate,h._offset,m._offset).call(T.setScale,1,1);var v=g.plot.selectAll(".scatterlayer .trace");v.selectAll(".point").call(T.setPointGroupScale,1,1),v.selectAll(".textpoint").call(T.setTextPointsScale,1,1),v.call(T.hideOutsideRangePoints,g)}function x(g,h){var m=g.plotinfo,v=m.xaxis,y=m.yaxis,_=v._length,f=y._length,S=!!g.xr1,w=!!g.yr1,E=[];if(S){var L=l.simpleMap(g.xr0,v.r2l),C=l.simpleMap(g.xr1,v.r2l),P=L[1]-L[0],R=C[1]-C[0];E[0]=(L[0]*(1-h)+h*C[0]-L[0])/(L[1]-L[0])*_,E[2]=_*(1-h+h*R/P),v.range[0]=v.l2r(L[0]*(1-h)+h*C[0]),v.range[1]=v.l2r(L[1]*(1-h)+h*C[1])}else E[0]=0,E[2]=_;if(w){var G=l.simpleMap(g.yr0,y.r2l),O=l.simpleMap(g.yr1,y.r2l),V=G[1]-G[0],N=O[1]-O[0];E[1]=(G[1]*(1-h)+h*O[1]-G[1])/(G[0]-G[1])*f,E[3]=f*(1-h+h*N/V),y.range[0]=v.l2r(G[0]*(1-h)+h*O[0]),y.range[1]=y.l2r(G[1]*(1-h)+h*O[1])}else E[1]=0,E[3]=f;b.drawOne(d,v,{skipTitle:!0}),b.drawOne(d,y,{skipTitle:!0}),b.redrawComponents(d,[v._id,y._id]);var B=S?_/E[2]:1,H=w?f/E[3]:1,q=S?E[0]:0,te=w?E[1]:0,K=S?E[0]/E[2]*_:0,J=w?E[1]/E[3]*f:0,Y=v._offset-K,W=y._offset-J;m.clipRect.call(T.setTranslate,q,te).call(T.setScale,1/B,1/H),m.plot.call(T.setTranslate,Y,W).call(T.setScale,B,H),T.setPointGroupScale(m.zoomScalePts,1/B,1/H),T.setTextPointsScale(m.zoomScaleTxt,1/B,1/H)}b.redrawComponents(d)}},951:function(ee,z,e){var M=e(73972).traceIs,k=e(4322);function l(b){return{v:"x",h:"y"}[b.orientation||"v"]}function T(b,d){var s=l(b),t=M(b,"box-violin"),i=M(b._fullInput||{},"candlestick");return t&&!i&&d===s&&b[s]===void 0&&b[s+"0"]===void 0}ee.exports=function(b,d,s,t){s("autotypenumbers",t.autotypenumbersDflt),s("type",(t.splomStash||{}).type)==="-"&&(function(i,r){if(i.type==="-"){var n,o=i._id,a=o.charAt(0);o.indexOf("scene")!==-1&&(o=a);var u=function(y,_,f){for(var S=0;S0&&(w["_"+f+"axes"]||{})[_]||(w[f+"axis"]||f)===_&&(T(w,f)||(w[f]||[]).length||w[f+"0"]))return w}}(r,o,a);if(u)if(u.type!=="histogram"||a!=={v:"y",h:"x"}[u.orientation||"v"]){var p=a+"calendar",c=u[p],x={noMultiCategory:!M(u,"cartesian")||M(u,"noMultiCategory")};if(u.type==="box"&&u._hasPreCompStats&&a==={h:"x",v:"y"}[u.orientation||"v"]&&(x.noMultiCategory=!0),x.autotypenumbers=i.autotypenumbers,T(u,a)){var g=l(u),h=[];for(n=0;n0?".":"")+n;k.isPlainObject(o)?d(o,t,a,r+1):t(a,n,o)}})}z.manageCommandObserver=function(s,t,i,r){var n={},o=!0;t&&t._commandObserver&&(n=t._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var a=z.hasSimpleAPICommandBindings(s,i,n.lookupTable);if(t&&t._commandObserver){if(a)return n;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,n}if(a){l(s,a,n.cache),n.check=function(){if(o){var c=l(s,a,n.cache);return c.changed&&r&&n.lookupTable[c.value]!==void 0&&(n.disable(),Promise.resolve(r({value:c.value,type:a.type,prop:a.prop,traces:a.traces,index:n.lookupTable[c.value]})).then(n.enable,n.enable)),c.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],p=0;p0&&R<0&&(R+=360);var V=(R-P)/4;return{type:"Polygon",coordinates:[[[P,G],[P,O],[P+V,O],[P+2*V,O],[P+3*V,O],[R,O],[R,G],[R-V,G],[R-2*V,G],[R-3*V,G],[P,G]]]}}ee.exports=function(E){return new f(E)},S.plot=function(E,L,C,P){var R=this;if(P)return R.update(E,L,!0);R._geoCalcData=E,R._fullLayout=L;var G=L[this.id],O=[],V=!1;for(var N in m.layerNameToAdjective)if(N!=="frame"&&G["show"+N]){V=!0;break}for(var B=!1,H=0;H0&&O._module.calcGeoJSON(G,L)}if(!C){if(this.updateProjection(E,L))return;this.viewInitial&&this.scope===P.scope||this.saveViewInitial(P)}this.scope=P.scope,this.updateBaseLayers(L,P),this.updateDims(L,P),this.updateFx(L,P),o.generalUpdatePerTraceModule(this.graphDiv,this,E,P);var V=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=V.selectAll(".point"),this.dataPoints.text=V.selectAll("text"),this.dataPaths.line=V.selectAll(".js-line");var N=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=N.selectAll("path"),this._render()},S.updateProjection=function(E,L){var C=this.graphDiv,P=L[this.id],R=L._size,G=P.domain,O=P.projection,V=P.lonaxis,N=P.lataxis,B=V._ax,H=N._ax,q=this.projection=function(se){var ne=se.projection,ve=ne.type,Ee=m.projNames[ve];Ee="geo"+s.titleCase(Ee);for(var _e=(k[Ee]||b[Ee])(),ze=se._isSatellite?180*Math.acos(1/ne.distance)/Math.PI:se._isClipped?m.lonaxisSpan[ve]/2:null,Ne=["center","rotate","parallels","clipExtent"],fe=function(Ce){return Ce?_e:[]},Me=0;Meze*Math.PI/180}return!1},_e.getPath=function(){return l().projection(_e)},_e.getBounds=function(Ce){return _e.getPath().bounds(Ce)},_e.precision(m.precision),se._isSatellite&&_e.tilt(ne.tilt).distance(ne.distance),ze&&_e.clipAngle(ze-m.clipPad),_e}(P),te=[[R.l+R.w*G.x[0],R.t+R.h*(1-G.y[1])],[R.l+R.w*G.x[1],R.t+R.h*(1-G.y[0])]],K=P.center||{},J=O.rotation||{},Y=V.range||[],W=N.range||[];if(P.fitbounds){B._length=te[1][0]-te[0][0],H._length=te[1][1]-te[0][1],B.range=u(C,B),H.range=u(C,H);var Q=(B.range[0]+B.range[1])/2,re=(H.range[0]+H.range[1])/2;if(P._isScoped)K={lon:Q,lat:re};else if(P._isClipped){K={lon:Q,lat:re},J={lon:Q,lat:re,roll:J.roll};var ie=O.type,oe=m.lonaxisSpan[ie]/2||180,ce=m.lataxisSpan[ie]/2||90;Y=[Q-oe,Q+oe],W=[re-ce,re+ce]}else K={lon:Q,lat:re},J={lon:Q,lat:J.lat,roll:J.roll}}q.center([K.lon-J.lon,K.lat-J.lat]).rotate([-J.lon,-J.lat,J.roll]).parallels(O.parallels);var pe=w(Y,W);q.fitExtent(te,pe);var ge=this.bounds=q.getBounds(pe),we=this.fitScale=q.scale(),ye=q.translate();if(P.fitbounds){var me=q.getBounds(w(B.range,H.range)),Oe=Math.min((ge[1][0]-ge[0][0])/(me[1][0]-me[0][0]),(ge[1][1]-ge[0][1])/(me[1][1]-me[0][1]));isFinite(Oe)?q.scale(Oe*we):s.warn("Something went wrong during"+this.id+"fitbounds computations.")}else q.scale(O.scale*we);var ke=this.midPt=[(ge[0][0]+ge[1][0])/2,(ge[0][1]+ge[1][1])/2];if(q.translate([ye[0]+(ke[0]-ye[0]),ye[1]+(ke[1]-ye[1])]).clipExtent(ge),P._isAlbersUsa){var Te=q([K.lon,K.lat]),le=q.translate();q.translate([le[0]-(Te[0]-le[0]),le[1]-(Te[1]-le[1])])}},S.updateBaseLayers=function(E,L){var C=this,P=C.topojson,R=C.layers,G=C.basePaths;function O(q){return q==="lonaxis"||q==="lataxis"}function V(q){return Boolean(m.lineLayers[q])}function N(q){return Boolean(m.fillLayers[q])}var B=(this.hasChoropleth?m.layersForChoropleth:m.layers).filter(function(q){return V(q)||N(q)?L["show"+q]:!O(q)||L[q].showgrid}),H=C.framework.selectAll(".layer").data(B,String);H.exit().each(function(q){delete R[q],delete G[q],M.select(this).remove()}),H.enter().append("g").attr("class",function(q){return"layer "+q}).each(function(q){var te=R[q]=M.select(this);q==="bg"?C.bgRect=te.append("rect").style("pointer-events","all"):O(q)?G[q]=te.append("path").style("fill","none"):q==="backplot"?te.append("g").classed("choroplethlayer",!0):q==="frontplot"?te.append("g").classed("scatterlayer",!0):V(q)?G[q]=te.append("path").style("fill","none").style("stroke-miterlimit",2):N(q)&&(G[q]=te.append("path").style("stroke","none"))}),H.order(),H.each(function(q){var te=G[q],K=m.layerNameToAdjective[q];q==="frame"?te.datum(m.sphereSVG):V(q)||N(q)?te.datum(_(P,P.objects[q])):O(q)&&te.datum(function(J,Y,W){var Q,re,ie,oe=Y[J],ce=m.scopeDefaults[Y.scope];J==="lonaxis"?(Q=ce.lonaxisRange,re=ce.lataxisRange,ie=function(le,se){return[le,se]}):J==="lataxis"&&(Q=ce.lataxisRange,re=ce.lonaxisRange,ie=function(le,se){return[se,le]});var pe={type:"linear",range:[Q[0],Q[1]-1e-6],tick0:oe.tick0,dtick:oe.dtick};a.setConvert(pe,W);var ge=a.calcTicks(pe);Y.isScoped||J!=="lonaxis"||ge.pop();for(var we=ge.length,ye=new Array(we),me=0;me-1&&g(M.event,P,[C.xaxis],[C.yaxis],C.id,V),O.indexOf("event")>-1&&n.click(P,M.event))})}function N(B){return C.projection.invert([B[0]+C.xaxis._offset,B[1]+C.yaxis._offset])}},S.makeFramework=function(){var E=this,L=E.graphDiv,C=L._fullLayout,P="clip"+C._uid+E.id;E.clipDef=C._clips.append("clipPath").attr("id",P),E.clipRect=E.clipDef.append("rect"),E.framework=M.select(E.container).append("g").attr("class","geo "+E.id).call(r.setClipUrl,P,L),E.project=function(R){var G=E.projection(R);return G?[G[0]-E.xaxis._offset,G[1]-E.yaxis._offset]:[null,null]},E.xaxis={_id:"x",c2p:function(R){return E.project(R)[0]}},E.yaxis={_id:"y",c2p:function(R){return E.project(R)[1]}},E.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},a.setConvert(E.mockAxis,C)},S.saveViewInitial=function(E){var L,C=E.center||{},P=E.projection,R=P.rotation||{};this.viewInitial={fitbounds:E.fitbounds,"projection.scale":P.scale},L=E._isScoped?{"center.lon":C.lon,"center.lat":C.lat}:E._isClipped?{"projection.rotation.lon":R.lon,"projection.rotation.lat":R.lat}:{"center.lon":C.lon,"center.lat":C.lat,"projection.rotation.lon":R.lon},s.extendFlat(this.viewInitial,L)},S.render=function(E){this._hasMarkerAngles&&E?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},S._render=function(){var E,L=this.projection,C=L.getPath();function P(G){var O=L(G.lonlat);return O?t(O[0],O[1]):null}function R(G){return L.isLonLatOverEdges(G.lonlat)?"none":null}for(E in this.basePaths)this.basePaths[E].attr("d",C);for(E in this.dataPaths)this.dataPaths[E].attr("d",function(G){return C(G.geojson)});for(E in this.dataPoints)this.dataPoints[E].attr("display",R).attr("transform",P)}},44622:function(ee,z,e){var M=e(27659).AU,k=e(71828).counterRegex,l=e(69082),T="geo",b=k(T),d={};d[T]={valType:"subplotid",dflt:T,editType:"calc"},ee.exports={attr:T,name:T,idRoot:T,idRegex:b,attrRegex:b,attributes:d,layoutAttributes:e(77519),supplyLayoutDefaults:e(82161),plot:function(s){for(var t=s._fullLayout,i=s.calcdata,r=t._subplots[T],n=0;n0&&N<0&&(N+=360);var B,H,q,te=(V+N)/2;if(!x){var K=g?p.projRotate:[te,0,0];B=r("projection.rotation.lon",K[0]),r("projection.rotation.lat",K[1]),r("projection.rotation.roll",K[2]),r("showcoastlines",!g&&_)&&(r("coastlinecolor"),r("coastlinewidth")),r("showocean",!!_&&void 0)&&r("oceancolor")}x?(H=-96.6,q=38.7):(H=g?te:B,q=(O[0]+O[1])/2),r("center.lon",H),r("center.lat",q),h&&(r("projection.tilt"),r("projection.distance")),m&&r("projection.parallels",p.projParallels||[0,60]),r("projection.scale"),r("showland",!!_&&void 0)&&r("landcolor"),r("showlakes",!!_&&void 0)&&r("lakecolor"),r("showrivers",!!_&&void 0)&&(r("rivercolor"),r("riverwidth")),r("showcountries",g&&u!=="usa"&&_)&&(r("countrycolor"),r("countrywidth")),(u==="usa"||u==="north america"&&a===50)&&(r("showsubunits",_),r("subunitcolor"),r("subunitwidth")),g||r("showframe",_)&&(r("framecolor"),r("framewidth")),r("bgcolor"),r("fitbounds")&&(delete i.projection.scale,g?(delete i.center.lon,delete i.center.lat):v?(delete i.center.lon,delete i.center.lat,delete i.projection.rotation.lon,delete i.projection.rotation.lat,delete i.lonaxis.range,delete i.lataxis.range):(delete i.center.lon,delete i.center.lat,delete i.projection.rotation.lon))}ee.exports=function(t,i,r){k(t,i,r,{type:"geo",attributes:b,handleDefaults:s,fullData:r,partition:"y"})}},74455:function(ee,z,e){var M=e(39898),k=e(71828),l=e(73972),T=Math.PI/180,b=180/Math.PI,d={cursor:"pointer"},s={cursor:"auto"};function t(g,h){return M.behavior.zoom().translate(h.translate()).scale(h.scale())}function i(g,h,m){var v=g.id,y=g.graphDiv,_=y.layout,f=_[v],S=y._fullLayout,w=S[v],E={},L={};function C(P,R){E[v+"."+P]=k.nestedProperty(f,P).get(),l.call("_storeDirectGUIEdit",_,S._preGUI,E);var G=k.nestedProperty(w,P);G.get()!==R&&(G.set(R),k.nestedProperty(f,P).set(R),L[v+"."+P]=R)}m(C),C("projection.scale",h.scale()/g.fitScale),C("fitbounds",!1),y.emit("plotly_relayout",L)}function r(g,h){var m=t(0,h);function v(y){var _=h.invert(g.midPt);y("center.lon",_[0]),y("center.lat",_[1])}return m.on("zoomstart",function(){M.select(this).style(d)}).on("zoom",function(){h.scale(M.event.scale).translate(M.event.translate),g.render(!0);var y=h.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":h.scale()/g.fitScale,"geo.center.lon":y[0],"geo.center.lat":y[1]})}).on("zoomend",function(){M.select(this).style(s),i(g,h,v)}),m}function n(g,h){var m,v,y,_,f,S,w,E,L,C=t(0,h);function P(G){return h.invert(G)}function R(G){var O=h.rotate(),V=h.invert(g.midPt);G("projection.rotation.lon",-O[0]),G("center.lon",V[0]),G("center.lat",V[1])}return C.on("zoomstart",function(){M.select(this).style(d),m=M.mouse(this),v=h.rotate(),y=h.translate(),_=v,f=P(m)}).on("zoom",function(){if(S=M.mouse(this),function(V){var N=P(V);if(!N)return!0;var B=h(N);return Math.abs(B[0]-V[0])>2||Math.abs(B[1]-V[1])>2}(m))return C.scale(h.scale()),void C.translate(h.translate());h.scale(M.event.scale),h.translate([y[0],M.event.translate[1]]),f?P(S)&&(E=P(S),w=[_[0]+(E[0]-f[0]),v[1],v[2]],h.rotate(w),_=w):f=P(m=S),L=!0,g.render(!0);var G=h.rotate(),O=h.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":h.scale()/g.fitScale,"geo.center.lon":O[0],"geo.center.lat":O[1],"geo.projection.rotation.lon":-G[0]})}).on("zoomend",function(){M.select(this).style(s),L&&i(g,h,R)}),C}function o(g,h){var m;h.rotate(),h.scale();var v=t(0,h),y=function(w){for(var E=0,L=arguments.length,C=[];++ERe?(_e=(be>0?90:-90)-Fe,Ee=0):(_e=Math.asin(be/Re)*b-Fe,Ee=Math.sqrt(Re*Re-be*be));var He=180-_e-2*Fe,Ge=(Math.atan2(Ce,Me)-Math.atan2(fe,Ee))*b,Ke=(Math.atan2(Ce,Me)-Math.atan2(fe,-Ee))*b;return u(ne[0],ne[1],_e,Ge)<=u(ne[0],ne[1],He,Ke)?[_e,Ge,ne[2]]:[He,Ke,ne[2]]}(ke,m,te);isFinite(Te[0])&&isFinite(Te[1])&&isFinite(Te[2])||(Te=te),h.rotate(Te),te=Te}}else m=a(h,H=ye);y.of(this,arguments)({type:"zoom"})}),B=y.of(this,arguments),_++||B({type:"zoomstart"})}).on("zoomend",function(){var w;M.select(this).style(s),f.call(v,"zoom",null),w=y.of(this,arguments),--_||w({type:"zoomend"}),i(g,h,S)}).on("zoom.redraw",function(){g.render(!0);var w=h.rotate();g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":h.scale()/g.fitScale,"geo.projection.rotation.lon":-w[0],"geo.projection.rotation.lat":-w[1]})}),M.rebind(v,y,"on")}function a(g,h){var m=g.invert(h);return m&&isFinite(m[0])&&isFinite(m[1])&&function(v){var y=v[0]*T,_=v[1]*T,f=Math.cos(_);return[f*Math.cos(y),f*Math.sin(y),Math.sin(_)]}(m)}function u(g,h,m,v){var y=p(m-g),_=p(v-h);return Math.sqrt(y*y+_*_)}function p(g){return(g%360+540)%360-180}function c(g,h,m){var v=m*T,y=g.slice(),_=h===0?1:0,f=h===2?1:2,S=Math.cos(v),w=Math.sin(v);return y[_]=g[_]*S-g[f]*w,y[f]=g[f]*S+g[_]*w,y}function x(g,h){for(var m=0,v=0,y=g.length;vMath.abs(x)?(r.boxEnd[1]=r.boxStart[1]+Math.abs(c)*C*(x>=0?1:-1),r.boxEnd[1]g[3]&&(r.boxEnd[1]=g[3],r.boxEnd[0]=r.boxStart[0]+(g[3]-r.boxStart[1])/Math.abs(C))):(r.boxEnd[0]=r.boxStart[0]+Math.abs(x)/C*(c>=0?1:-1),r.boxEnd[0]g[2]&&(r.boxEnd[0]=g[2],r.boxEnd[1]=r.boxStart[1]+(g[2]-r.boxStart[0])*Math.abs(C)))}}else r.boxEnabled?(c=r.boxStart[0]!==r.boxEnd[0],x=r.boxStart[1]!==r.boxEnd[1],c||x?(c&&(f(0,r.boxStart[0],r.boxEnd[0]),s.xaxis.autorange=!1),x&&(f(1,r.boxStart[1],r.boxEnd[1]),s.yaxis.autorange=!1),s.relayoutCallback()):s.glplot.setDirty(),r.boxEnabled=!1,r.boxInited=!1):r.boxInited&&(r.boxInited=!1);break;case"pan":r.boxEnabled=!1,r.boxInited=!1,a?(r.panning||(r.dragStart[0]=u,r.dragStart[1]=p),Math.abs(r.dragStart[0]-u).999&&(v="turntable"):v="turntable")}else v="turntable";o("dragmode",v),o("hovermode",a.getDfltFromLayout("hovermode"))}ee.exports=function(r,n,o){var a=n._basePlotModules.length>1;T(r,n,o,{type:t,attributes:d,handleDefaults:i,fullLayout:n,font:n.font,fullData:o,getDfltFromLayout:function(u){if(!a)return M.validate(r[u],d[u])?r[u]:void 0},autotypenumbersDflt:n.autotypenumbers,paper_bgcolor:n.paper_bgcolor,calendar:n.calendar})}},65500:function(ee,z,e){var M=e(77894),k=e(27670).Y,l=e(1426).extendFlat,T=e(71828).counterRegex;function b(d,s,t){return{x:{valType:"number",dflt:d,editType:"camera"},y:{valType:"number",dflt:s,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}ee.exports={_arrayAttrRegexps:[T("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:l(b(0,0,1),{}),center:l(b(0,0,0),{}),eye:l(b(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:k({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:M,yaxis:M,zaxis:M,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},13133:function(ee,z,e){var M=e(78614),k=["xaxis","yaxis","zaxis"];function l(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}l.prototype.merge=function(T){for(var b=0;b<3;++b){var d=T[k[b]];d.visible?(this.enabled[b]=d.showspikes,this.colors[b]=M(d.spikecolor),this.drawSides[b]=d.spikesides,this.lineWidth[b]=d.spikethickness):(this.enabled[b]=!1,this.drawSides[b]=!1)}},ee.exports=function(T){var b=new l;return b.merge(T),b}},96085:function(ee,z,e){ee.exports=function(b){for(var d=b.axesOptions,s=b.glplot.axesPixels,t=b.fullSceneLayout,i=[[],[],[]],r=0;r<3;++r){var n=t[l[r]];if(n._length=(s[r].hi-s[r].lo)*s[r].pixelsPerDataUnit/b.dataScale[r],Math.abs(n._length)===1/0||isNaN(n._length))i[r]=[];else{n._input_range=n.range.slice(),n.range[0]=s[r].lo/b.dataScale[r],n.range[1]=s[r].hi/b.dataScale[r],n._m=1/(b.dataScale[r]*s[r].pixelsPerDataUnit),n.range[0]===n.range[1]&&(n.range[0]-=1,n.range[1]+=1);var o=n.tickmode;if(n.tickmode==="auto"){n.tickmode="linear";var a=n.nticks||k.constrain(n._length/40,4,9);M.autoTicks(n,Math.abs(n.range[1]-n.range[0])/a)}for(var u=M.calcTicks(n,{msUTC:!0}),p=0;p/g," "));i[r]=u,n.tickmode=o}}for(d.ticks=i,r=0;r<3;++r)for(T[r]=.5*(b.glplot.bounds[0][r]+b.glplot.bounds[1][r]),p=0;p<2;++p)d.bounds[p][r]=b.glplot.bounds[p][r];b.contourLevels=function(c){for(var x=new Array(3),g=0;g<3;++g){for(var h=c[g],m=new Array(h.length),v=0;vR.deltaY?1.1:.9090909090909091,O=w.glplot.getAspectratio();w.glplot.setAspectratio({x:G*O.x,y:G*O.y,z:G*O.z})}P(w)}},!!s&&{passive:!1}),w.glplot.canvas.addEventListener("mousemove",function(){if(w.fullSceneLayout.dragmode!==!1&&w.camera.mouseListener.buttons!==0){var R=C();w.graphDiv.emit("plotly_relayouting",R)}}),w.staticMode||w.glplot.canvas.addEventListener("webglcontextlost",function(R){E&&E.emit&&E.emit("plotly_webglcontextlost",{event:R,layer:w.id})},!1)),w.glplot.oncontextloss=function(){w.recoverContext()},w.glplot.onrender=function(){w.render()},!0},y.render=function(){var w,E=this,L=E.graphDiv,C=E.svgContainer,P=E.container.getBoundingClientRect();L._fullLayout._calcInverseTransform(L);var R=L._fullLayout._invScaleX,G=L._fullLayout._invScaleY,O=P.width*R,V=P.height*G;C.setAttributeNS(null,"viewBox","0 0 "+O+" "+V),C.setAttributeNS(null,"width",O),C.setAttributeNS(null,"height",V),g(E),E.glplot.axes.update(E.axesOptions);for(var N=Object.keys(E.traces),B=null,H=E.glplot.selection,q=0;q")):w.type==="isosurface"||w.type==="volume"?(Q.valueLabel=n.hoverLabelText(E._mockAxis,E._mockAxis.d2l(H.traceCoordinate[3]),w.valuehoverformat),ce.push("value: "+Q.valueLabel),H.textLabel&&ce.push(H.textLabel),J=ce.join("
")):J=H.textLabel;var pe={x:H.traceCoordinate[0],y:H.traceCoordinate[1],z:H.traceCoordinate[2],data:Y._input,fullData:Y,curveNumber:Y.index,pointNumber:W};o.appendArrayPointValue(pe,Y,W),w._module.eventData&&(pe=Y._module.eventData(pe,H,Y,{},W));var ge={points:[pe]};if(E.fullSceneLayout.hovermode){var we=[];o.loneHover({trace:Y,x:(.5+.5*K[0]/K[3])*O,y:(.5-.5*K[1]/K[3])*V,xLabel:Q.xLabel,yLabel:Q.yLabel,zLabel:Q.zLabel,text:J,name:B.name,color:o.castHoverOption(Y,W,"bgcolor")||B.color,borderColor:o.castHoverOption(Y,W,"bordercolor"),fontFamily:o.castHoverOption(Y,W,"font.family"),fontSize:o.castHoverOption(Y,W,"font.size"),fontColor:o.castHoverOption(Y,W,"font.color"),nameLength:o.castHoverOption(Y,W,"namelength"),textAlign:o.castHoverOption(Y,W,"align"),hovertemplate:i.castOption(Y,W,"hovertemplate"),hovertemplateLabels:i.extendFlat({},pe,Q),eventData:[pe]},{container:C,gd:L,inOut_bbox:we}),pe.bbox=we[0]}H.distance<5&&(H.buttons||m)?L.emit("plotly_click",ge):L.emit("plotly_hover",ge),this.oldEventData=ge}else o.loneUnhover(C),this.oldEventData&&L.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;E.drawAnnotations(E)},y.recoverContext=function(){var w=this;w.glplot.dispose();var E=function(){w.glplot.gl.isContextLost()?requestAnimationFrame(E):w.initializeGLPlot()?w.plot.apply(w,w.plotArgs):i.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(E)};var f=["xaxis","yaxis","zaxis"];function S(w,E,L){for(var C=w.fullSceneLayout,P=0;P<3;P++){var R=f[P],G=R.charAt(0),O=C[R],V=E[G],N=E[G+"calendar"],B=E["_"+G+"length"];if(i.isArrayOrTypedArray(V))for(var H,q=0;q<(B||V.length);q++)if(i.isArrayOrTypedArray(V[q]))for(var te=0;teY[1][G])Y[0][G]=-1,Y[1][G]=1;else{var Oe=Y[1][G]-Y[0][G];Y[0][G]-=Oe/32,Y[1][G]+=Oe/32}if(re=[Y[0][G],Y[1][G]],re=h(re,V),Y[0][G]=re[0],Y[1][G]=re[1],V.isReversed()){var ke=Y[0][G];Y[0][G]=Y[1][G],Y[1][G]=ke}}else re=V.range,Y[0][G]=V.r2l(re[0]),Y[1][G]=V.r2l(re[1]);Y[0][G]===Y[1][G]&&(Y[0][G]-=1,Y[1][G]+=1),W[G]=Y[1][G]-Y[0][G],V.range=[Y[0][G],Y[1][G]],V.limitRange(),C.glplot.setBounds(G,{min:V.range[0]*te[G],max:V.range[1]*te[G]})}var Te=B.aspectmode;if(Te==="cube")J=[1,1,1];else if(Te==="manual"){var le=B.aspectratio;J=[le.x,le.y,le.z]}else{if(Te!=="auto"&&Te!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var se=[1,1,1];for(G=0;G<3;++G){var ne=Q[N=(V=B[f[G]]).type];se[G]=Math.pow(ne.acc,1/ne.count)/te[G]}J=Te==="data"||Math.max.apply(null,se)/Math.min.apply(null,se)<=4?se:[1,1,1]}B.aspectratio.x=H.aspectratio.x=J[0],B.aspectratio.y=H.aspectratio.y=J[1],B.aspectratio.z=H.aspectratio.z=J[2],C.glplot.setAspectratio(B.aspectratio),C.viewInitial.aspectratio||(C.viewInitial.aspectratio={x:B.aspectratio.x,y:B.aspectratio.y,z:B.aspectratio.z}),C.viewInitial.aspectmode||(C.viewInitial.aspectmode=B.aspectmode);var ve=B.domain||null,Ee=E._size||null;if(ve&&Ee){var _e=C.container.style;_e.position="absolute",_e.left=Ee.l+ve.x[0]*Ee.w+"px",_e.top=Ee.t+(1-ve.y[1])*Ee.h+"px",_e.width=Ee.w*(ve.x[1]-ve.x[0])+"px",_e.height=Ee.h*(ve.y[1]-ve.y[0])+"px"}C.glplot.redraw()}},y.destroy=function(){var w=this;w.glplot&&(w.camera.mouseListener.enabled=!1,w.container.removeEventListener("wheel",w.camera.wheelListener),w.camera=null,w.glplot.dispose(),w.container.parentNode.removeChild(w.container),w.glplot=null)},y.getCamera=function(){var w,E=this;return E.camera.view.recalcMatrix(E.camera.view.lastT()),{up:{x:(w=E.camera).up[0],y:w.up[1],z:w.up[2]},center:{x:w.center[0],y:w.center[1],z:w.center[2]},eye:{x:w.eye[0],y:w.eye[1],z:w.eye[2]},projection:{type:w._ortho===!0?"orthographic":"perspective"}}},y.setViewport=function(w){var E,L=this,C=w.camera;L.camera.lookAt.apply(this,[[(E=C).eye.x,E.eye.y,E.eye.z],[E.center.x,E.center.y,E.center.z],[E.up.x,E.up.y,E.up.z]]),L.glplot.setAspectratio(w.aspectratio),C.projection.type==="orthographic"!==L.camera._ortho&&(L.glplot.redraw(),L.glplot.clearRGBA(),L.glplot.dispose(),L.initializeGLPlot())},y.isCameraChanged=function(w){var E=this.getCamera(),L=i.nestedProperty(w,this.id+".camera").get();function C(O,V,N,B){var H=["up","center","eye"],q=["x","y","z"];return V[H[N]]&&O[H[N]][q[B]]===V[H[N]][q[B]]}var P=!1;if(L===void 0)P=!0;else{for(var R=0;R<3;R++)for(var G=0;G<3;G++)if(!C(E,L,R,G)){P=!0;break}(!L.projection||E.projection&&E.projection.type!==L.projection.type)&&(P=!0)}return P},y.isAspectChanged=function(w){var E=this.glplot.getAspectratio(),L=i.nestedProperty(w,this.id+".aspectratio").get();return L===void 0||L.x!==E.x||L.y!==E.y||L.z!==E.z},y.saveLayout=function(w){var E,L,C,P,R,G,O=this,V=O.fullLayout,N=O.isCameraChanged(w),B=O.isAspectChanged(w),H=N||B;if(H){var q={};N&&(E=O.getCamera(),C=(L=i.nestedProperty(w,O.id+".camera")).get(),q[O.id+".camera"]=C),B&&(P=O.glplot.getAspectratio(),G=(R=i.nestedProperty(w,O.id+".aspectratio")).get(),q[O.id+".aspectratio"]=G),t.call("_storeDirectGUIEdit",w,V._preGUI,q),N&&(L.set(E),i.nestedProperty(V,O.id+".camera").set(E)),B&&(R.set(P),i.nestedProperty(V,O.id+".aspectratio").set(P),O.glplot.redraw())}return H},y.updateFx=function(w,E){var L=this,C=L.camera;if(C)if(w==="orbit")C.mode="orbit",C.keyBindingMode="rotate";else if(w==="turntable"){C.up=[0,0,1],C.mode="turntable",C.keyBindingMode="rotate";var P=L.graphDiv,R=P._fullLayout,G=L.fullSceneLayout.camera,O=G.up.x,V=G.up.y,N=G.up.z;if(N/Math.sqrt(O*O+V*V+N*N)<.999){var B=L.id+".camera.up",H={x:0,y:0,z:1},q={};q[B]=H;var te=P.layout;t.call("_storeDirectGUIEdit",te,R._preGUI,q),G.up=H,i.nestedProperty(te,B).set(H)}}else C.keyBindingMode=w;L.fullSceneLayout.hovermode=E},y.toImage=function(w){var E=this;w||(w="png"),E.staticMode&&E.container.appendChild(M),E.glplot.redraw();var L=E.glplot.gl,C=L.drawingBufferWidth,P=L.drawingBufferHeight;L.bindFramebuffer(L.FRAMEBUFFER,null);var R=new Uint8Array(C*P*4);L.readPixels(0,0,C,P,L.RGBA,L.UNSIGNED_BYTE,R),function(B,H,q){for(var te=0,K=q-1;te0)for(var W=255/Y,Q=0;Q<3;++Q)B[J+Q]=Math.min(W*B[J+Q],255)}}(R,C,P);var G=document.createElement("canvas");G.width=C,G.height=P;var O,V=G.getContext("2d",{willReadFrequently:!0}),N=V.createImageData(C,P);switch(N.data.set(R),V.putImageData(N,0,0),w){case"jpeg":O=G.toDataURL("image/jpeg");break;case"webp":O=G.toDataURL("image/webp");break;default:O=G.toDataURL("image/png")}return E.staticMode&&E.container.removeChild(M),O},y.setConvert=function(){for(var w=0;w<3;w++){var E=this.fullSceneLayout[f[w]];n.setConvert(E,this.fullLayout),E.setScale=i.noop}},y.make4thDimension=function(){var w=this,E=w.graphDiv._fullLayout;w._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},n.setConvert(w._mockAxis,E)},ee.exports=v},90060:function(ee){ee.exports=function(z,e,M,k){k=k||z.length;for(var l=new Array(k),T=0;TOpenStreetMap
contributors',T=['\xA9 Carto',l].join(" "),b=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),d={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:l,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:T,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:T,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:b,tiles:["https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:b,tiles:["https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},s=M(d);ee.exports={requiredVersion:k,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:d,styleValuesNonMapbox:s,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install mapbox-gl@"+k+"."].join(` @@ -3559,4 +3559,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+H.split(` `).map(function(te){return" "+te}).join(` `)):H=P.stylize("[Circular]","special")),g(B)){if(N&&V.match(/^\d+$/))return H;(B=JSON.stringify(""+V)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.slice(1,-1),B=P.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=P.stylize(B,"string"))}return B+": "+H}function a(P){return Array.isArray(P)}function u(P){return typeof P=="boolean"}function p(P){return P===null}function c(P){return typeof P=="number"}function x(P){return typeof P=="string"}function g(P){return P===void 0}function h(P){return m(P)&&f(P)==="[object RegExp]"}function m(P){return typeof P=="object"&&P!==null}function v(P){return m(P)&&f(P)==="[object Date]"}function y(P){return m(P)&&(f(P)==="[object Error]"||P instanceof Error)}function _(P){return typeof P=="function"}function f(P){return Object.prototype.toString.call(P)}function S(P){return P<10?"0"+P.toString(10):P.toString(10)}z.debuglog=function(P){if(P=P.toUpperCase(),!T[P])if(b.test(P)){var R=M.pid;T[P]=function(){var G=z.format.apply(z,arguments);console.error("%s %d: %s",P,R,G)}}else T[P]=function(){};return T[P]},z.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},z.types=e(4936),z.isArray=a,z.isBoolean=u,z.isNull=p,z.isNullOrUndefined=function(P){return P==null},z.isNumber=c,z.isString=x,z.isSymbol=function(P){return typeof P=="symbol"},z.isUndefined=g,z.isRegExp=h,z.types.isRegExp=h,z.isObject=m,z.isDate=v,z.types.isDate=v,z.isError=y,z.types.isNativeError=y,z.isFunction=_,z.isPrimitive=function(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||P===void 0},z.isBuffer=e(45920);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(P,R){return Object.prototype.hasOwnProperty.call(P,R)}z.log=function(){var P,R;console.log("%s - %s",(R=[S((P=new Date).getHours()),S(P.getMinutes()),S(P.getSeconds())].join(":"),[P.getDate(),w[P.getMonth()],R].join(" ")),z.format.apply(z,arguments))},z.inherits=e(42018),z._extend=function(P,R){if(!R||!m(R))return P;for(var G=Object.keys(R),O=G.length;O--;)P[G[O]]=R[G[O]];return P};var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function C(P,R){if(!P){var G=new Error("Promise was rejected with a falsy value");G.reason=P,P=G}return R(P)}z.promisify=function(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');if(L&&P[L]){var R;if(typeof(R=P[L])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(R,L,{value:R,enumerable:!1,writable:!1,configurable:!0}),R}function R(){for(var G,O,V=new Promise(function(H,q){G=H,O=q}),N=[],B=0;B"u"?e.g:globalThis,t=k(),i=l("String.prototype.slice"),r={},n=Object.getPrototypeOf;d&&T&&n&&M(t,function(a){if(typeof s[a]=="function"){var u=new s[a];if(Symbol.toStringTag in u){var p=n(u),c=T(p,Symbol.toStringTag);if(!c){var x=n(p);c=T(x,Symbol.toStringTag)}r[a]=c.get}}});var o=e(9187);ee.exports=function(a){return!!o(a)&&(d&&Symbol.toStringTag in a?function(u){var p=!1;return M(r,function(c,x){if(!p)try{var g=c.call(u);g===x&&(p=g)}catch{}}),p}(a):i(b(a),8,-1))}},3961:function(ee,z,e){var M=e(63489),k=e(56131),l=M.instance();function T(n){this.local=this.regionalOptions[n||""]||this.regionalOptions[""]}T.prototype=new M.baseCalendar,k(T.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(n,o){if(typeof n=="string"){var a=n.match(d);return a?a[0]:""}var u=this._validateYear(n),p=n.month(),c=""+this.toChineseMonth(u,p);return o&&c.length<2&&(c="0"+c),this.isIntercalaryMonth(u,p)&&(c+="i"),c},monthNames:function(n){if(typeof n=="string"){var o=n.match(s);return o?o[0]:""}var a=this._validateYear(n),u=n.month(),p=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][this.toChineseMonth(a,u)-1];return this.isIntercalaryMonth(a,u)&&(p="\u95F0"+p),p},monthNamesShort:function(n){if(typeof n=="string"){var o=n.match(t);return o?o[0]:""}var a=this._validateYear(n),u=n.month(),p=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][this.toChineseMonth(a,u)-1];return this.isIntercalaryMonth(a,u)&&(p="\u95F0"+p),p},parseMonth:function(n,o){n=this._validateYear(n);var a,u=parseInt(o);if(isNaN(u))o[0]==="\u95F0"&&(a=!0,o=o.substring(1)),o[o.length-1]==="\u6708"&&(o=o.substring(0,o.length-1)),u=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(o);else{var p=o[o.length-1];a=p==="i"||p==="I"}return this.toMonthIndex(n,u,a)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(n,o){if(n.year&&(n=n.year()),typeof n!="number"||n<1888||n>2111)throw o.replace(/\{0\}/,this.local.name);return n},toMonthIndex:function(n,o,a){var u=this.intercalaryMonth(n);if(a&&o!==u||o<1||o>12)throw M.local.invalidMonth.replace(/\{0\}/,this.local.name);return u?!a&&o<=u?o-1:o:o-1},toChineseMonth:function(n,o){n.year&&(o=(n=n.year()).month());var a=this.intercalaryMonth(n);if(o<0||o>(a?12:11))throw M.local.invalidMonth.replace(/\{0\}/,this.local.name);return a?o>13},isIntercalaryMonth:function(n,o){n.year&&(o=(n=n.year()).month());var a=this.intercalaryMonth(n);return!!a&&a===o},leapYear:function(n){return this.intercalaryMonth(n)!==0},weekOfYear:function(n,o,a){var u,p=this._validateYear(n,M.local.invalidyear),c=r[p-r[0]],x=c>>9&4095,g=c>>5&15,h=31&c;(u=l.newDate(x,g,h)).add(4-(u.dayOfWeek()||7),"d");var m=this.toJD(n,o,a)-u.toJD();return 1+Math.floor(m/7)},monthsInYear:function(n){return this.leapYear(n)?13:12},daysInMonth:function(n,o){n.year&&(o=n.month(),n=n.year()),n=this._validateYear(n);var a=i[n-i[0]];if(o>(a>>13?12:11))throw M.local.invalidMonth.replace(/\{0\}/,this.local.name);return a&1<<12-o?30:29},weekDay:function(n,o,a){return(this.dayOfWeek(n,o,a)||7)<6},toJD:function(n,o,a){var u=this._validate(n,c,a,M.local.invalidDate);n=this._validateYear(u.year()),o=u.month(),a=u.day();var p=this.isIntercalaryMonth(n,o),c=this.toChineseMonth(n,o),x=function(g,h,m,v,y){var _,f,S;if(typeof g=="object")f=g,_=h||{};else{var w;if(!(typeof g=="number"&&g>=1888&&g<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof h=="number"&&h>=1&&h<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof m=="number"&&m>=1&&m<=30))throw new Error("Lunar day outside range 1 - 30");typeof v=="object"?(w=!1,_=v):(w=!!v,_={}),f={year:g,month:h,day:m,isIntercalary:w}}S=f.day-1;var E,L=i[f.year-i[0]],C=L>>13;E=C&&(f.month>C||f.isIntercalary)?f.month:f.month-1;for(var P=0;P>9&4095,(R>>5&15)-1,(31&R)+S);return _.year=G.getFullYear(),_.month=1+G.getMonth(),_.day=G.getDate(),_}(n,c,a,p);return l.toJD(x.year,x.month,x.day)},fromJD:function(n){var o=l.fromJD(n),a=function(p,c,x,g){var h,m;if(typeof p=="object")h=p,m=c||{};else{if(!(typeof p=="number"&&p>=1888&&p<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof c=="number"&&c>=1&&c<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof x=="number"&&x>=1&&x<=31))throw new Error("Solar day outside range 1 - 31");h={year:p,month:c,day:x},m={}}var v=r[h.year-r[0]],y=h.year<<9|h.month<<5|h.day;m.year=y>=v?h.year:h.year-1,v=r[m.year-r[0]];var _,f=new Date(v>>9&4095,(v>>5&15)-1,31&v),S=new Date(h.year,h.month-1,h.day);_=Math.round((S-f)/864e5);var w,E=i[m.year-i[0]];for(w=0;w<13;w++){var L=E&1<<12-w?30:29;if(_>13;return!C||w=2&&t<=6},extraInfo:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return{century:T[Math.floor((t.year()-1)/100)+1]||""}},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return b=t.year()+(t.year()<0?1:0),d=t.month(),(s=t.day())+(d>1?16:0)+(d>2?32*(d-2):0)+400*(b-1)+this.jdEpoch-1},fromJD:function(b){b=Math.floor(b+.5)-Math.floor(this.jdEpoch)-1;var d=Math.floor(b/400)+1;b-=400*(d-1),b+=b>15?16:0;var s=Math.floor(b/32)+1,t=b-32*(s-1)+1;return this.newDate(d<=0?d-1:d,s,t)}});var T={20:"Fruitbat",21:"Anchovy"};M.calendars.discworld=l},37715:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(T){var b=this._validate(T,this.minMonth,this.minDay,M.local.invalidYear);return(T=b.year()+(b.year()<0?1:0))%4==3||T%4==-1},monthsInYear:function(T){return this._validate(T,this.minMonth,this.minDay,M.local.invalidYear||M.regionalOptions[""].invalidYear),13},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(T,b){var d=this._validate(T,b,this.minDay,M.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===13&&this.leapYear(d.year())?1:0)},weekDay:function(T,b,d){return(this.dayOfWeek(T,b,d)||7)<6},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);return(T=s.year())<0&&T++,s.day()+30*(s.month()-1)+365*(T-1)+Math.floor(T/4)+this.jdEpoch-1},fromJD:function(T){var b=Math.floor(T)+.5-this.jdEpoch,d=Math.floor((b-Math.floor((b+366)/1461))/365)+1;d<=0&&d--,b=Math.floor(T)+.5-this.newDate(d,1,1).toJD();var s=Math.floor(b/30)+1,t=b-30*(s-1)+1;return this.newDate(d,s,t)}}),M.calendars.ethiopian=l},99384:function(ee,z,e){var M=e(63489),k=e(56131);function l(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}function T(b,d){return b-d*Math.floor(b/d)}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return this._leapYear(d.year())},_leapYear:function(b){return T(7*(b=b<0?b+1:b)+1,19)<7},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,M.local.invalidYear),this._leapYear(b.year?b.year():b)?13:12},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(b){return b=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear).year(),this.toJD(b===-1?1:b+1,7,1)-this.toJD(b,7,1)},daysInMonth:function(b,d){return b.year&&(d=b.month(),b=b.year()),this._validate(b,d,this.minDay,M.local.invalidMonth),d===12&&this.leapYear(b)||d===8&&T(this.daysInYear(b),10)===5?30:d===9&&T(this.daysInYear(b),10)===3?29:this.daysPerMonth[d-1]},weekDay:function(b,d,s){return this.dayOfWeek(b,d,s)!==6},extraInfo:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return{yearType:(this.leapYear(t)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(t)%10-3]}},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);b=t.year(),d=t.month(),s=t.day();var i=b<=0?b+1:b,r=this.jdEpoch+this._delay1(i)+this._delay2(i)+s+1;if(d<7){for(var n=7;n<=this.monthsInYear(b);n++)r+=this.daysInMonth(b,n);for(n=1;n=this.toJD(d===-1?1:d+1,7,1);)d++;for(var s=bthis.toJD(d,s,this.daysInMonth(d,s));)s++;var t=b-this.toJD(d,s,1)+1;return this.newDate(d,s,t)}}),M.calendars.hebrew=l},43805:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(T){return(11*this._validate(T,this.minMonth,this.minDay,M.local.invalidYear).year()+14)%30<11},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(T){return this.leapYear(T)?355:354},daysInMonth:function(T,b){var d=this._validate(T,b,this.minDay,M.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===12&&this.leapYear(d.year())?1:0)},weekDay:function(T,b,d){return this.dayOfWeek(T,b,d)!==5},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);return T=s.year(),b=s.month(),T=T<=0?T+1:T,(d=s.day())+Math.ceil(29.5*(b-1))+354*(T-1)+Math.floor((3+11*T)/30)+this.jdEpoch-1},fromJD:function(T){T=Math.floor(T)+.5;var b=Math.floor((30*(T-this.jdEpoch)+10646)/10631);b=b<=0?b-1:b;var d=Math.min(12,Math.ceil((T-29-this.toJD(b,1,1))/29.5)+1),s=T-this.toJD(b,d,1)+1;return this.newDate(b,d,s)}}),M.calendars.islamic=l},88874:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(T){var b=this._validate(T,this.minMonth,this.minDay,M.local.invalidYear);return(T=b.year()<0?b.year()+1:b.year())%4==0},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(4-(s.dayOfWeek()||7),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(T,b){var d=this._validate(T,b,this.minDay,M.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(T,b,d){return(this.dayOfWeek(T,b,d)||7)<6},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);return T=s.year(),b=s.month(),d=s.day(),T<0&&T++,b<=2&&(T--,b+=12),Math.floor(365.25*(T+4716))+Math.floor(30.6001*(b+1))+d-1524.5},fromJD:function(T){var b=Math.floor(T+.5)+1524,d=Math.floor((b-122.1)/365.25),s=Math.floor(365.25*d),t=Math.floor((b-s)/30.6001),i=t-Math.floor(t<14?1:13),r=d-Math.floor(i>2?4716:4715),n=b-s-Math.floor(30.6001*t);return r<=0&&r--,this.newDate(r,i,n)}}),M.calendars.julian=l},83290:function(ee,z,e){var M=e(63489),k=e(56131);function l(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function T(d,s){return d-s*Math.floor(d/s)}function b(d,s){return T(d-1,s)+1}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,M.local.invalidYear),!1},formatYear:function(d){d=this._validate(d,this.minMonth,this.minDay,M.local.invalidYear).year();var s=Math.floor(d/400);return d%=400,d+=d<0?400:0,s+"."+Math.floor(d/20)+"."+d%20},forYear:function(d){if((d=d.split(".")).length<3)throw"Invalid Mayan year";for(var s=0,t=0;t19||t>0&&i<0)throw"Invalid Mayan year";s=20*s+i}return s},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,M.local.invalidYear),18},weekOfYear:function(d,s,t){return this._validate(d,s,t,M.local.invalidDate),0},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,M.local.invalidYear),360},daysInMonth:function(d,s){return this._validate(d,s,this.minDay,M.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(d,s,t){return this._validate(d,s,t,M.local.invalidDate).day()},weekDay:function(d,s,t){return this._validate(d,s,t,M.local.invalidDate),!0},extraInfo:function(d,s,t){var i=this._validate(d,s,t,M.local.invalidDate).toJD(),r=this._toHaab(i),n=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[r[0]-1],haabMonth:r[0],haabDay:r[1],tzolkinDayName:this.local.tzolkinMonths[n[0]-1],tzolkinDay:n[0],tzolkinTrecena:n[1]}},_toHaab:function(d){var s=T(8+(d-=this.jdEpoch)+340,365);return[Math.floor(s/20)+1,T(s,20)]},_toTzolkin:function(d){return[b(20+(d-=this.jdEpoch),20),b(d+4,13)]},toJD:function(d,s,t){var i=this._validate(d,s,t,M.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(d){d=Math.floor(d)+.5-this.jdEpoch;var s=Math.floor(d/360);d%=360,d+=d<0?360:0;var t=Math.floor(d/20),i=d%20;return this.newDate(s,t,i)}}),M.calendars.mayan=l},29108:function(ee,z,e){var M=e(63489),k=e(56131);function l(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar;var T=M.instance("gregorian");k(l.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear||M.regionalOptions[""].invalidYear);return T.leapYear(d.year()+(d.year()<1?1:0)+1469)},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(1-(t.dayOfWeek()||7),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return(this.dayOfWeek(b,d,s)||7)<6},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidMonth);(b=t.year())<0&&b++;for(var i=t.day(),r=1;r=this.toJD(d+1,1,1);)d++;for(var s=b-Math.floor(this.toJD(d,1,1)+.5)+1,t=1;s>this.daysInMonth(d,t);)s-=this.daysInMonth(d,t),t++;return this.newDate(d,t,s)}}),M.calendars.nanakshahi=l},55422:function(ee,z,e){var M=e(63489),k=e(56131);function l(T){this.local=this.regionalOptions[T||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(T){return this.daysInYear(T)!==this.daysPerYear},weekOfYear:function(T,b,d){var s=this.newDate(T,b,d);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(T){if(T=this._validate(T,this.minMonth,this.minDay,M.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[T]===void 0)return this.daysPerYear;for(var b=0,d=this.minMonth;d<=12;d++)b+=this.NEPALI_CALENDAR_DATA[T][d];return b},daysInMonth:function(T,b){return T.year&&(b=T.month(),T=T.year()),this._validate(T,b,this.minDay,M.local.invalidMonth),this.NEPALI_CALENDAR_DATA[T]===void 0?this.daysPerMonth[b-1]:this.NEPALI_CALENDAR_DATA[T][b]},weekDay:function(T,b,d){return this.dayOfWeek(T,b,d)!==6},toJD:function(T,b,d){var s=this._validate(T,b,d,M.local.invalidDate);T=s.year(),b=s.month(),d=s.day();var t=M.instance(),i=0,r=b,n=T;this._createMissingCalendarData(T);var o=T-(r>9||r===9&&d>=this.NEPALI_CALENDAR_DATA[n][0]?56:57);for(b!==9&&(i=d,r--);r!==9;)r<=0&&(r=12,n--),i+=this.NEPALI_CALENDAR_DATA[n][r],r--;return b===9?(i+=d-this.NEPALI_CALENDAR_DATA[n][0])<0&&(i+=t.daysInYear(o)):i+=this.NEPALI_CALENDAR_DATA[n][9]-this.NEPALI_CALENDAR_DATA[n][0],t.newDate(o,1,1).add(i,"d").toJD()},fromJD:function(T){var b=M.instance().fromJD(T),d=b.year(),s=b.dayOfYear(),t=d+56;this._createMissingCalendarData(t);for(var i=9,r=this.NEPALI_CALENDAR_DATA[t][0],n=this.NEPALI_CALENDAR_DATA[t][i]-r+1;s>n;)++i>12&&(i=1,t++),n+=this.NEPALI_CALENDAR_DATA[t][i];var o=this.NEPALI_CALENDAR_DATA[t][i]-(n-s);return this.newDate(t,i,o)},_createMissingCalendarData:function(T){var b=this.daysPerMonth.slice(0);b.unshift(17);for(var d=T-1;d0?474:473))%2820+474+38)%2816<682},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(-(t.dayOfWeek()+1)%7,"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return this.dayOfWeek(b,d,s)!==5},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);b=t.year(),d=t.month(),s=t.day();var i=b-(b>=0?474:473),r=474+T(i,2820);return s+(d<=7?31*(d-1):30*(d-1)+6)+Math.floor((682*r-110)/2816)+365*(r-1)+1029983*Math.floor(i/2820)+this.jdEpoch-1},fromJD:function(b){var d=(b=Math.floor(b)+.5)-this.toJD(475,1,1),s=Math.floor(d/1029983),t=T(d,1029983),i=2820;if(t!==1029982){var r=Math.floor(t/366),n=T(t,366);i=Math.floor((2134*r+2816*n+2815)/1028522)+r+1}var o=i+2820*s+474;o=o<=0?o-1:o;var a=b-this.toJD(o,1,1)+1,u=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),p=b-this.toJD(o,u,1)+1;return this.newDate(o,u,p)}}),M.calendars.persian=l,M.calendars.jalali=l},31320:function(ee,z,e){var M=e(63489),k=e(56131),l=M.instance();function T(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}T.prototype=new M.baseCalendar,k(T.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(d.year()),l.leapYear(b)},weekOfYear:function(b,d,s){var t=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(t.year()),l.weekOfYear(b,t.month(),t.day())},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return(this.dayOfWeek(b,d,s)||7)<6},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return b=this._t2gYear(t.year()),l.toJD(b,t.month(),t.day())},fromJD:function(b){var d=l.fromJD(b),s=this._g2tYear(d.year());return this.newDate(s,d.month(),d.day())},_t2gYear:function(b){return b+this.yearsOffset+(b>=-this.yearsOffset&&b<=-1?1:0)},_g2tYear:function(b){return b-this.yearsOffset-(b>=1&&b<=this.yearsOffset?1:0)}}),M.calendars.taiwan=T},51367:function(ee,z,e){var M=e(63489),k=e(56131),l=M.instance();function T(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}T.prototype=new M.baseCalendar,k(T.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(d.year()),l.leapYear(b)},weekOfYear:function(b,d,s){var t=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return b=this._t2gYear(t.year()),l.weekOfYear(b,t.month(),t.day())},daysInMonth:function(b,d){var s=this._validate(b,d,this.minDay,M.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(b,d,s){return(this.dayOfWeek(b,d,s)||7)<6},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate);return b=this._t2gYear(t.year()),l.toJD(b,t.month(),t.day())},fromJD:function(b){var d=l.fromJD(b),s=this._g2tYear(d.year());return this.newDate(s,d.month(),d.day())},_t2gYear:function(b){return b-this.yearsOffset-(b>=1&&b<=this.yearsOffset?1:0)},_g2tYear:function(b){return b+this.yearsOffset+(b>=-this.yearsOffset&&b<=-1?1:0)}}),M.calendars.thai=T},21457:function(ee,z,e){var M=e(63489),k=e(56131);function l(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}l.prototype=new M.baseCalendar,k(l.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(b){var d=this._validate(b,this.minMonth,this.minDay,M.local.invalidYear);return this.daysInYear(d.year())===355},weekOfYear:function(b,d,s){var t=this.newDate(b,d,s);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(b){for(var d=0,s=1;s<=12;s++)d+=this.daysInMonth(b,s);return d},daysInMonth:function(b,d){for(var s=this._validate(b,d,this.minDay,M.local.invalidMonth).toJD()-24e5+.5,t=0,i=0;is)return T[t]-T[t-1];t++}return 30},weekDay:function(b,d,s){return this.dayOfWeek(b,d,s)!==5},toJD:function(b,d,s){var t=this._validate(b,d,s,M.local.invalidDate),i=12*(t.year()-1)+t.month()-15292;return t.day()+T[i-1]-1+24e5-.5},fromJD:function(b){for(var d=b-24e5+.5,s=0,t=0;td);t++)s++;var i=s+15292,r=Math.floor((i-1)/12),n=r+1,o=i-12*r,a=d-T[s-1]+1;return this.newDate(n,o,a)},isValid:function(b,d,s){var t=M.baseCalendar.prototype.isValid.apply(this,arguments);return t&&(t=(b=b.year!=null?b.year:b)>=1276&&b<=1500),t},_validate:function(b,d,s,t){var i=M.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw t.replace(/\{0\}/,this.local.name);return i}}),M.calendars.ummalqura=l;var T=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(ee,z,e){var M=e(56131);function k(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function l(t,i,r,n){if(this._calendar=t,this._year=i,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function T(t,i){return"000000".substring(0,i-(t=""+t).length)+t}function b(){this.shortYearCutoff="+10"}function d(t){this.local=this.regionalOptions[t]||this.regionalOptions[""]}M(k.prototype,{instance:function(t,i){t=(t||"gregorian").toLowerCase(),i=i||"";var r=this._localCals[t+"-"+i];if(!r&&this.calendars[t]&&(r=new this.calendars[t](i),this._localCals[t+"-"+i]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,i,r,n,o){return(n=(t!=null&&t.year?t.calendar():typeof n=="string"?this.instance(n,o):n)||this.instance()).newDate(t,i,r)},substituteDigits:function(t){return function(i){return(i+"").replace(/[0-9]/g,function(r){return t[r]})}},substituteChineseDigits:function(t,i){return function(r){for(var n="",o=0;r>0;){var a=r%10;n=(a===0?"":t[a]+i[o])+n,o++,r=Math.floor(r/10)}return n.indexOf(t[1]+i[1])===0&&(n=n.substr(1)),n||t[0]}}}),M(l.prototype,{newDate:function(t,i,r){return this._calendar.newDate(t==null?this:t,i,r)},year:function(t){return arguments.length===0?this._year:this.set(t,"y")},month:function(t){return arguments.length===0?this._month:this.set(t,"m")},day:function(t){return arguments.length===0?this._day:this.set(t,"d")},date:function(t,i,r){if(!this._calendar.isValid(t,i,r))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=i,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,i){return this._calendar.add(this,t,i)},set:function(t,i){return this._calendar.set(this,t,i)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var i=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return i===0?0:i<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?"-":"")+T(Math.abs(this.year()),4)+"-"+T(this.month(),2)+"-"+T(this.day(),2)}}),M(b.prototype,{_validateLevel:0,newDate:function(t,i,r){return t==null?this.today():(t.year&&(this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate),r=t.day(),i=t.month(),t=t.year()),new l(this,t,i,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var i=this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(i.year()<0?"-":"")+T(Math.abs(i.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),12},monthOfYear:function(t,i){var r=this._validate(t,i,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,i){var r=(i+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth),r},daysInYear:function(t){var i=this._validate(t,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return this.leapYear(i)?366:365},dayOfYear:function(t,i,r){var n=this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,i,r){var n=this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,i,r){return this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate),{}},add:function(t,i,r){return this._validate(t,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate),this._correctAdd(t,this._add(t,i,r),i,r)},_add:function(t,i,r){if(this._validateLevel++,r==="d"||r==="w"){var n=t.toJD()+i*(r==="w"?this.daysInWeek():1),o=t.calendar().fromJD(n);return this._validateLevel--,[o.year(),o.month(),o.day()]}try{var a=t.year()+(r==="y"?i:0),u=t.monthOfYear()+(r==="m"?i:0);o=t.day(),r==="y"?(t.month()!==this.fromMonthOfYear(a,u)&&(u=this.newDate(a,t.month(),this.minDay).monthOfYear()),u=Math.min(u,this.monthsInYear(a)),o=Math.min(o,this.daysInMonth(a,this.fromMonthOfYear(a,u)))):r==="m"&&(function(c){for(;ux-1+c.minMonth;)a++,u-=x,x=c.monthsInYear(a)}(this),o=Math.min(o,this.daysInMonth(a,this.fromMonthOfYear(a,u))));var p=[a,this.fromMonthOfYear(a,u),o];return this._validateLevel--,p}catch(c){throw this._validateLevel--,c}},_correctAdd:function(t,i,r,n){if(!(this.hasYearZero||n!=="y"&&n!=="m"||i[0]!==0&&t.year()>0==i[0]>0)){var o={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;i=this._add(t,r*o[0]+a*o[1],o[2])}return t.date(i[0],i[1],i[2])},set:function(t,i,r){this._validate(t,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate);var n=r==="y"?i:t.year(),o=r==="m"?i:t.month(),a=r==="d"?i:t.day();return r!=="y"&&r!=="m"||(a=Math.min(a,this.daysInMonth(n,o))),t.date(n,o,a)},isValid:function(t,i,r){this._validateLevel++;var n=this.hasYearZero||t!==0;if(n){var o=this.newDate(t,i,this.minDay);n=i>=this.minMonth&&i-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),x=o-(c>2.5?4716:4715);return x<=0&&x--,this.newDate(x,c,p)},toJSDate:function(t,i,r){var n=this._validate(t,i,r,s.local.invalidDate||s.regionalOptions[""].invalidDate),o=new Date(n.year(),n.month()-1,n.day());return o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),o.setHours(o.getHours()>12?o.getHours()+2:0),o},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var s=ee.exports=new k;s.cdate=l,s.baseCalendar=b,s.calendars.gregorian=d},94338:function(ee,z,e){var M=e(56131),k=e(63489);M(k.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),k.local=k.regionalOptions[""],M(k.cdate.prototype,{formatDate:function(l,T){return typeof l!="string"&&(T=l,l=""),this._calendar.formatDate(l||"",this,T)}}),M(k.baseCalendar.prototype,{UNIX_EPOCH:k.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:k.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(l,T,b){if(typeof l!="string"&&(b=T,T=l,l=""),!T)return"";if(T.calendar()!==this)throw k.local.invalidFormat||k.regionalOptions[""].invalidFormat;l=l||this.local.dateFormat;for(var d,s,t,i=(b=b||{}).dayNamesShort||this.local.dayNamesShort,r=b.dayNames||this.local.dayNames,n=b.monthNumbers||this.local.monthNumbers,o=b.monthNamesShort||this.local.monthNamesShort,a=b.monthNames||this.local.monthNames,u=(b.calculateWeek||this.local.calculateWeek,function(f,S){for(var w=1;_+w1}),p=function(f,S,w,E){var L=""+S;if(u(f,E))for(;L.length1},v=function(R,G){var O=m(R,G),V=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],N=new RegExp("^-?\\d{1,"+V+"}"),B=T.substring(E).match(N);if(!B)throw(k.local.missingNumberAt||k.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=B[0].length,parseInt(B[0],10)},y=this,_=function(){if(typeof r=="function"){m("m");var R=r.call(y,T.substring(E));return E+=R.length,R}return v("m")},f=function(R,G,O,V){for(var N=m(R,V)?O:G,B=0;B-1){p=1,c=x;for(var P=this.daysInMonth(u,p);c>P;P=this.daysInMonth(u,p))p++,c-=P}return a>-1?this.fromJD(a):this.newDate(u,p,c)},determineDate:function(l,T,b,d,s){b&&typeof b!="object"&&(s=d,d=b,b=null),typeof d!="string"&&(s=d,d="");var t=this;return T=T?T.newDate():null,l==null?T:typeof l=="string"?function(i){try{return t.parseDate(d,i,s)}catch{}for(var r=((i=i.toLowerCase()).match(/^c/)&&b?b.newDate():null)||t.today(),n=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,o=n.exec(i);o;)r.add(parseInt(o[1],10),o[2]||"d"),o=n.exec(i);return r}(l):typeof l=="number"?isNaN(l)||l===1/0||l===-1/0?T:t.today().add(l,"d"):t.newDate(l)}})},69862:function(){},40964:function(){},72077:function(ee,z,e){var M=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],k=typeof globalThis>"u"?e.g:globalThis;ee.exports=function(){for(var l=[],T=0;T>8&15|ge>>4&240,ge>>4&15|240&ge,(15&ge)<<4|15&ge,1):we===8?v(ge>>24&255,ge>>16&255,ge>>8&255,(255&ge)/255):we===4?v(ge>>12&15|ge>>8&240,ge>>8&15|ge>>4&240,ge>>4&15|240&ge,((15&ge)<<4|15&ge)/255):null):(ge=r.exec(pe))?new _(ge[1],ge[2],ge[3],1):(ge=n.exec(pe))?new _(255*ge[1]/100,255*ge[2]/100,255*ge[3]/100,1):(ge=o.exec(pe))?v(ge[1],ge[2],ge[3],ge[4]):(ge=a.exec(pe))?v(255*ge[1]/100,255*ge[2]/100,255*ge[3]/100,ge[4]):(ge=u.exec(pe))?C(ge[1],ge[2]/100,ge[3]/100,1):(ge=p.exec(pe))?C(ge[1],ge[2]/100,ge[3]/100,ge[4]):c.hasOwnProperty(pe)?m(c[pe]):pe==="transparent"?new _(NaN,NaN,NaN,0):null}function m(pe){return new _(pe>>16&255,pe>>8&255,255&pe,1)}function v(pe,ge,we,ye){return ye<=0&&(pe=ge=we=NaN),new _(pe,ge,we,ye)}function y(pe,ge,we,ye){return arguments.length===1?((me=pe)instanceof l||(me=h(me)),me?new _((me=me.rgb()).r,me.g,me.b,me.opacity):new _):new _(pe,ge,we,ye==null?1:ye);var me}function _(pe,ge,we,ye){this.r=+pe,this.g=+ge,this.b=+we,this.opacity=+ye}function f(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b))}function S(){var pe=w(this.opacity);return"".concat(pe===1?"rgb(":"rgba(").concat(E(this.r),", ").concat(E(this.g),", ").concat(E(this.b)).concat(pe===1?")":", ".concat(pe,")"))}function w(pe){return isNaN(pe)?1:Math.max(0,Math.min(1,pe))}function E(pe){return Math.max(0,Math.min(255,Math.round(pe)||0))}function L(pe){return((pe=E(pe))<16?"0":"")+pe.toString(16)}function C(pe,ge,we,ye){return ye<=0?pe=ge=we=NaN:we<=0||we>=1?pe=ge=NaN:ge<=0&&(pe=NaN),new R(pe,ge,we,ye)}function P(pe){if(pe instanceof R)return new R(pe.h,pe.s,pe.l,pe.opacity);if(pe instanceof l||(pe=h(pe)),!pe)return new R;if(pe instanceof R)return pe;var ge=(pe=pe.rgb()).r/255,we=pe.g/255,ye=pe.b/255,me=Math.min(ge,we,ye),Oe=Math.max(ge,we,ye),ke=NaN,Te=Oe-me,le=(Oe+me)/2;return Te?(ke=ge===Oe?(we-ye)/Te+6*(we0&&le<1?0:ke,new R(ke,Te,le,pe.opacity)}function R(pe,ge,we,ye){this.h=+pe,this.s=+ge,this.l=+we,this.opacity=+ye}function G(pe){return(pe=(pe||0)%360)<0?pe+360:pe}function O(pe){return Math.max(0,Math.min(1,pe||0))}function V(pe,ge,we){return 255*(pe<60?ge+(we-ge)*pe/60:pe<180?we:pe<240?ge+(we-ge)*(240-pe)/60:ge)}M(l,h,{copy:function(pe){return Object.assign(new this.constructor,this,pe)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return P(this).formatHsl()},formatRgb:g,toString:g}),M(_,y,k(l,{brighter:function(pe){return pe=pe==null?b:Math.pow(b,pe),new _(this.r*pe,this.g*pe,this.b*pe,this.opacity)},darker:function(pe){return pe=pe==null?T:Math.pow(T,pe),new _(this.r*pe,this.g*pe,this.b*pe,this.opacity)},rgb:function(){return this},clamp:function(){return new _(E(this.r),E(this.g),E(this.b),w(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f,formatHex:f,formatHex8:function(){return"#".concat(L(this.r)).concat(L(this.g)).concat(L(this.b)).concat(L(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:S,toString:S})),M(R,function(pe,ge,we,ye){return arguments.length===1?P(pe):new R(pe,ge,we,ye==null?1:ye)},k(l,{brighter:function(pe){return pe=pe==null?b:Math.pow(b,pe),new R(this.h,this.s,this.l*pe,this.opacity)},darker:function(pe){return pe=pe==null?T:Math.pow(T,pe),new R(this.h,this.s,this.l*pe,this.opacity)},rgb:function(){var pe=this.h%360+360*(this.h<0),ge=isNaN(pe)||isNaN(this.s)?0:this.s,we=this.l,ye=we+(we<.5?we:1-we)*ge,me=2*we-ye;return new _(V(pe>=240?pe-240:pe+120,me,ye),V(pe,me,ye),V(pe<120?pe+240:pe-120,me,ye),this.opacity)},clamp:function(){return new R(G(this.h),O(this.s),O(this.l),w(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var pe=w(this.opacity);return"".concat(pe===1?"hsl(":"hsla(").concat(G(this.h),", ").concat(100*O(this.s),"%, ").concat(100*O(this.l),"%").concat(pe===1?")":", ".concat(pe,")"))}}));var N=function(pe){return function(){return pe}};function B(pe,ge){var we=ge-pe;return we?function(ye,me){return function(Oe){return ye+Oe*me}}(pe,we):N(isNaN(pe)?ge:pe)}var H=function pe(ge){var we=function(me){return(me=+me)==1?B:function(Oe,ke){return ke-Oe?function(Te,le,se){return Te=Math.pow(Te,se),le=Math.pow(le,se)-Te,se=1/se,function(ne){return Math.pow(Te+ne*le,se)}}(Oe,ke,me):N(isNaN(Oe)?ke:Oe)}}(ge);function ye(me,Oe){var ke=we((me=y(me)).r,(Oe=y(Oe)).r),Te=we(me.g,Oe.g),le=we(me.b,Oe.b),se=B(me.opacity,Oe.opacity);return function(ne){return me.r=ke(ne),me.g=Te(ne),me.b=le(ne),me.opacity=se(ne),me+""}}return ye.gamma=pe,ye}(1);function q(pe,ge){var we,ye=ge?ge.length:0,me=pe?Math.min(ye,pe.length):0,Oe=new Array(me),ke=new Array(ye);for(we=0;weOe&&(me=ge.slice(Oe,me),Te[ke]?Te[ke]+=me:Te[++ke]=me),(we=we[0])===(ye=ye[0])?Te[ke]?Te[ke]+=ye:Te[++ke]=ye:(Te[++ke]=null,le.push({i:ke,x:K(we,ye)})),Oe=Q.lastIndex;return Oe{let n=null;return{startPolling:()=>{const t=async()=>{var o;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(o=e.interval)!=null?o:i)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{r as u}; -//# sourceMappingURL=polling.98a0bd01.js.map diff --git a/abstra_statics/dist/assets/polling.c979afd7.js b/abstra_statics/dist/assets/polling.c979afd7.js new file mode 100644 index 0000000000..e007ffa33b --- /dev/null +++ b/abstra_statics/dist/assets/polling.c979afd7.js @@ -0,0 +1,2 @@ +import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dbb3c8fd-f03b-4f64-88d8-8aedbebdb1fa",e._sentryDebugIdIdentifier="sentry-dbid-dbb3c8fd-f03b-4f64-88d8-8aedbebdb1fa")}catch{}})();const l=1e3,s=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var d;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(d=e.interval)!=null?d:l)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{s as u}; +//# sourceMappingURL=polling.c979afd7.js.map diff --git a/abstra_statics/dist/assets/popupNotifcation.40886a7f.js b/abstra_statics/dist/assets/popupNotifcation.40886a7f.js deleted file mode 100644 index 64241d3c1f..0000000000 --- a/abstra_statics/dist/assets/popupNotifcation.40886a7f.js +++ /dev/null @@ -1,2 +0,0 @@ -import{cM as n}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="fae4f848-48a1-4db3-b61b-271e69a4f1fa",e._sentryDebugIdIdentifier="sentry-dbid-fae4f848-48a1-4db3-b61b-271e69a4f1fa")}catch{}})();const t=(e,f,r)=>{n.error({message:e,description:f,onClick:r})};export{t as p}; -//# sourceMappingURL=popupNotifcation.40886a7f.js.map diff --git a/abstra_statics/dist/assets/popupNotifcation.a0a6244b.js b/abstra_statics/dist/assets/popupNotifcation.a0a6244b.js new file mode 100644 index 0000000000..c3ae3d8080 --- /dev/null +++ b/abstra_statics/dist/assets/popupNotifcation.a0a6244b.js @@ -0,0 +1,2 @@ +import{cM as o}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="587698f3-d4cb-4aec-ae87-67111ca088e4",e._sentryDebugIdIdentifier="sentry-dbid-587698f3-d4cb-4aec-ae87-67111ca088e4")}catch{}})();const d=(e,r,n)=>{o.error({message:e,description:r,onClick:n})};export{d as p}; +//# sourceMappingURL=popupNotifcation.a0a6244b.js.map diff --git a/abstra_statics/dist/assets/project.cc79d30a.js b/abstra_statics/dist/assets/project.fad91605.js similarity index 90% rename from abstra_statics/dist/assets/project.cc79d30a.js rename to abstra_statics/dist/assets/project.fad91605.js index 535d17de3a..2f4194adf0 100644 --- a/abstra_statics/dist/assets/project.cc79d30a.js +++ b/abstra_statics/dist/assets/project.fad91605.js @@ -1,2 +1,2 @@ -var h=Object.defineProperty;var l=(r,t,e)=>t in r?h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var o=(r,t,e)=>(l(r,typeof t!="symbol"?t+"":t,e),e);import{A as g}from"./record.a6861841.js";import{C as s}from"./gateway.8032b20a.js";import"./index.8c3f27aa.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="145e0e6b-9c04-4c3e-a9df-d6d05698f05b",r._sentryDebugIdIdentifier="sentry-dbid-145e0e6b-9c04-4c3e-a9df-d6d05698f05b")}catch{}})();class y extends Error{constructor(){super("Subdomain already in use")}}class m{constructor(){o(this,"urlPath","projects")}async create({name:t,organizationId:e}){return s.post(`organizations/${e}/${this.urlPath}`,{name:t})}async delete(t){await s.delete(`/${this.urlPath}/${t}`)}async duplicate(t){return await new Promise(e=>setTimeout(e,5e3)),s.post(`/${this.urlPath}/${t}/duplicate`,{})}async list(t){return s.get(`organizations/${t}/${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async update(t,e){const a=await s.patch(`${this.urlPath}/${t}`,e);if("error"in a&&a.error==="subdomain-already-in-use")throw new y;if("error"in a)throw new Error("Unknown error");return a}async checkSubdomain(t,e){return s.get(`${this.urlPath}/${t}/check-subdomain/${e}`)}async getStatus(t){return s.get(`${this.urlPath}/${t}/deploy-status`)}async startWebEditor(t){return s.post(`${this.urlPath}/${t}/web-editor/start`,{})}async executeQuery(t,e,a){return s.post(`projects/${t}/execute`,{query:e,params:a})}}const n=new m;class i{constructor(t){o(this,"record");this.record=g.create(n,t)}static formatSubdomain(t){const a=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=/[a-z0-9]+/g,u=a.matchAll(c);return Array.from(u).map(d=>d[0]).join("-")}static async list(t){return(await n.list(t)).map(a=>new i(a))}static async create(t){const e=await n.create(t);return new i(e)}get team(){return this.record.get("team")}static async get(t){const e=await n.get(t);return new i(e)}static async getStatus(t){return await n.getStatus(t)}async delete(){await n.delete(this.id)}async duplicate(){const t=await n.duplicate(this.id);return new i(t)}static async executeQuery(t,e,a){return n.executeQuery(t,e,a)}async save(){return this.record.save()}resetChanges(){this.record.resetChanges()}hasChanges(){return this.record.hasChanges()}hasChangesDeep(t){return this.record.hasChangesDeep(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}async checkSubdomain(){return await n.checkSubdomain(this.id,this.subdomain)}static async startWebEditor(t){return await n.startWebEditor(t)}getUrl(t=""){const e=t.startsWith("/")?t.slice(1):t;return`https://${this.subdomain}.abstra.app/${e}`}}export{i as P,m as a}; -//# sourceMappingURL=project.cc79d30a.js.map +var h=Object.defineProperty;var l=(r,t,e)=>t in r?h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var o=(r,t,e)=>(l(r,typeof t!="symbol"?t+"":t,e),e);import{A as g}from"./record.8c284c67.js";import{C as s}from"./gateway.ae1d6857.js";import"./index.d0f12294.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="a9cc4794-56de-484a-a650-8b2100d49a1f",r._sentryDebugIdIdentifier="sentry-dbid-a9cc4794-56de-484a-a650-8b2100d49a1f")}catch{}})();class y extends Error{constructor(){super("Subdomain already in use")}}class m{constructor(){o(this,"urlPath","projects")}async create({name:t,organizationId:e}){return s.post(`organizations/${e}/${this.urlPath}`,{name:t})}async delete(t){await s.delete(`/${this.urlPath}/${t}`)}async duplicate(t){return await new Promise(e=>setTimeout(e,5e3)),s.post(`/${this.urlPath}/${t}/duplicate`,{})}async list(t){return s.get(`organizations/${t}/${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async update(t,e){const a=await s.patch(`${this.urlPath}/${t}`,e);if("error"in a&&a.error==="subdomain-already-in-use")throw new y;if("error"in a)throw new Error("Unknown error");return a}async checkSubdomain(t,e){return s.get(`${this.urlPath}/${t}/check-subdomain/${e}`)}async getStatus(t){return s.get(`${this.urlPath}/${t}/deploy-status`)}async startWebEditor(t){return s.post(`${this.urlPath}/${t}/web-editor/start`,{})}async executeQuery(t,e,a){return s.post(`projects/${t}/execute`,{query:e,params:a})}}const n=new m;class i{constructor(t){o(this,"record");this.record=g.create(n,t)}static formatSubdomain(t){const a=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=/[a-z0-9]+/g,u=a.matchAll(c);return Array.from(u).map(d=>d[0]).join("-")}static async list(t){return(await n.list(t)).map(a=>new i(a))}static async create(t){const e=await n.create(t);return new i(e)}get team(){return this.record.get("team")}static async get(t){const e=await n.get(t);return new i(e)}static async getStatus(t){return await n.getStatus(t)}async delete(){await n.delete(this.id)}async duplicate(){const t=await n.duplicate(this.id);return new i(t)}static async executeQuery(t,e,a){return n.executeQuery(t,e,a)}async save(){return this.record.save()}resetChanges(){this.record.resetChanges()}hasChanges(){return this.record.hasChanges()}hasChangesDeep(t){return this.record.hasChangesDeep(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}async checkSubdomain(){return await n.checkSubdomain(this.id,this.subdomain)}static async startWebEditor(t){return await n.startWebEditor(t)}getUrl(t=""){const e=t.startsWith("/")?t.slice(1):t;return`https://${this.subdomain}.abstra.app/${e}`}}export{i as P,m as a}; +//# sourceMappingURL=project.fad91605.js.map diff --git a/abstra_statics/dist/assets/python.62432718.js b/abstra_statics/dist/assets/python.fb6e4ff5.js similarity index 93% rename from abstra_statics/dist/assets/python.62432718.js rename to abstra_statics/dist/assets/python.fb6e4ff5.js index 2473a626cb..ee8baa1fe9 100644 --- a/abstra_statics/dist/assets/python.62432718.js +++ b/abstra_statics/dist/assets/python.fb6e4ff5.js @@ -1,7 +1,7 @@ -import{m as a}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7b38950a-b97a-4215-8646-701d2d4c2b7c",t._sentryDebugIdIdentifier="sentry-dbid-7b38950a-b97a-4215-8646-701d2d4c2b7c")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as a}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dc689ba0-96b3-4478-9bcb-d728b3575c94",t._sentryDebugIdIdentifier="sentry-dbid-dc689ba0-96b3-4478-9bcb-d728b3575c94")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a);var m={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{m as conf,f as language}; -//# sourceMappingURL=python.62432718.js.map +//# sourceMappingURL=python.fb6e4ff5.js.map diff --git a/abstra_statics/dist/assets/razor.b400414b.js b/abstra_statics/dist/assets/razor.6caf29b1.js similarity index 94% rename from abstra_statics/dist/assets/razor.b400414b.js rename to abstra_statics/dist/assets/razor.6caf29b1.js index e62eeb710d..de033c7844 100644 --- a/abstra_statics/dist/assets/razor.b400414b.js +++ b/abstra_statics/dist/assets/razor.6caf29b1.js @@ -1,7 +1,7 @@ -import{m as c}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cc1c1640-51fe-4b08-acc1-c4e242cd2605",t._sentryDebugIdIdentifier="sentry-dbid-cc1c1640-51fe-4b08-acc1-c4e242cd2605")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as s}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2890a4f6-e35e-4f10-b0e5-6b403eac96e2",t._sentryDebugIdIdentifier="sentry-dbid-2890a4f6-e35e-4f10-b0e5-6b403eac96e2")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!p.call(t,o)&&o!==r&&s(t,o,{get:()=>e[o],enumerable:!(a=l(e,o))||a.enumerable});return t},h=(t,e,r)=>(i(t,e,"default"),r&&i(r,e,"default")),n={};h(n,c);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; -//# sourceMappingURL=razor.b400414b.js.map + *-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,i=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!p.call(t,o)&&o!==r&&c(t,o,{get:()=>e[o],enumerable:!(a=l(e,o))||a.enumerable});return t},h=(t,e,r)=>(i(t,e,"default"),r&&i(r,e,"default")),n={};h(n,s);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{y as conf,k as language}; +//# sourceMappingURL=razor.6caf29b1.js.map diff --git a/abstra_statics/dist/assets/record.a6861841.js b/abstra_statics/dist/assets/record.8c284c67.js similarity index 68% rename from abstra_statics/dist/assets/record.a6861841.js rename to abstra_statics/dist/assets/record.8c284c67.js index be619d018b..0303b58bae 100644 --- a/abstra_statics/dist/assets/record.a6861841.js +++ b/abstra_statics/dist/assets/record.8c284c67.js @@ -1,2 +1,2 @@ -var l=Object.defineProperty;var o=(e,t,s)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var n=(e,t,s)=>(o(e,typeof t!="symbol"?t+"":t,s),s);import{R as b,z as c,ej as g}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c785cdc0-dbc6-448b-b106-4824700eb5d1",e._sentryDebugIdIdentifier="sentry-dbid-c785cdc0-dbc6-448b-b106-4824700eb5d1")}catch{}})();class d{constructor(){n(this,"topics");n(this,"subUid");this.topics={},this.subUid=-1}subscribe(t,s){const i=(++this.subUid).toString();return this.topics[t]||(this.topics[t]=[]),this.topics[t].push({token:i,func:s}),i}async wait(t){return new Promise(s=>{const i=this.subscribe(t,a=>{this.unsubscribe(i),s(a)})})}async publish(t,...s){if(!this.topics[t])return!1;const i=this.topics[t];let a=i?i.length:0;for(;a--;)await i[a].func(s[0]);return!0}unsubscribe(t){for(const s in this.topics)if(this.topics[s]){for(let i=0,a=this.topics[s].length;i0}hasChangesDeep(t){return t in this.changes&&!g.exports.isEqual(this.initialState[t],this.changes[t])}get state(){return{...this.initialState,...this.changes}}resetChanges(){const t={...this.changes};this._changes.value={},this.pubsub.publish("update",t)}onUpdate(t){this.pubsub.subscribe("update",t)}commit(){this.initialState=this.state,this._changes.value={}}toDTO(){return{...this.state,...this._changes.value}}update(t){this._changes.value={...this.changes,...t}}}class r extends h{constructor(s,i){super(i);n(this,"api");this.api=s}static create(s,i){return c(new r(s,i))}getInitialState(s){return this.initialState[s]}updateInitialState(s,i){this.initialState[s]=i,delete this._changes.value[s]}async save(s){if(Object.keys(this.changes).length===0||s&&!(s in this.changes))return;if(s){const a={[s]:this.changes[s]},u=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...u},delete this._changes.value[s];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}export{r as A,h as E}; -//# sourceMappingURL=record.a6861841.js.map +var l=Object.defineProperty;var o=(e,t,s)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var n=(e,t,s)=>(o(e,typeof t!="symbol"?t+"":t,s),s);import{R as g,z as r,ej as b}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="32999870-39b0-4382-a243-2fd3584fdc8a",e._sentryDebugIdIdentifier="sentry-dbid-32999870-39b0-4382-a243-2fd3584fdc8a")}catch{}})();class p{constructor(){n(this,"topics");n(this,"subUid");this.topics={},this.subUid=-1}subscribe(t,s){const i=(++this.subUid).toString();return this.topics[t]||(this.topics[t]=[]),this.topics[t].push({token:i,func:s}),i}async wait(t){return new Promise(s=>{const i=this.subscribe(t,a=>{this.unsubscribe(i),s(a)})})}async publish(t,...s){if(!this.topics[t])return!1;const i=this.topics[t];let a=i?i.length:0;for(;a--;)await i[a].func(s[0]);return!0}unsubscribe(t){for(const s in this.topics)if(this.topics[s]){for(let i=0,a=this.topics[s].length;i0}hasChangesDeep(t){return t in this.changes&&!b.exports.isEqual(this.initialState[t],this.changes[t])}get state(){return{...this.initialState,...this.changes}}resetChanges(){const t={...this.changes};this._changes.value={},this.pubsub.publish("update",t)}onUpdate(t){this.pubsub.subscribe("update",t)}commit(){this.initialState=this.state,this._changes.value={}}toDTO(){return{...this.state,...this._changes.value}}update(t){this._changes.value={...this.changes,...t}}}class u extends h{constructor(s,i){super(i);n(this,"api");this.api=s}static create(s,i){return r(new u(s,i))}getInitialState(s){return this.initialState[s]}updateInitialState(s,i){this.initialState[s]=i,delete this._changes.value[s]}async save(s){if(Object.keys(this.changes).length===0||s&&!(s in this.changes))return;if(s){const a={[s]:this.changes[s]},c=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...c},delete this._changes.value[s];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}export{u as A,h as E}; +//# sourceMappingURL=record.8c284c67.js.map diff --git a/abstra_statics/dist/assets/repository.31bede66.js b/abstra_statics/dist/assets/repository.d3422c40.js similarity index 60% rename from abstra_statics/dist/assets/repository.31bede66.js rename to abstra_statics/dist/assets/repository.d3422c40.js index 554bb215c8..76a9f977e8 100644 --- a/abstra_statics/dist/assets/repository.31bede66.js +++ b/abstra_statics/dist/assets/repository.d3422c40.js @@ -1,2 +1,2 @@ -var p=Object.defineProperty;var h=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(h(r,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.8032b20a.js";import{l as u}from"./fetch.fd4370bb.js";import{E as f}from"./record.a6861841.js";import"./index.8c3f27aa.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="35fa49bb-6a2f-477f-b9f6-f51ecf2b4f1b",r._sentryDebugIdIdentifier="sentry-dbid-35fa49bb-6a2f-477f-b9f6-f51ecf2b4f1b")}catch{}})();class i{constructor(t){c(this,"record");this.record=f.from(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}get description(){return this.record.get("description")||""}set description(t){this.record.set("description",t)}get projectId(){return this.record.get("projectId")}static from(t){return new i(t)}commit(){this.record.commit()}hasChanges(){return this.record.hasChanges()}get changes(){return this.record.changes}update(t){this.record.update(t)}}class l{constructor(){c(this,"urlPath","roles")}async create(t,e){return a.post(`projects/${t}/${this.urlPath}`,e)}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t,{limit:e,offset:s}){const o={};e&&(o.limit=e.toString()),s&&(o.offset=s.toString());const d=new URLSearchParams(o);return a.get(`projects/${t}/${this.urlPath}?${d.toString()}`)}async update(t,e,s){return a.patch(`projects/${t}/${this.urlPath}/${e}`,s)}}const n=new l;class I{constructor(t){this.projectId=t}async list(t,e){return(await n.list(this.projectId,{limit:t,offset:e})).map(i.from)}async create(t){await n.create(this.projectId,t)}async update(t,e){await n.update(this.projectId,t,e)}async delete(t){await n.delete(this.projectId,t)}}class ${constructor(t=u){this.fetch=t}async list(t,e){const s={};t&&(s.limit=t.toString()),e&&(s.offset=e.toString());const o=new URLSearchParams(s);return(await(await this.fetch(`/_editor/api/roles?${o.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(i.from)}}export{I as C,$ as E}; -//# sourceMappingURL=repository.31bede66.js.map +var p=Object.defineProperty;var h=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>(h(r,typeof t!="symbol"?t+"":t,e),e);import{C as a}from"./gateway.ae1d6857.js";import{l as u}from"./fetch.e5ebd511.js";import{E as l}from"./record.8c284c67.js";import"./index.d0f12294.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="cd3a52cd-6412-4873-871a-28185f767f48",r._sentryDebugIdIdentifier="sentry-dbid-cd3a52cd-6412-4873-871a-28185f767f48")}catch{}})();class c{constructor(t){i(this,"record");this.record=l.from(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}get description(){return this.record.get("description")||""}set description(t){this.record.set("description",t)}get projectId(){return this.record.get("projectId")}static from(t){return new c(t)}commit(){this.record.commit()}hasChanges(){return this.record.hasChanges()}get changes(){return this.record.changes}update(t){this.record.update(t)}}class f{constructor(){i(this,"urlPath","roles")}async create(t,e){return a.post(`projects/${t}/${this.urlPath}`,e)}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t,{limit:e,offset:s}){const o={};e&&(o.limit=e.toString()),s&&(o.offset=s.toString());const d=new URLSearchParams(o);return a.get(`projects/${t}/${this.urlPath}?${d.toString()}`)}async update(t,e,s){return a.patch(`projects/${t}/${this.urlPath}/${e}`,s)}}const n=new f;class ${constructor(t){this.projectId=t}async list(t,e){return(await n.list(this.projectId,{limit:t,offset:e})).map(c.from)}async create(t){await n.create(this.projectId,t)}async update(t,e){await n.update(this.projectId,t,e)}async delete(t){await n.delete(this.projectId,t)}}class b{constructor(t=u){this.fetch=t}async list(t,e){const s={};t&&(s.limit=t.toString()),e&&(s.offset=e.toString());const o=new URLSearchParams(s);return(await(await this.fetch(`/_editor/api/roles?${o.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(c.from)}}export{$ as C,b as E}; +//# sourceMappingURL=repository.d3422c40.js.map diff --git a/abstra_statics/dist/assets/router.375df57e.js b/abstra_statics/dist/assets/router.375df57e.js new file mode 100644 index 0000000000..6d3c68f28a --- /dev/null +++ b/abstra_statics/dist/assets/router.375df57e.js @@ -0,0 +1,2 @@ +var d=Object.defineProperty;var _=(t,e,a)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var l=(t,e,a)=>(_(t,typeof e!="symbol"?e+"":e,a),a);import{af as m,dk as h,dl as u,cM as b,x as E,h as A,i as g,_ as o,j as w}from"./index.d0f12294.js";import{C as c,a as f}from"./gateway.ae1d6857.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="deda066d-dcc6-4dc9-a6ff-9f8b64e2eab1",t._sentryDebugIdIdentifier="sentry-dbid-deda066d-dcc6-4dc9-a6ff-9f8b64e2eab1")}catch{}})();const R=m(h),T=m(u);class v{static async getInfo(){return await c.get("authors/info")}}const r=class{static dispatch(e,a,n=0){window.Intercom?window.Intercom(e,a):n<10?setTimeout(()=>r.dispatch(e,a),100):b.error({message:"Unable to Load Support Chat",description:"It looks like some browser extensions, such as ad blockers, may be preventing the support chat from loading. Please try disabling them or reach out to us at help@abstra.app"})}static boot(){r.booted||v.getInfo().then(e=>{r.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e.email,email:e.email,user_hash:e.intercomHash,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),r.booted=!0}).catch(e=>{console.error(e),E(e)})}static show(){r.dispatch("show")}static hide(){r.dispatch("hide")}static showNewMessage(e){r.dispatch("showNewMessage",e)}static shutdown(){r.dispatch("shutdown"),r.booted=!1}};let i=r;l(i,"booted",!1);class I{async createSession(e){await c.post("usage/sessions",e)}async trackBrowserEvent(e){await c.post("usage/browser",e)}}const s=new I;class P{static trackSession(){const e=Object.fromEntries(document.cookie.split("; ").map(n=>n.split(/=(.*)/s).map(decodeURIComponent))),a=new URLSearchParams(window.location.search).get("session")||e.abstra_session;s.createSession({query:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href,previousSessionId:a}).catch(console.error)}static trackPageView(){s.trackBrowserEvent({event:"PageView",payload:{queryParams:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href}}).catch(console.error)}static billingAlertCtaClicked(e,a){s.trackBrowserEvent({event:"BillingAlertCtaClicked",payload:{cta:a,organizationId:e,href:location.href}}).catch(console.error)}static billingPlanUpgradeClicked(e){s.trackBrowserEvent({event:"BillingPlanUpgradeClicked",payload:{organizationId:e,href:location.href}}).catch(console.error)}}const p=A({history:g("/"),routes:[{path:"/widget-preview",name:"widget-preview",component:()=>o(()=>import("./WidgetPreview.235f8d1e.js"),["assets/WidgetPreview.235f8d1e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/Steps.b72611f7.js","assets/index.2862b277.js","assets/Steps.4d03c6c1.css","assets/PlayerConfigProvider.e5e86f58.js","assets/colorHelpers.b079bb04.js","assets/index.c7e8afe7.js","assets/PlayerConfigProvider.8864c905.css","assets/WidgetPreview.0208942c.css"]),meta:{allowUnauthenticated:!0,title:"Preview - Abstra Console"}},{path:"/login",name:"login",component:()=>o(()=>import("./Login.49260e5e.js"),["assets/Login.49260e5e.js","assets/CircularLoading.13413fc4.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/CircularLoading.1a558a0d.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/string.d9c83adf.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/Login.daddff0b.css"]),meta:{allowUnauthenticated:!0,title:"Login - Abstra Console"}},{path:"/api-key",name:"api-key",component:()=>o(()=>import("./EditorLogin.7c1613dd.js"),["assets/EditorLogin.7c1613dd.js","assets/Navbar.8a0a89b3.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/asyncComputed.703c33fd.js","assets/PhChats.vue.1b5982bf.js","assets/PhSignOut.vue.6dacf893.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/index.a82e0ed1.js","assets/Avatar.f6415f7c.js","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/BookOutlined.7c922f07.js","assets/Navbar.a899b0d6.css","assets/url.121c9984.js","assets/apiKey.12cb6e13.js","assets/organization.03372a7f.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/EditorLogin.7e0ad5ed.css"]),meta:{title:"Api Keys - Abstra Console"}},{path:"/",name:"home",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}},{path:"/organizations",name:"organizations",component:()=>o(()=>import("./Organizations.7583c645.js"),["assets/Organizations.7583c645.js","assets/Navbar.8a0a89b3.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/asyncComputed.703c33fd.js","assets/PhChats.vue.1b5982bf.js","assets/PhSignOut.vue.6dacf893.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/index.a82e0ed1.js","assets/Avatar.f6415f7c.js","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/BookOutlined.7c922f07.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.52f1acec.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/CrudView.c80c8ede.css","assets/ant-design.d89b18ab.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/PhPencil.vue.7418c4e5.js","assets/organization.03372a7f.js","assets/tables.318f703e.js","assets/record.8c284c67.js","assets/string.d9c83adf.js"]),meta:{title:"Organizations - Abstra Console"}},{path:"/organizations/:organizationId",name:"organization",component:()=>o(()=>import("./Organization.edfbfaf3.js"),["assets/Organization.edfbfaf3.js","assets/Navbar.8a0a89b3.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/asyncComputed.703c33fd.js","assets/PhChats.vue.1b5982bf.js","assets/PhSignOut.vue.6dacf893.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/index.a82e0ed1.js","assets/Avatar.f6415f7c.js","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/BookOutlined.7c922f07.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.52f1acec.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/organization.03372a7f.js","assets/tables.318f703e.js","assets/record.8c284c67.js","assets/string.d9c83adf.js","assets/Sidebar.0a307c47.js","assets/index.289665f1.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/index.a552d580.js","assets/Sidebar.e69f49bd.css"]),redirect:{name:"projects"},children:[{path:"projects",name:"projects",component:()=>o(()=>import("./ProjectsView.413629ec.js"),["assets/ProjectsView.413629ec.js","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/member.8ffb8c1d.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/ant-design.d89b18ab.js","assets/tagColorProvider.36a797cb.js","assets/PhCopy.vue.dfade011.js","assets/organization.03372a7f.js"]),meta:{title:"Projects - Abstra Console"}},{path:"editors",name:"editors",component:()=>o(()=>import("./EditorsView.19e3ced6.js"),["assets/EditorsView.19e3ced6.js","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/member.8ffb8c1d.js","assets/tables.318f703e.js","assets/record.8c284c67.js","assets/string.d9c83adf.js","assets/ant-design.d89b18ab.js","assets/tagColorProvider.36a797cb.js"]),meta:{title:"Editors - Abstra Console"}},{path:"members",redirect:{name:"editors"}},{path:"billing",name:"billing",component:()=>o(()=>import("./Billing.b9cff65e.js"),["assets/Billing.b9cff65e.js","assets/asyncComputed.703c33fd.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/organization.03372a7f.js","assets/tables.318f703e.js","assets/record.8c284c67.js","assets/string.d9c83adf.js","assets/LoadingContainer.23bc0e74.js","assets/LoadingContainer.56fa997a.css","assets/index.a552d580.js"]),meta:{title:"Billing - Abstra Console"}}]},{path:"/projects/:projectId",name:"project",component:()=>o(()=>import("./Project.1861926b.js"),["assets/Project.1861926b.js","assets/Navbar.8a0a89b3.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/asyncComputed.703c33fd.js","assets/PhChats.vue.1b5982bf.js","assets/PhSignOut.vue.6dacf893.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/index.a82e0ed1.js","assets/Avatar.f6415f7c.js","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/BookOutlined.7c922f07.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.52f1acec.js","assets/BaseLayout.b7a1f19a.css","assets/organization.03372a7f.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/Sidebar.0a307c47.js","assets/index.289665f1.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/index.a552d580.js","assets/Sidebar.e69f49bd.css","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/PhArrowCounterClockwise.vue.70f7f135.js","assets/PhIdentificationBadge.vue.088497fd.js","assets/PhCube.vue.63fffddc.js","assets/PhGlobe.vue.71eddd06.js","assets/Project.738d2762.css"]),redirect:{name:"live"},children:[{path:"live",name:"live",component:()=>o(()=>import("./Live.089a1ef4.js"),["assets/Live.089a1ef4.js","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.703c33fd.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/datetime.19a96164.js","assets/organization.03372a7f.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/polling.c979afd7.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js","assets/LoadingOutlined.bcfc8c20.js","assets/PhArrowCounterClockwise.vue.70f7f135.js","assets/PhArrowSquareOut.vue.418ffcff.js","assets/PhChats.vue.1b5982bf.js","assets/PhCopySimple.vue.6b8fcb49.js","assets/Live.6d78ba49.css"]),meta:{title:"Project - Abstra Console"}},{path:"builds",name:"builds",component:()=>o(()=>import("./Builds.72241fd9.js"),["assets/Builds.72241fd9.js","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.703c33fd.js","assets/datetime.19a96164.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/polling.c979afd7.js","assets/PhArrowCounterClockwise.vue.70f7f135.js","assets/PhCube.vue.63fffddc.js","assets/PhDownloadSimple.vue.07a1756e.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/index.81ae2c34.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/CloseCircleOutlined.c0e3f3e1.js","assets/LoadingOutlined.bcfc8c20.js","assets/Builds.41ab7a9a.css"]),meta:{title:"Builds - Abstra Console"}},{path:"connectors",name:"connectors",component:()=>o(()=>import("./ConnectorsView.84eed061.js"),["assets/ConnectorsView.84eed061.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/Avatar.f6415f7c.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/index.a82e0ed1.js","assets/ConnectorsView.464982fb.css"]),meta:{title:"Connectors - Abstra Console"}},{path:"tables",name:"tables",component:()=>o(()=>import("./Tables.29c026f5.js"),["assets/Tables.29c026f5.js","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/ant-design.d89b18ab.js","assets/asyncComputed.703c33fd.js","assets/string.d9c83adf.js","assets/PhPencil.vue.7418c4e5.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/tables.318f703e.js","assets/record.8c284c67.js"]),meta:{title:"Tables - Abstra Console"}},{path:"sql",name:"sql",component:()=>o(()=>import("./Sql.23137c87.js"),["assets/Sql.23137c87.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/utils.537da94d.js","assets/PhDownloadSimple.vue.07a1756e.js","assets/toggleHighContrast.0eb315ff.js","assets/toggleHighContrast.30d77c87.css","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/Sql.8ce6a064.css"]),meta:{title:"SQL Editor - Abstra Console"}},{path:"api-keys",name:"api-keys",component:()=>o(()=>import("./ApiKeys.ade071dc.js"),["assets/ApiKeys.ade071dc.js","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.703c33fd.js","assets/apiKey.12cb6e13.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/member.8ffb8c1d.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js"]),meta:{title:"API Keys - Abstra Console"}},{path:"logs",name:"logs",component:()=>o(()=>import("./Logs.38b173b7.js"),["assets/Logs.38b173b7.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/datetime.19a96164.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.a7416b31.js","assets/LoadingOutlined.bcfc8c20.js","assets/string.d9c83adf.js","assets/tables.318f703e.js","assets/record.8c284c67.js","assets/ant-design.d89b18ab.js","assets/index.a82e0ed1.js","assets/dayjs.9c046fb9.js","assets/CollapsePanel.40b6e69e.js","assets/Logs.862ab706.css"]),meta:{title:"Logs - Abstra Console"}},{path:"settings",name:"project-settings",component:()=>o(()=>import("./ProjectSettings.5ee671dc.js"),["assets/ProjectSettings.5ee671dc.js","assets/asyncComputed.703c33fd.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/index.a82e0ed1.js"]),meta:{title:"Project Settings - Abstra Console"}},{path:"env-vars",name:"env-vars",component:()=>o(()=>import("./EnvVars.53c4f0a6.js"),["assets/EnvVars.53c4f0a6.js","assets/View.vue_vue_type_script_setup_true_lang.1a7d99da.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/fetch.e5ebd511.js","assets/record.8c284c67.js","assets/SaveButton.a02cacb0.js","assets/UnsavedChangesHandler.d2f6de7c.js","assets/ExclamationCircleOutlined.c4fbd42a.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/CrudView.423d8744.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/Badge.f6241be2.js","assets/index.a82e0ed1.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.703c33fd.js","assets/polling.c979afd7.js","assets/PhPencil.vue.7418c4e5.js","assets/index.289665f1.js"]),meta:{title:"Environment Variables - Abstra Console"}},{path:"files",name:"files",component:()=>o(()=>import("./Files.4459e9ca.js"),["assets/Files.4459e9ca.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/popupNotifcation.a0a6244b.js","assets/ant-design.d89b18ab.js","assets/asyncComputed.703c33fd.js","assets/gateway.ae1d6857.js","assets/tables.318f703e.js","assets/record.8c284c67.js","assets/string.d9c83adf.js","assets/DeleteOutlined.5a680b6a.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/Files.06562802.css"]),meta:{title:"Files - Abstra Console"}},{path:"access-control",name:"access-control",component:()=>o(()=>import("./View.8f08686a.js"),["assets/View.8f08686a.js","assets/asyncComputed.703c33fd.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/index.a82e0ed1.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.d6f2b20e.js","assets/BookOutlined.7c922f07.js","assets/index.7c84a9f5.js","assets/Badge.f6241be2.js","assets/CrudView.423d8744.js","assets/url.121c9984.js","assets/PhDotsThreeVertical.vue.d0b16f96.js","assets/CrudView.c80c8ede.css","assets/PhPencil.vue.7418c4e5.js","assets/repository.d3422c40.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/fetch.e5ebd511.js","assets/record.8c284c67.js","assets/ant-design.d89b18ab.js","assets/TabPane.79f4882f.js"]),meta:{title:"Access Control - Abstra Console"}}]},{path:"/projects/:projectId/tables/:tableId",name:"tableEditor",component:()=>o(()=>import("./TableEditor.8fd9b580.js"),["assets/TableEditor.8fd9b580.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.7c4b948d.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/BaseLayout.52f1acec.js","assets/BaseLayout.b7a1f19a.css","assets/asyncComputed.703c33fd.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/organization.03372a7f.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/ContentLayout.f92ff80c.js","assets/ContentLayout.ee57a545.css","assets/index.a82e0ed1.js","assets/index.7c84a9f5.js","assets/Badge.f6241be2.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/index.d4b99d43.js","assets/PhArrowDown.vue.1c758684.js","assets/ant-design.d89b18ab.js","assets/PhCaretRight.vue.5db53029.js","assets/LoadingOutlined.bcfc8c20.js","assets/index.3b2f4dca.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js","assets/TableEditor.1e680eaf.css"]),meta:{title:"Tables - Abstra Console"}},{path:"/projects/:projectId/web-editor",name:"web-editor",component:()=>o(()=>import("./WebEditor.0a99a5a7.js"),["assets/WebEditor.0a99a5a7.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/BaseLayout.52f1acec.js","assets/BaseLayout.b7a1f19a.css","assets/fetch.e5ebd511.js","assets/gateway.ae1d6857.js","assets/popupNotifcation.a0a6244b.js","assets/project.fad91605.js","assets/record.8c284c67.js","assets/tables.318f703e.js","assets/string.d9c83adf.js","assets/WebEditor.bac6e8fe.css"]),meta:{title:"Web Editor - Abstra Console"}},{path:"/:pathMatch(.*)*",name:"NotFound",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}}],scrollBehavior(t){if(t.hash)return{el:t.hash}}});p.beforeEach(async(t,e)=>{w(t,e);const a=f.getAuthor();if(!t.meta.allowUnauthenticated&&!a){await p.push({name:"login",query:{...t.query,redirect:t.path,"prev-redirect":t.query.redirect}});return}a&&(P.trackPageView(),i.boot())});export{R as A,i as C,P as T,T as a,v as b,p as r}; +//# sourceMappingURL=router.375df57e.js.map diff --git a/abstra_statics/dist/assets/router.f4663fd5.js b/abstra_statics/dist/assets/router.f4663fd5.js deleted file mode 100644 index bead7d5538..0000000000 --- a/abstra_statics/dist/assets/router.f4663fd5.js +++ /dev/null @@ -1,2 +0,0 @@ -var d=Object.defineProperty;var _=(t,e,a)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var l=(t,e,a)=>(_(t,typeof e!="symbol"?e+"":e,a),a);import{af as m,dk as h,dl as u,cM as b,x as E,h as A,i as g,_ as o,j as w}from"./index.8c3f27aa.js";import{C as c,a as v}from"./gateway.8032b20a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6b8cc6c6-7631-4b91-8eed-a2751145f84d",t._sentryDebugIdIdentifier="sentry-dbid-6b8cc6c6-7631-4b91-8eed-a2751145f84d")}catch{}})();const R=m(h),T=m(u);class f{static async getInfo(){return await c.get("authors/info")}}const r=class{static dispatch(e,a,n=0){window.Intercom?window.Intercom(e,a):n<10?setTimeout(()=>r.dispatch(e,a),100):b.error({message:"Unable to Load Support Chat",description:"It looks like some browser extensions, such as ad blockers, may be preventing the support chat from loading. Please try disabling them or reach out to us at help@abstra.app"})}static boot(){r.booted||f.getInfo().then(e=>{r.dispatch("boot",{api_base:"https://api-iam.intercom.io",app_id:"h97k86ks",name:e.email,email:e.email,user_hash:e.intercomHash,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),r.booted=!0}).catch(e=>{console.error(e),E(e)})}static show(){r.dispatch("show")}static hide(){r.dispatch("hide")}static showNewMessage(e){r.dispatch("showNewMessage",e)}static shutdown(){r.dispatch("shutdown"),r.booted=!1}};let i=r;l(i,"booted",!1);class I{async createSession(e){await c.post("usage/sessions",e)}async trackBrowserEvent(e){await c.post("usage/browser",e)}}const s=new I;class P{static trackSession(){const e=Object.fromEntries(document.cookie.split("; ").map(n=>n.split(/=(.*)/s).map(decodeURIComponent))),a=new URLSearchParams(window.location.search).get("session")||e.abstra_session;s.createSession({query:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href,previousSessionId:a}).catch(console.error)}static trackPageView(){s.trackBrowserEvent({event:"PageView",payload:{queryParams:Object.fromEntries(new URLSearchParams(location.search)),referrer:document.referrer,href:location.href}}).catch(console.error)}static billingAlertCtaClicked(e,a){s.trackBrowserEvent({event:"BillingAlertCtaClicked",payload:{cta:a,organizationId:e,href:location.href}}).catch(console.error)}static billingPlanUpgradeClicked(e){s.trackBrowserEvent({event:"BillingPlanUpgradeClicked",payload:{organizationId:e,href:location.href}}).catch(console.error)}}const p=A({history:g("/"),routes:[{path:"/widget-preview",name:"widget-preview",component:()=>o(()=>import("./WidgetPreview.1fa01bd0.js"),["assets/WidgetPreview.1fa01bd0.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/Steps.526dbd54.js","assets/index.f36b2f2c.js","assets/Steps.4d03c6c1.css","assets/PlayerConfigProvider.4d4af7bc.js","assets/colorHelpers.0ac76147.js","assets/index.73b06b4b.js","assets/PlayerConfigProvider.8864c905.css","assets/WidgetPreview.0208942c.css"]),meta:{allowUnauthenticated:!0,title:"Preview - Abstra Console"}},{path:"/login",name:"login",component:()=>o(()=>import("./Login.5cce10a1.js"),["assets/Login.5cce10a1.js","assets/CircularLoading.fdcc1083.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/CircularLoading.1a558a0d.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/string.0a3509c3.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/Login.daddff0b.css"]),meta:{allowUnauthenticated:!0,title:"Login - Abstra Console"}},{path:"/api-key",name:"api-key",component:()=>o(()=>import("./EditorLogin.90e551ed.js"),["assets/EditorLogin.90e551ed.js","assets/Navbar.059184c9.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/asyncComputed.cfc0cdaf.js","assets/PhChats.vue.296ae643.js","assets/PhSignOut.vue.266bb925.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/index.37c7ea66.js","assets/Avatar.8da44d42.js","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/BookOutlined.b4191bff.js","assets/Navbar.a899b0d6.css","assets/url.e93ecf3f.js","assets/apiKey.e2e0503b.js","assets/organization.2853982f.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/EditorLogin.7e0ad5ed.css"]),meta:{title:"Api Keys - Abstra Console"}},{path:"/",name:"home",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}},{path:"/organizations",name:"organizations",component:()=>o(()=>import("./Organizations.cb82148c.js"),["assets/Organizations.cb82148c.js","assets/Navbar.059184c9.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/asyncComputed.cfc0cdaf.js","assets/PhChats.vue.296ae643.js","assets/PhSignOut.vue.266bb925.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/index.37c7ea66.js","assets/Avatar.8da44d42.js","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/BookOutlined.b4191bff.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.995c8c6b.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/CrudView.c80c8ede.css","assets/ant-design.ae7d2f9f.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/PhPencil.vue.47d672ed.js","assets/organization.2853982f.js","assets/tables.2ec18755.js","assets/record.a6861841.js","assets/string.0a3509c3.js"]),meta:{title:"Organizations - Abstra Console"}},{path:"/organizations/:organizationId",name:"organization",component:()=>o(()=>import("./Organization.868a89e8.js"),["assets/Organization.868a89e8.js","assets/Navbar.059184c9.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/asyncComputed.cfc0cdaf.js","assets/PhChats.vue.296ae643.js","assets/PhSignOut.vue.266bb925.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/index.37c7ea66.js","assets/Avatar.8da44d42.js","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/BookOutlined.b4191bff.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.995c8c6b.js","assets/BaseLayout.b7a1f19a.css","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/organization.2853982f.js","assets/tables.2ec18755.js","assets/record.a6861841.js","assets/string.0a3509c3.js","assets/Sidebar.f4cbdc17.js","assets/index.126762e2.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/index.d18d35d7.js","assets/Sidebar.e69f49bd.css"]),redirect:{name:"projects"},children:[{path:"projects",name:"projects",component:()=>o(()=>import("./ProjectsView.c7828455.js"),["assets/ProjectsView.c7828455.js","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/member.ce73ad98.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/ant-design.ae7d2f9f.js","assets/tagColorProvider.09f476d6.js","assets/PhCopy.vue.a05dc1a1.js","assets/organization.2853982f.js"]),meta:{title:"Projects - Abstra Console"}},{path:"editors",name:"editors",component:()=>o(()=>import("./EditorsView.294706bd.js"),["assets/EditorsView.294706bd.js","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/member.ce73ad98.js","assets/tables.2ec18755.js","assets/record.a6861841.js","assets/string.0a3509c3.js","assets/ant-design.ae7d2f9f.js","assets/tagColorProvider.09f476d6.js"]),meta:{title:"Editors - Abstra Console"}},{path:"members",redirect:{name:"editors"}},{path:"billing",name:"billing",component:()=>o(()=>import("./Billing.f7196c81.js"),["assets/Billing.f7196c81.js","assets/asyncComputed.cfc0cdaf.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/organization.2853982f.js","assets/tables.2ec18755.js","assets/record.a6861841.js","assets/string.0a3509c3.js","assets/LoadingContainer.e327afe8.js","assets/LoadingContainer.56fa997a.css","assets/index.d18d35d7.js"]),meta:{title:"Billing - Abstra Console"}}]},{path:"/projects/:projectId",name:"project",component:()=>o(()=>import("./Project.6fca0189.js"),["assets/Project.6fca0189.js","assets/Navbar.059184c9.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/asyncComputed.cfc0cdaf.js","assets/PhChats.vue.296ae643.js","assets/PhSignOut.vue.266bb925.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/index.37c7ea66.js","assets/Avatar.8da44d42.js","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/BookOutlined.b4191bff.js","assets/Navbar.a899b0d6.css","assets/BaseLayout.995c8c6b.js","assets/BaseLayout.b7a1f19a.css","assets/organization.2853982f.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/Sidebar.f4cbdc17.js","assets/index.126762e2.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/index.d18d35d7.js","assets/Sidebar.e69f49bd.css","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/PhArrowCounterClockwise.vue.e0916215.js","assets/PhIdentificationBadge.vue.b9f0b1dc.js","assets/PhCube.vue.b3d93bff.js","assets/PhGlobe.vue.3da2da74.js","assets/Project.738d2762.css"]),redirect:{name:"live"},children:[{path:"live",name:"live",component:()=>o(()=>import("./Live.be7d3f72.js"),["assets/Live.be7d3f72.js","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.cfc0cdaf.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/datetime.c7490e96.js","assets/organization.2853982f.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/polling.98a0bd01.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.5b24f710.js","assets/LoadingOutlined.7a2941f5.js","assets/PhArrowCounterClockwise.vue.e0916215.js","assets/PhArrowSquareOut.vue.da8bb581.js","assets/PhChats.vue.296ae643.js","assets/PhCopySimple.vue.cf5729b7.js","assets/Live.6d78ba49.css"]),meta:{title:"Project - Abstra Console"}},{path:"builds",name:"builds",component:()=>o(()=>import("./Builds.ca0210c5.js"),["assets/Builds.ca0210c5.js","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.cfc0cdaf.js","assets/datetime.c7490e96.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/polling.98a0bd01.js","assets/PhArrowCounterClockwise.vue.e0916215.js","assets/PhCube.vue.b3d93bff.js","assets/PhDownloadSimple.vue.53949cd1.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/index.d2b068b5.js","assets/ExclamationCircleOutlined.433881ab.js","assets/CloseCircleOutlined.7faf1c70.js","assets/LoadingOutlined.7a2941f5.js","assets/Builds.41ab7a9a.css"]),meta:{title:"Builds - Abstra Console"}},{path:"connectors",name:"connectors",component:()=>o(()=>import("./ConnectorsView.24978ec8.js"),["assets/ConnectorsView.24978ec8.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/Avatar.8da44d42.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/index.37c7ea66.js","assets/ConnectorsView.464982fb.css"]),meta:{title:"Connectors - Abstra Console"}},{path:"tables",name:"tables",component:()=>o(()=>import("./Tables.6df43ce2.js"),["assets/Tables.6df43ce2.js","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/ant-design.ae7d2f9f.js","assets/asyncComputed.cfc0cdaf.js","assets/string.0a3509c3.js","assets/PhPencil.vue.47d672ed.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/tables.2ec18755.js","assets/record.a6861841.js"]),meta:{title:"Tables - Abstra Console"}},{path:"sql",name:"sql",component:()=>o(()=>import("./Sql.6e952103.js"),["assets/Sql.6e952103.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/utils.c92e833b.js","assets/PhDownloadSimple.vue.53949cd1.js","assets/toggleHighContrast.5028b4ff.js","assets/toggleHighContrast.30d77c87.css","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/Sql.8ce6a064.css"]),meta:{title:"SQL Editor - Abstra Console"}},{path:"api-keys",name:"api-keys",component:()=>o(()=>import("./ApiKeys.28b655de.js"),["assets/ApiKeys.28b655de.js","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.cfc0cdaf.js","assets/apiKey.e2e0503b.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/member.ce73ad98.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js"]),meta:{title:"API Keys - Abstra Console"}},{path:"logs",name:"logs",component:()=>o(()=>import("./Logs.67028068.js"),["assets/Logs.67028068.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/datetime.c7490e96.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.5b24f710.js","assets/LoadingOutlined.7a2941f5.js","assets/string.0a3509c3.js","assets/tables.2ec18755.js","assets/record.a6861841.js","assets/ant-design.ae7d2f9f.js","assets/index.37c7ea66.js","assets/dayjs.53bce80c.js","assets/CollapsePanel.14b56554.js","assets/Logs.862ab706.css"]),meta:{title:"Logs - Abstra Console"}},{path:"settings",name:"project-settings",component:()=>o(()=>import("./ProjectSettings.b6490445.js"),["assets/ProjectSettings.b6490445.js","assets/asyncComputed.cfc0cdaf.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/index.37c7ea66.js"]),meta:{title:"Project Settings - Abstra Console"}},{path:"env-vars",name:"env-vars",component:()=>o(()=>import("./EnvVars.173c13f5.js"),["assets/EnvVars.173c13f5.js","assets/View.vue_vue_type_script_setup_true_lang.dc951c99.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/fetch.fd4370bb.js","assets/record.a6861841.js","assets/SaveButton.f2d9e5cc.js","assets/UnsavedChangesHandler.9ea18755.js","assets/ExclamationCircleOutlined.433881ab.js","assets/UnsavedChangesHandler.7aa0e3b6.css","assets/SaveButton.72874714.css","assets/CrudView.ac8aad2f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/Badge.7a29ebdb.js","assets/index.37c7ea66.js","assets/CrudView.c80c8ede.css","assets/asyncComputed.cfc0cdaf.js","assets/polling.98a0bd01.js","assets/PhPencil.vue.47d672ed.js","assets/index.126762e2.js"]),meta:{title:"Environment Variables - Abstra Console"}},{path:"files",name:"files",component:()=>o(()=>import("./Files.3b1f241b.js"),["assets/Files.3b1f241b.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/popupNotifcation.40886a7f.js","assets/ant-design.ae7d2f9f.js","assets/asyncComputed.cfc0cdaf.js","assets/gateway.8032b20a.js","assets/tables.2ec18755.js","assets/record.a6861841.js","assets/string.0a3509c3.js","assets/DeleteOutlined.0e27ef4f.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/Files.06562802.css"]),meta:{title:"Files - Abstra Console"}},{path:"access-control",name:"access-control",component:()=>o(()=>import("./View.e88c557b.js"),["assets/View.e88c557b.js","assets/asyncComputed.cfc0cdaf.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/index.37c7ea66.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2782c875.js","assets/BookOutlined.b4191bff.js","assets/index.2753fdb2.js","assets/Badge.7a29ebdb.js","assets/CrudView.ac8aad2f.js","assets/url.e93ecf3f.js","assets/PhDotsThreeVertical.vue.55fe4f43.js","assets/CrudView.c80c8ede.css","assets/PhPencil.vue.47d672ed.js","assets/repository.31bede66.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/fetch.fd4370bb.js","assets/record.a6861841.js","assets/ant-design.ae7d2f9f.js","assets/TabPane.2034bc94.js"]),meta:{title:"Access Control - Abstra Console"}}]},{path:"/projects/:projectId/tables/:tableId",name:"tableEditor",component:()=>o(()=>import("./TableEditor.55d359e8.js"),["assets/TableEditor.55d359e8.js","assets/AbstraButton.vue_vue_type_script_setup_true_lang.68175654.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/BaseLayout.995c8c6b.js","assets/BaseLayout.b7a1f19a.css","assets/asyncComputed.cfc0cdaf.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/organization.2853982f.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/ContentLayout.60e2d770.js","assets/ContentLayout.ee57a545.css","assets/index.37c7ea66.js","assets/index.2753fdb2.js","assets/Badge.7a29ebdb.js","assets/PhCheckCircle.vue.9df5f131.js","assets/index.83aa16e3.js","assets/PhArrowDown.vue.bbcdf79c.js","assets/ant-design.ae7d2f9f.js","assets/PhCaretRight.vue.a26e962f.js","assets/LoadingOutlined.7a2941f5.js","assets/index.d667cd0d.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js","assets/TableEditor.1e680eaf.css"]),meta:{title:"Tables - Abstra Console"}},{path:"/projects/:projectId/web-editor",name:"web-editor",component:()=>o(()=>import("./WebEditor.74487396.js"),["assets/WebEditor.74487396.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/BaseLayout.995c8c6b.js","assets/BaseLayout.b7a1f19a.css","assets/fetch.fd4370bb.js","assets/gateway.8032b20a.js","assets/popupNotifcation.40886a7f.js","assets/project.cc79d30a.js","assets/record.a6861841.js","assets/tables.2ec18755.js","assets/string.0a3509c3.js","assets/WebEditor.bac6e8fe.css"]),meta:{title:"Web Editor - Abstra Console"}},{path:"/:pathMatch(.*)*",name:"NotFound",redirect:{name:"organizations"},meta:{title:"Home - Abstra Console"}}],scrollBehavior(t){if(t.hash)return{el:t.hash}}});p.beforeEach(async(t,e)=>{w(t,e);const a=v.getAuthor();if(!t.meta.allowUnauthenticated&&!a){await p.push({name:"login",query:{...t.query,redirect:t.path,"prev-redirect":t.query.redirect}});return}a&&(P.trackPageView(),i.boot())});export{R as A,i as C,P as T,T as a,f as b,p as r}; -//# sourceMappingURL=router.f4663fd5.js.map diff --git a/abstra_statics/dist/assets/scripts.ab5c52f3.js b/abstra_statics/dist/assets/scripts.9802e877.js similarity index 95% rename from abstra_statics/dist/assets/scripts.ab5c52f3.js rename to abstra_statics/dist/assets/scripts.9802e877.js index 81bb710510..82405d7edc 100644 --- a/abstra_statics/dist/assets/scripts.ab5c52f3.js +++ b/abstra_statics/dist/assets/scripts.9802e877.js @@ -1,2 +1,2 @@ -var f=Object.defineProperty;var b=(a,t,e)=>t in a?f(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var p=(a,t,e)=>(b(a,typeof t!="symbol"?t+"":t,e),e);import"./index.8c3f27aa.js";import{A as w}from"./record.a6861841.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="bcdbc467-e78c-4ae3-9bd1-cef0797ad634",a._sentryDebugIdIdentifier="sentry-dbid-bcdbc467-e78c-4ae3-9bd1-cef0797ad634")}catch{}})();class I{static async*sendMessage(t,e,s,r){var h;const n=await fetch("/_editor/api/ai/message",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:t,runtime:e,threadId:s})});if(!n.ok)throw new Error("Failed to send message");const d=(h=n.body)==null?void 0:h.getReader();if(!d)throw new Error("No response body");for(;!r();){const g=await d.read();if(g.done)break;yield new TextDecoder().decode(g.value)}}static async createThread(){return(await fetch("/_editor/api/ai/thread",{method:"POST"})).json()}static async cancelAllRuns(t){return(await fetch("/_editor/api/ai/cancel-all",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threadId:t})})).ok}static async generateProject(t){const e=await fetch("/_editor/api/ai/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t})});if(!e.ok){const s=await e.text();throw new Error(s)}}static async vote(t,e,s,r){await fetch("/_editor/api/ai/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vote:t,question:e,answer:s,context:r})})}}class m{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,s){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/hooks/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/hooks/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/run?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}async test(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/test?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}}const i=new m;class u{constructor(t){p(this,"record");this.record=w.create(i,t)}static async list(){return(await i.list()).map(e=>new u(e))}static async create(t,e,s){const r=await i.create(t,e,s);return new u(r)}static async get(t){const e=await i.get(t);return new u(e)}async delete(t){await i.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return i.run(this.id,t)}async test(t){return i.test(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new u(t)}}class j{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,s){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/jobs/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/jobs/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}async test(t){return(await fetch(`/_editor/api/jobs/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const o=new j;class y{constructor(t){p(this,"record");p(this,"isInitial",!0);this.record=w.create(o,t)}static async list(){return(await o.list()).map(e=>new y(e))}static async create(t,e,s){const r=await o.create(t,e,s);return new y(r)}static async get(t){const e=await o.get(t);return new y(e)}async delete(t){await o.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async test(){return o.test(this.id)}async run(){return o.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new y(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class S{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,s){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/scripts/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/scripts/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({stage_run_id:e})})).ok}async test(t){return(await fetch(`/_editor/api/scripts/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const c=new S;class l{constructor(t){p(this,"record");this.record=w.create(c,t)}static async list(){return(await c.list()).map(e=>new l(e))}static async create(t,e,s){const r=await c.create(t,e,s);return new l(r)}static async get(t){const e=await c.get(t);return new l(e)}async delete(t){await c.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"script"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async test(){return c.test(this.id)}async run(t){return c.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new l(t)}}export{I as A,u as H,y as J,l as S}; -//# sourceMappingURL=scripts.ab5c52f3.js.map +var f=Object.defineProperty;var b=(a,t,e)=>t in a?f(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var p=(a,t,e)=>(b(a,typeof t!="symbol"?t+"":t,e),e);import"./index.d0f12294.js";import{A as w}from"./record.8c284c67.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="02c27b61-e367-40b9-928a-670949e9f7fa",a._sentryDebugIdIdentifier="sentry-dbid-02c27b61-e367-40b9-928a-670949e9f7fa")}catch{}})();class I{static async*sendMessage(t,e,s,r){var h;const n=await fetch("/_editor/api/ai/message",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:t,runtime:e,threadId:s})});if(!n.ok)throw new Error("Failed to send message");const d=(h=n.body)==null?void 0:h.getReader();if(!d)throw new Error("No response body");for(;!r();){const g=await d.read();if(g.done)break;yield new TextDecoder().decode(g.value)}}static async createThread(){return(await fetch("/_editor/api/ai/thread",{method:"POST"})).json()}static async cancelAllRuns(t){return(await fetch("/_editor/api/ai/cancel-all",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({threadId:t})})).ok}static async generateProject(t){const e=await fetch("/_editor/api/ai/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t})});if(!e.ok){const s=await e.text();throw new Error(s)}}static async vote(t,e,s,r){await fetch("/_editor/api/ai/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vote:t,question:e,answer:s,context:r})})}}class m{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,s){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/hooks/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/hooks/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/run?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}async test(t,e){const s=new URLSearchParams(e.query),r=await fetch(`/_editor/api/hooks/${t}/test?${s.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:n,headers:d,body:h}=await r.json();return{status:n,headers:d,body:h}}}const i=new m;class u{constructor(t){p(this,"record");this.record=w.create(i,t)}static async list(){return(await i.list()).map(e=>new u(e))}static async create(t,e,s){const r=await i.create(t,e,s);return new u(r)}static async get(t){const e=await i.get(t);return new u(e)}async delete(t){await i.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return i.run(this.id,t)}async test(t){return i.test(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new u(t)}}class j{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,s){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/jobs/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/jobs/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}async test(t){return(await fetch(`/_editor/api/jobs/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const o=new j;class y{constructor(t){p(this,"record");p(this,"isInitial",!0);this.record=w.create(o,t)}static async list(){return(await o.list()).map(e=>new y(e))}static async create(t,e,s){const r=await o.create(t,e,s);return new y(r)}static async get(t){const e=await o.get(t);return new y(e)}async delete(t){await o.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async test(){return o.test(this.id)}async run(){return o.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new y(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class S{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,s){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:s})})).json()}async get(t){return await(await fetch(`/_editor/api/scripts/${t}`)).json()}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const s=e?"?remove_file=true":"",r=`/_editor/api/scripts/${t}`+s;await fetch(r,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({stage_run_id:e})})).ok}async test(t){return(await fetch(`/_editor/api/scripts/${t}/test`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const c=new S;class l{constructor(t){p(this,"record");this.record=w.create(c,t)}static async list(){return(await c.list()).map(e=>new l(e))}static async create(t,e,s){const r=await c.create(t,e,s);return new l(r)}static async get(t){const e=await c.get(t);return new l(e)}async delete(t){await c.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"script"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async test(){return c.test(this.id)}async run(t){return c.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new l(t)}}export{I as A,u as H,y as J,l as S}; +//# sourceMappingURL=scripts.9802e877.js.map diff --git a/abstra_statics/dist/assets/string.0a3509c3.js b/abstra_statics/dist/assets/string.d9c83adf.js similarity index 63% rename from abstra_statics/dist/assets/string.0a3509c3.js rename to abstra_statics/dist/assets/string.d9c83adf.js index 47a1182241..abba8547b0 100644 --- a/abstra_statics/dist/assets/string.0a3509c3.js +++ b/abstra_statics/dist/assets/string.d9c83adf.js @@ -1,2 +1,2 @@ -import{O as l}from"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a1b2ee01-04ce-48bf-8e9f-77383f55f651",e._sentryDebugIdIdentifier="sentry-dbid-a1b2ee01-04ce-48bf-8e9f-77383f55f651")}catch{}})();function u(e){return l.string().email().safeParse(e).success}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}function g(e,r,n=!1,t=!0,a=!1){const o=(t?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=a?o.replace(/[^a-zA-Z0-9/]/g,"_"):o.replace(/[^a-zA-Z0-9]/g,"_"),i=n?c:c.replace(/_+/g,"_");return r?i:i.replace(/_$/,"")}function p(e){var s;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=/[a-z0-9]+/g,a=n.match(t);return(s=a==null?void 0:a.join("-"))!=null?s:""}function b(e){try{return{valid:!0,parsed:JSON.parse(e)}}catch(r){return{valid:!1,message:r instanceof Error?r.message:"Unknown error"}}}export{p as a,d as c,u as i,g as n,b as v}; -//# sourceMappingURL=string.0a3509c3.js.map +import{O as l}from"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d34498eb-cbd9-49be-9d44-4673cc31da33",e._sentryDebugIdIdentifier="sentry-dbid-d34498eb-cbd9-49be-9d44-4673cc31da33")}catch{}})();function u(e){return l.string().email().safeParse(e).success}function f(e){return e.charAt(0).toUpperCase()+e.slice(1)}function g(e,r,n=!1,t=!0,a=!1){const o=(t?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=a?o.replace(/[^a-zA-Z0-9/]/g,"_"):o.replace(/[^a-zA-Z0-9]/g,"_"),i=n?c:c.replace(/_+/g,"_");return r?i:i.replace(/_$/,"")}function p(e){var s;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=/[a-z0-9]+/g,a=n.match(t);return(s=a==null?void 0:a.join("-"))!=null?s:""}function b(e){try{return{valid:!0,parsed:JSON.parse(e)}}catch(r){return{valid:!1,message:r instanceof Error?r.message:"Unknown error"}}}export{p as a,f as c,u as i,g as n,b as v}; +//# sourceMappingURL=string.d9c83adf.js.map diff --git a/abstra_statics/dist/assets/tables.2ec18755.js b/abstra_statics/dist/assets/tables.318f703e.js similarity index 82% rename from abstra_statics/dist/assets/tables.2ec18755.js rename to abstra_statics/dist/assets/tables.318f703e.js index 0ba78800f5..b10484e1e4 100644 --- a/abstra_statics/dist/assets/tables.2ec18755.js +++ b/abstra_statics/dist/assets/tables.318f703e.js @@ -1,2 +1,2 @@ -var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var l=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{C as n}from"./gateway.8032b20a.js";import{E as b}from"./record.a6861841.js";import{n as g}from"./string.0a3509c3.js";import{O as o}from"./index.8c3f27aa.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="da33b3f0-885d-4893-82ca-92df5c4576c7",s._sentryDebugIdIdentifier="sentry-dbid-da33b3f0-885d-4893-82ca-92df5c4576c7")}catch{}})();o.object({name:o.string().optional(),unique:o.boolean().optional(),nullable:o.boolean().optional(),type:o.object({newType:o.string(),using:o.string()}).optional(),default:o.string().optional(),foreignKey:o.object({columnId:o.string()}).nullish().optional()});const $={boolean:["boolean","bool"],int:["int","integer","int4"],varchar:["varchar","character varying","text"],json:["json"],date:["date"],timestamp:["timestamp"],uuid:["uuid"],real:["real","float4"]},T=s=>{for(const e of C)if($[e].includes(s))return e;throw new Error(`Unknown type: ${s}`)};class D{async create(e){return n.post(`projects/${e.projectId}/tables/${e.tableId}/columns`,e)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`)}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`,t)}async getById(e){return n.get(`projects/${e.projectId}/columns/${e.id}`)}}const y=new D,h=class{constructor(e){l(this,"record");this.record=b.from(e)}static async create(e,t,r,c,d,p,I,f){const m=await y.create({name:e,type:t,default:r,nullable:c,unique:d,tableId:p,projectId:I,foreignKey:f});return"error"in m?m:new h(m)}async update(e){const t={...this.record.changes,type:this.record.changes.type&&e?{newType:this.record.changes.type,using:e}:void 0};return Object.keys(t).length===0||!this.id?{success:!0,error:""}:(await y.update({id:this.id,tableId:this.tableId,projectId:this.projectId},t),{success:!0,error:""})}toDTO(){return this.record.state}get id(){return this.record.get("id")}get tableId(){return this.record.get("tableId")}get projectId(){return this.record.get("projectId")}get protected(){return this.record.get("protected")}get type(){return T(this.record.get("type"))}set type(e){this.record.set("type",e)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get nullable(){return this.record.get("nullable")}set nullable(e){this.record.set("nullable",e)}get unique(){return this.record.get("unique")}set unique(e){this.record.set("unique",e)}get primaryKey(){return this.record.get("primaryKey")}get default(){var e;return(e=this.record.get("default"))==null?void 0:e.split("::")[0]}set default(e){this.record.set("default",e)}get foreignKey(){return this.record.get("foreignKey")}set foreignKey(e){this.record.set("foreignKey",e)}async delete(){this.id&&await y.delete({id:this.id,tableId:this.tableId,projectId:this.projectId})}};let i=h;l(i,"fromDTO",e=>new h(e)),l(i,"fromID",async(e,t)=>{const r=await y.getById({projectId:e,id:t});return h.fromDTO(r.column)});const C=["varchar","int","boolean","json","date","timestamp","uuid","real"],q={varchar:"'DEFAULT_VALUE'",int:"42",boolean:"false",json:"'{}'::json",date:"now()",timestamp:"now()",uuid:"gen_random_uuid()",real:"0.0"};class R{async list(e){return n.get(`projects/${e}/tables`)}async create(e,t){return await n.post(`projects/${e.projectId}/tables`,t)}async get(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}`)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}`)}async selectRows(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}/rows`,{limit:e.limit.toString(),offset:e.offset.toString(),search:e.search,where:JSON.stringify(e.where),orderBy:JSON.stringify(e.orderBy)})}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}`,t)}async insertRow(e,t){return n.post(`projects/${e.projectId}/tables/${e.tableId}/rows`,t)}async updateRow(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`,t)}async deleteRow(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`)}async getByColumnID(e){return n.get(`projects/${e.projectId}/columns/${e.columnId}`)}}const a=new R;class u{constructor(e,t=null){l(this,"record");l(this,"columns");this.record=b.from(e),this.columns=t}static async list(e){return(await a.list(e)).map(r=>new u(r))}static async fromColumnId(e,t){const r=await a.getByColumnID({projectId:e,columnId:t});return u.get(e,r.table.id)}static async create(e,t){const r=g(t,!1),c=await a.create({projectId:e},{name:r});return new u(c.table,c.columns.map(p=>i.fromDTO(p)))}static async get(e,t){const r=await a.get({projectId:e,tableId:t}),c=r.table,d=r.columns.map(p=>i.fromDTO({...p,projectId:c.projectId}));return new u(c,d)}async delete(e,t){return a.delete({projectId:e,tableId:t})}fixTraillingName(){this.name=g(this.name,!1)}async save(){if(Object.keys(this.record.changes).length!==0){this.record.changes.name&&this.fixTraillingName();try{await a.update({id:this.id,tableId:this.id,projectId:this.projectId},this.record.changes)}finally{this.record.resetChanges()}}}resetChanges(){this.record.resetChanges()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}hasChangesDeep(e){return this.record.hasChangesDeep(e)&&g(this.name,!1)!==this.record.initialState.name}getColumns(){var e;return(e=this.columns)!=null?e:[]}getUnprotectedColumns(){var e,t;return(t=(e=this.columns)==null?void 0:e.filter(r=>!r.protected).map(r=>r.toDTO()))!=null?t:[]}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(e){const t=g(e,!0);this.record.set("name",t)}get projectId(){return this.record.get("projectId")}async addColumn(e){const t=await i.create(e.name,e.type,e.default,e.nullable,e.unique,this.id,this.projectId,e.foreignKey);return"error"in t?{success:!1,error:t.error}:this.columns?(this.columns.push(t),{success:!0,error:""}):(this.columns=[t],{success:!0,error:""})}getColumn(e){var t;return(t=this.columns)==null?void 0:t.find(r=>r.id&&r.id===e)}async select(e={},t,r,c,d){return a.selectRows({name:this.name,where:e,tableId:this.id,projectId:this.projectId,limit:r,offset:t,search:c,orderBy:d})}async insertRow(e){return a.insertRow({tableId:this.id,projectId:this.projectId},e)}async updateRow(e,t){return a.updateRow({tableId:this.id,projectId:this.projectId,rowId:e},t)}async deleteRow(e){return a.deleteRow({tableId:this.id,projectId:this.projectId,rowId:e})}}export{u as T,q as d,C as p}; -//# sourceMappingURL=tables.2ec18755.js.map +var j=Object.defineProperty;var w=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var l=(s,e,t)=>(w(s,typeof e!="symbol"?e+"":e,t),t);import{C as n}from"./gateway.ae1d6857.js";import{E as f}from"./record.8c284c67.js";import{n as g}from"./string.d9c83adf.js";import{O as o}from"./index.d0f12294.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="836266f7-18d8-4e2a-8de4-8b49e3aff1f2",s._sentryDebugIdIdentifier="sentry-dbid-836266f7-18d8-4e2a-8de4-8b49e3aff1f2")}catch{}})();o.object({name:o.string().optional(),unique:o.boolean().optional(),nullable:o.boolean().optional(),type:o.object({newType:o.string(),using:o.string()}).optional(),default:o.string().optional(),foreignKey:o.object({columnId:o.string()}).nullish().optional()});const $={boolean:["boolean","bool"],int:["int","integer","int4"],varchar:["varchar","character varying","text"],json:["json"],date:["date"],timestamp:["timestamp"],uuid:["uuid"],real:["real","float4"]},T=s=>{for(const e of C)if($[e].includes(s))return e;throw new Error(`Unknown type: ${s}`)};class D{async create(e){return n.post(`projects/${e.projectId}/tables/${e.tableId}/columns`,e)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`)}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/columns/${e.id}`,t)}async getById(e){return n.get(`projects/${e.projectId}/columns/${e.id}`)}}const y=new D,h=class{constructor(e){l(this,"record");this.record=f.from(e)}static async create(e,t,r,i,d,p,b,I){const m=await y.create({name:e,type:t,default:r,nullable:i,unique:d,tableId:p,projectId:b,foreignKey:I});return"error"in m?m:new h(m)}async update(e){const t={...this.record.changes,type:this.record.changes.type&&e?{newType:this.record.changes.type,using:e}:void 0};return Object.keys(t).length===0||!this.id?{success:!0,error:""}:(await y.update({id:this.id,tableId:this.tableId,projectId:this.projectId},t),{success:!0,error:""})}toDTO(){return this.record.state}get id(){return this.record.get("id")}get tableId(){return this.record.get("tableId")}get projectId(){return this.record.get("projectId")}get protected(){return this.record.get("protected")}get type(){return T(this.record.get("type"))}set type(e){this.record.set("type",e)}get name(){return this.record.get("name")}set name(e){this.record.set("name",e)}get nullable(){return this.record.get("nullable")}set nullable(e){this.record.set("nullable",e)}get unique(){return this.record.get("unique")}set unique(e){this.record.set("unique",e)}get primaryKey(){return this.record.get("primaryKey")}get default(){var e;return(e=this.record.get("default"))==null?void 0:e.split("::")[0]}set default(e){this.record.set("default",e)}get foreignKey(){return this.record.get("foreignKey")}set foreignKey(e){this.record.set("foreignKey",e)}async delete(){this.id&&await y.delete({id:this.id,tableId:this.tableId,projectId:this.projectId})}};let c=h;l(c,"fromDTO",e=>new h(e)),l(c,"fromID",async(e,t)=>{const r=await y.getById({projectId:e,id:t});return h.fromDTO(r.column)});const C=["varchar","int","boolean","json","date","timestamp","uuid","real"],q={varchar:"'DEFAULT_VALUE'",int:"42",boolean:"false",json:"'{}'::json",date:"now()",timestamp:"now()",uuid:"gen_random_uuid()",real:"0.0"};class R{async list(e){return n.get(`projects/${e}/tables`)}async create(e,t){return await n.post(`projects/${e.projectId}/tables`,t)}async get(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}`)}async delete(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}`)}async selectRows(e){return n.get(`projects/${e.projectId}/tables/${e.tableId}/rows`,{limit:e.limit.toString(),offset:e.offset.toString(),search:e.search,where:JSON.stringify(e.where),orderBy:JSON.stringify(e.orderBy)})}async update(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}`,t)}async insertRow(e,t){return n.post(`projects/${e.projectId}/tables/${e.tableId}/rows`,t)}async updateRow(e,t){return n.patch(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`,t)}async deleteRow(e){return n.delete(`projects/${e.projectId}/tables/${e.tableId}/rows/${e.rowId}`)}async getByColumnID(e){return n.get(`projects/${e.projectId}/columns/${e.columnId}`)}}const a=new R;class u{constructor(e,t=null){l(this,"record");l(this,"columns");this.record=f.from(e),this.columns=t}static async list(e){return(await a.list(e)).map(r=>new u(r))}static async fromColumnId(e,t){const r=await a.getByColumnID({projectId:e,columnId:t});return u.get(e,r.table.id)}static async create(e,t){const r=g(t,!1),i=await a.create({projectId:e},{name:r});return new u(i.table,i.columns.map(p=>c.fromDTO(p)))}static async get(e,t){const r=await a.get({projectId:e,tableId:t}),i=r.table,d=r.columns.map(p=>c.fromDTO({...p,projectId:i.projectId}));return new u(i,d)}async delete(e,t){return a.delete({projectId:e,tableId:t})}fixTraillingName(){this.name=g(this.name,!1)}async save(){if(Object.keys(this.record.changes).length!==0){this.record.changes.name&&this.fixTraillingName();try{await a.update({id:this.id,tableId:this.id,projectId:this.projectId},this.record.changes)}finally{this.record.resetChanges()}}}resetChanges(){this.record.resetChanges()}onUpdate(e){this.record.pubsub.subscribe("update",e)}hasChanges(){return this.record.hasChanges()}hasChangesDeep(e){return this.record.hasChangesDeep(e)&&g(this.name,!1)!==this.record.initialState.name}getColumns(){var e;return(e=this.columns)!=null?e:[]}getUnprotectedColumns(){var e,t;return(t=(e=this.columns)==null?void 0:e.filter(r=>!r.protected).map(r=>r.toDTO()))!=null?t:[]}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(e){const t=g(e,!0);this.record.set("name",t)}get projectId(){return this.record.get("projectId")}async addColumn(e){const t=await c.create(e.name,e.type,e.default,e.nullable,e.unique,this.id,this.projectId,e.foreignKey);return"error"in t?{success:!1,error:t.error}:this.columns?(this.columns.push(t),{success:!0,error:""}):(this.columns=[t],{success:!0,error:""})}getColumn(e){var t;return(t=this.columns)==null?void 0:t.find(r=>r.id&&r.id===e)}async select(e={},t,r,i,d){return a.selectRows({name:this.name,where:e,tableId:this.id,projectId:this.projectId,limit:r,offset:t,search:i,orderBy:d})}async insertRow(e){return a.insertRow({tableId:this.id,projectId:this.projectId},e)}async updateRow(e,t){return a.updateRow({tableId:this.id,projectId:this.projectId,rowId:e},t)}async deleteRow(e){return a.deleteRow({tableId:this.id,projectId:this.projectId,rowId:e})}}export{u as T,q as d,C as p}; +//# sourceMappingURL=tables.318f703e.js.map diff --git a/abstra_statics/dist/assets/tagColorProvider.09f476d6.js b/abstra_statics/dist/assets/tagColorProvider.36a797cb.js similarity index 76% rename from abstra_statics/dist/assets/tagColorProvider.09f476d6.js rename to abstra_statics/dist/assets/tagColorProvider.36a797cb.js index 08c3fb6a5a..eb12a1d8ce 100644 --- a/abstra_statics/dist/assets/tagColorProvider.09f476d6.js +++ b/abstra_statics/dist/assets/tagColorProvider.36a797cb.js @@ -1,2 +1,2 @@ -var y=Object.defineProperty;var M=(a,e,l)=>e in a?y(a,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[e]=l;var u=(a,e,l)=>(M(a,typeof e!="symbol"?e+"":e,l),l);import{d as L,D as d,f as c,o as r,Y as t,$ as v,S as w,e8 as Z,a as n}from"./index.8c3f27aa.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="75a7f974-576d-45bc-9d35-8d179cdee496",a._sentryDebugIdIdentifier="sentry-dbid-75a7f974-576d-45bc-9d35-8d179cdee496")}catch{}})();const b=["width","height","fill","transform"],V={key:0},H=n("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),k=[H],A={key:1},C=n("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),S=n("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},null,-1),B=[C,S],D={key:2},z=n("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"},null,-1),I=[z],P={key:3},_=n("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"},null,-1),x=[_],N={key:4},$=n("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},null,-1),E=[$],j={key:5},T=n("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"},null,-1),q=[T],G={name:"PhPencilSimple"},J=L({...G,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,l=d("weight","regular"),i=d("size","1em"),p=d("color","currentColor"),h=d("mirrored",!1),s=c(()=>{var o;return(o=e.weight)!=null?o:l}),g=c(()=>{var o;return(o=e.size)!=null?o:i}),f=c(()=>{var o;return(o=e.color)!=null?o:p}),m=c(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(o,W)=>(r(),t("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:f.value,transform:m.value},o.$attrs),[v(o.$slots,"default"),s.value==="bold"?(r(),t("g",V,k)):s.value==="duotone"?(r(),t("g",A,B)):s.value==="fill"?(r(),t("g",D,I)):s.value==="light"?(r(),t("g",P,x)):s.value==="regular"?(r(),t("g",N,E)):s.value==="thin"?(r(),t("g",j,q)):w("",!0)],16,b))}});class K{constructor(){u(this,"colors",["cyan","blue","lime","gold","green","purple","processing","success","error","warning","magenta","red","volcano","orange","geekblue"]);u(this,"colorMap",new Map)}getColor(e){const l=this.colorMap.get(e);if(l)return l;const i=this.colors[this.colorMap.size%this.colors.length];return this.colorMap.set(e,i),i}}export{J as G,K as T}; -//# sourceMappingURL=tagColorProvider.09f476d6.js.map +var y=Object.defineProperty;var M=(a,e,l)=>e in a?y(a,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[e]=l;var g=(a,e,l)=>(M(a,typeof e!="symbol"?e+"":e,l),l);import{d as L,D as d,f as u,o as r,Y as t,$ as b,S as v,e8 as w,a as n}from"./index.d0f12294.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="7d29aebb-a16f-46e8-b9a5-34bd8ed273e4",a._sentryDebugIdIdentifier="sentry-dbid-7d29aebb-a16f-46e8-b9a5-34bd8ed273e4")}catch{}})();const Z=["width","height","fill","transform"],V={key:0},H=n("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"},null,-1),k=[H],A={key:1},C=n("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"},null,-1),S=n("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},null,-1),B=[C,S],D={key:2},z=n("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"},null,-1),I=[z],P={key:3},_=n("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"},null,-1),x=[_],N={key:4},$=n("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},null,-1),E=[$],j={key:5},T=n("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"},null,-1),q=[T],G={name:"PhPencilSimple"},J=L({...G,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,l=d("weight","regular"),i=d("size","1em"),p=d("color","currentColor"),h=d("mirrored",!1),s=u(()=>{var o;return(o=e.weight)!=null?o:l}),c=u(()=>{var o;return(o=e.size)!=null?o:i}),f=u(()=>{var o;return(o=e.color)!=null?o:p}),m=u(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:h?"scale(-1, 1)":void 0);return(o,W)=>(r(),t("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:f.value,transform:m.value},o.$attrs),[b(o.$slots,"default"),s.value==="bold"?(r(),t("g",V,k)):s.value==="duotone"?(r(),t("g",A,B)):s.value==="fill"?(r(),t("g",D,I)):s.value==="light"?(r(),t("g",P,x)):s.value==="regular"?(r(),t("g",N,E)):s.value==="thin"?(r(),t("g",j,q)):v("",!0)],16,Z))}});class K{constructor(){g(this,"colors",["cyan","blue","lime","gold","green","purple","processing","success","error","warning","magenta","red","volcano","orange","geekblue"]);g(this,"colorMap",new Map)}getColor(e){const l=this.colorMap.get(e);if(l)return l;const i=this.colors[this.colorMap.size%this.colors.length];return this.colorMap.set(e,i),i}}export{J as G,K as T}; +//# sourceMappingURL=tagColorProvider.36a797cb.js.map diff --git a/abstra_statics/dist/assets/toggleHighContrast.5028b4ff.js b/abstra_statics/dist/assets/toggleHighContrast.0eb315ff.js similarity index 99% rename from abstra_statics/dist/assets/toggleHighContrast.5028b4ff.js rename to abstra_statics/dist/assets/toggleHighContrast.0eb315ff.js index ce0d8a89b6..ac46cc8bd6 100644 --- a/abstra_statics/dist/assets/toggleHighContrast.5028b4ff.js +++ b/abstra_statics/dist/assets/toggleHighContrast.0eb315ff.js @@ -1,4 +1,4 @@ -var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var qt=(o,e,t)=>(m8(o,typeof e!="symbol"?e+"":e,t),t);import{_ as ue}from"./index.8c3f27aa.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="fafc6111-0fec-4946-b2e7-3280c6c81c31",o._sentryDebugIdIdentifier="sentry-dbid-fafc6111-0fec-4946-b2e7-3280c6c81c31")}catch{}})();globalThis&&globalThis.__awaiter;let _8=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function b8(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),_8&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(o,e,...t){return b8(e,t)}var Ow;const Vf="en";let U0=!1,$0=!1,h0=!1,TO=!1,sI=!1,oI=!1,q_,u0=Vf,v8,Cl;const ni=typeof self=="object"?self:typeof global=="object"?global:{};let Sn;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Sn=ni.vscode.process:typeof process<"u"&&(Sn=process);const C8=typeof((Ow=Sn==null?void 0:Sn.versions)===null||Ow===void 0?void 0:Ow.electron)=="string",w8=C8&&(Sn==null?void 0:Sn.type)==="renderer";if(typeof navigator=="object"&&!w8)Cl=navigator.userAgent,U0=Cl.indexOf("Windows")>=0,$0=Cl.indexOf("Macintosh")>=0,oI=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h0=Cl.indexOf("Linux")>=0,sI=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),q_=Vf,u0=q_;else if(typeof Sn=="object"){U0=Sn.platform==="win32",$0=Sn.platform==="darwin",h0=Sn.platform==="linux",h0&&!!Sn.env.SNAP&&Sn.env.SNAP_REVISION,Sn.env.CI||Sn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,q_=Vf,u0=Vf;const o=Sn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];q_=e.locale,u0=t||Vf,v8=e._translationsConfigFile}catch{}TO=!0}else console.error("Unable to resolve platform.");const Yi=U0,Ge=$0,dn=h0,jo=TO,Sc=sI,S8=sI&&typeof ni.importScripts=="function",Ur=oI,$r=Cl,y8=u0,L8=typeof ni.postMessage=="function"&&!ni.importScripts,AO=(()=>{if(L8){const o=[];ni.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ni.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Os=$0||oI?2:U0?1:3;let yT=!0,LT=!1;function MO(){if(!LT){LT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,yT=new Uint16Array(o.buffer)[0]===(2<<8)+1}return yT}const RO=!!($r&&$r.indexOf("Chrome")>=0),D8=!!($r&&$r.indexOf("Firefox")>=0),k8=!!(!RO&&$r&&$r.indexOf("Safari")>=0),x8=!!($r&&$r.indexOf("Edg/")>=0);$r&&$r.indexOf("Android")>=0;var je;(function(o){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(S){yield S}o.single=n;function s(S){return S||t}o.from=s;function r(S){return!S||S[Symbol.iterator]().next().done===!0}o.isEmpty=r;function a(S){return S[Symbol.iterator]().next().value}o.first=a;function l(S,k){for(const x of S)if(k(x))return!0;return!1}o.some=l;function c(S,k){for(const x of S)if(k(x))return x}o.find=c;function*d(S,k){for(const x of S)k(x)&&(yield x)}o.filter=d;function*h(S,k){let x=0;for(const y of S)yield k(y,x++)}o.map=h;function*u(...S){for(const k of S)for(const x of k)yield x}o.concat=u;function*g(S){for(const k of S)for(const x of k)yield x}o.concatNested=g;function f(S,k,x){let y=x;for(const D of S)y=k(y,D);return y}o.reduce=f;function _(S,k){let x=0;for(const y of S)k(y,x++)}o.forEach=_;function*b(S,k,x=S.length){for(k<0&&(k+=S.length),x<0?x+=S.length:x>S.length&&(x=S.length);ky===D){const y=S[Symbol.iterator](),D=k[Symbol.iterator]();for(;;){const I=y.next(),O=D.next();if(I.done!==O.done)return!1;if(I.done)return!0;if(!x(I.value,O.value))return!1}}o.equals=w})(je||(je={}));class Gt{constructor(e){this.element=e,this.next=Gt.Undefined,this.prev=Gt.Undefined}}Gt.Undefined=new Gt(void 0);class Dn{constructor(){this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gt.Undefined}clear(){let e=this._first;for(;e!==Gt.Undefined;){const t=e.next;e.prev=Gt.Undefined,e.next=Gt.Undefined,e=t}this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gt(e);if(this._first===Gt.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gt.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gt.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gt.Undefined&&e.next!==Gt.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gt.Undefined&&e.next===Gt.Undefined?(this._first=Gt.Undefined,this._last=Gt.Undefined):e.next===Gt.Undefined?(this._last=this._last.prev,this._last.next=Gt.Undefined):e.prev===Gt.Undefined&&(this._first=this._first.next,this._first.prev=Gt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gt.Undefined;)yield e.element,e=e.next}}const OO="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I8(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of OO)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const rI=I8();function PO(o){let e=rI;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const FO=new Dn;FO.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Mp(o,e,t,i,n){if(n||(n=je.first(FO)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Mp(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=E8(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function E8(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Ts(o,e=0){return o[o.length-(1+e)]}function N8(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Ss(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function A8(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function BO(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function WO(o){return!Array.isArray(o)||o.length===0}function rn(o){return Array.isArray(o)&&o.length>0}function Qa(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function j0(o,e){const t=M8(o,e);if(t!==-1)return o[t]}function M8(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function VO(o,e){return o.length>0?o[0]:e}function Cn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function RC(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function Pw(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function G_(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function kT(o,e){for(const t of e)o.push(t)}function lI(o){return Array.isArray(o)?o:[o]}function R8(o,e,t){const i=HO(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(IT||(IT={}));function op(o,e){return(t,i)=>e(o(t),o(i))}const O8=(o,e)=>o-e;function zO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function UO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function P8(o,e){return zO(o,(t,i)=>-e(t,i))}class Rp{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;for(;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(this.length!==0)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}}function $O(o){return Array.isArray(o)}function Un(o){return typeof o=="string"}function Hn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function F8(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function tc(o){return typeof o=="number"&&!isNaN(o)}function ET(o){return!!o&&typeof o[Symbol.iterator]=="function"}function jO(o){return o===!0||o===!1}function Xn(o){return typeof o>"u"}function B8(o){return!ms(o)}function ms(o){return Xn(o)||o===null}function pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Z_(o){if(ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function K0(o){return typeof o=="function"}function W8(o,e){const t=Math.min(o.length,e.length);for(let i=0;ifunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function Wn(o){return o===null?void 0:o}function OC(o,e="Unreachable"){throw new Error(e)}function La(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.keys(o).forEach(t=>{o[t]&&typeof o[t]=="object"?e[t]=La(o[t]):e[t]=o[t]}),e}function U8(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(KO.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!F8(n)&&e.push(n)}}return o}const KO=Object.prototype.hasOwnProperty;function qO(o,e){return $y(o,e,new Set)}function $y(o,e,t){if(ms(o))return o;const i=e(o);if(typeof i<"u")return i;if($O(o)){const n=[];for(const s of o)n.push($y(s,e,t));return n}if(Hn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)KO.call(o,s)&&(n[s]=$y(o[s],e,t));return t.delete(o),n}return o}function Jr(o,e,t=!0){return Hn(o)?(Hn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Hn(o[i])&&Hn(e[i])?Jr(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function $s(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:Boolean(o)}class Qe extends uh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function jy(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Tt extends uh{constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}static clampedInt(e,t,i,n){return jy(e,t,i,n)}validate(e){return Tt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Ar extends uh{constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Ar.float(e,this.defaultValue))}}class Yn extends uh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Yn.string(e,this.defaultValue)}}function Ki(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class vi extends uh{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ki(e,this.defaultValue,this._allowedValues)}}class ff extends fi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function $8(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class j8 extends fi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class K8 extends fi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function q8(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Hi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Hi||(Hi={}));function G8(o){switch(o){case"line":return Hi.Line;case"block":return Hi.Block;case"underline":return Hi.Underline;case"line-thin":return Hi.LineThin;case"block-outline":return Hi.BlockOutline;case"underline-thin":return Hi.UnderlineThin}}class Z8 extends Vg{constructor(){super(130)}compute(e,t,i){const n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(68)==="default"?n.push("mouse-default"):t.get(68)==="copy"&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}class Y8 extends Qe{constructor(){super(33,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Q8 extends fi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ge},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ki(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ki(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class _s extends fi{constructor(){super(47,"fontLigatures",_s.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?_s.OFF:e==="true"?_s.ON:e:Boolean(e)?_s.ON:_s.OFF}}_s.OFF='"liga" off, "calt" off';_s.ON='"liga" on, "calt" on';class X8 extends Vg{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}class J8 extends uh{constructor(){super(48,"fontSize",ts.fontSize,{type:"number",minimum:6,maximum:100,default:ts.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Ar.float(e,this.defaultValue);return t===0?ts.fontSize:Ar.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class kr extends fi{constructor(){super(49,"fontWeight",ts.fontWeight,{anyOf:[{type:"number",minimum:kr.MINIMUM_VALUE,maximum:kr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:kr.SUGGESTION_VALUES}],default:ts.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Tt.clampedInt(e,ts.fontWeight,kr.MINIMUM_VALUE,kr.MAXIMUM_VALUE))}}kr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];kr.MINIMUM_VALUE=1;kr.MAXIMUM_VALUE=1e3;class e6 extends fi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ki(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ki(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ki(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ki(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ki(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ki(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Yn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Yn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Yn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Yn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Yn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class t6 extends fi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Tt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),above:we(t.above,this.defaultValue.above)}}}class Eu extends Vg{constructor(){super(133)}compute(e,t,i){return Eu.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,v=e.viewLineCount,C=e.remainingWidth,w=e.isViewportWrapping,S=h?2:3;let k=Math.floor(s*n);const x=k/s;let y=!1,D=!1,I=S*u,O=u/s,F=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:xe,extraLinesBeyondLastLine:He,desiredRatio:Mt,minimapLineCount:yt}=Eu.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:s});if(v/yt>1)y=!0,D=!0,u=1,I=1,O=u/s;else{let me=!1,Nt=u+1;if(f==="fit"){const Fi=Math.ceil((v+He)*I);w&&a&&C<=t.stableFitRemainingWidth?(me=!0,Nt=t.stableFitMaxMinimapScale):me=Fi>k}if(f==="fill"||me){y=!0;const Fi=u;I=Math.min(l*s,Math.max(1,Math.floor(1/Mt))),w&&a&&C<=t.stableFitRemainingWidth&&(Nt=t.stableFitMaxMinimapScale),u=Math.min(Nt,Math.max(1,Math.floor(I/S))),u>Fi&&(F=Math.min(2,u/Fi)),O=u/s/F,k=Math.ceil(Math.max(xe,v+He)*I),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const z=Math.floor(g*O),j=Math.min(z,Math.max(0,Math.floor((C-b-2)*O/(c+O)))+wl);let re=Math.floor(s*j);const he=re/s;re=Math.floor(re*F);const Se=h?1:2,ye=_==="left"?0:i-j-b;return{renderMinimap:Se,minimapLeft:ye,minimapWidth:j,minimapHeightIsEditorHeight:y,minimapIsSampling:D,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:re,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(125),u=h==="inherit"?e.get(124):h,g=u==="inherit"?e.get(120):u,f=e.get(123),_=e.get(2),b=t.isDominatedByLongLines,v=e.get(52),C=e.get(62).renderType!==0,w=e.get(63),S=e.get(96),k=e.get(67),x=e.get(94),y=x.verticalScrollbarSize,D=x.verticalHasArrows,I=x.arrowSize,O=x.horizontalScrollbarSize,F=e.get(60),z=e.get(39),j=e.get(101)!=="never";let re;if(typeof F=="string"&&/^\d+(\.\d+)?ch$/.test(F)){const xo=parseFloat(F.substr(0,F.length-2));re=Tt.clampedInt(xo*a,0,0,1e3)}else re=Tt.clampedInt(F,0,0,1e3);z&&j&&(re+=16);let he=0;if(C){const xo=Math.max(r,w);he=Math.round(xo*l)}let Se=0;v&&(Se=s);let ye=0,xe=ye+Se,He=xe+he,Mt=He+re;const yt=i-Se-he-re;let ve=!1,me=!1,Nt=-1;_!==2&&(u==="inherit"&&b?(ve=!0,me=!0):g==="on"||g==="bounded"?me=!0:g==="wordWrapColumn"&&(Nt=f));const Fi=Eu._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:y,viewLineCount:d,remainingWidth:yt,isViewportWrapping:me},t.memory||new ZO);Fi.renderMinimap!==0&&Fi.minimapLeft===0&&(ye+=Fi.minimapWidth,xe+=Fi.minimapWidth,He+=Fi.minimapWidth,Mt+=Fi.minimapWidth);const In=yt-Fi.minimapWidth,ko=Math.max(1,Math.floor((In-y-2)/a)),oa=D?I:0;return me&&(Nt=Math.max(1,ko),g==="bounded"&&(Nt=Math.min(Nt,f))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:Se,lineNumbersLeft:xe,lineNumbersWidth:he,decorationsLeft:He,decorationsWidth:re,contentLeft:Mt,contentWidth:In,minimap:Fi,viewportColumn:ko,isWordWrapMinified:ve,isViewportWrapping:me,wrappingColumn:Nt,verticalScrollbarWidth:y,horizontalScrollbarHeight:O,overviewRuler:{top:oa,width:y,height:n-2*oa,right:0}}}}class i6 extends fi{constructor(){const e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}class n6 extends fi{constructor(){const e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:p("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return!e||typeof e!="object"?this.defaultValue:{stickyScroll:{enabled:we((t=e.stickyScroll)===null||t===void 0?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}}}class s6 extends fi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ki(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Tt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Yn.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class o6 extends Ar{constructor(){super(61,"lineHeight",ts.lineHeight,e=>Ar.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var qt=(o,e,t)=>(m8(o,typeof e!="symbol"?e+"":e,t),t);import{_ as ue}from"./index.d0f12294.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="31e9b759-b194-4c00-8753-06857890e4f7",o._sentryDebugIdIdentifier="sentry-dbid-31e9b759-b194-4c00-8753-06857890e4f7")}catch{}})();globalThis&&globalThis.__awaiter;let _8=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function b8(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),_8&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(o,e,...t){return b8(e,t)}var Ow;const Vf="en";let U0=!1,$0=!1,h0=!1,TO=!1,sI=!1,oI=!1,q_,u0=Vf,v8,Cl;const ni=typeof self=="object"?self:typeof global=="object"?global:{};let Sn;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Sn=ni.vscode.process:typeof process<"u"&&(Sn=process);const C8=typeof((Ow=Sn==null?void 0:Sn.versions)===null||Ow===void 0?void 0:Ow.electron)=="string",w8=C8&&(Sn==null?void 0:Sn.type)==="renderer";if(typeof navigator=="object"&&!w8)Cl=navigator.userAgent,U0=Cl.indexOf("Windows")>=0,$0=Cl.indexOf("Macintosh")>=0,oI=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h0=Cl.indexOf("Linux")>=0,sI=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),q_=Vf,u0=q_;else if(typeof Sn=="object"){U0=Sn.platform==="win32",$0=Sn.platform==="darwin",h0=Sn.platform==="linux",h0&&!!Sn.env.SNAP&&Sn.env.SNAP_REVISION,Sn.env.CI||Sn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,q_=Vf,u0=Vf;const o=Sn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];q_=e.locale,u0=t||Vf,v8=e._translationsConfigFile}catch{}TO=!0}else console.error("Unable to resolve platform.");const Yi=U0,Ge=$0,dn=h0,jo=TO,Sc=sI,S8=sI&&typeof ni.importScripts=="function",Ur=oI,$r=Cl,y8=u0,L8=typeof ni.postMessage=="function"&&!ni.importScripts,AO=(()=>{if(L8){const o=[];ni.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),ni.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Os=$0||oI?2:U0?1:3;let yT=!0,LT=!1;function MO(){if(!LT){LT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,yT=new Uint16Array(o.buffer)[0]===(2<<8)+1}return yT}const RO=!!($r&&$r.indexOf("Chrome")>=0),D8=!!($r&&$r.indexOf("Firefox")>=0),k8=!!(!RO&&$r&&$r.indexOf("Safari")>=0),x8=!!($r&&$r.indexOf("Edg/")>=0);$r&&$r.indexOf("Android")>=0;var je;(function(o){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(S){yield S}o.single=n;function s(S){return S||t}o.from=s;function r(S){return!S||S[Symbol.iterator]().next().done===!0}o.isEmpty=r;function a(S){return S[Symbol.iterator]().next().value}o.first=a;function l(S,k){for(const x of S)if(k(x))return!0;return!1}o.some=l;function c(S,k){for(const x of S)if(k(x))return x}o.find=c;function*d(S,k){for(const x of S)k(x)&&(yield x)}o.filter=d;function*h(S,k){let x=0;for(const y of S)yield k(y,x++)}o.map=h;function*u(...S){for(const k of S)for(const x of k)yield x}o.concat=u;function*g(S){for(const k of S)for(const x of k)yield x}o.concatNested=g;function f(S,k,x){let y=x;for(const D of S)y=k(y,D);return y}o.reduce=f;function _(S,k){let x=0;for(const y of S)k(y,x++)}o.forEach=_;function*b(S,k,x=S.length){for(k<0&&(k+=S.length),x<0?x+=S.length:x>S.length&&(x=S.length);ky===D){const y=S[Symbol.iterator](),D=k[Symbol.iterator]();for(;;){const I=y.next(),O=D.next();if(I.done!==O.done)return!1;if(I.done)return!0;if(!x(I.value,O.value))return!1}}o.equals=w})(je||(je={}));class Gt{constructor(e){this.element=e,this.next=Gt.Undefined,this.prev=Gt.Undefined}}Gt.Undefined=new Gt(void 0);class Dn{constructor(){this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gt.Undefined}clear(){let e=this._first;for(;e!==Gt.Undefined;){const t=e.next;e.prev=Gt.Undefined,e.next=Gt.Undefined,e=t}this._first=Gt.Undefined,this._last=Gt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gt(e);if(this._first===Gt.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gt.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gt.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gt.Undefined&&e.next!==Gt.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gt.Undefined&&e.next===Gt.Undefined?(this._first=Gt.Undefined,this._last=Gt.Undefined):e.next===Gt.Undefined?(this._last=this._last.prev,this._last.next=Gt.Undefined):e.prev===Gt.Undefined&&(this._first=this._first.next,this._first.prev=Gt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gt.Undefined;)yield e.element,e=e.next}}const OO="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I8(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of OO)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const rI=I8();function PO(o){let e=rI;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const FO=new Dn;FO.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Mp(o,e,t,i,n){if(n||(n=je.first(FO)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Mp(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=E8(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function E8(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Ts(o,e=0){return o[o.length-(1+e)]}function N8(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Ss(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function A8(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function BO(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function WO(o){return!Array.isArray(o)||o.length===0}function rn(o){return Array.isArray(o)&&o.length>0}function Qa(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function j0(o,e){const t=M8(o,e);if(t!==-1)return o[t]}function M8(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function VO(o,e){return o.length>0?o[0]:e}function Cn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function RC(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function Pw(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function G_(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function kT(o,e){for(const t of e)o.push(t)}function lI(o){return Array.isArray(o)?o:[o]}function R8(o,e,t){const i=HO(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(IT||(IT={}));function op(o,e){return(t,i)=>e(o(t),o(i))}const O8=(o,e)=>o-e;function zO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function UO(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function P8(o,e){return zO(o,(t,i)=>-e(t,i))}class Rp{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;for(;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(this.length!==0)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}}function $O(o){return Array.isArray(o)}function Un(o){return typeof o=="string"}function Hn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function F8(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function tc(o){return typeof o=="number"&&!isNaN(o)}function ET(o){return!!o&&typeof o[Symbol.iterator]=="function"}function jO(o){return o===!0||o===!1}function Xn(o){return typeof o>"u"}function B8(o){return!ms(o)}function ms(o){return Xn(o)||o===null}function pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Z_(o){if(ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function K0(o){return typeof o=="function"}function W8(o,e){const t=Math.min(o.length,e.length);for(let i=0;ifunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function Wn(o){return o===null?void 0:o}function OC(o,e="Unreachable"){throw new Error(e)}function La(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.keys(o).forEach(t=>{o[t]&&typeof o[t]=="object"?e[t]=La(o[t]):e[t]=o[t]}),e}function U8(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(KO.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!F8(n)&&e.push(n)}}return o}const KO=Object.prototype.hasOwnProperty;function qO(o,e){return $y(o,e,new Set)}function $y(o,e,t){if(ms(o))return o;const i=e(o);if(typeof i<"u")return i;if($O(o)){const n=[];for(const s of o)n.push($y(s,e,t));return n}if(Hn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)KO.call(o,s)&&(n[s]=$y(o[s],e,t));return t.delete(o),n}return o}function Jr(o,e,t=!0){return Hn(o)?(Hn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Hn(o[i])&&Hn(e[i])?Jr(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function $s(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:Boolean(o)}class Qe extends uh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function jy(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Tt extends uh{constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}static clampedInt(e,t,i,n){return jy(e,t,i,n)}validate(e){return Tt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Ar extends uh{constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Ar.float(e,this.defaultValue))}}class Yn extends uh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Yn.string(e,this.defaultValue)}}function Ki(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class vi extends uh{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ki(e,this.defaultValue,this._allowedValues)}}class ff extends fi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function $8(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class j8 extends fi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class K8 extends fi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function q8(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Hi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Hi||(Hi={}));function G8(o){switch(o){case"line":return Hi.Line;case"block":return Hi.Block;case"underline":return Hi.Underline;case"line-thin":return Hi.LineThin;case"block-outline":return Hi.BlockOutline;case"underline-thin":return Hi.UnderlineThin}}class Z8 extends Vg{constructor(){super(130)}compute(e,t,i){const n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(68)==="default"?n.push("mouse-default"):t.get(68)==="copy"&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}class Y8 extends Qe{constructor(){super(33,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Q8 extends fi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ge},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ki(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ki(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class _s extends fi{constructor(){super(47,"fontLigatures",_s.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?_s.OFF:e==="true"?_s.ON:e:Boolean(e)?_s.ON:_s.OFF}}_s.OFF='"liga" off, "calt" off';_s.ON='"liga" on, "calt" on';class X8 extends Vg{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}class J8 extends uh{constructor(){super(48,"fontSize",ts.fontSize,{type:"number",minimum:6,maximum:100,default:ts.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Ar.float(e,this.defaultValue);return t===0?ts.fontSize:Ar.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class kr extends fi{constructor(){super(49,"fontWeight",ts.fontWeight,{anyOf:[{type:"number",minimum:kr.MINIMUM_VALUE,maximum:kr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:kr.SUGGESTION_VALUES}],default:ts.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Tt.clampedInt(e,ts.fontWeight,kr.MINIMUM_VALUE,kr.MAXIMUM_VALUE))}}kr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];kr.MINIMUM_VALUE=1;kr.MAXIMUM_VALUE=1e3;class e6 extends fi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ki(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ki(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ki(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ki(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ki(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ki(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Yn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Yn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Yn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Yn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Yn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class t6 extends fi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Tt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),above:we(t.above,this.defaultValue.above)}}}class Eu extends Vg{constructor(){super(133)}compute(e,t,i){return Eu.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,v=e.viewLineCount,C=e.remainingWidth,w=e.isViewportWrapping,S=h?2:3;let k=Math.floor(s*n);const x=k/s;let y=!1,D=!1,I=S*u,O=u/s,F=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:xe,extraLinesBeyondLastLine:He,desiredRatio:Mt,minimapLineCount:yt}=Eu.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:s});if(v/yt>1)y=!0,D=!0,u=1,I=1,O=u/s;else{let me=!1,Nt=u+1;if(f==="fit"){const Fi=Math.ceil((v+He)*I);w&&a&&C<=t.stableFitRemainingWidth?(me=!0,Nt=t.stableFitMaxMinimapScale):me=Fi>k}if(f==="fill"||me){y=!0;const Fi=u;I=Math.min(l*s,Math.max(1,Math.floor(1/Mt))),w&&a&&C<=t.stableFitRemainingWidth&&(Nt=t.stableFitMaxMinimapScale),u=Math.min(Nt,Math.max(1,Math.floor(I/S))),u>Fi&&(F=Math.min(2,u/Fi)),O=u/s/F,k=Math.ceil(Math.max(xe,v+He)*I),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const z=Math.floor(g*O),j=Math.min(z,Math.max(0,Math.floor((C-b-2)*O/(c+O)))+wl);let re=Math.floor(s*j);const he=re/s;re=Math.floor(re*F);const Se=h?1:2,ye=_==="left"?0:i-j-b;return{renderMinimap:Se,minimapLeft:ye,minimapWidth:j,minimapHeightIsEditorHeight:y,minimapIsSampling:D,minimapScale:u,minimapLineHeight:I,minimapCanvasInnerWidth:re,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(125),u=h==="inherit"?e.get(124):h,g=u==="inherit"?e.get(120):u,f=e.get(123),_=e.get(2),b=t.isDominatedByLongLines,v=e.get(52),C=e.get(62).renderType!==0,w=e.get(63),S=e.get(96),k=e.get(67),x=e.get(94),y=x.verticalScrollbarSize,D=x.verticalHasArrows,I=x.arrowSize,O=x.horizontalScrollbarSize,F=e.get(60),z=e.get(39),j=e.get(101)!=="never";let re;if(typeof F=="string"&&/^\d+(\.\d+)?ch$/.test(F)){const xo=parseFloat(F.substr(0,F.length-2));re=Tt.clampedInt(xo*a,0,0,1e3)}else re=Tt.clampedInt(F,0,0,1e3);z&&j&&(re+=16);let he=0;if(C){const xo=Math.max(r,w);he=Math.round(xo*l)}let Se=0;v&&(Se=s);let ye=0,xe=ye+Se,He=xe+he,Mt=He+re;const yt=i-Se-he-re;let ve=!1,me=!1,Nt=-1;_!==2&&(u==="inherit"&&b?(ve=!0,me=!0):g==="on"||g==="bounded"?me=!0:g==="wordWrapColumn"&&(Nt=f));const Fi=Eu._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:k,verticalScrollbarWidth:y,viewLineCount:d,remainingWidth:yt,isViewportWrapping:me},t.memory||new ZO);Fi.renderMinimap!==0&&Fi.minimapLeft===0&&(ye+=Fi.minimapWidth,xe+=Fi.minimapWidth,He+=Fi.minimapWidth,Mt+=Fi.minimapWidth);const In=yt-Fi.minimapWidth,ko=Math.max(1,Math.floor((In-y-2)/a)),oa=D?I:0;return me&&(Nt=Math.max(1,ko),g==="bounded"&&(Nt=Math.min(Nt,f))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:Se,lineNumbersLeft:xe,lineNumbersWidth:he,decorationsLeft:He,decorationsWidth:re,contentLeft:Mt,contentWidth:In,minimap:Fi,viewportColumn:ko,isWordWrapMinified:ve,isViewportWrapping:me,wrappingColumn:Nt,verticalScrollbarWidth:y,horizontalScrollbarHeight:O,overviewRuler:{top:oa,width:y,height:n-2*oa,right:0}}}}class i6 extends fi{constructor(){const e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}class n6 extends fi{constructor(){const e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:p("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return!e||typeof e!="object"?this.defaultValue:{stickyScroll:{enabled:we((t=e.stickyScroll)===null||t===void 0?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}}}class s6 extends fi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ki(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Tt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Yn.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class o6 extends Ar{constructor(){super(61,"lineHeight",ts.lineHeight,e=>Ar.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class r6 extends fi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(67,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),autohide:we(t.autohide,this.defaultValue.autohide),size:Ki(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Ki(t.side,this.defaultValue.side,["right","left"]),showSlider:Ki(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:we(t.renderCharacters,this.defaultValue.renderCharacters),scale:Tt.clampedInt(t.scale,1,1,3),maxColumn:Tt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function a6(o){return o==="ctrlCmd"?Ge?"metaKey":"ctrlKey":"altKey"}class l6 extends fi{constructor(){super(77,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Tt.clampedInt(t.top,0,0,1e3),bottom:Tt.clampedInt(t.bottom,0,0,1e3)}}}class c6 extends fi{constructor(){const e={enabled:!0,cycle:!1};super(78,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),cycle:we(t.cycle,this.defaultValue.cycle)}}}class d6 extends Vg{constructor(){super(131)}compute(e,t,i){return e.pixelRatio}}class h6 extends fi{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(81,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Ki(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Ki(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Ki(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class u6 extends fi{constructor(){super(62,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function q0(o){const e=o.get(89);return e==="editable"?o.get(83):e!=="on"}class g6 extends fi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(93,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Tt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Tt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function NT(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}class f6 extends fi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(94,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Tt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Tt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Tt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:NT(t.vertical,this.defaultValue.vertical),horizontal:NT(t.horizontal,this.defaultValue.horizontal),useShadows:we(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:we(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:we(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:we(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:we(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Tt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Tt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:we(t.scrollByPage,this.defaultValue.scrollByPage)}}}const gs="inUntrustedWorkspace",On={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class p6 extends fi{constructor(){const e={nonBasicASCII:gs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:gs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(115,"unicodeHighlight",e,{[On.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[On.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[On.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[On.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[On.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,gs],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to unicode highlighting.")},[On.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[On.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&($s(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&($s(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new rp(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Nu(t.nonBasicASCII,gs,[!0,!1,gs]),invisibleCharacters:we(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:we(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Nu(t.includeComments,gs,[!0,!1,gs]),includeStrings:Nu(t.includeStrings,gs,[!0,!1,gs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class m6 extends fi{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(57,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),mode:Ki(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class _6 extends fi{constructor(){const e={enabled:sn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:sn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:we(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class b6 extends fi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Nu(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Nu(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:we(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:we(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Nu(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Nu(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class v6 extends fi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(108,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Ki(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:we(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:we(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:we(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:we(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:we(t.showIcons,this.defaultValue.showIcons),showStatusBar:we(t.showStatusBar,this.defaultValue.showStatusBar),preview:we(t.preview,this.defaultValue.preview),previewMode:Ki(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:we(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:we(t.showMethods,this.defaultValue.showMethods),showFunctions:we(t.showFunctions,this.defaultValue.showFunctions),showConstructors:we(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:we(t.showDeprecated,this.defaultValue.showDeprecated),showFields:we(t.showFields,this.defaultValue.showFields),showVariables:we(t.showVariables,this.defaultValue.showVariables),showClasses:we(t.showClasses,this.defaultValue.showClasses),showStructs:we(t.showStructs,this.defaultValue.showStructs),showInterfaces:we(t.showInterfaces,this.defaultValue.showInterfaces),showModules:we(t.showModules,this.defaultValue.showModules),showProperties:we(t.showProperties,this.defaultValue.showProperties),showEvents:we(t.showEvents,this.defaultValue.showEvents),showOperators:we(t.showOperators,this.defaultValue.showOperators),showUnits:we(t.showUnits,this.defaultValue.showUnits),showValues:we(t.showValues,this.defaultValue.showValues),showConstants:we(t.showConstants,this.defaultValue.showConstants),showEnums:we(t.showEnums,this.defaultValue.showEnums),showEnumMembers:we(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:we(t.showKeywords,this.defaultValue.showKeywords),showWords:we(t.showWords,this.defaultValue.showWords),showColors:we(t.showColors,this.defaultValue.showColors),showFiles:we(t.showFiles,this.defaultValue.showFiles),showReferences:we(t.showReferences,this.defaultValue.showReferences),showFolders:we(t.showFolders,this.defaultValue.showFolders),showTypeParameters:we(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:we(t.showSnippets,this.defaultValue.showSnippets),showUsers:we(t.showUsers,this.defaultValue.showUsers),showIssues:we(t.showIssues,this.defaultValue.showIssues)}}}class C6 extends fi{constructor(){super(104,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:we(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class w6 extends Vg{constructor(){super(132)}compute(e,t,i){return t.get(83)?!0:e.tabFocusMode}}function S6(o){switch(o){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class y6 extends Vg{constructor(){super(134)}compute(e,t,i){const n=t.get(133);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class L6 extends fi{constructor(){const e={enabled:!0};super(32,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:we(e.enabled,this.defaultValue.enabled)}}}const D6="Consolas, 'Courier New', monospace",k6="Menlo, Monaco, 'Courier New', monospace",x6="'Droid Sans Mono', 'monospace', monospace",ts={fontFamily:Ge?k6:dn?x6:D6,fontWeight:"normal",fontSize:Ge?12:14,lineHeight:0,letterSpacing:0},ru=[];function te(o){return ru[o.id]=o,o}const nr={acceptSuggestionOnCommitCharacter:te(new Qe(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`; `) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:te(new vi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:te(new j8),accessibilityPageSize:te(new Tt(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:te(new Yn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:te(new vi(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:te(new vi(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:te(new vi(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:te(new vi(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:te(new ff(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],$8,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:te(new Qe(10,"automaticLayout",!1)),autoSurround:te(new vi(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:te(new _6),bracketPairGuides:te(new b6),stickyTabStops:te(new Qe(106,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:te(new Qe(14,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:te(new Yn(15,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:te(new Tt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:te(new Qe(17,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:te(new Qe(18,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:te(new K8),contextmenu:te(new Qe(20,"contextmenu",!0)),copyWithSyntaxHighlighting:te(new Qe(21,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:te(new ff(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],q8,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:te(new Qe(23,"cursorSmoothCaretAnimation",!1,{description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:te(new ff(24,"cursorStyle",Hi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],G8,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:te(new Tt(25,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:te(new vi(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:te(new Tt(27,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:te(new Qe(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:te(new Qe(29,"disableMonospaceOptimizations",!1)),domReadOnly:te(new Qe(30,"domReadOnly",!1)),dragAndDrop:te(new Qe(31,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:te(new Y8),dropIntoEditor:te(new L6),experimental:te(new n6),extraEditorClassName:te(new Yn(35,"extraEditorClassName","")),fastScrollSensitivity:te(new Ar(36,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:te(new Q8),fixedOverflowWidgets:te(new Qe(38,"fixedOverflowWidgets",!1)),folding:te(new Qe(39,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:te(new vi(40,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:te(new Qe(41,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:te(new Qe(42,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:te(new Tt(43,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:te(new Qe(44,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:te(new Yn(45,"fontFamily",ts.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:te(new X8),fontLigatures2:te(new _s),fontSize:te(new J8),fontWeight:te(new kr),formatOnPaste:te(new Qe(50,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:te(new Qe(51,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:te(new Qe(52,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:te(new e6),hideCursorInOverviewRuler:te(new Qe(54,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:te(new t6),inDiffEditor:te(new Qe(56,"inDiffEditor",!1)),letterSpacing:te(new Ar(58,"letterSpacing",ts.letterSpacing,o=>Ar.clamp(o,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:te(new i6),lineDecorationsWidth:te(new uh(60,"lineDecorationsWidth",10)),lineHeight:te(new o6),lineNumbers:te(new u6),lineNumbersMinChars:te(new Tt(63,"lineNumbersMinChars",5,1,300)),linkedEditing:te(new Qe(64,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:te(new Qe(65,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:te(new vi(66,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:te(new r6),mouseStyle:te(new vi(68,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:te(new Ar(69,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:te(new Qe(70,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:te(new Qe(71,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:te(new ff(72,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],a6,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:te(new vi(73,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:te(new Qe(74,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:te(new Qe(75,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:te(new Tt(76,"overviewRulerLanes",3,0,3)),padding:te(new l6),parameterHints:te(new c6),peekWidgetDefaultFocus:te(new vi(79,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:te(new Qe(80,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:te(new h6),quickSuggestionsDelay:te(new Tt(82,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:te(new Qe(83,"readOnly",!1)),renameOnType:te(new Qe(84,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:te(new Qe(85,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:te(new Qe(86,"renderFinalNewline",!0,{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:te(new vi(87,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:te(new Qe(88,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:te(new vi(89,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:te(new vi(90,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:te(new Tt(91,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:te(new Qe(92,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:te(new g6),scrollbar:te(new f6),scrollBeyondLastColumn:te(new Tt(95,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:te(new Qe(96,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:te(new Qe(97,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:te(new Qe(98,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:dn})),selectionHighlight:te(new Qe(99,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:te(new Qe(100,"selectOnLineNumbers",!0)),showFoldingControls:te(new vi(101,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:te(new Qe(102,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:te(new Qe(128,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:te(new s6),snippetSuggestions:te(new vi(103,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:te(new C6),smoothScrolling:te(new Qe(105,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:te(new Tt(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:te(new v6),inlineSuggest:te(new m6),suggestFontSize:te(new Tt(109,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:te(new Tt(110,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:te(new Qe(111,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:te(new vi(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:te(new vi(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:te(new Tt(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:te(new p6),unusualLineTerminators:te(new vi(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:te(new Qe(117,"useShadowDOM",!0)),useTabStops:te(new Qe(118,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:te(new Yn(119,"wordSeparators",OO,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:te(new vi(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:te(new Yn(121,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:te(new Yn(122,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:te(new Tt(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:te(new vi(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:te(new vi(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:te(new ff(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],S6,{enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:te(new vi(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:p("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:te(new Z8),pixelRatio:te(new d6),tabFocusMode:te(new w6),layoutInfo:te(new Eu),wrappingInfo:te(new y6)};class I6{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Xu.isErrorNoTelemetry(e)?new Xu(e.message+` @@ -50,7 +50,7 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config `+e.normalizeIndentation(l.afterEnter),0,g,!0)}}}return Pt._typeCommand(n,` `+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,s=i.length;nPt.shiftIndent(e,a),unshiftIndent:a=>Pt.unshiftIndent(e,a)},e.languageConfigurationService);if(r===null)return null;if(r!==e.normalizeIndentation(s)){const a=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return a===0?Pt._typeCommand(new L(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+n,!1):Pt._typeCommand(new L(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+t.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let r=0,a=i.length;r2?d.charCodeAt(c.column-2):0)===92&&u)return!1;if(e.autoClosingOvertype==="auto"){let f=!1;for(let _=0,b=n.length;_t.startsWith(l.open)),a=s.some(l=>t.startsWith(l.close));return!r&&a}static _findAutoClosingPairOpen(e,t,i,n){const s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let r=null;for(const a of s)if(r===null||a.open.length>r.open.length){let l=!0;for(const c of i)if(t.getValueInRange(new L(c.lineNumber,c.column-a.open.length+1,c.lineNumber,c.column))+n!==a.open){l=!1;break}l&&(r=a)}return r}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let s=null;for(const r of n)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!s||r.open.length>s.open.length)&&(s=r);return s}static _getAutoClosingPairClose(e,t,i,n,s){const r=Ll(n),a=r?e.autoClosingQuotes:e.autoClosingBrackets,l=r?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if(a==="never")return null;for(const f of i)if(!f.isEmpty())return null;const c=i.map(f=>{const _=f.getPosition();return s?{lineNumber:_.lineNumber,beforeColumn:_.column-n.length,afterColumn:_.column}:{lineNumber:_.lineNumber,beforeColumn:_.column,afterColumn:_.column}}),d=this._findAutoClosingPairOpen(e,t,c.map(f=>new B(f.lineNumber,f.beforeColumn)),n);if(!d)return null;const h=this._findContainedAutoClosingPair(e,d),u=h?h.close:"";let g=!0;for(const f of c){const{lineNumber:_,beforeColumn:b,afterColumn:v}=f,C=t.getLineContent(_),w=C.substring(0,b-1),S=C.substring(v-1);if(S.startsWith(u)||(g=!1),S.length>0){const D=S.charAt(0);if(!Pt._isBeforeClosingBrace(e,S)&&!l(D))return null}if(d.open.length===1&&(n==="'"||n==='"')&&a!=="always"){const D=Ys(e.wordSeparators);if(w.length>0){const I=w.charCodeAt(w.length-1);if(D.get(I)===0)return null}}if(!t.tokenization.isCheapToTokenize(_))return null;t.tokenization.forceTokenization(_);const k=t.tokenization.getLineTokens(_),x=HC(k,b-1);if(!d.shouldAutoClose(x,b-x.firstCharOffset))return null;const y=d.findNeutralCharacter();if(y){const D=t.tokenization.getTokenTypeIfInsertingCharacter(_,b,y);if(!d.isOK(D))return null}}return g?d.close.substring(0,d.close.length-u.length):d.close}static _runAutoClosingOpenCharType(e,t,i,n,s,r,a){const l=[];for(let c=0,d=n.length;cnew zi(new L(u.positionLineNumber,u.positionColumn,u.positionLineNumber,u.positionColumn+1),"",!1));return new An(4,h,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const d=this._getAutoClosingPairClose(t,i,s,l,!0);return d!==null?this._runAutoClosingOpenCharType(e,t,i,s,l,!0,d):null}static typeWithInterceptors(e,t,i,n,s,r,a){if(!e&&a===` `){const d=[];for(let h=0,u=s.length;h{const n=t.get(ct).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(t,n,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const n=document.activeElement;return n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const n=t.get(ct).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(t,n,i)):!1})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}var Ei;(function(o){class e extends ti{constructor(C){super(C),this._minimalReveal=C.minimalReveal,this._inSelectionMode=C.inSelectionMode}runCoreEditorCommand(C,w){C.model.pushStackElement(),C.setCursorStates(w.source,3,[Wi.moveTo(C,C.getPrimaryCursorState(),this._inSelectionMode,w.position,w.viewPosition)])&&C.revealPrimaryCursor(w.source,!0,this._minimalReveal)}}o.MoveTo=ee(new e({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),o.MoveToSelect=ee(new e({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class t extends ti{runCoreEditorCommand(C,w){C.model.pushStackElement();const S=this._getColumnSelectResult(C,C.getPrimaryCursorState(),C.getCursorColumnSelectData(),w);C.setCursorStates(w.source,3,S.viewStates.map(k=>$e.fromViewState(k))),C.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:S.fromLineNumber,fromViewVisualColumn:S.fromVisualColumn,toViewLineNumber:S.toLineNumber,toViewVisualColumn:S.toVisualColumn}),S.reversed?C.revealTopMostCursor(w.source):C.revealBottomMostCursor(w.source)}}o.ColumnSelect=ee(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(v,C,w,S){const k=v.model.validatePosition(S.position),x=v.coordinatesConverter.validateViewPosition(new B(S.viewPosition.lineNumber,S.viewPosition.column),k),y=S.doColumnSelect?w.fromViewLineNumber:x.lineNumber,D=S.doColumnSelect?w.fromViewVisualColumn:S.mouseColumn-1;return Xc.columnSelect(v.cursorConfig,v,y,D,x.lineNumber,S.mouseColumn-1)}}),o.CursorColumnSelectLeft=ee(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectLeft(v.cursorConfig,v,w)}}),o.CursorColumnSelectRight=ee(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectRight(v.cursorConfig,v,w)}});class i extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectUp(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectUp=ee(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3600,linux:{primary:0}}})),o.CursorColumnSelectPageUp=ee(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectDown(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectDown=ee(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3602,linux:{primary:0}}})),o.CursorColumnSelectPageDown=ee(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3596,linux:{primary:0}}}));class s extends ti{constructor(){super({id:"cursorMove",precondition:void 0,description:yv.description})}runCoreEditorCommand(C,w){const S=yv.parse(w);!S||this._runCursorMove(C,w.source,S)}_runCursorMove(C,w,S){C.model.pushStackElement(),C.setCursorStates(w,3,s._move(C,C.getCursorStates(),S)),C.revealPrimaryCursor(w,!0)}static _move(C,w,S){const k=S.select,x=S.value;switch(S.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Wi.simpleMove(C,w,S.direction,k,x,S.unit);case 11:case 13:case 12:case 14:return Wi.viewportMove(C,w,S.direction,k,x);default:return null}}}o.CursorMoveImpl=s,o.CursorMove=ee(new s);class r extends ti{constructor(C){super(C),this._staticArgs=C.args}runCoreEditorCommand(C,w){let S=this._staticArgs;this._staticArgs.value===-1&&(S={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:w.pageSize||C.cursorConfig.pageSize}),C.model.pushStackElement(),C.setCursorStates(w.source,3,Wi.simpleMove(C,C.getCursorStates(),S.direction,S.select,S.value,S.unit)),C.revealPrimaryCursor(w.source,!0)}}o.CursorLeft=ee(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),o.CursorLeftSelect=ee(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1039}})),o.CursorRight=ee(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),o.CursorRightSelect=ee(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1041}})),o.CursorUp=ee(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),o.CursorUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),o.CursorPageUp=ee(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:11}})),o.CursorPageUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1035}})),o.CursorDown=ee(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),o.CursorDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),o.CursorPageDown=ee(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:12}})),o.CursorPageDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1036}})),o.CreateCursor=ee(new class extends ti{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(v,C){let w;C.wholeLine?w=Wi.line(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition):w=Wi.moveTo(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition);const S=v.getCursorStates();if(S.length>1){const k=w.modelState?w.modelState.position:null,x=w.viewState?w.viewState.position:null;for(let y=0,D=S.length;yx&&(k=x);const y=new L(k,1,k,v.model.getLineMaxColumn(k));let D=0;if(w.at)switch(w.at){case Cu.RawAtArgument.Top:D=3;break;case Cu.RawAtArgument.Center:D=1;break;case Cu.RawAtArgument.Bottom:D=4;break}const I=v.coordinatesConverter.convertModelRangeToViewRange(y);v.revealRange(C.source,!1,I,D,0)}}),o.SelectAll=new class extends pD{constructor(){super(JH)}runDOMCommand(){Ls&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(v,C,w){const S=C._getViewModel();!S||this.runCoreEditorCommand(S,w)}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates("keyboard",3,[Wi.selectAll(v,v.getPrimaryCursorState())])}},o.SetSelection=ee(new class extends ti{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates(C.source,3,[$e.fromModelSelection(C.selection)])}})})(Ei||(Ei={}));const lj=se.and(N.textInputFocus,N.columnSelection);function Gg(o,e){as.registerKeybindingRule({id:o,primary:e,when:lj,weight:rt+1})}Gg(Ei.CursorColumnSelectLeft.id,1039);Gg(Ei.CursorColumnSelectRight.id,1041);Gg(Ei.CursorColumnSelectUp.id,1040);Gg(Ei.CursorColumnSelectPageUp.id,1035);Gg(Ei.CursorColumnSelectDown.id,1042);Gg(Ei.CursorColumnSelectPageDown.id,1036);function G2(o){return o.register(),o}var Wu;(function(o){class e extends xi{runEditorCommand(i,n,s){const r=n._getViewModel();!r||this.runCoreEditingCommand(n,r,s||{})}}o.CoreEditingCommand=e,o.LineBreakInsert=ee(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:N.writable,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection)))}}),o.Outdent=ee(new class extends e{constructor(){super({id:"outdent",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.outdent(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.Tab=ee(new class extends e{constructor(){super({id:"tab",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.tab(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.DeleteLeft=ee(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),o.DeleteRight=ee(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),o.Undo=new class extends pD{constructor(){super(w4)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().undo()}},o.Redo=new class extends pD{constructor(){super(S4)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().redo()}}})(Wu||(Wu={}));class Z2 extends c1{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(ct).getFocusedCodeEditor();!i||i.trigger("keyboard",this._handlerId,t)}}function _h(o,e){G2(new Z2("default:"+o,o)),G2(new Z2(o,o,e))}_h("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});_h("replacePreviousChar");_h("compositionType");_h("compositionStart");_h("compositionEnd");_h("paste");_h("cut");class cj{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ei.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ei.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ei.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ei.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ei.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ei.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ei.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ei.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ei.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ei.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ei.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ei.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ei.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ei.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class w1{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;(t=this.onKeyDown)===null||t===void 0||t.call(this,e)}emitKeyUp(e){var t;(t=this.onKeyUp)===null||t===void 0||t.call(this,e)}emitContextMenu(e){var t;(t=this.onContextMenu)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;(t=this.onMouseMove)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;(t=this.onMouseLeave)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;(t=this.onMouseDown)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;(t=this.onMouseUp)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;(t=this.onMouseDrag)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;(t=this.onMouseDrop)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;(e=this.onMouseDropCanceled)===null||e===void 0||e.call(this)}emitMouseWheel(e){var t;(t=this.onMouseWheel)===null||t===void 0||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return w1.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),i}}var gS;class Q4{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let s=0,r=0;for(let l=i;l<=n;l++){const c=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(s=c,r=1):r++)}if(e=n&&a<=s&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s)return this._lines.splice(e-this._rendLineNumberStart,s-e+1);const r=[];for(let h=0;hi)continue;const l=Math.max(t,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let d=l;d<=c;d++){const h=d-this._rendLineNumberStart;this._lines[h].onTokensChanged(),n=!0}}return n}}class X4{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Q4(()=>this._host.createVisibleLine())}_createDomNode(){const e=Je(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(133)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const r=t,a=Math.min(i,s.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(s,r,a,n,t),s.linesLength+=a-r+1)}else if(s.rendLineNumberStart0&&(this._removeLinesBefore(s,r),s.linesLength-=r)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1i){const r=Math.max(0,i-s.rendLineNumberStart+1),l=s.linesLength-1-r+1;l>0&&(this._removeLinesAfter(s,l),s.linesLength-=l)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const c=r+l;a[l].layoutLine(c,n[c-s])}}_insertLinesBefore(e,t,i,n,s){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];n[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Ta._ttPolicy&&(t=Ta._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;so});Ta._sb=nc(1e5);class J4 extends Is{constructor(e){super(e),this._visibleLines=new X4(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,n=t.length;i'),n.appendASCIIString(s),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class hj extends J4{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class uj extends J4{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),an(this.domNode,t.get(46))}onConfigurationChanged(e){const t=this._context.configuration.options;an(this.domNode,t.get(46));const i=t.get(133);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class yf{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class gj extends Is{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Je(document.createElement("div")),qr.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Je(document.createElement("div")),qr.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new fj(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n){this._widgets[e.getId()].setPosition(t,i,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t];delete this._widgets[t];const n=i.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class fj{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=Je(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,s=n.get(133);this._fixedOverflowWidgets=n.get(38),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this._lineHeight=n.get(61),this._range=null,this._viewRange=null,this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(61),e.hasChanged(133)){const i=t.get(133);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range,this._affinity)}_setPosition(e,t){var i;if(this._range=e,this._viewRange=null,this._affinity=t,this._range){const n=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(n,(i=this._affinity)!==null&&i!==void 0?i:void 0))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t,i){this._setPosition(e,i),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n,s){const r=e.top,a=r,l=t.top+this._lineHeight,c=s.viewportHeight-l,d=r-n,h=a>=n,u=l,g=c>=n;let f=e.left,_=t.left;return f+i>s.scrollLeft+s.viewportWidth&&(f=s.scrollLeft+s.viewportWidth-i),_+i>s.scrollLeft+s.viewportWidth&&(_=s.scrollLeft+s.viewportWidth-i),fr){const l=a-(r-n);a-=l,i-=l}if(a=b,w=d+n<=h.height-v;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,b),aboveLeft:g,fitsBelow:w,belowTop:d,belowLeft:_}:{fitsAbove:C,aboveTop:r,aboveLeft:u,fitsBelow:w,belowTop:a,belowLeft:f}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new yf(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];let i=t[0],n=t[0];for(const h of t)h.lineNumbern.lineNumber&&(n=h);let s=1073741824;for(const h of i.ranges)h.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,this._renderData.position)}}function fS(o,e,...t){try{return o.call(e,...t)}catch{return null}}class eF extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new oe(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map(n=>n.positionLineNumber);t.sort((n,s)=>n-s),Ss(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every(n=>n.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(133);return this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._cursorLineNumbers.length;let r=0;const a=[];for(let l=i;l<=n;l++){const c=l-i;for(;r=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class pj extends eF{_renderOne(e){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class mj extends eF{_renderOne(e){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}Et((o,e)=>{const t=o.getColor(W4);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||o.defines(j2)){const i=o.getColor(j2);i&&(e.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),cn(o.type)&&(e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});class _j extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,c=t.length;l{if(l.options.zIndexc.options.zIndex)return 1;const d=l.options.className,h=c.options.className;return dh?1:L.compareRangesUsingStarts(l.range,c.range)});const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=s;l<=r;l++){const c=l-s;a[c]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let a=0,l=t.length;a',h=Math.max(c.range.startLineNumber,s),u=Math.min(c.range.endLineNumber,r);for(let g=h;g<=u;g++){const f=g-s;i[f]+=d}}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber;let r=null,a=!1,l=null;for(let c=0,d=t.length;c';a[u]+=b}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class yo extends H{onclick(e,t){this._register(G(e,ae.CLICK,i=>t(new Mr(i))))}onmousedown(e,t){this._register(G(e,ae.MOUSE_DOWN,i=>t(new Mr(i))))}onmouseover(e,t){this._register(G(e,ae.MOUSE_OVER,i=>t(new Mr(i))))}onmouseleave(e,t){this._register(G(e,ae.MOUSE_LEAVE,i=>t(new Mr(i))))}onkeydown(e,t){this._register(G(e,ae.KEY_DOWN,i=>t(new Rt(i))))}onkeyup(e,t){this._register(G(e,ae.KEY_UP,i=>t(new Rt(i))))}oninput(e,t){this._register(G(e,ae.INPUT,t))}onblur(e,t){this._register(G(e,ae.BLUR,t))}onfocus(e,t){this._register(G(e,ae.FOCUS,t))}ignoreGesture(e){ft.ignoreTarget(e)}}const ug=11;class bj extends yo{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",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=ug+"px",this.domNode.style.height=ug+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new jg),this._register(ki(this.bgDomNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(ki(this.domNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new r_),this._pointerdownScheduleRepeatTimer=this._register(new xs)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class vj extends H{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 xs)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0: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(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)===null||e===void 0||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)===null||t===void 0||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}const Cj=140;class tF extends yo{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 vj(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new jg),this._shouldRender=!0,this.domNode=Je(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(G(this.domNode.domNode,ae.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){const t=this._register(new bj(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=Je(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(G(this.slider.domNode,ae.POINTER_DOWN,s=>{s.button===0&&(s.preventDefault(),this._sliderPointerDown(s))})),this.onclick(this.slider.domNode,s=>{s.leftButton&&s.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(),s=this._sliderPointerPosition(e);i<=s&&s<=n?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,i=e.offsetY;else{const s=on(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.button===0&&(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,s=>{const r=this._sliderOrthogonalPointerPosition(s),a=Math.abs(r-i);if(Yi&&a>Cj){this._setDesiredScrollPositionNow(n.getScrollPosition());return}const c=this._sliderPointerPosition(s)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(c))},()=>{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()}}const wj=20;class nm{constructor(e,t,i,n,s,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new nm(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):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(wj,Math.floor(i*a/n))),d=(a-c)/(n-i),h=s*d;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:d,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=nm._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 tthis._host.onMouseWheel(new sg(null,1,0))}),this._createArrow({className:"scra",icon:m.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new sg(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(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class yj extends tF{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new nm(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-ug)/2,a=(t.verticalScrollbarSize-ug)/2;this._createArrow({className:"scra",icon:m.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(null,0,1))}),this._createArrow({className:"scra",icon:m.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(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(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class Dv{constructor(e,t,i,n,s,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,n=n|0,s=s|0,r=r|0,a=a|0),this.rawScrollLeft=n,this.rawScrollTop=a,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),a+s>r&&(a=r-s),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=r,this.scrollTop=a}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 Dv(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new Dv(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=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:s,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class f_ extends H{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Dv(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)),(i=this._smoothScrolling)===null||i===void 0||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(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?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;t?n=new sm(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=sm.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class Y2{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function pS(o,e){const t=e-o;return function(i){return o+t*kj(i)}}function Lj(o,e,t){return function(i){return i2.5*i){let s,r;return e0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}mD.INSTANCE=new mD;class fE extends yo{constructor(e,t,i){super(),this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new R),e.style.overflow="hidden",this._options=Ej(t),this._scrollable=i,this._register(this._scrollable.onScroll(s=>{this._onWillScroll.fire(s),this._onDidScroll(s),this._onScroll.fire(s)}));const n={onMouseWheel:s=>this._onMouseWheel(s),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new yj(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new Sj(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=Je(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Je(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Je(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,s=>this._onMouseOver(s)),this.onmouseleave(this._listenOnDomNode,s=>this._onMouseLeave(s)),this._hideTimeout=this._register(new xs),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=nt(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,Ge&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=nt(this._mouseWheelToDispose),e)){const i=n=>{this._onMouseWheel(new sg(n))};this._mouseWheelToDispose.push(G(this._listenOnDomNode,ae.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){const t=mD.INSTANCE;{const s=window.devicePixelRatio/_P();Yi||dn?t.accept(Date.now(),e.deltaX/s,e.deltaY/s):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(s)>=Math.abs(r)?r=0:s=0),this._options.flipAxes&&([s,r]=[r,s]);const a=!Ge&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!r&&(r=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(r=r*this._options.fastScrollSensitivity,s=s*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(s){const d=Q2*s,h=l.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(c,h)}if(r){const d=Q2*r,h=l.scrollLeft-(d<0?Math.floor(d):Math.ceil(d));this._horizontalScrollbar.writeScrollPosition(c,h)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(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":"",s=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${s}${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(),xj)}}class iF extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class pE extends fE{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 p_ extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i),this._element=e,this.onScroll(n=>{n.scrollTopChanged&&(this._element.scrollTop=n.scrollTop),n.scrollLeftChanged&&(this._element.scrollLeft=n.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 Ej(o){const e={lazyRender:typeof o.lazyRender<"u"?o.lazyRender:!1,className:typeof o.className<"u"?o.className:"",useShadows:typeof o.useShadows<"u"?o.useShadows:!0,handleMouseWheel:typeof o.handleMouseWheel<"u"?o.handleMouseWheel:!0,flipAxes:typeof o.flipAxes<"u"?o.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof o.consumeMouseWheelIfScrollbarIsNeeded<"u"?o.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof o.alwaysConsumeMouseWheel<"u"?o.alwaysConsumeMouseWheel:!1,scrollYToX:typeof o.scrollYToX<"u"?o.scrollYToX:!1,mouseWheelScrollSensitivity:typeof o.mouseWheelScrollSensitivity<"u"?o.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof o.fastScrollSensitivity<"u"?o.fastScrollSensitivity:5,scrollPredominantAxis:typeof o.scrollPredominantAxis<"u"?o.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof o.mouseWheelSmoothScroll<"u"?o.mouseWheelSmoothScroll:!0,arrowSize:typeof o.arrowSize<"u"?o.arrowSize:11,listenOnDomNode:typeof o.listenOnDomNode<"u"?o.listenOnDomNode:null,horizontal:typeof o.horizontal<"u"?o.horizontal:1,horizontalScrollbarSize:typeof o.horizontalScrollbarSize<"u"?o.horizontalScrollbarSize:10,horizontalSliderSize:typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:0,horizontalHasArrows:typeof o.horizontalHasArrows<"u"?o.horizontalHasArrows:!1,vertical:typeof o.vertical<"u"?o.vertical:1,verticalScrollbarSize:typeof o.verticalScrollbarSize<"u"?o.verticalScrollbarSize:10,verticalHasArrows:typeof o.verticalHasArrows<"u"?o.verticalHasArrows:!1,verticalSliderSize:typeof o.verticalSliderSize<"u"?o.verticalSliderSize:0,scrollByPage:typeof o.scrollByPage<"u"?o.scrollByPage:!1};return e.horizontalSliderSize=typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof o.verticalSliderSize<"u"?o.verticalSliderSize:e.verticalScrollbarSize,Ge&&(e.className+=" mac"),e}class Nj extends Is{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,r=s.get(94),a=s.get(69),l=s.get(36),c=s.get(97),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+fv(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new pE(t.domNode,d,this._context.viewLayout.getScrollable())),qr.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Je(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const h=(u,g,f)=>{const _={};if(g){const b=u.scrollTop;b&&(_.scrollTop=this._context.viewLayout.getCurrentScrollTop()+b,u.scrollTop=0)}if(f){const b=u.scrollLeft;b&&(_.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+b,u.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(_,1)};this._register(G(i.domNode,"scroll",u=>h(i.domNode,!0,!0))),this._register(G(t.domNode,"scroll",u=>h(t.domNode,!0,!1))),this._register(G(n.domNode,"scroll",u=>h(n.domNode,!0,!1))),this._register(G(this.scrollbarDomNode.domNode,"scroll",u=>h(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(67).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}onConfigurationChanged(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){const t=this._context.configuration.options,i=t.get(94),n=t.get(69),s=t.get(36),r=t.get(97),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:s,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+fv(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(` +`);else{a--;const l=t.getLineMaxColumn(a);n[s]=this._enter(e,t,!1,new L(a,l,a,l))}}return n}static lineInsertAfter(e,t,i){if(t===null||i===null)return[];const n=[];for(let s=0,r=i.length;s{const n=t.get(ct).getFocusedCodeEditor();return n&&n.hasTextFocus()?this._runEditorCommand(t,n,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const n=document.activeElement;return n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const n=t.get(ct).getActiveCodeEditor();return n?(n.focus(),this._runEditorCommand(t,n,i)):!1})}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}var Ei;(function(o){class e extends ti{constructor(C){super(C),this._minimalReveal=C.minimalReveal,this._inSelectionMode=C.inSelectionMode}runCoreEditorCommand(C,w){C.model.pushStackElement(),C.setCursorStates(w.source,3,[Wi.moveTo(C,C.getPrimaryCursorState(),this._inSelectionMode,w.position,w.viewPosition)])&&C.revealPrimaryCursor(w.source,!0,this._minimalReveal)}}o.MoveTo=ee(new e({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),o.MoveToSelect=ee(new e({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class t extends ti{runCoreEditorCommand(C,w){C.model.pushStackElement();const S=this._getColumnSelectResult(C,C.getPrimaryCursorState(),C.getCursorColumnSelectData(),w);C.setCursorStates(w.source,3,S.viewStates.map(k=>$e.fromViewState(k))),C.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:S.fromLineNumber,fromViewVisualColumn:S.fromVisualColumn,toViewLineNumber:S.toLineNumber,toViewVisualColumn:S.toVisualColumn}),S.reversed?C.revealTopMostCursor(w.source):C.revealBottomMostCursor(w.source)}}o.ColumnSelect=ee(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(v,C,w,S){const k=v.model.validatePosition(S.position),x=v.coordinatesConverter.validateViewPosition(new B(S.viewPosition.lineNumber,S.viewPosition.column),k),y=S.doColumnSelect?w.fromViewLineNumber:x.lineNumber,D=S.doColumnSelect?w.fromViewVisualColumn:S.mouseColumn-1;return Xc.columnSelect(v.cursorConfig,v,y,D,x.lineNumber,S.mouseColumn-1)}}),o.CursorColumnSelectLeft=ee(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectLeft(v.cursorConfig,v,w)}}),o.CursorColumnSelectRight=ee(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(v,C,w,S){return Xc.columnSelectRight(v.cursorConfig,v,w)}});class i extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectUp(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectUp=ee(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3600,linux:{primary:0}}})),o.CursorColumnSelectPageUp=ee(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,w,S,k){return Xc.columnSelectDown(C.cursorConfig,C,S,this._isPaged)}}o.CursorColumnSelectDown=ee(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3602,linux:{primary:0}}})),o.CursorColumnSelectPageDown=ee(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:3596,linux:{primary:0}}}));class s extends ti{constructor(){super({id:"cursorMove",precondition:void 0,description:yv.description})}runCoreEditorCommand(C,w){const S=yv.parse(w);!S||this._runCursorMove(C,w.source,S)}_runCursorMove(C,w,S){C.model.pushStackElement(),C.setCursorStates(w,3,s._move(C,C.getCursorStates(),S)),C.revealPrimaryCursor(w,!0)}static _move(C,w,S){const k=S.select,x=S.value;switch(S.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return Wi.simpleMove(C,w,S.direction,k,x,S.unit);case 11:case 13:case 12:case 14:return Wi.viewportMove(C,w,S.direction,k,x);default:return null}}}o.CursorMoveImpl=s,o.CursorMove=ee(new s);class r extends ti{constructor(C){super(C),this._staticArgs=C.args}runCoreEditorCommand(C,w){let S=this._staticArgs;this._staticArgs.value===-1&&(S={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:w.pageSize||C.cursorConfig.pageSize}),C.model.pushStackElement(),C.setCursorStates(w.source,3,Wi.simpleMove(C,C.getCursorStates(),S.direction,S.select,S.value,S.unit)),C.revealPrimaryCursor(w.source,!0)}}o.CursorLeft=ee(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),o.CursorLeftSelect=ee(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1039}})),o.CursorRight=ee(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),o.CursorRightSelect=ee(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1041}})),o.CursorUp=ee(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),o.CursorUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),o.CursorPageUp=ee(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:11}})),o.CursorPageUpSelect=ee(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1035}})),o.CursorDown=ee(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),o.CursorDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),o.CursorPageDown=ee(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:12}})),o.CursorPageDownSelect=ee(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1036}})),o.CreateCursor=ee(new class extends ti{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(v,C){let w;C.wholeLine?w=Wi.line(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition):w=Wi.moveTo(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition);const S=v.getCursorStates();if(S.length>1){const k=w.modelState?w.modelState.position:null,x=w.viewState?w.viewState.position:null;for(let y=0,D=S.length;yx&&(k=x);const y=new L(k,1,k,v.model.getLineMaxColumn(k));let D=0;if(w.at)switch(w.at){case Cu.RawAtArgument.Top:D=3;break;case Cu.RawAtArgument.Center:D=1;break;case Cu.RawAtArgument.Bottom:D=4;break}const I=v.coordinatesConverter.convertModelRangeToViewRange(y);v.revealRange(C.source,!1,I,D,0)}}),o.SelectAll=new class extends pD{constructor(){super(JH)}runDOMCommand(){Ls&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(v,C,w){const S=C._getViewModel();!S||this.runCoreEditorCommand(S,w)}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates("keyboard",3,[Wi.selectAll(v,v.getPrimaryCursorState())])}},o.SetSelection=ee(new class extends ti{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates(C.source,3,[$e.fromModelSelection(C.selection)])}})})(Ei||(Ei={}));const lj=se.and(N.textInputFocus,N.columnSelection);function Gg(o,e){as.registerKeybindingRule({id:o,primary:e,when:lj,weight:rt+1})}Gg(Ei.CursorColumnSelectLeft.id,1039);Gg(Ei.CursorColumnSelectRight.id,1041);Gg(Ei.CursorColumnSelectUp.id,1040);Gg(Ei.CursorColumnSelectPageUp.id,1035);Gg(Ei.CursorColumnSelectDown.id,1042);Gg(Ei.CursorColumnSelectPageDown.id,1036);function G2(o){return o.register(),o}var Wu;(function(o){class e extends xi{runEditorCommand(i,n,s){const r=n._getViewModel();!r||this.runCoreEditingCommand(n,r,s||{})}}o.CoreEditingCommand=e,o.LineBreakInsert=ee(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:N.writable,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection)))}}),o.Outdent=ee(new class extends e{constructor(){super({id:"outdent",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.outdent(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.Tab=ee(new class extends e{constructor(){super({id:"tab",precondition:N.writable,kbOpts:{weight:rt,kbExpr:se.and(N.editorTextFocus,N.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,n){t.pushUndoStop(),t.executeCommands(this.id,Pt.tab(i.cursorConfig,i.model,i.getCursorStates().map(s=>s.modelState.selection))),t.pushUndoStop()}}),o.DeleteLeft=ee(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),o.DeleteRight=ee(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:rt,kbExpr:N.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,n){const[s,r]=Vd.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));s&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),o.Undo=new class extends pD{constructor(){super(w4)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().undo()}},o.Redo=new class extends pD{constructor(){super(S4)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(t,i,n){if(!(!i.hasModel()||i.getOption(83)===!0))return i.getModel().redo()}}})(Wu||(Wu={}));class Z2 extends c1{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(ct).getFocusedCodeEditor();!i||i.trigger("keyboard",this._handlerId,t)}}function _h(o,e){G2(new Z2("default:"+o,o)),G2(new Z2(o,o,e))}_h("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});_h("replacePreviousChar");_h("compositionType");_h("compositionStart");_h("compositionEnd");_h("paste");_h("cut");class cj{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ei.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ei.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ei.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ei.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ei.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ei.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ei.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ei.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ei.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ei.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ei.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ei.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ei.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ei.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class w1{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;(t=this.onKeyDown)===null||t===void 0||t.call(this,e)}emitKeyUp(e){var t;(t=this.onKeyUp)===null||t===void 0||t.call(this,e)}emitContextMenu(e){var t;(t=this.onContextMenu)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;(t=this.onMouseMove)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;(t=this.onMouseLeave)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;(t=this.onMouseDown)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;(t=this.onMouseUp)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;(t=this.onMouseDrag)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;(t=this.onMouseDrop)===null||t===void 0||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;(e=this.onMouseDropCanceled)===null||e===void 0||e.call(this)}emitMouseWheel(e){var t;(t=this.onMouseWheel)===null||t===void 0||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return w1.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),i}}var gS;class Q4{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let s=0,r=0;for(let l=i;l<=n;l++){const c=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(s=c,r=1):r++)}if(e=n&&a<=s&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s)return this._lines.splice(e-this._rendLineNumberStart,s-e+1);const r=[];for(let h=0;hi)continue;const l=Math.max(t,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let d=l;d<=c;d++){const h=d-this._rendLineNumberStart;this._lines[h].onTokensChanged(),n=!0}}return n}}class X4{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Q4(()=>this._host.createVisibleLine())}_createDomNode(){const e=Je(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(133)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const r=t,a=Math.min(i,s.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(s,r,a,n,t),s.linesLength+=a-r+1)}else if(s.rendLineNumberStart0&&(this._removeLinesBefore(s,r),s.linesLength-=r)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1i){const r=Math.max(0,i-s.rendLineNumberStart+1),l=s.linesLength-1-r+1;l>0&&(this._removeLinesAfter(s,l),s.linesLength-=l)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const c=r+l;a[l].layoutLine(c,n[c-s])}}_insertLinesBefore(e,t,i,n,s){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];n[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Ta._ttPolicy&&(t=Ta._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;so});Ta._sb=nc(1e5);class J4 extends Is{constructor(e){super(e),this._visibleLines=new X4(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,n=t.length;i'),n.appendASCIIString(s),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class hj extends J4{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class uj extends J4{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),an(this.domNode,t.get(46))}onConfigurationChanged(e){const t=this._context.configuration.options;an(this.domNode,t.get(46));const i=t.get(133);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class yf{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class gj extends Is{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Je(document.createElement("div")),qr.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Je(document.createElement("div")),qr.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new fj(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n){this._widgets[e.getId()].setPosition(t,i,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t];delete this._widgets[t];const n=i.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class fj{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=Je(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,s=n.get(133);this._fixedOverflowWidgets=n.get(38),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this._lineHeight=n.get(61),this._range=null,this._viewRange=null,this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(61),e.hasChanged(133)){const i=t.get(133);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range,this._affinity)}_setPosition(e,t){var i;if(this._range=e,this._viewRange=null,this._affinity=t,this._range){const n=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(n.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(n,(i=this._affinity)!==null&&i!==void 0?i:void 0))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t,i){this._setPosition(e,i),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n,s){const r=e.top,a=r,l=t.top+this._lineHeight,c=s.viewportHeight-l,d=r-n,h=a>=n,u=l,g=c>=n;let f=e.left,_=t.left;return f+i>s.scrollLeft+s.viewportWidth&&(f=s.scrollLeft+s.viewportWidth-i),_+i>s.scrollLeft+s.viewportWidth&&(_=s.scrollLeft+s.viewportWidth-i),fr){const l=a-(r-n);a-=l,i-=l}if(a=b,w=d+n<=h.height-v;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,b),aboveLeft:g,fitsBelow:w,belowTop:d,belowLeft:_}:{fitsAbove:C,aboveTop:r,aboveLeft:u,fitsBelow:w,belowTop:a,belowLeft:f}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new yf(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];let i=t[0],n=t[0];for(const h of t)h.lineNumbern.lineNumber&&(n=h);let s=1073741824;for(const h of i.ranges)h.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&fS(this._actual.afterRender,this._actual,this._renderData.position)}}function fS(o,e,...t){try{return o.call(e,...t)}catch{return null}}class e5 extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new oe(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map(n=>n.positionLineNumber);t.sort((n,s)=>n-s),Ss(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every(n=>n.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(133);return this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._cursorLineNumbers.length;let r=0;const a=[];for(let l=i;l<=n;l++){const c=l-i;for(;r=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class pj extends e5{_renderOne(e){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class mj extends e5{_renderOne(e){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}Et((o,e)=>{const t=o.getColor(W4);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||o.defines(j2)){const i=o.getColor(j2);i&&(e.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),cn(o.type)&&(e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});class _j extends qg{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,c=t.length;l{if(l.options.zIndexc.options.zIndex)return 1;const d=l.options.className,h=c.options.className;return dh?1:L.compareRangesUsingStarts(l.range,c.range)});const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=s;l<=r;l++){const c=l-s;a[c]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let a=0,l=t.length;a',h=Math.max(c.range.startLineNumber,s),u=Math.min(c.range.endLineNumber,r);for(let g=h;g<=u;g++){const f=g-s;i[f]+=d}}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),s=e.visibleRange.startLineNumber;let r=null,a=!1,l=null;for(let c=0,d=t.length;c';a[u]+=b}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class yo extends H{onclick(e,t){this._register(G(e,ae.CLICK,i=>t(new Mr(i))))}onmousedown(e,t){this._register(G(e,ae.MOUSE_DOWN,i=>t(new Mr(i))))}onmouseover(e,t){this._register(G(e,ae.MOUSE_OVER,i=>t(new Mr(i))))}onmouseleave(e,t){this._register(G(e,ae.MOUSE_LEAVE,i=>t(new Mr(i))))}onkeydown(e,t){this._register(G(e,ae.KEY_DOWN,i=>t(new Rt(i))))}onkeyup(e,t){this._register(G(e,ae.KEY_UP,i=>t(new Rt(i))))}oninput(e,t){this._register(G(e,ae.INPUT,t))}onblur(e,t){this._register(G(e,ae.BLUR,t))}onfocus(e,t){this._register(G(e,ae.FOCUS,t))}ignoreGesture(e){ft.ignoreTarget(e)}}const ug=11;class bj extends yo{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",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=ug+"px",this.domNode.style.height=ug+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new jg),this._register(ki(this.bgDomNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(ki(this.domNode,ae.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new r_),this._pointerdownScheduleRepeatTimer=this._register(new xs)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class vj extends H{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 xs)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0: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(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)===null||e===void 0||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)===null||t===void 0||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}const Cj=140;class t5 extends yo{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 vj(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new jg),this._shouldRender=!0,this.domNode=Je(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(G(this.domNode.domNode,ae.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){const t=this._register(new bj(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=Je(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(G(this.slider.domNode,ae.POINTER_DOWN,s=>{s.button===0&&(s.preventDefault(),this._sliderPointerDown(s))})),this.onclick(this.slider.domNode,s=>{s.leftButton&&s.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(),s=this._sliderPointerPosition(e);i<=s&&s<=n?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,i=e.offsetY;else{const s=on(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.button===0&&(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,s=>{const r=this._sliderOrthogonalPointerPosition(s),a=Math.abs(r-i);if(Yi&&a>Cj){this._setDesiredScrollPositionNow(n.getScrollPosition());return}const c=this._sliderPointerPosition(s)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(c))},()=>{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()}}const wj=20;class nm{constructor(e,t,i,n,s,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new nm(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):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(wj,Math.floor(i*a/n))),d=(a-c)/(n-i),h=s*d;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:d,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=nm._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 tthis._host.onMouseWheel(new sg(null,1,0))}),this._createArrow({className:"scra",icon:m.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new sg(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(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class yj extends t5{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new nm(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-ug)/2,a=(t.verticalScrollbarSize-ug)/2;this._createArrow({className:"scra",icon:m.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(null,0,1))}),this._createArrow({className:"scra",icon:m.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new sg(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(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class Dv{constructor(e,t,i,n,s,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,n=n|0,s=s|0,r=r|0,a=a|0),this.rawScrollLeft=n,this.rawScrollTop=a,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),a+s>r&&(a=r-s),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=r,this.scrollTop=a}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 Dv(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new Dv(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=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:s,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class f_ extends H{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Dv(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)),(i=this._smoothScrolling)===null||i===void 0||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(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?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;t?n=new sm(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=sm.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class Y2{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function pS(o,e){const t=e-o;return function(i){return o+t*kj(i)}}function Lj(o,e,t){return function(i){return i2.5*i){let s,r;return e0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}mD.INSTANCE=new mD;class fE extends yo{constructor(e,t,i){super(),this._onScroll=this._register(new R),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new R),e.style.overflow="hidden",this._options=Ej(t),this._scrollable=i,this._register(this._scrollable.onScroll(s=>{this._onWillScroll.fire(s),this._onDidScroll(s),this._onScroll.fire(s)}));const n={onMouseWheel:s=>this._onMouseWheel(s),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new yj(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new Sj(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=Je(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Je(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Je(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,s=>this._onMouseOver(s)),this.onmouseleave(this._listenOnDomNode,s=>this._onMouseLeave(s)),this._hideTimeout=this._register(new xs),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=nt(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,Ge&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=nt(this._mouseWheelToDispose),e)){const i=n=>{this._onMouseWheel(new sg(n))};this._mouseWheelToDispose.push(G(this._listenOnDomNode,ae.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){const t=mD.INSTANCE;{const s=window.devicePixelRatio/_P();Yi||dn?t.accept(Date.now(),e.deltaX/s,e.deltaY/s):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(s)>=Math.abs(r)?r=0:s=0),this._options.flipAxes&&([s,r]=[r,s]);const a=!Ge&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!r&&(r=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(r=r*this._options.fastScrollSensitivity,s=s*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(s){const d=Q2*s,h=l.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(c,h)}if(r){const d=Q2*r,h=l.scrollLeft-(d<0?Math.floor(d):Math.ceil(d));this._horizontalScrollbar.writeScrollPosition(c,h)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(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":"",s=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${s}${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(),xj)}}class i5 extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class pE extends fE{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 p_ extends fE{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new f_({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:n=>Jo(n)});super(e,t,i),this._register(i),this._element=e,this.onScroll(n=>{n.scrollTopChanged&&(this._element.scrollTop=n.scrollTop),n.scrollLeftChanged&&(this._element.scrollLeft=n.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 Ej(o){const e={lazyRender:typeof o.lazyRender<"u"?o.lazyRender:!1,className:typeof o.className<"u"?o.className:"",useShadows:typeof o.useShadows<"u"?o.useShadows:!0,handleMouseWheel:typeof o.handleMouseWheel<"u"?o.handleMouseWheel:!0,flipAxes:typeof o.flipAxes<"u"?o.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof o.consumeMouseWheelIfScrollbarIsNeeded<"u"?o.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof o.alwaysConsumeMouseWheel<"u"?o.alwaysConsumeMouseWheel:!1,scrollYToX:typeof o.scrollYToX<"u"?o.scrollYToX:!1,mouseWheelScrollSensitivity:typeof o.mouseWheelScrollSensitivity<"u"?o.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof o.fastScrollSensitivity<"u"?o.fastScrollSensitivity:5,scrollPredominantAxis:typeof o.scrollPredominantAxis<"u"?o.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof o.mouseWheelSmoothScroll<"u"?o.mouseWheelSmoothScroll:!0,arrowSize:typeof o.arrowSize<"u"?o.arrowSize:11,listenOnDomNode:typeof o.listenOnDomNode<"u"?o.listenOnDomNode:null,horizontal:typeof o.horizontal<"u"?o.horizontal:1,horizontalScrollbarSize:typeof o.horizontalScrollbarSize<"u"?o.horizontalScrollbarSize:10,horizontalSliderSize:typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:0,horizontalHasArrows:typeof o.horizontalHasArrows<"u"?o.horizontalHasArrows:!1,vertical:typeof o.vertical<"u"?o.vertical:1,verticalScrollbarSize:typeof o.verticalScrollbarSize<"u"?o.verticalScrollbarSize:10,verticalHasArrows:typeof o.verticalHasArrows<"u"?o.verticalHasArrows:!1,verticalSliderSize:typeof o.verticalSliderSize<"u"?o.verticalSliderSize:0,scrollByPage:typeof o.scrollByPage<"u"?o.scrollByPage:!1};return e.horizontalSliderSize=typeof o.horizontalSliderSize<"u"?o.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof o.verticalSliderSize<"u"?o.verticalSliderSize:e.verticalScrollbarSize,Ge&&(e.className+=" mac"),e}class Nj extends Is{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,r=s.get(94),a=s.get(69),l=s.get(36),c=s.get(97),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+fv(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new pE(t.domNode,d,this._context.viewLayout.getScrollable())),qr.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Je(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const h=(u,g,f)=>{const _={};if(g){const b=u.scrollTop;b&&(_.scrollTop=this._context.viewLayout.getCurrentScrollTop()+b,u.scrollTop=0)}if(f){const b=u.scrollLeft;b&&(_.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+b,u.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(_,1)};this._register(G(i.domNode,"scroll",u=>h(i.domNode,!0,!0))),this._register(G(t.domNode,"scroll",u=>h(t.domNode,!0,!1))),this._register(G(n.domNode,"scroll",u=>h(n.domNode,!0,!1))),this._register(G(this.scrollbarDomNode.domNode,"scroll",u=>h(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(67).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}onConfigurationChanged(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){const t=this._context.configuration.options,i=t.get(94),n=t.get(69),s=t.get(36),r=t.get(97),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:s,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+fv(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(` .monaco-scrollable-element > .shadow.top { box-shadow: ${t} 0 6px 6px -6px inset; } @@ -74,18 +74,18 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config .monaco-scrollable-element > .scrollbar > .slider.active { background: ${s}; } - `)});class kv{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class mE extends qg{_render(e,t,i){const n=[];for(let a=e;a<=t;a++){const l=a-e;n[l]=[]}if(i.length===0)return n;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.className',c=[];for(let d=t;d<=i;d++){const h=d-t,u=n[h];u.length===0?c[h]="":c[h]='
=this._renderResult.length?"":this._renderResult[i]}}class nF extends H{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function S1(o,e){let t=0,i=0;const n=o.length;for(;in)throw new Error("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide);let a=-2,l=-1,c=-2,d=-1;const h=y=>{if(a!==-1&&(a===-2||a>y-1)){a=-1,l=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){a=D,l=I;break}}}if(c===-2){c=-1,d=-1;for(let D=y;D=0){c=D,d=I;break}}}};let u=-2,g=-1,f=-2,_=-1;const b=y=>{if(u===-2){u=-1,g=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){u=D,g=I;break}}}if(f!==-1&&(f===-2||f=0){f=D,_=I;break}}}};let v=0,C=!0,w=0,S=!0,k=0,x=0;for(let y=0;C||S;y++){const D=e-y,I=e+y;y>1&&(D<1||D1&&(I>n||I>i)&&(S=!1),y>5e4&&(C=!1,S=!1);let O=-1;if(C&&D>=1){const z=this._computeIndentLevel(D-1);z>=0?(c=D-1,d=z,O=Math.ceil(z/this.textModel.getOptions().indentSize)):(h(D),O=this._getIndentLevelForWhitespaceLine(r,l,d))}let F=-1;if(S&&I<=n){const z=this._computeIndentLevel(I-1);z>=0?(u=I-1,g=z,F=Math.ceil(z/this.textModel.getOptions().indentSize)):(b(I),F=this._getIndentLevelForWhitespaceLine(r,g,_))}if(y===0){x=O;continue}if(y===1){if(I<=n&&F>=0&&x+1===F){C=!1,v=I,w=I,k=F;continue}if(D>=1&&O>=0&&O-1===x){S=!1,v=D,w=D,k=O;continue}if(v=e,w=e,k=x,k===0)return{startLineNumber:v,endLineNumber:w,indent:k}}C&&(O>=k?v=D:C=!1),S&&(F>=k?w=I:S=!1)}return{startLineNumber:v,endLineNumber:w,indent:k}}getLinesBracketGuides(e,t,i,n){var s;const r=[];for(let u=e;u<=t;u++)r.push([]);const a=!0,l=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new L(e,1,t,this.textModel.getLineMaxColumn(t)));let c;if(i&&l.length>0){const u=(e<=i.lineNumber&&i.lineNumber<=t?l:this.textModel.bracketPairs.getBracketPairsInRange(L.fromPositions(i))).filter(g=>L.strictContainsPosition(g.range,i));c=(s=j0(u,g=>a))===null||s===void 0?void 0:s.range}const d=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new sF;for(const u of l){if(!u.closingBracketRange)continue;const g=c&&u.range.equalsRange(c);if(!g&&!n.includeInactive)continue;const f=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,d)+(n.highlightActive&&g?" "+h.activeClassName:""),_=u.openingBracketRange.getStartPosition(),b=u.closingBracketRange.getStartPosition(),v=n.horizontalGuides===bd.Enabled||n.horizontalGuides===bd.EnabledForActive&&g;if(u.range.startLineNumber===u.range.endLineNumber){v&&r[u.range.startLineNumber-e].push(new hd(-1,u.openingBracketRange.getEndPosition().column,f,new up(!1,b.column),-1,-1));continue}const C=this.getVisibleColumnFromPosition(b),w=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),S=Math.min(w,C,u.minVisibleColumnIndentation+1);let k=!1;kn(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))=e&&w>S&&r[_.lineNumber-e].push(new hd(S,-1,f,new up(!1,_.column),-1,-1)),b.lineNumber<=t&&C>S&&r[b.lineNumber-e].push(new hd(S,-1,f,new up(!k,b.column),-1,-1)))}for(const u of r)u.sort((g,f)=>g.visibleColumn-f.visibleColumn);return r}getVisibleColumnFromPosition(e){return Ci.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide),a=new Array(t-e+1);let l=-2,c=-1,d=-2,h=-1;for(let u=e;u<=t;u++){const g=u-e,f=this._computeIndentLevel(u-1);if(f>=0){l=u-1,c=f,a[g]=Math.ceil(f/n.indentSize);continue}if(l===-2){l=-1,c=-1;for(let _=u-2;_>=0;_--){const b=this._computeIndentLevel(_);if(b>=0){l=_,c=b;break}}}if(d!==-1&&(d===-2||d=0){d=_,h=b;break}}}a[g]=this._getIndentLevelForWhitespaceLine(r,c,h)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&w>this._maxIndentLeft)break;const S=C.horizontalLine?C.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",k=C.horizontalLine?((s=(n=e.visibleRangeForPosition(new B(g,C.horizontalLine.endColumn)))===null||n===void 0?void 0:n.left)!==null&&s!==void 0?s:w+this._spaceWidth)-w:this._spaceWidth;b+=`
`}u[f]=b}this._renderResult=u}getGuidesByLine(e,t,i){const n=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?bd.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?bd.EnabledForActive:bd.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&i){const h=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=h.startLineNumber,a=h.endLineNumber,l=h.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),d=[];for(let h=e;h<=t;h++){const u=new Array;d.push(u);const g=n?n[h-e]:[],f=new Rp(g),_=s?s[h-e]:[];for(let b=1;b<=_;b++){const v=(b-1)*c+1,C=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||g.length===0)&&r<=h&&h<=a&&b===l;u.push(...f.takeWhile(S=>S.visibleColumn!0)||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function ub(o){if(!(o&&o.isTransparent()))return o}Et((o,e)=>{const t=o.getColor(u_);t&&e.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${t} inset; }`);const i=o.getColor(g_)||t;i&&e.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=[{bracketColor:U4,guideColor:A$,guideColorActive:B$},{bracketColor:$4,guideColor:M$,guideColorActive:W$},{bracketColor:j4,guideColor:R$,guideColorActive:V$},{bracketColor:K4,guideColor:O$,guideColorActive:H$},{bracketColor:q4,guideColor:P$,guideColorActive:z$},{bracketColor:G4,guideColor:F$,guideColorActive:U$}],s=new sF,r=n.map(a=>{var l,c;const d=o.getColor(a.bracketColor),h=o.getColor(a.guideColor),u=o.getColor(a.guideColorActive),g=ub((l=ub(h))!==null&&l!==void 0?l:d==null?void 0:d.transparent(.3)),f=ub((c=ub(u))!==null&&c!==void 0?c:d);if(!(!g||!f))return{guideColor:g,guideColorActive:f}}).filter(B8);if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}});class Rj{constructor(){this._currentVisibleRange=new L(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Oj{constructor(e,t,i,n,s,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Pj{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,c=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new mt(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Rj,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Ir(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(134)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(46),n=t.get(134),s=t.get(133);return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(91),this._horizontalScrollbarHeight=s.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),an(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(133)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new z2(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Oj(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Pj(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const n=this._getLineNumberFor(i);if(n===-1||n<1||n>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(n)===1)return new B(n,1);const s=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(nr)return null;let a=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const l=this._context.viewModel.getLineMinColumn(n);return ai?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=L.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let r=0;const a=new H2(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new B(n.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(hd)continue;const u=h===n.startLineNumber?n.startColumn:1,g=h===n.endLineNumber?n.endColumn:this._context.viewModel.getLineMaxColumn(h),f=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,u,g,a);if(!!f){if(t&&hthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new H2(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new ZU(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){s=!1;continue}n=Math.max(n,a.getWidth())}return s&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const r=this._visibleLines.getVisibleLine(s);if(r.needsMonospaceFontCheck()){const a=r.getWidth();a>t&&(t=a,e=s)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const n=this._computeScrollLeftToReveal(i);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),dn&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)if(this._visibleLines.getVisibleLine(s).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let _=s[0].startLineNumber,b=s[0].endLineNumber;for(let v=1,C=s.length;vl){if(!d)return-1;f=h}else if(r===5||r===6)if(r===6&&a<=h&&u<=c)f=a;else{const _=Math.max(5*this._lineHeight,l*.2),b=h-_,v=u-l;f=Math.max(v,b)}else if(r===1||r===2)if(r===2&&a<=h&&u<=c)f=a;else{const _=(h+u)/2;f=Math.max(0,_-l/2)}else f=this._computeMinimumScrolling(a,c,h,u,r===3,r===4);return f}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let s=1073741824,r=0;if(e.type==="range"){const l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;for(const c of l.ranges)s=Math.min(s,Math.round(c.left)),r=Math.max(r,Math.round(c.left+c.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;const c=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!c)return null;for(const d of c.ranges)s=Math.min(s,Math.round(d.left)),r=Math.max(r,Math.round(d.left+d.width))}return e.minimalReveal||(s=Math.max(0,s-y1.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),e.type==="selections"&&r-s>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,s,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,s,r){e=e|0,t=t|0,i=i|0,n=n|0,s=!!s,r=!!r;const a=t-e;if(n-it)return Math.max(0,n-a)}else return i;return e}}y1.HORIZONTAL_EXTRA_PX=30;class Fj extends mE{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(133);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let s=0,r=t.length;s
',l=[];for(let c=t;c<=i;c++){const d=c-t,h=n[d];let u="";for(let g=0,f=h.length;g';s[a]=c}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Us{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Us._clamp(e),this.g=Us._clamp(t),this.b=Us._clamp(i),this.a=Us._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}Us.Empty=new Us(0,0,0,0);class m_ extends H{constructor(){super(),this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Wt.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=new m_),this._INSTANCE}_updateColorMap(){const e=Wt.getColorMap();if(!e){this._colors=[Us.Empty],this._backgroundIsLight=!0;return}this._colors=[Us.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}m_._INSTANCE=null;const Wj=(()=>{const o=[];for(let e=32;e<=126;e++)o.push(e);return o.push(65533),o})(),Vj=(o,e)=>(o-=32,o<0||o>96?e<=2?(o+96)%96:96-1:o);class om{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=om.soften(e,12/15),this.charDataLight=om.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;ne.width||i+f>e.height){console.warn("bad render request outside image data");return}const _=d?this.charDataLight:this.charDataNormal,b=Vj(n,c),v=e.width*4,C=a.r,w=a.g,S=a.b,k=s.r-C,x=s.g-w,y=s.b-S,D=Math.max(r,l),I=e.data;let O=b*u*g,F=i*v+t*4;for(let z=0;ze.width||i+h>e.height){console.warn("bad render request outside image data");return}const u=e.width*4,g=.5*(s/255),f=r.r,_=r.g,b=r.b,v=n.r-f,C=n.g-_,w=n.b-b,S=f+v*g,k=_+C*g,x=b+w*g,y=Math.max(s,a),D=e.data;let I=i*u+t*4;for(let O=0;O{const e=new Uint8ClampedArray(o.length/2);for(let t=0;t>1]=X2[o[t]]<<4|X2[o[t+1]]&15;return e},eA={1:Xa(()=>J2("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Xa(()=>J2("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class gp{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return eA[e]?i=new om(eA[e](),e):i=gp.createFromSampleData(gp.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=`${16}px`,t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold ${16}px ${e}`,i.textBaseline="middle";let n=0;for(const s of Wj)i.fillText(String.fromCharCode(s),n,16/2),n+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=gp._downsample(e,t);return new om(n,t)}static _downsampleChar(e,t,i,n,s){const r=1*s,a=2*s;let l=n,c=0;for(let d=0;d0){const c=255/l;for(let d=0;dgp.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=rm._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=rm._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(EU);return i?new Us(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(NU);return t?Us._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class fp{constructor(e,t,i,n,s,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,s,r,a,l,c,d,h){const u=e.pixelRatio,g=e.minimapLineHeight,f=Math.floor(e.canvasInnerHeight/g),_=e.lineHeight;if(e.minimapHeightIsEditorHeight){const k=l*e.lineHeight+(e.scrollBeyondLastLine?s-e.lineHeight:0),x=Math.max(1,Math.floor(s*s/k)),y=Math.max(0,e.minimapHeight-x),D=y/(d-s),I=c*D,O=y>0,F=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new fp(c,d,O,D,I,x,1,Math.min(a,F))}let b;if(r&&i!==a){const k=i-t+1;b=Math.floor(k*g/u)}else{const k=s/_;b=Math.floor(k*g/u)}let v;e.scrollBeyondLastLine?v=(a-1)*g/u:v=Math.max(0,a*g/u-b),v=Math.min(e.minimapHeight-b,v);const C=v/(d-s),w=c*C;let S=0;if(e.scrollBeyondLastLine&&(S=s/_-1),f>=a+S){const x=a,y=v>0;return new fp(c,d,y,C,w,b,1,x)}else{let k=Math.max(1,Math.floor(t-w*u/g));h&&h.scrollHeight===d&&(h.scrollTop>c&&(k=Math.min(k,h.startLineNumber)),h.scrollTopxv.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let n=0,s=i.length;n1){for(let S=0,k=a-1;S0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=am.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,r=t-e+1;s{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.button===0&&this._lastRenderData){const c=on(this._slider.domNode),d=c.top+c.height/2;this._startSliderDragging(i,d,this._lastRenderData.renderedLayout)}return}const s=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.offsetY;let l=Math.floor(r/s)+this._lastRenderData.renderedLayout.startLineNumber;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderPointerMoveMonitor=new jg,this._sliderPointerDownListener=ki(this._slider.domNode,ae.POINTER_DOWN,i=>{i.preventDefault(),i.stopPropagation(),i.button===0&&this._lastRenderData&&this._startSliderDragging(i,i.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=ft.addTarget(this._domNode.domNode),this._sliderTouchStartListener=G(this._domNode.domNode,xt.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=G(this._domNode.domNode,xt.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=ki(this._domNode.domNode,xt.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(r,a)=>{const l=Math.abs(a-n);if(Yi&&l>Hj){this._model.setScrollTop(i.scrollTop);return}const c=r-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(c))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>s(r.pageY,r.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return this._model.options.showSlider==="always"?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new _E(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(B2),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=fp.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(L.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((u,g)=>(u.options.zIndex||0)-(g.options.zIndex||0));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,n,s);const d=new iA(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,d,e,r),this._renderDecorationsLineHighlights(c,i,d,e,r);const h=new iA(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,l,a,n),this._renderDecorationsHighlights(c,i,h,e,r,l,a,n)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const c=Math.max(n.startLineNumber,l.startLineNumber),d=Math.min(n.endLineNumber,l.endLineNumber);if(c>d)continue;for(let g=c;g<=d;g++)i.set(g,!0);const h=(c-n.startLineNumber)*s,u=(d-n.startLineNumber)*s+s;a>=h||(a>r&&e.fillRect(wl,r,e.canvas.width,a-r),r=h),a=u}a>r&&e.fillRect(wl,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,n,s){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],c=l.options.minimap;if(!c||c.position!==js.Inline)continue;const d=Math.max(n.startLineNumber,l.range.startLineNumber),h=Math.min(n.endLineNumber,l.range.endLineNumber);if(d>h)continue;const u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let f=d;f<=h;f++){if(i.has(f))continue;i.set(f,!0);const _=(d-n.startLineNumber)*s;e.fillRect(wl,_,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const c of t){const d=Math.max(n.startLineNumber,c.startLineNumber),h=Math.min(n.endLineNumber,c.endLineNumber);if(!(d>h))for(let u=d;u<=h;u++)this.renderDecorationOnLine(e,i,c,this._selectionColor,n,u,s,s,r,a,l)}}_renderDecorationsHighlights(e,t,i,n,s,r,a,l){for(const c of t){const d=c.options.minimap;if(!d)continue;const h=Math.max(n.startLineNumber,c.range.startLineNumber),u=Math.min(n.endLineNumber,c.range.endLineNumber);if(h>u)continue;const g=d.getColor(this._theme.value);if(!(!g||g.isTransparent()))for(let f=h;f<=u;f++)switch(d.position){case js.Inline:this.renderDecorationOnLine(e,i,c.range,g,n,f,s,s,r,a,l);continue;case js.Gutter:{const _=(f-n.startLineNumber)*s,b=2;this.renderDecoration(e,g,b,_,zj,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,r,a,l,c,d,h){const u=(r-s.startLineNumber)*l;if(u+a<0||u>this._model.options.canvasInnerHeight)return;const{startLineNumber:g,endLineNumber:f}=i,_=g===r?i.startColumn:1,b=f===r?i.endColumn:this._model.getLineMaxColumn(r),v=this.getXOffsetForPosition(t,r,_,c,d,h),C=this.getXOffsetForPosition(t,r,b,c,d,h);this.renderDecoration(e,n,v,u,C-v,a)}getXOffsetForPosition(e,t,i,n,s,r){if(i===1)return wl;if((i-1)*s>=r)return r;let l=e.get(t);if(!l){const c=this._model.getLineContent(t);l=[wl];let d=wl;for(let h=1;h=r){l[h]=r;break}l[h]=f,d=f}e.set(t,l)}return i-1k?Math.floor((n-k)/2):0,y=u.a/255,D=new Us(Math.round((u.r-h.r)*y+h.r),Math.round((u.g-h.g)*y+h.g),Math.round((u.b-h.b)*y+h.b),255);let I=0;const O=[];for(let he=0,Se=i-t+1;he=0&&OC)return;const z=b.charCodeAt(k);if(z===9){const j=u-(k+x)%u;x+=j-1,S+=j*r}else if(z===32)S+=r;else{const j=ic(z)?2:1;for(let re=0;reC)return}}}}}class iA{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}Et((o,e)=>{const t=o.getColor(TU);t&&e.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${t}; }`);const i=o.getColor(AU);i&&e.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`);const n=o.getColor(MU);n&&e.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${n}; }`);const s=o.getColor(Kg);s&&e.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)});class $j extends Is{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._domNode=Je(document.createElement("div")),qr.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=Je(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?!1:(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(e.preference===null){t.setTop("");return}if(e.preference===0)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){const i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i=3){const s=Math.floor(n/3),r=Math.floor(n/3),a=n-s-r,l=e,c=l+s,d=l+s+a;return[[0,l,c,l,d,l,c,l],[0,s,a,s+a,r,s+a+r,a+r,s+a+r]]}else if(i===2){const s=Math.floor(n/2),r=n-s,a=e,l=a+s;return[[0,a,a,a,l,a,a,a],[0,s,s,s,r,s+r,s+r,s+r]]}else{const s=e,r=n;return[[0,s,s,s,s,s,s,s],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Kj extends Is{constructor(e){super(e),this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Wt.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new jj(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(F=t-c),D=F-c,I=F+c}D>C+1||k!==b?(w!==0&&d.fillRect(h[b],v,u[b],C-v),b=k,v=D,C=I):I>C&&(C=I)}d.fillRect(h[b],v,u[b],C-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){const g=2*this._settings.pixelRatio|0,f=g/2|0,_=this._settings.x[7],b=this._settings.w[7];d.fillStyle=this._settings.cursorColor;let v=-100,C=-100;for(let w=0,S=this._cursorPositions.length;wt&&(x=t-f);const y=x-f,D=y+g;y>C+1?(w!==0&&d.fillRect(_,v,b,C-v),v=y,C=D):D>C&&(C=D)}d.fillRect(_,v,b,C-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,t),d.stroke(),d.moveTo(0,0),d.lineTo(e,0),d.stroke())}}class nA{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class lm{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(_=i-b);const v=d.color;let C=this._color2Id[v];C||(C=++this._lastAssignedId,this._color2Id[v]=C,this._id2Color[C]=v);const w=new nA(_-b,_+b,C);d.setColorZone(w),a.push(w)}return this._colorZonesInvalid=!1,a.sort(nA.compare),a}}class Gj extends h_{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new qj(n=>this._context.viewLayout.getVerticalOffsetForLineNumber(n)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,r=0,a=0;for(const l of t){const c=l.colorId,d=l.from,h=l.to;c!==s?(e.fillRect(0,r,n,a-r),s=c,e.fillStyle=i[s],r=d,a=h):a>=d?a=Math.max(a,h):(e.fillRect(0,r,n,a-r),r=d,a=h)}e.fillRect(0,r,n,a-r)}}class Zj extends Is{constructor(e){super(e),this.domNode=Je(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=Je(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(s),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const t=o.getColor(_$);t&&e.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${t} inset; }`)});class Yj extends Is{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const i=this._context.configuration.options.get(94);this._useShadows=i.useShadows,this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(133);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(94);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${t} 0 6px 6px -6px inset; }`)});class Qj{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Xj{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Jj(o){return new Qj(o)}function eK(o){return new Xj(o.lineNumber,o.ranges.map(Jj))}class Zt extends qg{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let c=0;!s&&c=0;c--)i[c].lineNumber===l&&(r=i[c].ranges[0]);s&&!s.startStyle&&(s=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const f=t[a-1].ranges[0].left,_=t[a-1].ranges[0].left+t[a-1].ranges[0].width;gb(d-f)f&&(u.top=1),gb(h-_)'}_actualRenderOneSelection(e,t,i,n){if(n.length===0)return;const s=!!n[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=n[0].lineNumber,c=n[n.length-1].lineNumber;for(let d=0,h=n.length;d1,c)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Zt.SELECTION_CLASS_NAME="selected-text";Zt.SELECTION_TOP_LEFT="top-left-radius";Zt.SELECTION_BOTTOM_LEFT="bottom-left-radius";Zt.SELECTION_TOP_RIGHT="top-right-radius";Zt.SELECTION_BOTTOM_RIGHT="bottom-right-radius";Zt.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";Zt.ROUNDED_PIECE_WIDTH=10;Et((o,e)=>{const t=o.getColor(Wa);t&&e.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const i=o.getColor(sE);i&&e.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const n=o.getColor(Tz);n&&!n.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${n}; }`)});function gb(o){return o<0?-o:o}class sA{constructor(e,t,i,n,s,r){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=s,this.textContentClassName=r}}class oA{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(46);this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Je(document.createElement("div")),this._domNode.setClassName(`cursor ${_d}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),an(this._domNode,i),this._domNode.setDisplay("none"),this._position=new B(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(46);return this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),an(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=pB(i,t-1);return[new B(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="";const[i,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===Hi.Line||this._cursorStyle===Hi.LineThin){const u=e.visibleRangeForPosition(i);if(!u||u.outsideRenderedLine)return null;let g;this._cursorStyle===Hi.Line?(g=k2(this._lineCursorWidth>0?this._lineCursorWidth:2),g>2&&(t=n)):g=k2(1);let f=u.left;g>=2&&f>=1&&(f-=1);const _=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new sA(_,f,g,this._lineHeight,t,"")}const s=e.linesVisibleRangesForRange(new L(i.lineNumber,i.column,i.lineNumber,i.column+n.length),!1);if(!s||s.length===0)return null;const r=s[0];if(r.outsideRenderedLine||r.ranges.length===0)return null;const a=r.ranges[0],l=n===" "?this._typicalHalfwidthCharacterWidth:a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===Hi.Block){const u=this._context.viewModel.getViewLineData(i.lineNumber);t=n;const g=u.tokens.findTokenIndexAtOffset(i.column-1);c=u.tokens.getClassName(g)}let d=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,h=this._lineHeight;return(this._cursorStyle===Hi.Underline||this._cursorStyle===Hi.UnderlineThin)&&(d+=this._lineHeight-2,h=2),new sA(d,a.left,l,h,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${_d} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class cm extends Is{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new oA(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new xs,this._cursorFlatBlinkInterval=new r_,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const i=this._secondaryCursors.length-t.length;for(let n=0;n{for(let n=0,s=e.ranges.length;n{this._isVisible?this._hide():this._show()},cm.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},cm.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case Hi.Line:e+=" cursor-line-style";break;case Hi.Block:e+=" cursor-block-style";break;case Hi.Underline:e+=" cursor-underline-style";break;case Hi.LineThin:e+=" cursor-line-thin-style";break;case Hi.BlockOutline:e+=" cursor-block-outline-style";break;case Hi.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=o.getColor(V4);if(t){let i=o.getColor(p$);i||(i=t.opposite()),e.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),e.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${i}; }`),cn(o.type)&&e.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const mS=()=>{throw new Error("Invalid change accessor")};class tK extends Is{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=Je(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Je(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace(n=>{const s=Object.keys(this._zones);for(let r=0,a=s.length;r{const n={addZone:s=>(t=!0,this._addZone(i,s)),removeZone:s=>{!s||(t=this._removeZone(i,s)||t)},layoutZone:s=>{!s||(t=this._layoutZone(i,s)||t)}};iK(e,n),n.addZone=mS,n.removeZone=mS,n.layoutZone=mS}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:Je(t.domNode),marginDomNode:t.marginDomNode?Je(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){Te(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){Te(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,n=!0);const s=Object.keys(this._zones);for(let r=0,a=s.length;r{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new t$(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new B(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(133);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(130)+" "+fv(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=n4(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){lK(()=>this._actualRender())}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!jI(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new oK(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new qU(this._context.viewLayout,i,this._viewLines);for(const s of e)s.prepareRender(n);for(const s of e)s.render(n),s.onDidRender()}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new B(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?w1.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new Gj(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i;let n=e.position&&e.position.range||null;if(n===null){const r=e.position?e.position.position:null;r!==null&&(n=new L(r.lineNumber,r.column,r.lineNumber,r.column))}const s=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,n,s,(i=(t=e.position)===null||t===void 0?void 0:t.positionAffinity)!==null&&i!==void 0?i:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function lK(o){try{return o()}catch(e){Te(e)}}class Ev{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Vi(new L(1,1,1,1),0,new B(1,1),0),new Vi(new L(1,1,1,1),0,new B(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){!this._trackSelection||(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new $e(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return oe.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,n,i,r),l=this._validatePositionWithCache(e,s,n,a);return i.equals(r)&&n.equals(a)&&s.equals(l)?t:new Vi(L.fromPositions(a,l),t.selectionStartLeftoverVisibleColumns+n.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=Ev._validateViewState(e.viewModel,i)),t){const n=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new Vi(n,s,r,a)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new Vi(n,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new Vi(n,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new L(n.lineNumber,n.column,s.lineNumber,s.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new Vi(r,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class rA{constructor(e){this.context=e,this.cursors=[new Ev(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return P8(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getBottomMostViewPosition(){return UO(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates($e.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const n=t-i;for(let s=0;s=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ii.selection,L.compareRangesUsingStarts));for(let i=0;ih&&_.index--;e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),i--}}}}class aA{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class cK{constructor(){this.changeType=1}}class er{constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new er(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new er(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,n)=>i.lineNumber===n.lineNumber?i.column===n.column?i.order-n.order:i.column-n.column:i.lineNumber-n.lineNumber),t}}class lA{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class dK{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class hK{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class uK{constructor(){this.changeType=5}}class Vu{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class DK{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class bE{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new bE(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class vE{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new vE(this.oldHasFocus,e.hasFocus)}}class CE{constructor(e,t,i,n,s,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new CE(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class kK{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class xK{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Nv{constructor(e,t,i,n,s,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,n=t.length;if(i!==n)return!1;for(let s=0;s0){const e=this._cursors.getSelections();for(let t=0;tgg.MAX_CURSOR_COUNT&&(n=n.slice(0,gg.MAX_CURSOR_COUNT),s=!0);const r=pp.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n,s,r){const a=this._cursors.getViewPositions();let l=null,c=null;a.length>1?c=this._cursors.getViewSelections():l=L.fromPositions(a[0],a[0]),e.emitViewEvent(new C0(t,i,l,c,n,s,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const s=$e.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,s)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const s=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,$e.fromModelSelections(s))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,$e.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const r=pp.from(this._model,this);if(r.equals(n))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new mK(l,a)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((c,d)=>!c.modelState.equals(n.cursorState[d].modelState))){const c=n?n.cursorState.map(h=>h.modelState.selection):null,d=n?n.modelVersionId:0;e.emitOutgoingEvent(new Nv(c,a,d,r.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const r=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const c=l[0].open,d=s.text.length-r[2].length-1,h=s.text.lastIndexOf(c,d-1);if(h===-1)return null;t.push([h,d])}return t}executeEdits(e,t,i,n){let s=null;t==="snippet"&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,c=>{if(s)for(let h=0,u=s.length;h0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const s=pp.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){Te(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return cA.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new mp(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{t==="keyboard"&&this._executeEditOperation(Pt.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const n=t.length;let s=0;for(;s{const c=l.getPosition();return new oe(c.lineNumber,c.column+s,c.lineNumber,c.column+s)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(Pt.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))},e,r)}paste(e,t,i,n,s){this._executeEdit(()=>{this._executeEditOperation(Pt.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,s,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(Vd.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new An(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new An(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}gg.MAX_CURSOR_COUNT=1e4;class pp{constructor(e,t){this.modelVersionId=e,this.cursorState=t}static from(e,t){return new pp(e.getVersionId(),t.getCursorStates())}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class OK{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let r=0,a=n.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,c=>{const d=[];for(let g=0;gg.identifier.minor-f.identifier.minor,u=[];for(let g=0;g0?(d[g].sort(h),u[g]=t[g].computeCursorState(e.model,{getInverseEditOperations:()=>d[g],getTrackedSelection:f=>{const _=parseInt(f,10),b=e.model._getTrackedRange(e.trackedRanges[_]);return e.trackedRangesDirection[_]===0?new oe(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new oe(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}})):u[g]=e.selectionsBefore[g];return u});a||(a=e.selectionsBefore);const l=[];for(const c in s)s.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((c,d)=>d-c);for(const c of l)a.splice(c,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{L.isEmpty(h)&&u===""||n.push({identifier:{major:t,minor:s++},range:h,text:u,forceMoveMarkers:g,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const d={addEditOperation:r,addTrackedEditOperation:(h,u,g)=>{a=!0,r(h,u,g)},trackSelection:(h,u)=>{const g=oe.liftSelection(h);let f;if(g.isEmpty())if(typeof u=="boolean")u?f=2:f=3;else{const v=e.model.getLineMaxColumn(g.startLineNumber);g.startColumn===v?f=2:f=3}else f=1;const _=e.trackedRanges.length,b=e.model._setTrackedRange(null,g,f);return e.trackedRanges[_]=b,e.trackedRangesDirection[_]=g.getDirection(),_.toString()}};try{i.getEditOperations(e.model,d)}catch(h){return Te(h),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,n)=>-L.compareRangesUsingEnds(i.range,n.range));const t={};for(let i=1;is.identifier.major?r=n.identifier.major:r=s.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class PK{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class mp{constructor(e,t){this._original=mp._capture(e,t)}static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new PK(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}deduceOutcome(e,t){if(!this._original)return null;const i=mp._capture(e,t);if(!i||this._original.length!==i.length)return null;const n=[];for(let s=0,r=this._original.length;s=e}function Ph(o){return ii(o.lineNumber-1,o.column-1)}function ja(o,e){const t=o,i=Math.floor(t/ws),n=t-i*ws,s=e,r=Math.floor(s/ws),a=s-r*ws;return new L(i+1,n+1,r+1,a+1)}function UK(o){const e=jr(o);return ii(e.length-1,e[e.length-1].length)}class dA{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class $K{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(i=>wE.from(i))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return zK(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Zl(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(n===0){const r=1<0;)t=t.getChild(i-1);return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const n=WK(e,t,this.lineIdx,this.lineCharOffset);return new Tl(n,0,-1,ui.getEmpty(),new eu(n))}}class YK{constructor(e,t){this.text=e,this._offset=mo,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+`| + `)});class kv{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class mE extends qg{_render(e,t,i){const n=[];for(let a=e;a<=t;a++){const l=a-e;n[l]=[]}if(i.length===0)return n;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.className',c=[];for(let d=t;d<=i;d++){const h=d-t,u=n[h];u.length===0?c[h]="":c[h]='
=this._renderResult.length?"":this._renderResult[i]}}class n5 extends H{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function S1(o,e){let t=0,i=0;const n=o.length;for(;in)throw new Error("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide);let a=-2,l=-1,c=-2,d=-1;const h=y=>{if(a!==-1&&(a===-2||a>y-1)){a=-1,l=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){a=D,l=I;break}}}if(c===-2){c=-1,d=-1;for(let D=y;D=0){c=D,d=I;break}}}};let u=-2,g=-1,f=-2,_=-1;const b=y=>{if(u===-2){u=-1,g=-1;for(let D=y-2;D>=0;D--){const I=this._computeIndentLevel(D);if(I>=0){u=D,g=I;break}}}if(f!==-1&&(f===-2||f=0){f=D,_=I;break}}}};let v=0,C=!0,w=0,S=!0,k=0,x=0;for(let y=0;C||S;y++){const D=e-y,I=e+y;y>1&&(D<1||D1&&(I>n||I>i)&&(S=!1),y>5e4&&(C=!1,S=!1);let O=-1;if(C&&D>=1){const z=this._computeIndentLevel(D-1);z>=0?(c=D-1,d=z,O=Math.ceil(z/this.textModel.getOptions().indentSize)):(h(D),O=this._getIndentLevelForWhitespaceLine(r,l,d))}let F=-1;if(S&&I<=n){const z=this._computeIndentLevel(I-1);z>=0?(u=I-1,g=z,F=Math.ceil(z/this.textModel.getOptions().indentSize)):(b(I),F=this._getIndentLevelForWhitespaceLine(r,g,_))}if(y===0){x=O;continue}if(y===1){if(I<=n&&F>=0&&x+1===F){C=!1,v=I,w=I,k=F;continue}if(D>=1&&O>=0&&O-1===x){S=!1,v=D,w=D,k=O;continue}if(v=e,w=e,k=x,k===0)return{startLineNumber:v,endLineNumber:w,indent:k}}C&&(O>=k?v=D:C=!1),S&&(F>=k?w=I:S=!1)}return{startLineNumber:v,endLineNumber:w,indent:k}}getLinesBracketGuides(e,t,i,n){var s;const r=[];for(let u=e;u<=t;u++)r.push([]);const a=!0,l=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new L(e,1,t,this.textModel.getLineMaxColumn(t)));let c;if(i&&l.length>0){const u=(e<=i.lineNumber&&i.lineNumber<=t?l:this.textModel.bracketPairs.getBracketPairsInRange(L.fromPositions(i))).filter(g=>L.strictContainsPosition(g.range,i));c=(s=j0(u,g=>a))===null||s===void 0?void 0:s.range}const d=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new s5;for(const u of l){if(!u.closingBracketRange)continue;const g=c&&u.range.equalsRange(c);if(!g&&!n.includeInactive)continue;const f=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,d)+(n.highlightActive&&g?" "+h.activeClassName:""),_=u.openingBracketRange.getStartPosition(),b=u.closingBracketRange.getStartPosition(),v=n.horizontalGuides===bd.Enabled||n.horizontalGuides===bd.EnabledForActive&&g;if(u.range.startLineNumber===u.range.endLineNumber){v&&r[u.range.startLineNumber-e].push(new hd(-1,u.openingBracketRange.getEndPosition().column,f,new up(!1,b.column),-1,-1));continue}const C=this.getVisibleColumnFromPosition(b),w=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),S=Math.min(w,C,u.minVisibleColumnIndentation+1);let k=!1;kn(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))=e&&w>S&&r[_.lineNumber-e].push(new hd(S,-1,f,new up(!1,_.column),-1,-1)),b.lineNumber<=t&&C>S&&r[b.lineNumber-e].push(new hd(S,-1,f,new up(!k,b.column),-1,-1)))}for(const u of r)u.sort((g,f)=>g.visibleColumn-f.visibleColumn);return r}getVisibleColumnFromPosition(e){return Ci.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(s&&s.offSide),a=new Array(t-e+1);let l=-2,c=-1,d=-2,h=-1;for(let u=e;u<=t;u++){const g=u-e,f=this._computeIndentLevel(u-1);if(f>=0){l=u-1,c=f,a[g]=Math.ceil(f/n.indentSize);continue}if(l===-2){l=-1,c=-1;for(let _=u-2;_>=0;_--){const b=this._computeIndentLevel(_);if(b>=0){l=_,c=b;break}}}if(d!==-1&&(d===-2||d=0){d=_,h=b;break}}}a[g]=this._getIndentLevelForWhitespaceLine(r,c,h)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&w>this._maxIndentLeft)break;const S=C.horizontalLine?C.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",k=C.horizontalLine?((s=(n=e.visibleRangeForPosition(new B(g,C.horizontalLine.endColumn)))===null||n===void 0?void 0:n.left)!==null&&s!==void 0?s:w+this._spaceWidth)-w:this._spaceWidth;b+=`
`}u[f]=b}this._renderResult=u}getGuidesByLine(e,t,i){const n=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?bd.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?bd.EnabledForActive:bd.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&i){const h=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=h.startLineNumber,a=h.endLineNumber,l=h.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),d=[];for(let h=e;h<=t;h++){const u=new Array;d.push(u);const g=n?n[h-e]:[],f=new Rp(g),_=s?s[h-e]:[];for(let b=1;b<=_;b++){const v=(b-1)*c+1,C=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||g.length===0)&&r<=h&&h<=a&&b===l;u.push(...f.takeWhile(S=>S.visibleColumn!0)||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function ub(o){if(!(o&&o.isTransparent()))return o}Et((o,e)=>{const t=o.getColor(u_);t&&e.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${t} inset; }`);const i=o.getColor(g_)||t;i&&e.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=[{bracketColor:U4,guideColor:A$,guideColorActive:B$},{bracketColor:$4,guideColor:M$,guideColorActive:W$},{bracketColor:j4,guideColor:R$,guideColorActive:V$},{bracketColor:K4,guideColor:O$,guideColorActive:H$},{bracketColor:q4,guideColor:P$,guideColorActive:z$},{bracketColor:G4,guideColor:F$,guideColorActive:U$}],s=new s5,r=n.map(a=>{var l,c;const d=o.getColor(a.bracketColor),h=o.getColor(a.guideColor),u=o.getColor(a.guideColorActive),g=ub((l=ub(h))!==null&&l!==void 0?l:d==null?void 0:d.transparent(.3)),f=ub((c=ub(u))!==null&&c!==void 0?c:d);if(!(!g||!f))return{guideColor:g,guideColorActive:f}}).filter(B8);if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}});class Rj{constructor(){this._currentVisibleRange=new L(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Oj{constructor(e,t,i,n,s,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Pj{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,c=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new mt(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Rj,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Ir(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(134)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(46),n=t.get(134),s=t.get(133);return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(91),this._horizontalScrollbarHeight=s.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),an(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(133)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new z2(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Oj(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Pj(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const n=this._getLineNumberFor(i);if(n===-1||n<1||n>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(n)===1)return new B(n,1);const s=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(nr)return null;let a=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const l=this._context.viewModel.getLineMinColumn(n);return ai?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=L.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let r=0;const a=new H2(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new B(n.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(hd)continue;const u=h===n.startLineNumber?n.startColumn:1,g=h===n.endLineNumber?n.endColumn:this._context.viewModel.getLineMaxColumn(h),f=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,u,g,a);if(!!f){if(t&&hthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new H2(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new ZU(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){s=!1;continue}n=Math.max(n,a.getWidth())}return s&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const r=this._visibleLines.getVisibleLine(s);if(r.needsMonospaceFontCheck()){const a=r.getWidth();a>t&&(t=a,e=s)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++)this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const n=this._computeScrollLeftToReveal(i);n&&(this._isViewportWrapping||this._ensureMaxLineWidth(n.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:n.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),dn&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++)if(this._visibleLines.getVisibleLine(s).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let _=s[0].startLineNumber,b=s[0].endLineNumber;for(let v=1,C=s.length;vl){if(!d)return-1;f=h}else if(r===5||r===6)if(r===6&&a<=h&&u<=c)f=a;else{const _=Math.max(5*this._lineHeight,l*.2),b=h-_,v=u-l;f=Math.max(v,b)}else if(r===1||r===2)if(r===2&&a<=h&&u<=c)f=a;else{const _=(h+u)/2;f=Math.max(0,_-l/2)}else f=this._computeMinimumScrolling(a,c,h,u,r===3,r===4);return f}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let s=1073741824,r=0;if(e.type==="range"){const l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;for(const c of l.ranges)s=Math.min(s,Math.round(c.left)),r=Math.max(r,Math.round(c.left+c.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;const c=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!c)return null;for(const d of c.ranges)s=Math.min(s,Math.round(d.left)),r=Math.max(r,Math.round(d.left+d.width))}return e.minimalReveal||(s=Math.max(0,s-y1.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),e.type==="selections"&&r-s>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,s,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,s,r){e=e|0,t=t|0,i=i|0,n=n|0,s=!!s,r=!!r;const a=t-e;if(n-it)return Math.max(0,n-a)}else return i;return e}}y1.HORIZONTAL_EXTRA_PX=30;class Fj extends mE{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(133);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let s=0,r=t.length;s
',l=[];for(let c=t;c<=i;c++){const d=c-t,h=n[d];let u="";for(let g=0,f=h.length;g';s[a]=c}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Us{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Us._clamp(e),this.g=Us._clamp(t),this.b=Us._clamp(i),this.a=Us._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}Us.Empty=new Us(0,0,0,0);class m_ extends H{constructor(){super(),this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Wt.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=new m_),this._INSTANCE}_updateColorMap(){const e=Wt.getColorMap();if(!e){this._colors=[Us.Empty],this._backgroundIsLight=!0;return}this._colors=[Us.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}m_._INSTANCE=null;const Wj=(()=>{const o=[];for(let e=32;e<=126;e++)o.push(e);return o.push(65533),o})(),Vj=(o,e)=>(o-=32,o<0||o>96?e<=2?(o+96)%96:96-1:o);class om{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=om.soften(e,12/15),this.charDataLight=om.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;ne.width||i+f>e.height){console.warn("bad render request outside image data");return}const _=d?this.charDataLight:this.charDataNormal,b=Vj(n,c),v=e.width*4,C=a.r,w=a.g,S=a.b,k=s.r-C,x=s.g-w,y=s.b-S,D=Math.max(r,l),I=e.data;let O=b*u*g,F=i*v+t*4;for(let z=0;ze.width||i+h>e.height){console.warn("bad render request outside image data");return}const u=e.width*4,g=.5*(s/255),f=r.r,_=r.g,b=r.b,v=n.r-f,C=n.g-_,w=n.b-b,S=f+v*g,k=_+C*g,x=b+w*g,y=Math.max(s,a),D=e.data;let I=i*u+t*4;for(let O=0;O{const e=new Uint8ClampedArray(o.length/2);for(let t=0;t>1]=X2[o[t]]<<4|X2[o[t+1]]&15;return e},eA={1:Xa(()=>J2("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Xa(()=>J2("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class gp{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return eA[e]?i=new om(eA[e](),e):i=gp.createFromSampleData(gp.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=`${16}px`,t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold ${16}px ${e}`,i.textBaseline="middle";let n=0;for(const s of Wj)i.fillText(String.fromCharCode(s),n,16/2),n+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=gp._downsample(e,t);return new om(n,t)}static _downsampleChar(e,t,i,n,s){const r=1*s,a=2*s;let l=n,c=0;for(let d=0;d0){const c=255/l;for(let d=0;dgp.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=rm._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=rm._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(EU);return i?new Us(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(NU);return t?Us._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class fp{constructor(e,t,i,n,s,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,s,r,a,l,c,d,h){const u=e.pixelRatio,g=e.minimapLineHeight,f=Math.floor(e.canvasInnerHeight/g),_=e.lineHeight;if(e.minimapHeightIsEditorHeight){const k=l*e.lineHeight+(e.scrollBeyondLastLine?s-e.lineHeight:0),x=Math.max(1,Math.floor(s*s/k)),y=Math.max(0,e.minimapHeight-x),D=y/(d-s),I=c*D,O=y>0,F=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new fp(c,d,O,D,I,x,1,Math.min(a,F))}let b;if(r&&i!==a){const k=i-t+1;b=Math.floor(k*g/u)}else{const k=s/_;b=Math.floor(k*g/u)}let v;e.scrollBeyondLastLine?v=(a-1)*g/u:v=Math.max(0,a*g/u-b),v=Math.min(e.minimapHeight-b,v);const C=v/(d-s),w=c*C;let S=0;if(e.scrollBeyondLastLine&&(S=s/_-1),f>=a+S){const x=a,y=v>0;return new fp(c,d,y,C,w,b,1,x)}else{let k=Math.max(1,Math.floor(t-w*u/g));h&&h.scrollHeight===d&&(h.scrollTop>c&&(k=Math.min(k,h.startLineNumber)),h.scrollTopxv.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let n=0,s=i.length;n1){for(let S=0,k=a-1;S0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=am.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,r=t-e+1;s{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.button===0&&this._lastRenderData){const c=on(this._slider.domNode),d=c.top+c.height/2;this._startSliderDragging(i,d,this._lastRenderData.renderedLayout)}return}const s=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.offsetY;let l=Math.floor(r/s)+this._lastRenderData.renderedLayout.startLineNumber;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderPointerMoveMonitor=new jg,this._sliderPointerDownListener=ki(this._slider.domNode,ae.POINTER_DOWN,i=>{i.preventDefault(),i.stopPropagation(),i.button===0&&this._lastRenderData&&this._startSliderDragging(i,i.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=ft.addTarget(this._domNode.domNode),this._sliderTouchStartListener=G(this._domNode.domNode,xt.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=G(this._domNode.domNode,xt.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=ki(this._domNode.domNode,xt.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(r,a)=>{const l=Math.abs(a-n);if(Yi&&l>Hj){this._model.setScrollTop(i.scrollTop);return}const c=r-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(c))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>s(r.pageY,r.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return this._model.options.showSlider==="always"?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new _E(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return(i=this._lastRenderData)===null||i===void 0||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(B2),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=fp.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(L.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((u,g)=>(u.options.zIndex||0)-(g.options.zIndex||0));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,n,s);const d=new iA(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,d,e,r),this._renderDecorationsLineHighlights(c,i,d,e,r);const h=new iA(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,h,e,r,l,a,n),this._renderDecorationsHighlights(c,i,h,e,r,l,a,n)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const c=Math.max(n.startLineNumber,l.startLineNumber),d=Math.min(n.endLineNumber,l.endLineNumber);if(c>d)continue;for(let g=c;g<=d;g++)i.set(g,!0);const h=(c-n.startLineNumber)*s,u=(d-n.startLineNumber)*s+s;a>=h||(a>r&&e.fillRect(wl,r,e.canvas.width,a-r),r=h),a=u}a>r&&e.fillRect(wl,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,n,s){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],c=l.options.minimap;if(!c||c.position!==js.Inline)continue;const d=Math.max(n.startLineNumber,l.range.startLineNumber),h=Math.min(n.endLineNumber,l.range.endLineNumber);if(d>h)continue;const u=c.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let f=d;f<=h;f++){if(i.has(f))continue;i.set(f,!0);const _=(d-n.startLineNumber)*s;e.fillRect(wl,_,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const c of t){const d=Math.max(n.startLineNumber,c.startLineNumber),h=Math.min(n.endLineNumber,c.endLineNumber);if(!(d>h))for(let u=d;u<=h;u++)this.renderDecorationOnLine(e,i,c,this._selectionColor,n,u,s,s,r,a,l)}}_renderDecorationsHighlights(e,t,i,n,s,r,a,l){for(const c of t){const d=c.options.minimap;if(!d)continue;const h=Math.max(n.startLineNumber,c.range.startLineNumber),u=Math.min(n.endLineNumber,c.range.endLineNumber);if(h>u)continue;const g=d.getColor(this._theme.value);if(!(!g||g.isTransparent()))for(let f=h;f<=u;f++)switch(d.position){case js.Inline:this.renderDecorationOnLine(e,i,c.range,g,n,f,s,s,r,a,l);continue;case js.Gutter:{const _=(f-n.startLineNumber)*s,b=2;this.renderDecoration(e,g,b,_,zj,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,r,a,l,c,d,h){const u=(r-s.startLineNumber)*l;if(u+a<0||u>this._model.options.canvasInnerHeight)return;const{startLineNumber:g,endLineNumber:f}=i,_=g===r?i.startColumn:1,b=f===r?i.endColumn:this._model.getLineMaxColumn(r),v=this.getXOffsetForPosition(t,r,_,c,d,h),C=this.getXOffsetForPosition(t,r,b,c,d,h);this.renderDecoration(e,n,v,u,C-v,a)}getXOffsetForPosition(e,t,i,n,s,r){if(i===1)return wl;if((i-1)*s>=r)return r;let l=e.get(t);if(!l){const c=this._model.getLineContent(t);l=[wl];let d=wl;for(let h=1;h=r){l[h]=r;break}l[h]=f,d=f}e.set(t,l)}return i-1k?Math.floor((n-k)/2):0,y=u.a/255,D=new Us(Math.round((u.r-h.r)*y+h.r),Math.round((u.g-h.g)*y+h.g),Math.round((u.b-h.b)*y+h.b),255);let I=0;const O=[];for(let he=0,Se=i-t+1;he=0&&OC)return;const z=b.charCodeAt(k);if(z===9){const j=u-(k+x)%u;x+=j-1,S+=j*r}else if(z===32)S+=r;else{const j=ic(z)?2:1;for(let re=0;reC)return}}}}}class iA{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}Et((o,e)=>{const t=o.getColor(TU);t&&e.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${t}; }`);const i=o.getColor(AU);i&&e.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`);const n=o.getColor(MU);n&&e.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${n}; }`);const s=o.getColor(Kg);s&&e.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)});class $j extends Is{constructor(e){super(e);const i=this._context.configuration.options.get(133);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._domNode=Je(document.createElement("div")),qr.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=Je(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?!1:(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(e.preference===null){t.setTop("");return}if(e.preference===0)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){const i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i=3){const s=Math.floor(n/3),r=Math.floor(n/3),a=n-s-r,l=e,c=l+s,d=l+s+a;return[[0,l,c,l,d,l,c,l],[0,s,a,s+a,r,s+a+r,a+r,s+a+r]]}else if(i===2){const s=Math.floor(n/2),r=n-s,a=e,l=a+s;return[[0,a,a,a,l,a,a,a],[0,s,s,s,r,s+r,s+r,s+r]]}else{const s=e,r=n;return[[0,s,s,s,s,s,s,s],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Kj extends Is{constructor(e){super(e),this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Wt.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new jj(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(F=t-c),D=F-c,I=F+c}D>C+1||k!==b?(w!==0&&d.fillRect(h[b],v,u[b],C-v),b=k,v=D,C=I):I>C&&(C=I)}d.fillRect(h[b],v,u[b],C-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){const g=2*this._settings.pixelRatio|0,f=g/2|0,_=this._settings.x[7],b=this._settings.w[7];d.fillStyle=this._settings.cursorColor;let v=-100,C=-100;for(let w=0,S=this._cursorPositions.length;wt&&(x=t-f);const y=x-f,D=y+g;y>C+1?(w!==0&&d.fillRect(_,v,b,C-v),v=y,C=D):D>C&&(C=D)}d.fillRect(_,v,b,C-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,t),d.stroke(),d.moveTo(0,0),d.lineTo(e,0),d.stroke())}}class nA{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class lm{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(_=i-b);const v=d.color;let C=this._color2Id[v];C||(C=++this._lastAssignedId,this._color2Id[v]=C,this._id2Color[C]=v);const w=new nA(_-b,_+b,C);d.setColorZone(w),a.push(w)}return this._colorZonesInvalid=!1,a.sort(nA.compare),a}}class Gj extends h_{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=Je(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new qj(n=>this._context.viewLayout.getVerticalOffsetForLineNumber(n)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,r=0,a=0;for(const l of t){const c=l.colorId,d=l.from,h=l.to;c!==s?(e.fillRect(0,r,n,a-r),s=c,e.fillStyle=i[s],r=d,a=h):a>=d?a=Math.max(a,h):(e.fillRect(0,r,n,a-r),r=d,a=h)}e.fillRect(0,r,n,a-r)}}class Zj extends Is{constructor(e){super(e),this.domNode=Je(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(93),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=Je(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(s),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const t=o.getColor(_$);t&&e.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${t} inset; }`)});class Yj extends Is{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const i=this._context.configuration.options.get(94);this._useShadows=i.useShadows,this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(133);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(94);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Et((o,e)=>{const t=o.getColor(Kg);t&&e.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${t} 0 6px 6px -6px inset; }`)});class Qj{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Xj{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Jj(o){return new Qj(o)}function eK(o){return new Xj(o.lineNumber,o.ranges.map(Jj))}class Zt extends qg{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let c=0;!s&&c=0;c--)i[c].lineNumber===l&&(r=i[c].ranges[0]);s&&!s.startStyle&&(s=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const f=t[a-1].ranges[0].left,_=t[a-1].ranges[0].left+t[a-1].ranges[0].width;gb(d-f)f&&(u.top=1),gb(h-_)'}_actualRenderOneSelection(e,t,i,n){if(n.length===0)return;const s=!!n[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=n[0].lineNumber,c=n[n.length-1].lineNumber;for(let d=0,h=n.length;d1,c)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Zt.SELECTION_CLASS_NAME="selected-text";Zt.SELECTION_TOP_LEFT="top-left-radius";Zt.SELECTION_BOTTOM_LEFT="bottom-left-radius";Zt.SELECTION_TOP_RIGHT="top-right-radius";Zt.SELECTION_BOTTOM_RIGHT="bottom-right-radius";Zt.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";Zt.ROUNDED_PIECE_WIDTH=10;Et((o,e)=>{const t=o.getColor(Wa);t&&e.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const i=o.getColor(sE);i&&e.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const n=o.getColor(Tz);n&&!n.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${n}; }`)});function gb(o){return o<0?-o:o}class sA{constructor(e,t,i,n,s,r){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=s,this.textContentClassName=r}}class oA{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(46);this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Je(document.createElement("div")),this._domNode.setClassName(`cursor ${_d}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),an(this._domNode,i),this._domNode.setDisplay("none"),this._position=new B(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(46);return this._cursorStyle=t.get(24),this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),an(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=pB(i,t-1);return[new B(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="";const[i,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===Hi.Line||this._cursorStyle===Hi.LineThin){const u=e.visibleRangeForPosition(i);if(!u||u.outsideRenderedLine)return null;let g;this._cursorStyle===Hi.Line?(g=k2(this._lineCursorWidth>0?this._lineCursorWidth:2),g>2&&(t=n)):g=k2(1);let f=u.left;g>=2&&f>=1&&(f-=1);const _=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new sA(_,f,g,this._lineHeight,t,"")}const s=e.linesVisibleRangesForRange(new L(i.lineNumber,i.column,i.lineNumber,i.column+n.length),!1);if(!s||s.length===0)return null;const r=s[0];if(r.outsideRenderedLine||r.ranges.length===0)return null;const a=r.ranges[0],l=n===" "?this._typicalHalfwidthCharacterWidth:a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===Hi.Block){const u=this._context.viewModel.getViewLineData(i.lineNumber);t=n;const g=u.tokens.findTokenIndexAtOffset(i.column-1);c=u.tokens.getClassName(g)}let d=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,h=this._lineHeight;return(this._cursorStyle===Hi.Underline||this._cursorStyle===Hi.UnderlineThin)&&(d+=this._lineHeight-2,h=2),new sA(d,a.left,l,h,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${_d} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class cm extends Is{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new oA(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Je(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new xs,this._cursorFlatBlinkInterval=new r_,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const i=this._secondaryCursors.length-t.length;for(let n=0;n{for(let n=0,s=e.ranges.length;n{this._isVisible?this._hide():this._show()},cm.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},cm.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case Hi.Line:e+=" cursor-line-style";break;case Hi.Block:e+=" cursor-block-style";break;case Hi.Underline:e+=" cursor-underline-style";break;case Hi.LineThin:e+=" cursor-line-thin-style";break;case Hi.BlockOutline:e+=" cursor-block-outline-style";break;case Hi.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=o.getColor(V4);if(t){let i=o.getColor(p$);i||(i=t.opposite()),e.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),e.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${i}; }`),cn(o.type)&&e.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const mS=()=>{throw new Error("Invalid change accessor")};class tK extends Is{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(133);this._lineHeight=t.get(61),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=Je(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Je(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace(n=>{const s=Object.keys(this._zones);for(let r=0,a=s.length;r{const n={addZone:s=>(t=!0,this._addZone(i,s)),removeZone:s=>{!s||(t=this._removeZone(i,s)||t)},layoutZone:s=>{!s||(t=this._layoutZone(i,s)||t)}};iK(e,n),n.addZone=mS,n.removeZone=mS,n.layoutZone=mS}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:Je(t.domNode),marginDomNode:t.marginDomNode?Je(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){Te(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){Te(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,n=!0);const s=Object.keys(this._zones);for(let r=0,a=s.length;r{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new t$(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new B(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(133);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(130)+" "+fv(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=n4(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){lK(()=>this._actualRender())}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!jI(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new oK(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new qU(this._context.viewLayout,i,this._viewLines);for(const s of e)s.prepareRender(n);for(const s of e)s.render(n),s.onDidRender()}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new B(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?w1.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new Gj(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i;let n=e.position&&e.position.range||null;if(n===null){const r=e.position?e.position.position:null;r!==null&&(n=new L(r.lineNumber,r.column,r.lineNumber,r.column))}const s=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,n,s,(i=(t=e.position)===null||t===void 0?void 0:t.positionAffinity)!==null&&i!==void 0?i:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function lK(o){try{return o()}catch(e){Te(e)}}class Ev{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Vi(new L(1,1,1,1),0,new B(1,1),0),new Vi(new L(1,1,1,1),0,new B(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){!this._trackSelection||(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new $e(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return oe.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,n,i,r),l=this._validatePositionWithCache(e,s,n,a);return i.equals(r)&&n.equals(a)&&s.equals(l)?t:new Vi(L.fromPositions(a,l),t.selectionStartLeftoverVisibleColumns+n.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=Ev._validateViewState(e.viewModel,i)),t){const n=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new Vi(n,s,r,a)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new Vi(n,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new Vi(n,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new B(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new L(n.lineNumber,n.column,s.lineNumber,s.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new Vi(r,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class rA{constructor(e){this.context=e,this.cursors=[new Ev(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return P8(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getBottomMostViewPosition(){return UO(this.cursors,op(e=>e.viewState.position,B.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates($e.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const n=t-i;for(let s=0;s=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ii.selection,L.compareRangesUsingStarts));for(let i=0;ih&&_.index--;e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),i--}}}}class aA{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class cK{constructor(){this.changeType=1}}class er{constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new er(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new er(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,n)=>i.lineNumber===n.lineNumber?i.column===n.column?i.order-n.order:i.column-n.column:i.lineNumber-n.lineNumber),t}}class lA{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class dK{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class hK{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class uK{constructor(){this.changeType=5}}class Vu{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class DK{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class bE{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new bE(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class vE{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new vE(this.oldHasFocus,e.hasFocus)}}class CE{constructor(e,t,i,n,s,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new CE(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class kK{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class xK{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Nv{constructor(e,t,i,n,s,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,n=t.length;if(i!==n)return!1;for(let s=0;s0){const e=this._cursors.getSelections();for(let t=0;tgg.MAX_CURSOR_COUNT&&(n=n.slice(0,gg.MAX_CURSOR_COUNT),s=!0);const r=pp.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n,s,r){const a=this._cursors.getViewPositions();let l=null,c=null;a.length>1?c=this._cursors.getViewSelections():l=L.fromPositions(a[0],a[0]),e.emitViewEvent(new C0(t,i,l,c,n,s,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const s=$e.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,s)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const s=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,$e.fromModelSelections(s))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,$e.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const r=pp.from(this._model,this);if(r.equals(n))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new mK(l,a)),!n||n.cursorState.length!==r.cursorState.length||r.cursorState.some((c,d)=>!c.modelState.equals(n.cursorState[d].modelState))){const c=n?n.cursorState.map(h=>h.modelState.selection):null,d=n?n.modelVersionId:0;e.emitOutgoingEvent(new Nv(c,a,d,r.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const r=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const c=l[0].open,d=s.text.length-r[2].length-1,h=s.text.lastIndexOf(c,d-1);if(h===-1)return null;t.push([h,d])}return t}executeEdits(e,t,i,n){let s=null;t==="snippet"&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,c=>{if(s)for(let h=0,u=s.length;h0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const s=pp.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){Te(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return cA.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new mp(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{t==="keyboard"&&this._executeEditOperation(Pt.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const n=t.length;let s=0;for(;s{const c=l.getPosition();return new oe(c.lineNumber,c.column+s,c.lineNumber,c.column+s)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(Pt.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))},e,r)}paste(e,t,i,n,s){this._executeEdit(()=>{this._executeEditOperation(Pt.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,s,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(Vd.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new An(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new An(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}gg.MAX_CURSOR_COUNT=1e4;class pp{constructor(e,t){this.modelVersionId=e,this.cursorState=t}static from(e,t){return new pp(e.getVersionId(),t.getCursorStates())}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class OK{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let r=0,a=n.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,c=>{const d=[];for(let g=0;gg.identifier.minor-f.identifier.minor,u=[];for(let g=0;g0?(d[g].sort(h),u[g]=t[g].computeCursorState(e.model,{getInverseEditOperations:()=>d[g],getTrackedSelection:f=>{const _=parseInt(f,10),b=e.model._getTrackedRange(e.trackedRanges[_]);return e.trackedRangesDirection[_]===0?new oe(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new oe(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}})):u[g]=e.selectionsBefore[g];return u});a||(a=e.selectionsBefore);const l=[];for(const c in s)s.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((c,d)=>d-c);for(const c of l)a.splice(c,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{L.isEmpty(h)&&u===""||n.push({identifier:{major:t,minor:s++},range:h,text:u,forceMoveMarkers:g,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const d={addEditOperation:r,addTrackedEditOperation:(h,u,g)=>{a=!0,r(h,u,g)},trackSelection:(h,u)=>{const g=oe.liftSelection(h);let f;if(g.isEmpty())if(typeof u=="boolean")u?f=2:f=3;else{const v=e.model.getLineMaxColumn(g.startLineNumber);g.startColumn===v?f=2:f=3}else f=1;const _=e.trackedRanges.length,b=e.model._setTrackedRange(null,g,f);return e.trackedRanges[_]=b,e.trackedRangesDirection[_]=g.getDirection(),_.toString()}};try{i.getEditOperations(e.model,d)}catch(h){return Te(h),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,n)=>-L.compareRangesUsingEnds(i.range,n.range));const t={};for(let i=1;is.identifier.major?r=n.identifier.major:r=s.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class PK{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class mp{constructor(e,t){this._original=mp._capture(e,t)}static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new PK(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}deduceOutcome(e,t){if(!this._original)return null;const i=mp._capture(e,t);if(!i||this._original.length!==i.length)return null;const n=[];for(let s=0,r=this._original.length;s=e}function Ph(o){return ii(o.lineNumber-1,o.column-1)}function ja(o,e){const t=o,i=Math.floor(t/ws),n=t-i*ws,s=e,r=Math.floor(s/ws),a=s-r*ws;return new L(i+1,n+1,r+1,a+1)}function UK(o){const e=jr(o);return ii(e.length-1,e[e.length-1].length)}class dA{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class $K{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(i=>wE.from(i))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return zK(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ii(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Zl(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ii(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(n===0){const r=1<0;)t=t.getChild(i-1);return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const n=WK(e,t,this.lineIdx,this.lineCharOffset);return new Tl(n,0,-1,ui.getEmpty(),new eu(n))}}class YK{constructor(e,t){this.text=e,this._offset=mo,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+`| `,"gi"):null,s=[];let r,a=0,l=0,c=0,d=0;const h=new Array;for(let f=0;f<60;f++)h.push(new Tl(ii(0,f),0,-1,ui.getEmpty(),new eu(ii(0,f))));const u=new Array;for(let f=0;f<60;f++)u.push(new Tl(ii(1,f),0,-1,ui.getEmpty(),new eu(ii(1,f))));if(n)for(n.lastIndex=0;(r=n.exec(e))!==null;){const f=r.index,_=r[0];if(_===` -`)a++,l=f+1;else{if(c!==f){let b;if(d===a){const v=f-c;if(vQK(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(i.kind===2&&i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function QK(o){let e=ys(o);return/^[\w ]+/.test(o)&&(e=`\\b${e}`),/[\w ]+$/.test(o)&&(e=`${e}\\b`),e}class dF{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=LE.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function XK(o){if(o.length===0)return null;if(o.length===1)return o[0];let e=0;function t(){if(e>=o.length)return null;const r=e,a=o[r].listHeight;for(e++;e=2?hF(r===0&&e===o.length?o:o.slice(r,e),!1):o[r]}let i=t(),n=t();if(!n)return i;for(let r=t();r;r=t())uA(i,n)<=uA(n,r)?(i=_S(i,n),n=r):n=_S(n,r);return _S(i,n)}function hF(o,e=!1){if(o.length===0)return null;if(o.length===1)return o[0];let t=o.length;for(;t>3;){const i=t>>1;for(let n=0;n=3?o[2]:null,e)}function uA(o,e){return Math.abs(o.listHeight-e.listHeight)}function _S(o,e){return o.listHeight===e.listHeight?Gr.create23(o,e,null,!1):o.listHeight>e.listHeight?JK(o,e):eq(e,o)}function JK(o,e){o=o.toMutable();let t=o;const i=new Array;let n;for(;;){if(e.listHeight===t.listHeight){n=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(o,n,null,!1):o}function eq(o,e){o=o.toMutable();let t=o;const i=new Array;for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let n=e;for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(n,o,null,!1):o}class tq{constructor(e){this.lastOffset=mo,this.nextNodes=[e],this.offsets=[mo],this.idxs=[]}readLongestNodeAt(e,t){if(Hu(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=Lf(this.nextNodes);if(!i)return;const n=Lf(this.offsets);if(Hu(e,n))return;if(Hu(n,e))if(Xt(n,i.length)<=e)this.nextNodeAfterCurrent();else{const s=bS(i);s!==-1?(this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const s=bS(i);if(s===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)}}}}nextNodeAfterCurrent(){for(;;){const e=Lf(this.offsets),t=Lf(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=Lf(this.nextNodes),n=bS(i,this.idxs[this.idxs.length-1]);if(n!==-1){this.nextNodes.push(i.getChild(n)),this.offsets.push(Xt(e,t.length)),this.idxs[this.idxs.length-1]=n;break}else this.idxs.pop()}}}function bS(o,e=-1){for(;;){if(e++,e>=o.childrenLength)return-1;if(o.getChild(e))return e}}function Lf(o){return o.length>0?o[o.length-1]:void 0}function CD(o,e,t,i){return new iq(o,e,t,i).parseDocument()}class iq{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new tq(i):void 0,this.positionMapper=new $K(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ui.getEmpty());return e||(e=Gr.getEmpty()),e}parseList(e){const t=new Array;for(;;){const n=this.tokenizer.peek();if(!n||n.kind===2&&n.bracketIds.intersects(e))break;const s=this.parseChild(e);s.kind===4&&s.childrenLength===0||t.push(s)}return this.oldNodeReader?XK(t):hF(t,this.createImmutableLists)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!VK(i)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),s=>Hu(s.length,i)?s.canBeReused(e):!1);if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new GK(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),n=this.parseList(i),s=this.tokenizer.peek();return s&&s.kind===2&&(s.bracketId===t.bracketId||s.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),dm.create(t.astNode,n,s.astNode)):dm.create(t.astNode,n,null)}default:throw new Error("unexpected")}}}class nq extends H{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new R,this.denseKeyProvider=new lF,this.brackets=new dF(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,e.tokenization.backgroundTokenizationState===0){const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),n=new YK(this.textModel.getValue(),i);this.initialAstWithoutTokens=CD(n,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else e.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):e.tokenization.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new dA(ii(i.fromLineNumber-1,0),ii(i.toLineNumber,0),ii(i.toLineNumber-i.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map(i=>{const n=L.lift(i.range);return new dA(Ph(n.getStartPosition()),Ph(n.getEndPosition()),UK(i.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const n=t,s=new cF(this.textModel,this.brackets);return CD(s,e,n,i)}getBracketsInRange(e){const t=ii(e.startLineNumber-1,e.startColumn-1),i=ii(e.endLineNumber-1,e.endColumn-1),n=new Array,s=this.initialAstWithoutTokens||this.astWithTokens;return wD(s,mo,s.length,t,i,n,0,new Map),n}getBracketPairsInRange(e,t){const i=new Array,n=Ph(e.getStartPosition()),s=Ph(e.getEndPosition()),r=this.initialAstWithoutTokens||this.astWithTokens,a=new sq(i,t,this.textModel);return SD(r,mo,r.length,n,s,a,0,new Map),i}getFirstBracketAfter(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return gF(t,mo,t.length,Ph(e))}getFirstBracketBefore(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return uF(t,mo,t.length,Ph(e))}}function uF(o,e,t,i){if(o.kind===4||o.kind===2){const n=[];for(const s of o.children)t=Xt(e,s.length),n.push({nodeOffsetStart:e,nodeOffsetEnd:t}),e=t;for(let s=n.length-1;s>=0;s--){const{nodeOffsetStart:r,nodeOffsetEnd:a}=n[s];if(Hu(r,i)){const l=uF(o.children[s],r,a,i);if(l)return l}}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function gF(o,e,t,i){if(o.kind===4||o.kind===2){for(const n of o.children){if(t=Xt(e,n.length),Hu(i,t)){const s=gF(n,e,t,i);if(s)return s}e=t}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function wD(o,e,t,i,n,s,r,a){if(!(r>200)){if(o.kind===4)for(const l of o.children)t=Xt(e,l.length),Fl(e,n)&&Gf(t,i)&&wD(l,e,t,i,n,s,r,a),e=t;else if(o.kind===2){let l=0;if(a){let c=a.get(o.openingBracket.text);c===void 0&&(c=0),l=c,c++,a.set(o.openingBracket.text,c)}{const c=o.openingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!o.closingBracket))}e=t}if(o.child){const c=o.child;t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)&&wD(c,e,t,i,n,s,r+1,a),e=t}if(o.closingBracket){const c=o.closingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!1))}e=t}a==null||a.set(o.openingBracket.text,l)}else if(o.kind===3){const l=ja(e,t);s.push(new mb(l,r-1,0,!0))}else if(o.kind===1){const l=ja(e,t);s.push(new mb(l,r-1,0,!1))}}}class sq{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function SD(o,e,t,i,n,s,r,a){var l;if(!(r>200))if(o.kind===2){let c=0;if(a){let u=a.get(o.openingBracket.text);u===void 0&&(u=0),c=u,u++,a.set(o.openingBracket.text,u)}const d=Xt(e,o.openingBracket.length);let h=-1;if(s.includeMinIndentation&&(h=o.computeMinIndentation(e,s.textModel)),s.result.push(new BK(ja(e,t),ja(e,d),o.closingBracket?ja(Xt(d,((l=o.child)===null||l===void 0?void 0:l.length)||mo),t):void 0,r,c,o,h)),e=d,o.child){const u=o.child;t=Xt(e,u.length),Fl(e,n)&&Gf(t,i)&&SD(u,e,t,i,n,s,r+1,a)}a==null||a.set(o.openingBracket.text,c)}else{let c=e;for(const d of o.children){const h=c;c=Xt(c,d.length),Fl(h,n)&&Fl(i,c)&&SD(d,h,c,i,n,s,r,a)}}}class oq extends H{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new _n),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var n;(!i.languageId||((n=this.bracketPairsTree.value)===null||n===void 0?void 0:n.object.didLanguageChange(i.languageId)))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get canBuildAST(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const e=new Q;this.bracketPairsTree.value=rq(e.add(new nq(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketsInRange(e))||[]}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!r)return null;const a=j0(this.getBracketPairsInRange(L.fromPositions(t,t))||[],l=>r.closes(l.openingBracketInfo));return a?a.openingBracketRange:null}else{const r=e.toLowerCase(),a=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!a)return null;const l=a.textIsBracket[r];return l?_b(this._findMatchingBracketUp(l,n,vS(i))):null}}matchBracket(e,t){if(this.canBuildAST){const i=UO(this.getBracketPairsInRange(L.fromPositions(e,e)).filter(n=>n.closingBracketRange!==void 0&&(n.openingBracketRange.containsPosition(e)||n.closingBracketRange.containsPosition(e))),op(n=>n.openingBracketRange.containsPosition(e)?n.openingBracketRange:n.closingBracketRange,L.compareRangesUsingStarts));return i?[i.openingBracketRange,i.closingBracketRange]:null}else{const i=vS(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),r=t.getLanguageId(n);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let c=n-1;c>=0;c--){const d=t.getEndOffset(c);if(d<=a)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=d;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=n+1;c=l)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){l=d;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!mr(n.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(e,n,a,r),d=null;for(;;){const h=lo.findNextBracketInRange(a.forwardRegex,i,s,l,c);if(!h)break;if(h.startColumn<=e.column&&e.column<=h.endColumn){const u=s.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),g=this._matchFoundBracket(h,a.textIsBracket[u],a.textIsOpenBracket[u],t);if(g){if(g instanceof Da)return null;d=g}}l=h.endColumn-1}if(d)return d}if(r>0&&n.getStartOffset(r)===e.column-1){const l=r-1,c=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(l)).brackets;if(c&&!mr(n.getStandardTokenType(l))){const{searchStartOffset:d,searchEndOffset:h}=this._establishBracketSearchOffsets(e,n,c,l),u=lo.findPrevBracketInRange(c.reversedRegex,i,s,d,h);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn){const g=s.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),f=this._matchFoundBracket(u,c.textIsBracket[g],c.textIsOpenBracket[g],t);if(f)return f instanceof Da?null:f}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof Da?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let r=-1,a=0;const l=(c,d,h,u)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const g=lo.findPrevBracketInRange(s,c,d,h,u);if(!g)break;const f=d.substring(g.startColumn-1,g.endColumn-1).toLowerCase();if(e.isOpen(f)?r++:e.isClose(f)&&r--,r===0)return g;u=g.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const d=this.textModel.tokenization.getLineTokens(c),h=d.getCount(),u=this.textModel.getLineContent(c);let g=h-1,f=u.length,_=u.length;c===t.lineNumber&&(g=d.findTokenIndexAtOffset(t.column-1),f=t.column-1,_=t.column-1);let b=!0;for(;g>=0;g--){const v=d.getLanguageId(g)===n&&!mr(d.getStandardTokenType(g));if(v)b?f=d.getStartOffset(g):(f=d.getStartOffset(g),_=d.getEndOffset(g));else if(b&&f!==_){const C=l(c,u,f,_);if(C)return C}b=v}if(b&&f!==_){const v=l(c,u,f,_);if(v)return v}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let r=1,a=0;const l=(d,h,u,g)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const f=lo.findNextBracketInRange(s,d,h,u,g);if(!f)break;const _=h.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(_)?r++:e.isClose(_)&&r--,r===0)return f;u=f.endColumn-1}return null},c=this.textModel.getLineCount();for(let d=t.lineNumber;d<=c;d++){const h=this.textModel.tokenization.getLineTokens(d),u=h.getCount(),g=this.textModel.getLineContent(d);let f=0,_=0,b=0;d===t.lineNumber&&(f=h.findTokenIndexAtOffset(t.column-1),_=t.column-1,b=t.column-1);let v=!0;for(;f=1;a--){const l=this.textModel.tokenization.getLineTokens(a),c=l.getCount(),d=this.textModel.getLineContent(a);let h=c-1,u=d.length,g=d.length;if(a===i.lineNumber){h=l.findTokenIndexAtOffset(i.column-1),u=i.column-1,g=i.column-1;const _=l.getLanguageId(h);n!==_&&(n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let f=!0;for(;h>=0;h--){const _=l.getLanguageId(h);if(n!==_){if(s&&r&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v);f=!1}n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const b=!!s&&!mr(l.getStandardTokenType(h));if(b)f?u=l.getStartOffset(h):(u=l.getStartOffset(h),g=l.getEndOffset(h));else if(r&&s&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v)}f=b}if(r&&s&&f&&u!==g){const _=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(_)return this._toFoundBracket(r,_)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,r=null,a=null;for(let l=i.lineNumber;l<=n;l++){const c=this.textModel.tokenization.getLineTokens(l),d=c.getCount(),h=this.textModel.getLineContent(l);let u=0,g=0,f=0;if(l===i.lineNumber){u=c.findTokenIndexAtOffset(i.column-1),g=i.column-1,f=i.column-1;const b=c.getLanguageId(u);s!==b&&(s=b,r=this.languageConfigurationService.getLanguageConfiguration(s).brackets,a=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let _=!0;for(;u_.closingBracketRange!==void 0&&_.range.strictContainsRange(g));return f?[f.openingBracketRange,f.closingBracketRange]:null}const n=vS(t),s=this.textModel.getLineCount(),r=new Map;let a=[];const l=(g,f)=>{if(!r.has(g)){const _=[];for(let b=0,v=f?f.brackets.length:0;b{for(;;){if(n&&++c%100===0&&!n())return Da.INSTANCE;const C=lo.findNextBracketInRange(g.forwardRegex,f,_,b,v);if(!C)break;const w=_.substring(C.startColumn-1,C.endColumn-1).toLowerCase(),S=g.textIsBracket[w];if(S&&(S.isOpen(w)?a[S.index]++:S.isClose(w)&&a[S.index]--,a[S.index]===-1))return this._matchFoundBracket(C,S,!1,n);b=C.endColumn-1}return null};let h=null,u=null;for(let g=i.lineNumber;g<=s;g++){const f=this.textModel.tokenization.getLineTokens(g),_=f.getCount(),b=this.textModel.getLineContent(g);let v=0,C=0,w=0;if(g===i.lineNumber){v=f.findTokenIndexAtOffset(i.column-1),C=i.column-1,w=i.column-1;const k=f.getLanguageId(v);h!==k&&(h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u))}let S=!0;for(;v<_;v++){const k=f.getLanguageId(v);if(h!==k){if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y);S=!1}h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u)}const x=!!u&&!mr(f.getStandardTokenType(v));if(x)S||(C=f.getStartOffset(v)),w=f.getEndOffset(v);else if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y)}S=x}if(u&&S&&C!==w){const k=d(u,g,b,C,w);if(k)return _b(k)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.getBracketInfo(i);return n?{range:t,bracketInfo:n}:null}}function rq(o,e){return{object:o,dispose:()=>e==null?void 0:e.dispose()}}function vS(o){if(typeof o>"u")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=o}}class Da{constructor(){this._searchCanceledBrand=void 0}}Da.INSTANCE=new Da;function _b(o){return o instanceof Da?null:o}class aq extends H{constructor(e){super(),this.textModel=e,this.colorProvider=new fF,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(t===void 0)return[];if(!this.colorizationOptions.enabled)return[];const n=new Array,s=this.textModel.bracketPairs.getBracketsInRange(e);for(const r of s)n.push({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:r.range});return n}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new L(1,1,this.textModel.getLineCount(),1),e,t):[]}}class fF{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}Et((o,e)=>{const t=[U4,$4,j4,K4,q4,G4],i=new fF;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${o.getColor(T$)}; }`);const n=t.map(s=>o.getColor(s)).filter(s=>!!s).filter(s=>!s.isTransparent());for(let s=0;s<30;s++){const r=n[s%n.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${r}; }`)}});function bb(o){return o.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class $i{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${bb(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${bb(this.oldText)}")`:`(replace@${this.oldPosition} "${bb(this.oldText)}" with "${bb(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;No(e,n,i),i+=4;for(let s=0;so.length)return!1;if(t){if(!vI(o,e))return!1;if(e.length===o.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,o.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),o.indexOf(e)===0}function mF(o){return o>=65&&o<=90||o>=97&&o<=122}function dq(o,e=Yi){return e?mF(o.charCodeAt(0))&&o.charCodeAt(1)===58:!1}function _r(o){return Q0(o,!0)}class DE{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Bp(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1: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===Me.file)return yD(_r(e),_r(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(pA(e.authority,t.authority))return yD(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return _e.joinPath(e,...t)}basenameOrAuthority(e){return Js(e)||e.authority}basename(e){return gi.basename(e.path)}extname(e){return gi.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Me.file?t=_e.file(sP(_r(e))).path:(t=gi.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(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 e.scheme===Me.file?t=_e.file(nP(_r(e))).path:t=gi.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!pA(e.authority,t.authority))return;if(e.scheme===Me.file){const s=Z6(_r(e),_r(t));return Yi?pF(s):s}let i=e.path||"/";const n=t.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const r=Math.min(i.length,n.length);sgA(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Br){return mA(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Br){let i=!1;if(e.scheme===Me.file){const n=_r(e);i=n!==void 0&&n.length===gA(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=n.length===1&&n.charCodeAt(n.length-1)===47}return!i&&!mA(e,t)?e.with({path:e.path+"/"}):e}}const It=new DE(()=>!1);new DE(o=>o.scheme===Me.file?!dn:!0);new DE(o=>!0);const _F=It.isEqual.bind(It);It.isEqualOrParent.bind(It);It.getComparisonKey.bind(It);const hq=It.basenameOrAuthority.bind(It),Js=It.basename.bind(It),uq=It.extname.bind(It),L1=It.dirname.bind(It),gq=It.joinPath.bind(It),fq=It.normalizePath.bind(It),pq=It.relativePath.bind(It),fA=It.resolvePath.bind(It);It.isAbsolutePath.bind(It);const pA=It.isEqualAuthority.bind(It),mA=It.hasTrailingPathSeparator.bind(It);It.removeTrailingPathSeparator.bind(It);It.addTrailingPathSeparator.bind(It);var cc;(function(o){o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(o.META_DATA_MIME,s),i}o.parseMetaData=e})(cc||(cc={}));function Fh(o){return o.toString()}class Ni{constructor(e,t,i,n,s,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=r,this.changes=a}static create(e,t){const i=e.getAlternativeVersionId(),n=LD(e);return new Ni(i,i,n,n,t,t,[])}append(e,t,i,n,s){t.length>0&&(this.changes=lq(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(No(e,t?t.length:0,i),i+=4,t)for(const n of t)No(e,n.selectionStartLineNumber,i),i+=4,No(e,n.selectionStartColumn,i),i+=4,No(e,n.positionLineNumber,i),i+=4,No(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=Eo(e,t);t+=4;for(let s=0;st.toString()).join(", ")}matchesResource(e){return(_e.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ni}append(e,t,i,n,s){this._data instanceof Ni&&this._data.append(e,t,i,n,s)}close(){this._data instanceof Ni&&(this._data=this._data.serialize())}open(){this._data instanceof Ni||(this._data=Ni.deserialize(this._data))}undo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ni&&(this._data=this._data.serialize()),this._data.byteLength+168}}class mq{constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const s=Fh(n.resource);this._editStackElementsMap.set(s,n)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Fh(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Fh(_e.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Fh(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,n,s){const r=Fh(e.uri);this._editStackElementsMap.get(r).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Fh(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${Js(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function LD(o){return o.getEOL()===` -`?0:1}function ka(o){return o?o instanceof bF||o instanceof mq:!1}class kE{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(ka(t)&&t.canAppend(this._model))return t;const i=new bF(p("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],LD(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),s=this._model.applyEdits(t,!0),r=kE._computeCursorState(i,s),a=s.map((l,c)=>({index:c,textChange:l.textChange}));return a.sort((l,c)=>l.textChange.oldPosition===c.textChange.oldPosition?l.index-c.index:l.textChange.oldPosition-c.textChange.oldPosition),n.append(this._model,a.map(l=>l.textChange),LD(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return Te(i),null}}}class _q{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function bq(o,e,t,i,n){n.spacesDiff=0,n.looksLikeAlignment=!1;let s;for(s=0;s0&&a>0||l>0&&c>0)return;const d=Math.abs(a-c),h=Math.abs(r-l);if(d===0){n.spacesDiff=h,h>0&&0<=l-1&&l-10?n++:S>1&&s++,bq(r,a,b,w,h),h.looksLikeAlignment&&!(t&&e===h.spacesDiff)))continue;const x=h.spacesDiff;x<=c&&d[x]++,r=b,a=w}let u=t;n!==s&&(u=n{const b=d[_];b>f&&(f=b,g=_)}),g===4&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(g=2)}return{insertSpaces:u,tabSize:g}}function Mn(o){return(o.metadata&1)>>>0}function Lt(o,e){o.metadata=o.metadata&254|e<<0}function Zi(o){return(o.metadata&2)>>>1===1}function St(o,e){o.metadata=o.metadata&253|(e?1:0)<<1}function vF(o){return(o.metadata&4)>>>2===1}function bA(o,e){o.metadata=o.metadata&251|(e?1:0)<<2}function vq(o){return(o.metadata&24)>>>3}function vA(o,e){o.metadata=o.metadata&231|e<<3}function Cq(o){return(o.metadata&32)>>>5===1}function CA(o,e){o.metadata=o.metadata&223|(e?1:0)<<5}class CF{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,Lt(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,bA(this,!1),vA(this,1),CA(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,St(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;bA(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),vA(this,this.options.stickiness),CA(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const Oe=new CF(null,0,0);Oe.parent=Oe;Oe.left=Oe;Oe.right=Oe;Lt(Oe,0);class CS{constructor(){this.root=Oe,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s){return this.root===Oe?[]:Iq(this,e,t,i,n,s)}search(e,t,i){return this.root===Oe?[]:xq(this,e,t,i)}collectNodesFromOwner(e){return Dq(this,e)}collectNodesPostOrder(){return kq(this)}insert(e){wA(this,e),this._normalizeDeltaIfNecessary()}delete(e){SA(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,r=i.end+n;i.setCachedOffsets(s,r,t)}acceptReplace(e,t,i,n){const s=yq(this,e,e+t);for(let r=0,a=s.length;rt||i===1?!1:i===2?!0:e}function Sq(o,e,t,i,n){const s=vq(o),r=s===0||s===2,a=s===1||s===2,l=t-e,c=i,d=Math.min(l,c),h=o.start;let u=!1;const g=o.end;let f=!1;e<=h&&g<=t&&Cq(o)&&(o.start=e,u=!0,o.end=e,f=!0);{const b=n?1:l>0?2:0;!u&&Bh(h,r,e,b)&&(u=!0),!f&&Bh(g,a,e,b)&&(f=!0)}if(d>0&&!n){const b=l>c?2:0;!u&&Bh(h,r,e+d,b)&&(u=!0),!f&&Bh(g,a,e+d,b)&&(f=!0)}{const b=n?1:0;!u&&Bh(h,r,t,b)&&(o.start=e+c,u=!0),!f&&Bh(g,a,t,b)&&(o.end=e+c,f=!0)}const _=c-l;u||(o.start=Math.max(0,h+_)),f||(o.end=Math.max(0,g+_)),o.start>o.end&&(o.end=o.start)}function yq(o,e,t){let i=o.root,n=0,s=0,r=0,a=0;const l=[];let c=0;for(;i!==Oe;){if(Zi(i)){St(i.left,!1),St(i.right,!1),i===i.parent.right&&(n-=i.parent.delta),i=i.parent;continue}if(!Zi(i.left)){if(s=n+i.maxEnd,st){St(i,!0);continue}if(a=n+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[c++]=i),St(i,!0),i.right!==Oe&&!Zi(i.right)){n+=i.delta,i=i.right;continue}}return St(o.root,!1),l}function Lq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=i-(t-e);for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),dc(n),n=n.parent;continue}if(!Zi(n.left)){if(r=s+n.maxEnd,rt){n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(o.requestNormalizeDelta=!0),St(n,!0);continue}if(St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}St(o.root,!1)}function Dq(o,e){let t=o.root;const i=[];let n=0;for(;t!==Oe;){if(Zi(t)){St(t.left,!1),St(t.right,!1),t=t.parent;continue}if(t.left!==Oe&&!Zi(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[n++]=t),St(t,!0),t.right!==Oe&&!Zi(t.right)){t=t.right;continue}}return St(o.root,!1),i}function kq(o){let e=o.root;const t=[];let i=0;for(;e!==Oe;){if(Zi(e)){St(e.left,!1),St(e.right,!1),e=e.parent;continue}if(e.left!==Oe&&!Zi(e.left)){e=e.left;continue}if(e.right!==Oe&&!Zi(e.right)){e=e.right;continue}t[i++]=e,St(e,!0)}return St(o.root,!1),t}function xq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=[];let c=0;for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),n=n.parent;continue}if(n.left!==Oe&&!Zi(n.left)){n=n.left;continue}r=s+n.start,a=s+n.end,n.setCachedOffsets(r,a,i);let d=!0;if(e&&n.ownerId&&n.ownerId!==e&&(d=!1),t&&vF(n)&&(d=!1),d&&(l[c++]=n),St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}return St(o.root,!1),l}function Iq(o,e,t,i,n,s){let r=o.root,a=0,l=0,c=0,d=0;const h=[];let u=0;for(;r!==Oe;){if(Zi(r)){St(r.left,!1),St(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;continue}if(!Zi(r.left)){if(l=a+r.maxEnd,lt){St(r,!0);continue}if(d=a+r.end,d>=e){r.setCachedOffsets(c,d,s);let g=!0;i&&r.ownerId&&r.ownerId!==i&&(g=!1),n&&vF(r)&&(g=!1),g&&(h[u++]=r)}if(St(r,!0),r.right!==Oe&&!Zi(r.right)){a+=r.delta,r=r.right;continue}}return St(o.root,!1),h}function wA(o,e){if(o.root===Oe)return e.parent=Oe,e.left=Oe,e.right=Oe,Lt(e,0),o.root=e,o.root;Eq(o,e),Dl(e.parent);let t=e;for(;t!==o.root&&Mn(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,_p(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),bp(o,t.parent.parent))}else{const i=t.parent.parent.left;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,bp(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),_p(o,t.parent.parent))}return Lt(o.root,0),e}function Eq(o,e){let t=0,i=o.root;const n=e.start,s=e.end;for(;;)if(Tq(n,s,i.start+t,i.end+t)<0)if(i.left===Oe){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===Oe){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=Oe,e.right=Oe,Lt(e,1)}function SA(o,e){let t,i;if(e.left===Oe?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===Oe?(t=e.left,i=e):(i=Nq(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(o.requestNormalizeDelta=!0)),i===o.root){o.root=t,Lt(t,0),e.detach(),wS(),dc(t),o.root.parent=Oe;return}const n=Mn(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,Lt(i,Mn(e)),e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Oe&&(i.left.parent=i),i.right!==Oe&&(i.right.parent=i)),e.detach(),n){Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent)),wS();return}Dl(t),Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent));let s;for(;t!==o.root&&Mn(t)===0;)t===t.parent.left?(s=t.parent.right,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),_p(o,t.parent),s=t.parent.right),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.right)===0&&(Lt(s.left,0),Lt(s,1),bp(o,s),s=t.parent.right),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.right,0),_p(o,t.parent),t=o.root)):(s=t.parent.left,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),bp(o,t.parent),s=t.parent.left),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.left)===0&&(Lt(s.right,0),Lt(s,1),_p(o,s),s=t.parent.left),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.left,0),bp(o,t.parent),t=o.root));Lt(t,0),wS()}function Nq(o){for(;o.left!==Oe;)o=o.left;return o}function wS(){Oe.parent=Oe,Oe.delta=0,Oe.start=0,Oe.end=0}function _p(o,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==Oe&&(t.left.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,dc(e),dc(t)}function bp(o,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(o.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==Oe&&(t.right.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,dc(e),dc(t)}function wF(o){let e=o.end;if(o.left!==Oe){const t=o.left.maxEnd;t>e&&(e=t)}if(o.right!==Oe){const t=o.right.maxEnd+o.delta;t>e&&(e=t)}return e}function dc(o){o.maxEnd=wF(o)}function Dl(o){for(;o!==Oe;){const e=wF(o);if(o.maxEnd===e)return;o.maxEnd=e,o=o.parent}}function Tq(o,e,t,i){return o===t?e-i:o-t}class DD{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Ie)return xE(this.right);let e=this;for(;e.parent!==Ie&&e.parent.left!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}prev(){if(this.left!==Ie)return SF(this.left);let e=this;for(;e.parent!==Ie&&e.parent.right!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ie=new DD(null,0);Ie.parent=Ie;Ie.left=Ie;Ie.right=Ie;Ie.color=0;function xE(o){for(;o.left!==Ie;)o=o.left;return o}function SF(o){for(;o.right!==Ie;)o=o.right;return o}function IE(o){return o===Ie?0:o.size_left+o.piece.length+IE(o.right)}function EE(o){return o===Ie?0:o.lf_left+o.piece.lineFeedCnt+EE(o.right)}function SS(){Ie.parent=Ie}function vp(o,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==Ie&&(t.left.parent=e),t.parent=e.parent,e.parent===Ie?o.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function Cp(o,e){const t=e.left;e.left=t.right,t.right!==Ie&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===Ie?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function vb(o,e){let t,i;if(e.left===Ie?(i=e,t=i.right):e.right===Ie?(i=e,t=i.left):(i=xE(e.right),t=i.right),i===o.root){o.root=t,t.color=0,e.detach(),SS(),o.root.parent=Ie;return}const n=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,Zf(o,t)):(i.parent===e?t.parent=i:t.parent=i.parent,Zf(o,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Ie&&(i.left.parent=i),i.right!==Ie&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,Zf(o,i)),e.detach(),t.parent.left===t){const r=IE(t),a=EE(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,c=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,ma(o,t.parent,l,c)}}if(Zf(o,t.parent),n){SS();return}let s;for(;t!==o.root&&t.color===0;)t===t.parent.left?(s=t.parent.right,s.color===1&&(s.color=0,t.parent.color=1,vp(o,t.parent),s=t.parent.right),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.right.color===0&&(s.left.color=0,s.color=1,Cp(o,s),s=t.parent.right),s.color=t.parent.color,t.parent.color=0,s.right.color=0,vp(o,t.parent),t=o.root)):(s=t.parent.left,s.color===1&&(s.color=0,t.parent.color=1,Cp(o,t.parent),s=t.parent.left),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.left.color===0&&(s.right.color=0,s.color=1,vp(o,s),s=t.parent.left),s.color=t.parent.color,t.parent.color=0,s.left.color=0,Cp(o,t.parent),t=o.root));t.color=0,SS()}function yA(o,e){for(Zf(o,e);e!==o.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,vp(o,e)),e.parent.color=0,e.parent.parent.color=1,Cp(o,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,Cp(o,e)),e.parent.color=0,e.parent.parent.color=1,vp(o,e.parent.parent))}o.root.color=0}function ma(o,e,t,i){for(;e!==o.root&&e!==Ie;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function Zf(o,e){let t=0,i=0;if(e!==o.root){for(;e!==o.root&&e===e.parent.right;)e=e.parent;if(e!==o.root)for(e=e.parent,t=IE(e.left)-e.size_left,i=EE(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==o.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const ca=65535;function yF(o){let e;return o[o.length-1]<65536?e=new Uint16Array(o.length):e=new Uint32Array(o.length),e.set(o,0),e}class Aq{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function Ca(o,e=!0){const t=[0];let i=1;for(let n=0,s=o.length;n126)&&(r=!1)}const a=new Aq(yF(o),i,n,s,r);return o.length=0,a}class qn{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class Jc{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Rq{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Ie&&e.iterate(e.root,i=>(i!==Ie&&this._pieces.push(i.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Oq{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e){i[n]=null,t=!0;continue}}if(t){const n=[];for(const s of i)s!==null&&n.push(s);this._cache=n}}}class Pq{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Jc("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ie,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,r=e.length;s0){e[s].lineStarts||(e[s].lineStarts=Ca(e[s].buffer));const a=new qn(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,a)}this._searchCache=new Oq(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=ca,i=t-Math.floor(t/3),n=i*2;let s="",r=0;const a=[];if(this.iterate(this.root,l=>{const c=this.getNodeContent(l),d=c.length;if(r<=i||r+d0){const l=s.replace(/\r\n|\r|\n/g,e);a.push(new Jc(l,Ca(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Rq(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==Ie;)if(n.left!==Ie&&n.lf_left+1>=e)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;const s=this.getAccumulatedValue(n,e-n.lf_left-2);return i+=s+t-1}else e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right;return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==Ie;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,s.index===0){const r=this.getOffsetAt(i+1,1),a=n-r;return new B(i+1,a+1)}return new B(i+1,s.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Ie){const s=this.getOffsetAt(i+1,1),r=n-e-s;return new B(i+1,r+1)}else t=t.right;return new B(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t!==this._EOL||!this._EOLNormalized?s.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(c+e.remainder,c+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==Ie;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,s=>{if(s===Ie)return!0;const r=s.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,d=r.start.line,h=r.end.line;let u=c[d]+r.start.column;if(n&&(l.charCodeAt(u)===10&&(u++,a--),e[t++]=i,i="",n=!1,a===0))return!0;if(d===h)return!this._EOLNormalized&&l.charCodeAt(u+a-1)===13?(n=!0,i+=l.substr(u,a-1)):i+=l.substr(u,a),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,c[d+1]-this._EOLLength)):l.substring(u,c[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let g=d+1;gS+f,t.reset(0)):(C=u.buffer,w=S=>S,t.reset(f));do if(b=t.next(C),b){if(w(b.index)>=_)return d;this.positionInBuffer(e,w(b.index)-g,v);const S=this.getLineFeedCnt(e.piece.bufferIndex,s,v),k=v.line===s.line?v.column-s.column+n:v.column+1,x=k+b[0].length;if(h[d++]=Gc(new L(i+S,k,i+S,x),b,l),w(b.index)+b[0].length>=_||d>=c)return d}while(b);return d}findMatchesLineByLine(e,t,i,n){const s=[];let r=0;const a=new du(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(c===null)return[];let d=this.positionInBuffer(l.node,l.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(l.node===c.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,d,h,t,i,n,r,s),s;let u=e.startLineNumber,g=l.node;for(;g!==c.node;){const _=this.getLineFeedCnt(g.piece.bufferIndex,d,g.piece.end);if(_>=1){const v=this._buffers[g.piece.bufferIndex].lineStarts,C=this.offsetInBuffer(g.piece.bufferIndex,g.piece.start),w=v[d.line+_],S=u===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(g,a,u,S,d,this.positionInBuffer(g,w-C),t,i,n,r,s),r>=n)return s;u+=_}const b=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const v=this.getLineContent(u).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,a,v,e.endLineNumber,b,r,s,i,n),s}if(r=this._findMatchesInLine(t,a,this.getLineContent(u).substr(b),u,b,r,s,i,n),r>=n)return s;u++,l=this.nodeAt2(u,1),g=l.node,d=this.positionInBuffer(l.node,l.remainder)}if(u===e.endLineNumber){const _=u===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(u).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,s,i,n),s}const f=u===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,a,u,f,d,h,t,i,n,r,s),s}_findMatchesInLine(e,t,i,n,s,r,a,l,c){const d=e.wordSeparators;if(!l&&e.simpleSearch){const u=e.simpleSearch,g=u.length,f=i.length;let _=-g;for(;(_=i.indexOf(u,_+g))!==-1;)if((!d||FI(d,i,f,_,g))&&(a[r++]=new Vp(new L(n,_+1+s,n,_+1+g+s),null),r>=c))return r;return r}let h;t.reset(0);do if(h=t.next(i),h&&(a[r++]=Gc(new L(n,h.index+1+s,n,h.index+1+h[0].length+s),h,l),r>=c))return r;while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ie){const{node:n,remainder:s,nodeStartOffset:r}=this.nodeAt(e),a=n.piece,l=a.bufferIndex,c=this.positionInBuffer(n,s);if(n.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const d=[];let h=new qn(a.bufferIndex,c,a.end,this.getLineFeedCnt(a.bufferIndex,c,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(n,s)===10){const _={line:h.start.line+1,column:0};h=new qn(h.bufferIndex,_,h.end,this.getLineFeedCnt(h.bufferIndex,_,h.end),h.length-1),t+=` +`)a++,l=f+1;else{if(c!==f){let b;if(d===a){const v=f-c;if(vQK(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(i.kind===2&&i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function QK(o){let e=ys(o);return/^[\w ]+/.test(o)&&(e=`\\b${e}`),/[\w ]+$/.test(o)&&(e=`${e}\\b`),e}class d5{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=LE.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function XK(o){if(o.length===0)return null;if(o.length===1)return o[0];let e=0;function t(){if(e>=o.length)return null;const r=e,a=o[r].listHeight;for(e++;e=2?h5(r===0&&e===o.length?o:o.slice(r,e),!1):o[r]}let i=t(),n=t();if(!n)return i;for(let r=t();r;r=t())uA(i,n)<=uA(n,r)?(i=_S(i,n),n=r):n=_S(n,r);return _S(i,n)}function h5(o,e=!1){if(o.length===0)return null;if(o.length===1)return o[0];let t=o.length;for(;t>3;){const i=t>>1;for(let n=0;n=3?o[2]:null,e)}function uA(o,e){return Math.abs(o.listHeight-e.listHeight)}function _S(o,e){return o.listHeight===e.listHeight?Gr.create23(o,e,null,!1):o.listHeight>e.listHeight?JK(o,e):eq(e,o)}function JK(o,e){o=o.toMutable();let t=o;const i=new Array;let n;for(;;){if(e.listHeight===t.listHeight){n=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(o,n,null,!1):o}function eq(o,e){o=o.toMutable();let t=o;const i=new Array;for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let n=e;for(let s=i.length-1;s>=0;s--){const r=i[s];n?r.childrenLength>=3?n=Gr.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?Gr.create23(n,o,null,!1):o}class tq{constructor(e){this.lastOffset=mo,this.nextNodes=[e],this.offsets=[mo],this.idxs=[]}readLongestNodeAt(e,t){if(Hu(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=Lf(this.nextNodes);if(!i)return;const n=Lf(this.offsets);if(Hu(e,n))return;if(Hu(n,e))if(Xt(n,i.length)<=e)this.nextNodeAfterCurrent();else{const s=bS(i);s!==-1?(this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const s=bS(i);if(s===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(s)),this.offsets.push(n),this.idxs.push(s)}}}}nextNodeAfterCurrent(){for(;;){const e=Lf(this.offsets),t=Lf(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=Lf(this.nextNodes),n=bS(i,this.idxs[this.idxs.length-1]);if(n!==-1){this.nextNodes.push(i.getChild(n)),this.offsets.push(Xt(e,t.length)),this.idxs[this.idxs.length-1]=n;break}else this.idxs.pop()}}}function bS(o,e=-1){for(;;){if(e++,e>=o.childrenLength)return-1;if(o.getChild(e))return e}}function Lf(o){return o.length>0?o[o.length-1]:void 0}function CD(o,e,t,i){return new iq(o,e,t,i).parseDocument()}class iq{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new tq(i):void 0,this.positionMapper=new $K(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ui.getEmpty());return e||(e=Gr.getEmpty()),e}parseList(e){const t=new Array;for(;;){const n=this.tokenizer.peek();if(!n||n.kind===2&&n.bracketIds.intersects(e))break;const s=this.parseChild(e);s.kind===4&&s.childrenLength===0||t.push(s)}return this.oldNodeReader?XK(t):h5(t,this.createImmutableLists)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!VK(i)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),s=>Hu(s.length,i)?s.canBeReused(e):!1);if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new GK(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),n=this.parseList(i),s=this.tokenizer.peek();return s&&s.kind===2&&(s.bracketId===t.bracketId||s.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),dm.create(t.astNode,n,s.astNode)):dm.create(t.astNode,n,null)}default:throw new Error("unexpected")}}}class nq extends H{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new R,this.denseKeyProvider=new l5,this.brackets=new d5(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,e.tokenization.backgroundTokenizationState===0){const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),n=new YK(this.textModel.getValue(),i);this.initialAstWithoutTokens=CD(n,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else e.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):e.tokenization.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new dA(ii(i.fromLineNumber-1,0),ii(i.toLineNumber,0),ii(i.toLineNumber-i.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map(i=>{const n=L.lift(i.range);return new dA(Ph(n.getStartPosition()),Ph(n.getEndPosition()),UK(i.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const n=t,s=new c5(this.textModel,this.brackets);return CD(s,e,n,i)}getBracketsInRange(e){const t=ii(e.startLineNumber-1,e.startColumn-1),i=ii(e.endLineNumber-1,e.endColumn-1),n=new Array,s=this.initialAstWithoutTokens||this.astWithTokens;return wD(s,mo,s.length,t,i,n,0,new Map),n}getBracketPairsInRange(e,t){const i=new Array,n=Ph(e.getStartPosition()),s=Ph(e.getEndPosition()),r=this.initialAstWithoutTokens||this.astWithTokens,a=new sq(i,t,this.textModel);return SD(r,mo,r.length,n,s,a,0,new Map),i}getFirstBracketAfter(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return g5(t,mo,t.length,Ph(e))}getFirstBracketBefore(e){const t=this.initialAstWithoutTokens||this.astWithTokens;return u5(t,mo,t.length,Ph(e))}}function u5(o,e,t,i){if(o.kind===4||o.kind===2){const n=[];for(const s of o.children)t=Xt(e,s.length),n.push({nodeOffsetStart:e,nodeOffsetEnd:t}),e=t;for(let s=n.length-1;s>=0;s--){const{nodeOffsetStart:r,nodeOffsetEnd:a}=n[s];if(Hu(r,i)){const l=u5(o.children[s],r,a,i);if(l)return l}}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function g5(o,e,t,i){if(o.kind===4||o.kind===2){for(const n of o.children){if(t=Xt(e,n.length),Hu(i,t)){const s=g5(n,e,t,i);if(s)return s}e=t}return null}else{if(o.kind===3)return null;if(o.kind===1){const n=ja(e,t);return{bracketInfo:o.bracketInfo,range:n}}}return null}function wD(o,e,t,i,n,s,r,a){if(!(r>200)){if(o.kind===4)for(const l of o.children)t=Xt(e,l.length),Fl(e,n)&&Gf(t,i)&&wD(l,e,t,i,n,s,r,a),e=t;else if(o.kind===2){let l=0;if(a){let c=a.get(o.openingBracket.text);c===void 0&&(c=0),l=c,c++,a.set(o.openingBracket.text,c)}{const c=o.openingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!o.closingBracket))}e=t}if(o.child){const c=o.child;t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)&&wD(c,e,t,i,n,s,r+1,a),e=t}if(o.closingBracket){const c=o.closingBracket;if(t=Xt(e,c.length),Fl(e,n)&&Gf(t,i)){const d=ja(e,t);s.push(new mb(d,r,l,!1))}e=t}a==null||a.set(o.openingBracket.text,l)}else if(o.kind===3){const l=ja(e,t);s.push(new mb(l,r-1,0,!0))}else if(o.kind===1){const l=ja(e,t);s.push(new mb(l,r-1,0,!1))}}}class sq{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function SD(o,e,t,i,n,s,r,a){var l;if(!(r>200))if(o.kind===2){let c=0;if(a){let u=a.get(o.openingBracket.text);u===void 0&&(u=0),c=u,u++,a.set(o.openingBracket.text,u)}const d=Xt(e,o.openingBracket.length);let h=-1;if(s.includeMinIndentation&&(h=o.computeMinIndentation(e,s.textModel)),s.result.push(new BK(ja(e,t),ja(e,d),o.closingBracket?ja(Xt(d,((l=o.child)===null||l===void 0?void 0:l.length)||mo),t):void 0,r,c,o,h)),e=d,o.child){const u=o.child;t=Xt(e,u.length),Fl(e,n)&&Gf(t,i)&&SD(u,e,t,i,n,s,r+1,a)}a==null||a.set(o.openingBracket.text,c)}else{let c=e;for(const d of o.children){const h=c;c=Xt(c,d.length),Fl(h,n)&&Fl(i,c)&&SD(d,h,c,i,n,s,r,a)}}}class oq extends H{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new _n),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var n;(!i.languageId||((n=this.bracketPairsTree.value)===null||n===void 0?void 0:n.object.didLanguageChange(i.languageId)))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get canBuildAST(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const e=new Q;this.bracketPairsTree.value=rq(e.add(new nq(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketsInRange(e))||[]}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!r)return null;const a=j0(this.getBracketPairsInRange(L.fromPositions(t,t))||[],l=>r.closes(l.openingBracketInfo));return a?a.openingBracketRange:null}else{const r=e.toLowerCase(),a=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!a)return null;const l=a.textIsBracket[r];return l?_b(this._findMatchingBracketUp(l,n,vS(i))):null}}matchBracket(e,t){if(this.canBuildAST){const i=UO(this.getBracketPairsInRange(L.fromPositions(e,e)).filter(n=>n.closingBracketRange!==void 0&&(n.openingBracketRange.containsPosition(e)||n.closingBracketRange.containsPosition(e))),op(n=>n.openingBracketRange.containsPosition(e)?n.openingBracketRange:n.closingBracketRange,L.compareRangesUsingStarts));return i?[i.openingBracketRange,i.closingBracketRange]:null}else{const i=vS(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),r=t.getLanguageId(n);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let c=n-1;c>=0;c--){const d=t.getEndOffset(c);if(d<=a)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=d;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=n+1;c=l)break;if(mr(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){l=d;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!mr(n.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(e,n,a,r),d=null;for(;;){const h=lo.findNextBracketInRange(a.forwardRegex,i,s,l,c);if(!h)break;if(h.startColumn<=e.column&&e.column<=h.endColumn){const u=s.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),g=this._matchFoundBracket(h,a.textIsBracket[u],a.textIsOpenBracket[u],t);if(g){if(g instanceof Da)return null;d=g}}l=h.endColumn-1}if(d)return d}if(r>0&&n.getStartOffset(r)===e.column-1){const l=r-1,c=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(l)).brackets;if(c&&!mr(n.getStandardTokenType(l))){const{searchStartOffset:d,searchEndOffset:h}=this._establishBracketSearchOffsets(e,n,c,l),u=lo.findPrevBracketInRange(c.reversedRegex,i,s,d,h);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn){const g=s.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),f=this._matchFoundBracket(u,c.textIsBracket[g],c.textIsOpenBracket[g],t);if(f)return f instanceof Da?null:f}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof Da?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let r=-1,a=0;const l=(c,d,h,u)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const g=lo.findPrevBracketInRange(s,c,d,h,u);if(!g)break;const f=d.substring(g.startColumn-1,g.endColumn-1).toLowerCase();if(e.isOpen(f)?r++:e.isClose(f)&&r--,r===0)return g;u=g.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const d=this.textModel.tokenization.getLineTokens(c),h=d.getCount(),u=this.textModel.getLineContent(c);let g=h-1,f=u.length,_=u.length;c===t.lineNumber&&(g=d.findTokenIndexAtOffset(t.column-1),f=t.column-1,_=t.column-1);let b=!0;for(;g>=0;g--){const v=d.getLanguageId(g)===n&&!mr(d.getStandardTokenType(g));if(v)b?f=d.getStartOffset(g):(f=d.getStartOffset(g),_=d.getEndOffset(g));else if(b&&f!==_){const C=l(c,u,f,_);if(C)return C}b=v}if(b&&f!==_){const v=l(c,u,f,_);if(v)return v}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let r=1,a=0;const l=(d,h,u,g)=>{for(;;){if(i&&++a%100===0&&!i())return Da.INSTANCE;const f=lo.findNextBracketInRange(s,d,h,u,g);if(!f)break;const _=h.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(_)?r++:e.isClose(_)&&r--,r===0)return f;u=f.endColumn-1}return null},c=this.textModel.getLineCount();for(let d=t.lineNumber;d<=c;d++){const h=this.textModel.tokenization.getLineTokens(d),u=h.getCount(),g=this.textModel.getLineContent(d);let f=0,_=0,b=0;d===t.lineNumber&&(f=h.findTokenIndexAtOffset(t.column-1),_=t.column-1,b=t.column-1);let v=!0;for(;f=1;a--){const l=this.textModel.tokenization.getLineTokens(a),c=l.getCount(),d=this.textModel.getLineContent(a);let h=c-1,u=d.length,g=d.length;if(a===i.lineNumber){h=l.findTokenIndexAtOffset(i.column-1),u=i.column-1,g=i.column-1;const _=l.getLanguageId(h);n!==_&&(n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let f=!0;for(;h>=0;h--){const _=l.getLanguageId(h);if(n!==_){if(s&&r&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v);f=!1}n=_,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const b=!!s&&!mr(l.getStandardTokenType(h));if(b)f?u=l.getStartOffset(h):(u=l.getStartOffset(h),g=l.getEndOffset(h));else if(r&&s&&f&&u!==g){const v=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(v)return this._toFoundBracket(r,v)}f=b}if(r&&s&&f&&u!==g){const _=lo.findPrevBracketInRange(s.reversedRegex,a,d,u,g);if(_)return this._toFoundBracket(r,_)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,r=null,a=null;for(let l=i.lineNumber;l<=n;l++){const c=this.textModel.tokenization.getLineTokens(l),d=c.getCount(),h=this.textModel.getLineContent(l);let u=0,g=0,f=0;if(l===i.lineNumber){u=c.findTokenIndexAtOffset(i.column-1),g=i.column-1,f=i.column-1;const b=c.getLanguageId(u);s!==b&&(s=b,r=this.languageConfigurationService.getLanguageConfiguration(s).brackets,a=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let _=!0;for(;u_.closingBracketRange!==void 0&&_.range.strictContainsRange(g));return f?[f.openingBracketRange,f.closingBracketRange]:null}const n=vS(t),s=this.textModel.getLineCount(),r=new Map;let a=[];const l=(g,f)=>{if(!r.has(g)){const _=[];for(let b=0,v=f?f.brackets.length:0;b{for(;;){if(n&&++c%100===0&&!n())return Da.INSTANCE;const C=lo.findNextBracketInRange(g.forwardRegex,f,_,b,v);if(!C)break;const w=_.substring(C.startColumn-1,C.endColumn-1).toLowerCase(),S=g.textIsBracket[w];if(S&&(S.isOpen(w)?a[S.index]++:S.isClose(w)&&a[S.index]--,a[S.index]===-1))return this._matchFoundBracket(C,S,!1,n);b=C.endColumn-1}return null};let h=null,u=null;for(let g=i.lineNumber;g<=s;g++){const f=this.textModel.tokenization.getLineTokens(g),_=f.getCount(),b=this.textModel.getLineContent(g);let v=0,C=0,w=0;if(g===i.lineNumber){v=f.findTokenIndexAtOffset(i.column-1),C=i.column-1,w=i.column-1;const k=f.getLanguageId(v);h!==k&&(h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u))}let S=!0;for(;v<_;v++){const k=f.getLanguageId(v);if(h!==k){if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y);S=!1}h=k,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,l(h,u)}const x=!!u&&!mr(f.getStandardTokenType(v));if(x)S||(C=f.getStartOffset(v)),w=f.getEndOffset(v);else if(u&&S&&C!==w){const y=d(u,g,b,C,w);if(y)return _b(y)}S=x}if(u&&S&&C!==w){const k=d(u,g,b,C,w);if(k)return _b(k)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.getBracketInfo(i);return n?{range:t,bracketInfo:n}:null}}function rq(o,e){return{object:o,dispose:()=>e==null?void 0:e.dispose()}}function vS(o){if(typeof o>"u")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=o}}class Da{constructor(){this._searchCanceledBrand=void 0}}Da.INSTANCE=new Da;function _b(o){return o instanceof Da?null:o}class aq extends H{constructor(e){super(),this.textModel=e,this.colorProvider=new f5,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(t===void 0)return[];if(!this.colorizationOptions.enabled)return[];const n=new Array,s=this.textModel.bracketPairs.getBracketsInRange(e);for(const r of s)n.push({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:r.range});return n}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new L(1,1,this.textModel.getLineCount(),1),e,t):[]}}class f5{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}Et((o,e)=>{const t=[U4,$4,j4,K4,q4,G4],i=new f5;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${o.getColor(T$)}; }`);const n=t.map(s=>o.getColor(s)).filter(s=>!!s).filter(s=>!s.isTransparent());for(let s=0;s<30;s++){const r=n[s%n.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${r}; }`)}});function bb(o){return o.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class $i{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${bb(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${bb(this.oldText)}")`:`(replace@${this.oldPosition} "${bb(this.oldText)}" with "${bb(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;No(e,n,i),i+=4;for(let s=0;so.length)return!1;if(t){if(!vI(o,e))return!1;if(e.length===o.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,o.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),o.indexOf(e)===0}function m5(o){return o>=65&&o<=90||o>=97&&o<=122}function dq(o,e=Yi){return e?m5(o.charCodeAt(0))&&o.charCodeAt(1)===58:!1}function _r(o){return Q0(o,!0)}class DE{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Bp(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1: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===Me.file)return yD(_r(e),_r(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(pA(e.authority,t.authority))return yD(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return _e.joinPath(e,...t)}basenameOrAuthority(e){return Js(e)||e.authority}basename(e){return gi.basename(e.path)}extname(e){return gi.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Me.file?t=_e.file(sP(_r(e))).path:(t=gi.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(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 e.scheme===Me.file?t=_e.file(nP(_r(e))).path:t=gi.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!pA(e.authority,t.authority))return;if(e.scheme===Me.file){const s=Z6(_r(e),_r(t));return Yi?p5(s):s}let i=e.path||"/";const n=t.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const r=Math.min(i.length,n.length);sgA(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Br){return mA(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Br){let i=!1;if(e.scheme===Me.file){const n=_r(e);i=n!==void 0&&n.length===gA(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=n.length===1&&n.charCodeAt(n.length-1)===47}return!i&&!mA(e,t)?e.with({path:e.path+"/"}):e}}const It=new DE(()=>!1);new DE(o=>o.scheme===Me.file?!dn:!0);new DE(o=>!0);const _5=It.isEqual.bind(It);It.isEqualOrParent.bind(It);It.getComparisonKey.bind(It);const hq=It.basenameOrAuthority.bind(It),Js=It.basename.bind(It),uq=It.extname.bind(It),L1=It.dirname.bind(It),gq=It.joinPath.bind(It),fq=It.normalizePath.bind(It),pq=It.relativePath.bind(It),fA=It.resolvePath.bind(It);It.isAbsolutePath.bind(It);const pA=It.isEqualAuthority.bind(It),mA=It.hasTrailingPathSeparator.bind(It);It.removeTrailingPathSeparator.bind(It);It.addTrailingPathSeparator.bind(It);var cc;(function(o){o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(o.META_DATA_MIME,s),i}o.parseMetaData=e})(cc||(cc={}));function Fh(o){return o.toString()}class Ni{constructor(e,t,i,n,s,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=r,this.changes=a}static create(e,t){const i=e.getAlternativeVersionId(),n=LD(e);return new Ni(i,i,n,n,t,t,[])}append(e,t,i,n,s){t.length>0&&(this.changes=lq(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(No(e,t?t.length:0,i),i+=4,t)for(const n of t)No(e,n.selectionStartLineNumber,i),i+=4,No(e,n.selectionStartColumn,i),i+=4,No(e,n.positionLineNumber,i),i+=4,No(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=Eo(e,t);t+=4;for(let s=0;st.toString()).join(", ")}matchesResource(e){return(_e.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ni}append(e,t,i,n,s){this._data instanceof Ni&&this._data.append(e,t,i,n,s)}close(){this._data instanceof Ni&&(this._data=this._data.serialize())}open(){this._data instanceof Ni||(this._data=Ni.deserialize(this._data))}undo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(_e.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ni&&(this._data=this._data.serialize());const e=Ni.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ni&&(this._data=this._data.serialize()),this._data.byteLength+168}}class mq{constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const s=Fh(n.resource);this._editStackElementsMap.set(s,n)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Fh(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Fh(_e.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Fh(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,n,s){const r=Fh(e.uri);this._editStackElementsMap.get(r).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Fh(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${Js(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function LD(o){return o.getEOL()===` +`?0:1}function ka(o){return o?o instanceof b5||o instanceof mq:!1}class kE{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);ka(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(ka(t)&&t.canAppend(this._model))return t;const i=new b5(p("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],LD(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),s=this._model.applyEdits(t,!0),r=kE._computeCursorState(i,s),a=s.map((l,c)=>({index:c,textChange:l.textChange}));return a.sort((l,c)=>l.textChange.oldPosition===c.textChange.oldPosition?l.index-c.index:l.textChange.oldPosition-c.textChange.oldPosition),n.append(this._model,a.map(l=>l.textChange),LD(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return Te(i),null}}}class _q{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function bq(o,e,t,i,n){n.spacesDiff=0,n.looksLikeAlignment=!1;let s;for(s=0;s0&&a>0||l>0&&c>0)return;const d=Math.abs(a-c),h=Math.abs(r-l);if(d===0){n.spacesDiff=h,h>0&&0<=l-1&&l-10?n++:S>1&&s++,bq(r,a,b,w,h),h.looksLikeAlignment&&!(t&&e===h.spacesDiff)))continue;const x=h.spacesDiff;x<=c&&d[x]++,r=b,a=w}let u=t;n!==s&&(u=n{const b=d[_];b>f&&(f=b,g=_)}),g===4&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(g=2)}return{insertSpaces:u,tabSize:g}}function Mn(o){return(o.metadata&1)>>>0}function Lt(o,e){o.metadata=o.metadata&254|e<<0}function Zi(o){return(o.metadata&2)>>>1===1}function St(o,e){o.metadata=o.metadata&253|(e?1:0)<<1}function v5(o){return(o.metadata&4)>>>2===1}function bA(o,e){o.metadata=o.metadata&251|(e?1:0)<<2}function vq(o){return(o.metadata&24)>>>3}function vA(o,e){o.metadata=o.metadata&231|e<<3}function Cq(o){return(o.metadata&32)>>>5===1}function CA(o,e){o.metadata=o.metadata&223|(e?1:0)<<5}class C5{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,Lt(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,bA(this,!1),vA(this,1),CA(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,St(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;bA(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),vA(this,this.options.stickiness),CA(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const Oe=new C5(null,0,0);Oe.parent=Oe;Oe.left=Oe;Oe.right=Oe;Lt(Oe,0);class CS{constructor(){this.root=Oe,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s){return this.root===Oe?[]:Iq(this,e,t,i,n,s)}search(e,t,i){return this.root===Oe?[]:xq(this,e,t,i)}collectNodesFromOwner(e){return Dq(this,e)}collectNodesPostOrder(){return kq(this)}insert(e){wA(this,e),this._normalizeDeltaIfNecessary()}delete(e){SA(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,r=i.end+n;i.setCachedOffsets(s,r,t)}acceptReplace(e,t,i,n){const s=yq(this,e,e+t);for(let r=0,a=s.length;rt||i===1?!1:i===2?!0:e}function Sq(o,e,t,i,n){const s=vq(o),r=s===0||s===2,a=s===1||s===2,l=t-e,c=i,d=Math.min(l,c),h=o.start;let u=!1;const g=o.end;let f=!1;e<=h&&g<=t&&Cq(o)&&(o.start=e,u=!0,o.end=e,f=!0);{const b=n?1:l>0?2:0;!u&&Bh(h,r,e,b)&&(u=!0),!f&&Bh(g,a,e,b)&&(f=!0)}if(d>0&&!n){const b=l>c?2:0;!u&&Bh(h,r,e+d,b)&&(u=!0),!f&&Bh(g,a,e+d,b)&&(f=!0)}{const b=n?1:0;!u&&Bh(h,r,t,b)&&(o.start=e+c,u=!0),!f&&Bh(g,a,t,b)&&(o.end=e+c,f=!0)}const _=c-l;u||(o.start=Math.max(0,h+_)),f||(o.end=Math.max(0,g+_)),o.start>o.end&&(o.end=o.start)}function yq(o,e,t){let i=o.root,n=0,s=0,r=0,a=0;const l=[];let c=0;for(;i!==Oe;){if(Zi(i)){St(i.left,!1),St(i.right,!1),i===i.parent.right&&(n-=i.parent.delta),i=i.parent;continue}if(!Zi(i.left)){if(s=n+i.maxEnd,st){St(i,!0);continue}if(a=n+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[c++]=i),St(i,!0),i.right!==Oe&&!Zi(i.right)){n+=i.delta,i=i.right;continue}}return St(o.root,!1),l}function Lq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=i-(t-e);for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),dc(n),n=n.parent;continue}if(!Zi(n.left)){if(r=s+n.maxEnd,rt){n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(o.requestNormalizeDelta=!0),St(n,!0);continue}if(St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}St(o.root,!1)}function Dq(o,e){let t=o.root;const i=[];let n=0;for(;t!==Oe;){if(Zi(t)){St(t.left,!1),St(t.right,!1),t=t.parent;continue}if(t.left!==Oe&&!Zi(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[n++]=t),St(t,!0),t.right!==Oe&&!Zi(t.right)){t=t.right;continue}}return St(o.root,!1),i}function kq(o){let e=o.root;const t=[];let i=0;for(;e!==Oe;){if(Zi(e)){St(e.left,!1),St(e.right,!1),e=e.parent;continue}if(e.left!==Oe&&!Zi(e.left)){e=e.left;continue}if(e.right!==Oe&&!Zi(e.right)){e=e.right;continue}t[i++]=e,St(e,!0)}return St(o.root,!1),t}function xq(o,e,t,i){let n=o.root,s=0,r=0,a=0;const l=[];let c=0;for(;n!==Oe;){if(Zi(n)){St(n.left,!1),St(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),n=n.parent;continue}if(n.left!==Oe&&!Zi(n.left)){n=n.left;continue}r=s+n.start,a=s+n.end,n.setCachedOffsets(r,a,i);let d=!0;if(e&&n.ownerId&&n.ownerId!==e&&(d=!1),t&&v5(n)&&(d=!1),d&&(l[c++]=n),St(n,!0),n.right!==Oe&&!Zi(n.right)){s+=n.delta,n=n.right;continue}}return St(o.root,!1),l}function Iq(o,e,t,i,n,s){let r=o.root,a=0,l=0,c=0,d=0;const h=[];let u=0;for(;r!==Oe;){if(Zi(r)){St(r.left,!1),St(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;continue}if(!Zi(r.left)){if(l=a+r.maxEnd,lt){St(r,!0);continue}if(d=a+r.end,d>=e){r.setCachedOffsets(c,d,s);let g=!0;i&&r.ownerId&&r.ownerId!==i&&(g=!1),n&&v5(r)&&(g=!1),g&&(h[u++]=r)}if(St(r,!0),r.right!==Oe&&!Zi(r.right)){a+=r.delta,r=r.right;continue}}return St(o.root,!1),h}function wA(o,e){if(o.root===Oe)return e.parent=Oe,e.left=Oe,e.right=Oe,Lt(e,0),o.root=e,o.root;Eq(o,e),Dl(e.parent);let t=e;for(;t!==o.root&&Mn(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,_p(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),bp(o,t.parent.parent))}else{const i=t.parent.parent.left;Mn(i)===1?(Lt(t.parent,0),Lt(i,0),Lt(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,bp(o,t)),Lt(t.parent,0),Lt(t.parent.parent,1),_p(o,t.parent.parent))}return Lt(o.root,0),e}function Eq(o,e){let t=0,i=o.root;const n=e.start,s=e.end;for(;;)if(Tq(n,s,i.start+t,i.end+t)<0)if(i.left===Oe){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===Oe){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=Oe,e.right=Oe,Lt(e,1)}function SA(o,e){let t,i;if(e.left===Oe?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===Oe?(t=e.left,i=e):(i=Nq(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(o.requestNormalizeDelta=!0)),i===o.root){o.root=t,Lt(t,0),e.detach(),wS(),dc(t),o.root.parent=Oe;return}const n=Mn(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,Lt(i,Mn(e)),e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Oe&&(i.left.parent=i),i.right!==Oe&&(i.right.parent=i)),e.detach(),n){Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent)),wS();return}Dl(t),Dl(t.parent),i!==e&&(Dl(i),Dl(i.parent));let s;for(;t!==o.root&&Mn(t)===0;)t===t.parent.left?(s=t.parent.right,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),_p(o,t.parent),s=t.parent.right),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.right)===0&&(Lt(s.left,0),Lt(s,1),bp(o,s),s=t.parent.right),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.right,0),_p(o,t.parent),t=o.root)):(s=t.parent.left,Mn(s)===1&&(Lt(s,0),Lt(t.parent,1),bp(o,t.parent),s=t.parent.left),Mn(s.left)===0&&Mn(s.right)===0?(Lt(s,1),t=t.parent):(Mn(s.left)===0&&(Lt(s.right,0),Lt(s,1),_p(o,s),s=t.parent.left),Lt(s,Mn(t.parent)),Lt(t.parent,0),Lt(s.left,0),bp(o,t.parent),t=o.root));Lt(t,0),wS()}function Nq(o){for(;o.left!==Oe;)o=o.left;return o}function wS(){Oe.parent=Oe,Oe.delta=0,Oe.start=0,Oe.end=0}function _p(o,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(o.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==Oe&&(t.left.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,dc(e),dc(t)}function bp(o,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(o.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==Oe&&(t.right.parent=e),t.parent=e.parent,e.parent===Oe?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,dc(e),dc(t)}function w5(o){let e=o.end;if(o.left!==Oe){const t=o.left.maxEnd;t>e&&(e=t)}if(o.right!==Oe){const t=o.right.maxEnd+o.delta;t>e&&(e=t)}return e}function dc(o){o.maxEnd=w5(o)}function Dl(o){for(;o!==Oe;){const e=w5(o);if(o.maxEnd===e)return;o.maxEnd=e,o=o.parent}}function Tq(o,e,t,i){return o===t?e-i:o-t}class DD{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Ie)return xE(this.right);let e=this;for(;e.parent!==Ie&&e.parent.left!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}prev(){if(this.left!==Ie)return S5(this.left);let e=this;for(;e.parent!==Ie&&e.parent.right!==e;)e=e.parent;return e.parent===Ie?Ie:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ie=new DD(null,0);Ie.parent=Ie;Ie.left=Ie;Ie.right=Ie;Ie.color=0;function xE(o){for(;o.left!==Ie;)o=o.left;return o}function S5(o){for(;o.right!==Ie;)o=o.right;return o}function IE(o){return o===Ie?0:o.size_left+o.piece.length+IE(o.right)}function EE(o){return o===Ie?0:o.lf_left+o.piece.lineFeedCnt+EE(o.right)}function SS(){Ie.parent=Ie}function vp(o,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==Ie&&(t.left.parent=e),t.parent=e.parent,e.parent===Ie?o.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function Cp(o,e){const t=e.left;e.left=t.right,t.right!==Ie&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===Ie?o.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function vb(o,e){let t,i;if(e.left===Ie?(i=e,t=i.right):e.right===Ie?(i=e,t=i.left):(i=xE(e.right),t=i.right),i===o.root){o.root=t,t.color=0,e.detach(),SS(),o.root.parent=Ie;return}const n=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,Zf(o,t)):(i.parent===e?t.parent=i:t.parent=i.parent,Zf(o,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===o.root?o.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==Ie&&(i.left.parent=i),i.right!==Ie&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,Zf(o,i)),e.detach(),t.parent.left===t){const r=IE(t),a=EE(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,c=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,ma(o,t.parent,l,c)}}if(Zf(o,t.parent),n){SS();return}let s;for(;t!==o.root&&t.color===0;)t===t.parent.left?(s=t.parent.right,s.color===1&&(s.color=0,t.parent.color=1,vp(o,t.parent),s=t.parent.right),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.right.color===0&&(s.left.color=0,s.color=1,Cp(o,s),s=t.parent.right),s.color=t.parent.color,t.parent.color=0,s.right.color=0,vp(o,t.parent),t=o.root)):(s=t.parent.left,s.color===1&&(s.color=0,t.parent.color=1,Cp(o,t.parent),s=t.parent.left),s.left.color===0&&s.right.color===0?(s.color=1,t=t.parent):(s.left.color===0&&(s.right.color=0,s.color=1,vp(o,s),s=t.parent.left),s.color=t.parent.color,t.parent.color=0,s.left.color=0,Cp(o,t.parent),t=o.root));t.color=0,SS()}function yA(o,e){for(Zf(o,e);e!==o.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,vp(o,e)),e.parent.color=0,e.parent.parent.color=1,Cp(o,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,Cp(o,e)),e.parent.color=0,e.parent.parent.color=1,vp(o,e.parent.parent))}o.root.color=0}function ma(o,e,t,i){for(;e!==o.root&&e!==Ie;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function Zf(o,e){let t=0,i=0;if(e!==o.root){for(;e!==o.root&&e===e.parent.right;)e=e.parent;if(e!==o.root)for(e=e.parent,t=IE(e.left)-e.size_left,i=EE(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==o.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const ca=65535;function y5(o){let e;return o[o.length-1]<65536?e=new Uint16Array(o.length):e=new Uint32Array(o.length),e.set(o,0),e}class Aq{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function Ca(o,e=!0){const t=[0];let i=1;for(let n=0,s=o.length;n126)&&(r=!1)}const a=new Aq(y5(o),i,n,s,r);return o.length=0,a}class qn{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class Jc{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Rq{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Ie&&e.iterate(e.root,i=>(i!==Ie&&this._pieces.push(i.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Oq{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e){i[n]=null,t=!0;continue}}if(t){const n=[];for(const s of i)s!==null&&n.push(s);this._cache=n}}}class Pq{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Jc("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ie,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,r=e.length;s0){e[s].lineStarts||(e[s].lineStarts=Ca(e[s].buffer));const a=new qn(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,a)}this._searchCache=new Oq(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=ca,i=t-Math.floor(t/3),n=i*2;let s="",r=0;const a=[];if(this.iterate(this.root,l=>{const c=this.getNodeContent(l),d=c.length;if(r<=i||r+d0){const l=s.replace(/\r\n|\r|\n/g,e);a.push(new Jc(l,Ca(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Rq(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==Ie;)if(n.left!==Ie&&n.lf_left+1>=e)n=n.left;else if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;const s=this.getAccumulatedValue(n,e-n.lf_left-2);return i+=s+t-1}else e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right;return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==Ie;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,s.index===0){const r=this.getOffsetAt(i+1,1),a=n-r;return new B(i+1,a+1)}return new B(i+1,s.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Ie){const s=this.getOffsetAt(i+1,1),r=n-e-s;return new B(i+1,r+1)}else t=t.right;return new B(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t!==this._EOL||!this._EOLNormalized?s.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(c+e.remainder,c+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==Ie;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,s=>{if(s===Ie)return!0;const r=s.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,d=r.start.line,h=r.end.line;let u=c[d]+r.start.column;if(n&&(l.charCodeAt(u)===10&&(u++,a--),e[t++]=i,i="",n=!1,a===0))return!0;if(d===h)return!this._EOLNormalized&&l.charCodeAt(u+a-1)===13?(n=!0,i+=l.substr(u,a-1)):i+=l.substr(u,a),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,c[d+1]-this._EOLLength)):l.substring(u,c[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let g=d+1;gS+f,t.reset(0)):(C=u.buffer,w=S=>S,t.reset(f));do if(b=t.next(C),b){if(w(b.index)>=_)return d;this.positionInBuffer(e,w(b.index)-g,v);const S=this.getLineFeedCnt(e.piece.bufferIndex,s,v),k=v.line===s.line?v.column-s.column+n:v.column+1,x=k+b[0].length;if(h[d++]=Gc(new L(i+S,k,i+S,x),b,l),w(b.index)+b[0].length>=_||d>=c)return d}while(b);return d}findMatchesLineByLine(e,t,i,n){const s=[];let r=0;const a=new du(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(c===null)return[];let d=this.positionInBuffer(l.node,l.remainder);const h=this.positionInBuffer(c.node,c.remainder);if(l.node===c.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,d,h,t,i,n,r,s),s;let u=e.startLineNumber,g=l.node;for(;g!==c.node;){const _=this.getLineFeedCnt(g.piece.bufferIndex,d,g.piece.end);if(_>=1){const v=this._buffers[g.piece.bufferIndex].lineStarts,C=this.offsetInBuffer(g.piece.bufferIndex,g.piece.start),w=v[d.line+_],S=u===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(g,a,u,S,d,this.positionInBuffer(g,w-C),t,i,n,r,s),r>=n)return s;u+=_}const b=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const v=this.getLineContent(u).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,a,v,e.endLineNumber,b,r,s,i,n),s}if(r=this._findMatchesInLine(t,a,this.getLineContent(u).substr(b),u,b,r,s,i,n),r>=n)return s;u++,l=this.nodeAt2(u,1),g=l.node,d=this.positionInBuffer(l.node,l.remainder)}if(u===e.endLineNumber){const _=u===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(u).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,s,i,n),s}const f=u===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,a,u,f,d,h,t,i,n,r,s),s}_findMatchesInLine(e,t,i,n,s,r,a,l,c){const d=e.wordSeparators;if(!l&&e.simpleSearch){const u=e.simpleSearch,g=u.length,f=i.length;let _=-g;for(;(_=i.indexOf(u,_+g))!==-1;)if((!d||FI(d,i,f,_,g))&&(a[r++]=new Vp(new L(n,_+1+s,n,_+1+g+s),null),r>=c))return r;return r}let h;t.reset(0);do if(h=t.next(i),h&&(a[r++]=Gc(new L(n,h.index+1+s,n,h.index+1+h[0].length+s),h,l),r>=c))return r;while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ie){const{node:n,remainder:s,nodeStartOffset:r}=this.nodeAt(e),a=n.piece,l=a.bufferIndex,c=this.positionInBuffer(n,s);if(n.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const d=[];let h=new qn(a.bufferIndex,c,a.end,this.getLineFeedCnt(a.bufferIndex,c,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(n,s)===10){const _={line:h.start.line+1,column:0};h=new qn(h.bufferIndex,_,h.end,this.getLineFeedCnt(h.bufferIndex,_,h.end),h.length-1),t+=` `}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(this.nodeCharCodeAt(n,s-1)===13){const _=this.positionInBuffer(n,s-1);this.deleteNodeTail(n,_),t="\r"+t,n.piece.length===0&&d.push(n)}else this.deleteNodeTail(n,c);else this.deleteNodeTail(n,c);const u=this.createNewPieces(t);h.length>0&&this.rbInsertRight(n,h);let g=n;for(let f=0;f=0;r--)s=this.rbInsertLeft(s,n[r]);this.validateCRLFWithPrevNode(s),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+=` `);const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let s=n;for(let r=1;r=u)c=h+1;else break;return i?(i.line=h,i.column=l-g,null):{line:h,column:l-g}}getLineFeedCnt(e,t,i){if(i.column===0)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const s=n[i.line+1],r=n[i.line]+i.column;if(s>r+1)return i.line-t.line;const a=r-1;return this._buffers[e].buffer.charCodeAt(a)===13?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tca){const d=[];for(;e.length>ca;){const u=e.charCodeAt(ca-1);let g;u===13||u>=55296&&u<=56319?(g=e.substring(0,ca-1),e=e.substring(ca-1)):(g=e.substring(0,ca),e=e.substring(ca));const f=Ca(g);d.push(new qn(this._buffers.length,{line:0,column:0},{line:f.length-1,column:g.length-f[f.length-1]},f.length-1,g.length)),this._buffers.push(new Jc(g,f))}const h=Ca(e);return d.push(new qn(this._buffers.length,{line:0,column:0},{line:h.length-1,column:e.length-h[h.length-1]},h.length-1,e.length)),this._buffers.push(new Jc(e,h)),d}let t=this._buffers[0].buffer.length;const i=Ca(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&t!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let d=0;d=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this.getAccumulatedValue(i,e-i.lf_left-1),d=this._buffers[i.piece.bufferIndex].buffer,h=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:r,nodeStartLineNumber:a-(e-1-i.lf_left)}),d.substring(h+l,h+c-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this._buffers[i.piece.bufferIndex].buffer,d=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=c.substring(d+l,d+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==Ie;){const r=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const a=this.getAccumulatedValue(i,0),l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=r.substring(l,l+a-t),n}else{const a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=r.substr(a,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==Ie;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),s=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const r=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(r!==s)return{index:r,remainder:0}}return{index:s,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,s=i.start.line+t+1;return s>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[s]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.end),r=t,a=this.offsetInBuffer(i.bufferIndex,r),l=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=l-n,d=a-s,h=i.length+d;e.piece=new qn(i.bufferIndex,i.start,r,l,h),ma(this,e,d,c)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.start),r=t,a=this.getLineFeedCnt(i.bufferIndex,r,i.end),l=this.offsetInBuffer(i.bufferIndex,r),c=a-n,d=s-l,h=i.length+d;e.piece=new qn(i.bufferIndex,r,i.end,a,h),ma(this,e,d,c)}shrinkNode(e,t,i){const n=e.piece,s=n.start,r=n.end,a=n.length,l=n.lineFeedCnt,c=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,c),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,s);e.piece=new qn(n.bufferIndex,n.start,c,d,h),ma(this,e,h-a,d-l);const u=new qn(n.bufferIndex,i,r,this.getLineFeedCnt(n.bufferIndex,i,r),this.offsetInBuffer(n.bufferIndex,r)-this.offsetInBuffer(n.bufferIndex,i)),g=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(g)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=` `);const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const s=Ca(t,!1);for(let g=0;ge)t=t.left;else if(t.size_left+t.piece.length>=e){n+=t.size_left;const s={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(s),s}else e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==Ie;)if(i.left!==Ie&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(s+t-1,r),nodeStartOffset:n}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2);if(s+t-1<=i.piece.length)return{node:i,remainder:s+t-1,nodeStartOffset:n};t-=i.piece.length-s;break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==Ie;){if(i.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(i,0),r=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,s),nodeStartOffset:r}}else if(i.piece.length>=t-1){const s=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:s}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` `)}startWithLF(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===Ie||e.piece.lineFeedCnt===0)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,s=i[n]+t.start.column;return n===i.length-1||i[n+1]>s+1?!1:this._buffers[t.bufferIndex].buffer.charCodeAt(s)===10}endWithCR(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===Ie||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let s;e.piece.end.column===0?s={line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:s={line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new qn(e.piece.bufferIndex,e.piece.start,s,a,r),ma(this,e,-1,-1),e.piece.length===0&&i.push(e);const l={line:t.piece.start.line+1,column:0},c=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,l,t.piece.end);t.piece=new qn(t.piece.bufferIndex,l,t.piece.end,d,c),ma(this,t,-1,-1),t.piece.length===0&&i.push(t);const h=this.createNewPieces(`\r `);this.rbInsertRight(e,h[0]);for(let u=0;ub.sortIndex-v.sortIndex)}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._mightContainNonBasicASCII=r;const g=this._doApplyEdits(l);let f=null;if(t&&h.length>0){h.sort((_,b)=>b.lineNumber-_.lineNumber),f=[];for(let _=0,b=h.length;_0&&h[_-1].lineNumber===v)continue;const C=h[_].oldContent,w=this.getLineContent(v);w.length===0||w===C||kn(w)!==-1||f.push(v)}}return this._onDidChangeContent.fire(),new VB(u,g,f)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,s=new L(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let r=i.startLineNumber,a=i.startColumn;const l=[];for(let g=0,f=e.length;g0&&l.push(_.text),r=b.endLineNumber,a=b.endColumn}const c=l.join(""),[d,h,u]=Hd(c);return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,0),text:c,eolCount:d,firstLineLength:h,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(zu._sortOpsDescending);const t=[];for(let i=0;i0){const u=l.eolCount+1;u===1?h=new L(c,d,c,d+l.firstLineLength):h=new L(c,d,c+u-1,l.lastLineLength+1)}else h=new L(c,d,c,d);i=h.endLineNumber,n=h.endColumn,t.push(h),s=l}return t}static _sortOpsAscending(e,t){const i=L.compareRangesUsingEnds(e.range,t.range);return i===0?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=L.compareRangesUsingEnds(e.range,t.range);return i===0?t.sortIndex-e.sortIndex:-i}}class Fq{constructor(e,t,i,n,s,r,a,l,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=s,this._containsRTL=r,this._containsUnusualLineTerminators=a,this._isBasicASCII=l,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return t===0?e===1?` @@ -94,7 +94,7 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config `:` `}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&(t===`\r `&&(this._cr>0||this._lf>0)||t===` -`&&(this._cr>0||this._crlf>0)))for(let s=0,r=i.length;s=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=Mq(this._tmpLineStarts,e);this.chunks.push(new Jc(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=eg(e)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=pP(e))}finish(e=!0){return this._finish(),new Fq(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Ca(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class Bq{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class yS{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new Bq(e,[t]))}finalize(){return this._tokens}}class LA{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let n=0;n{const s=this._textModel.getLanguageId();n.changedLanguages.indexOf(s)!==-1&&(this._resetTokenizationState(),this._tokenizationPart.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(e){if(e.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let t=0,i=e.changes.length;t{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}tokenizeViewport(e,t){const i=new yS;this._tokenizeViewport(i,e,t),this._tokenizationPart.setTokens(i.finalize(),this._isTokenizationComplete())}reset(){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}forceTokenization(e){const t=new yS;this._updateTokensUntilLine(t,e),this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}getTokenTypeIfInsertingCharacter(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);const i=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),r=s.substring(0,e.column-1)+t+s.substring(e.column-1),a=Df(this._languageIdCodec,n,this._tokenizationStateStore.tokenizationSupport,r,!0,i),l=new Di(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const c=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(n);const r=this._tokenizationStateStore.getBeginState(n-1);if(!r)return null;const a=this._textModel.getLineContent(n),l=a.substring(0,s-1)+i+a.substring(s-1+t),c=this._textModel.getLanguageIdAtPosition(n,0),d=Df(this._languageIdCodec,c,this._tokenizationStateStore.tokenizationSupport,l,!0,r);return new Di(d.tokens,l,this._languageIdCodec)}isCheapToTokenize(e){if(!this._tokenizationStateStore)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return e>t?!1:e=this._textModel.getLineCount():!1}_tokenizeOneInvalidLine(e){if(!this._tokenizationStateStore||!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}_updateTokensUntilLine(e,t){if(!this._tokenizationStateStore)return;const i=this._textModel.getLanguageId(),n=this._textModel.getLineCount(),s=t-1;for(let r=this._tokenizationStateStore.invalidLineStartIndex;r<=s;r++){const a=this._textModel.getLineContent(r+1),l=this._tokenizationStateStore.getBeginState(r),c=Df(this._languageIdCodec,i,this._tokenizationStateStore.tokenizationSupport,a,!0,l);e.add(r+1,c.tokens),this._tokenizationStateStore.setEndState(n,r,c.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(e,t,i){if(!this._tokenizationStateStore||i<=this._tokenizationStateStore.invalidLineStartIndex)return;if(t<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(e,i);return}let n=this._textModel.getLineFirstNonWhitespaceColumn(t);const s=[];let r=null;for(let c=t-1;n>1&&c>=1;c--){const d=this._textModel.getLineFirstNonWhitespaceColumn(c);if(d!==0&&d=0;c--)l=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,s[c],!1,l).endState;for(let c=t;c<=i;c++){const d=this._textModel.getLineContent(c),h=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,d,!0,l);e.add(c,h.tokens),this._tokenizationStateStore.markMustBeTokenized(c-1),l=h.endState}}}function Hq(o,e){if(o.isTooLargeForTokenization())return[null,null];const t=Wt.get(e.getLanguageId());if(!t)return[null,null];let i;try{i=t.getInitialState()}catch(n){return Te(n),[null,null]}return[t,i]}function Df(o,e,t,i,n,s){let r=null;if(t)try{r=t.tokenizeEncoded(i,n,s.clone())}catch(a){Te(a)}return r||(r=qC(o.encodeLanguageId(e),s)),Di.convertToEndOffset(r.tokens,i.length),r}const wa=new Uint32Array(0).buffer;class Cr{static deleteBeginning(e,t){return e===null||e===wa?e:Cr.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===wa)return e;const i=Aa(e),n=i[i.length-2];return Cr.delete(e,t,n)}static delete(e,t,i){if(e===null||e===wa||t===i)return e;const n=Aa(e),s=n.length>>>1;if(t===0&&n[n.length-2]===i)return wa;const r=Di.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0,l=n[r<<1];if(id&&(n[c++]=f,n[c++]=n[(g<<1)+1],d=f)}if(c===n.length)return e;const u=new Uint32Array(c);return u.set(n.subarray(0,c),0),u.buffer}static append(e,t){if(t===wa)return e;if(e===wa)return t;if(e===null)return e;if(t===null)return null;const i=Aa(e),n=Aa(t),s=n.length>>>1,r=new Uint32Array(i.length+n.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c>>1;let r=Di.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let a=r;a1&&(s=qi.getLanguageId(n[1])!==e),!s)return wa}if(!n||n.length===0){const s=new Uint32Array(2);return s[0]=t,s[1]=DA(e),s.buffer}return n[n.length-2]=t,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=Cr.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=Cr.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len)){if(t===0){this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i);return}this._lineTokens[n]=Cr.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)}}}function DA(o){return(o<<0|0<<8|0<<11|1<<15|2<<24|1024)>>>0}class NE{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),r=t[t.length-1].getRange();if(!s||!r)return e;i=e.plusRange(s).plusRange(r)}let n=null;for(let s=0,r=this._pieces.length;si.endLineNumber){n=n||{index:s};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(a.endLineNumberi.endLineNumber){n=n||{index:s};continue}const[l,c]=a.split(i);if(l.isEmpty()){n=n||{index:s};continue}c.isEmpty()||(this._pieces.splice(s,1,l,c),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=RC(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(t.getLineContent().length===0)return t;const i=this._pieces;if(i.length===0)return t;const n=NE._findFirstPieceWithLine(i,e),s=i[n].getLineTokens(e);if(!s)return t;const r=t.getCount(),a=s.getCount();let l=0;const c=[];let d=0,h=0;const u=(g,f)=>{g!==h&&(h=g,c[d++]=g,c[d++]=f)};for(let g=0;g>>0,C=~v>>>0;for(;lt)n=s-1;else{for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}}return i}acceptEdit(e,t,i,n,s){for(const r of this._pieces)r.acceptEdit(e,t,i,n,s)}}class Rv extends nF{constructor(e,t,i,n,s){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this.bracketPairsTextModelPart=n,this._languageId=s,this._onDidChangeLanguage=this._register(new R),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new R),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new R),this.onDidChangeTokens=this._onDidChangeTokens.event,this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new R),this._tokens=new Mv(this._languageService.languageIdCodec),this._semanticTokens=new NE(this._languageService.languageIdCodec),this._tokenization=new Vq(i,this,this._languageService.languageIdCodec),this._languageRegistryListener=this._languageConfigurationService.onDidChange(r=>{r.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})}acceptEdit(e,t,i,n,s){this._tokens.acceptEdit(e,i,n),this._semanticTokens.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}handleDidChangeAttached(){this._tokenization.handleDidChangeAttached()}flush(){this._tokens.flush(),this._semanticTokens.flush()}handleDidChangeContent(e){this._tokenization.handleDidChangeContent(e)}dispose(){this._languageRegistryListener.dispose(),this._tokenization.dispose(),super.dispose()}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(this._backgroundTokenizationState===2)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this.bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}setTokens(e,t=!1){if(e.length!==0){const i=[];for(let n=0,s=e.length;n0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._textModel.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this.bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,i)}getTokenTypeIfInsertingCharacter(e,t,i){const n=this._textModel.validatePosition(new B(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){const n=this._textModel.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(n,t,i)}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[r,a]=Rv._findLanguageBoundaries(n,s),l=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(s>0&&r===t.column-1){const[c,d]=Rv._findLanguageBoundaries(n,s-1),h=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(c,d),c);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let s=e.getLineContent().length;for(let r=t,a=e.getCount();r=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},LS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function Uq(o){const e=new LF;return e.acceptChunk(o),e.finish()}function $q(o){const e=new LF;let t;for(;typeof(t=o.read())=="string";)e.acceptChunk(t);return e.finish()}function kA(o,e){let t;return typeof o=="string"?t=Uq(o):BB(o)?t=$q(o):t=o,t.create(e)}let Cb=0;const jq=999,Kq=1e4;class qq{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const n=this._source.read();if(n===null)return this._eos=!0,t===0?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=64*1024)return e.join("")}while(!0)}}const kf=()=>{throw new Error("Invalid change accessor")};let il=class Yf extends H{constructor(e,t,i,n=null,s,r,a){super(),this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new R),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Qq(u=>this.handleBeforeFireDecorationsChangedEvent(u))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new R),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new R),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new R),this._eventEmitter=this._register(new Xq),this._deltaDecorationCallCnt=0,Cb++,this.id="$model"+Cb,this.isForSimpleWidget=i.isForSimpleWidget,typeof n>"u"||n===null?this._associatedResource=_e.parse("inmemory://model/"+Cb):this._associatedResource=n,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=kA(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=Yf.resolveOptions(this._buffer,i),this._bracketPairs=this._register(new oq(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Aj(this,this._languageConfigurationService)),this._decorationProvider=this._register(new aq(this)),this._tokenizationTextModelPart=new Rv(this._languageService,this._languageConfigurationService,this,this._bracketPairs,t);const d=this._buffer.getLineCount(),h=this._buffer.getValueLengthInRange(new L(1,1,d,this._buffer.getLineLength(d)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=h>Yf.LARGE_FILE_SIZE_THRESHOLD||d>Yf.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=h>Yf.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=mP(Cb),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new xA,this._commandManager=new kE(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){const i=_A(e,t.tabSize,t.insertSpaces);return new p0({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new p0({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return qo(this._eventEmitter.fastEvent(t=>e(t)),this._onDidChangeInjectedText.event(t=>e(t)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new zu([],"",` +`&&(this._cr>0||this._crlf>0)))for(let s=0,r=i.length;s=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=Mq(this._tmpLineStarts,e);this.chunks.push(new Jc(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=eg(e)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=pP(e))}finish(e=!0){return this._finish(),new Fq(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Ca(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class Bq{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class yS{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new Bq(e,[t]))}finalize(){return this._tokens}}class LA{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let n=0;n{const s=this._textModel.getLanguageId();n.changedLanguages.indexOf(s)!==-1&&(this._resetTokenizationState(),this._tokenizationPart.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(e){if(e.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let t=0,i=e.changes.length;t{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}tokenizeViewport(e,t){const i=new yS;this._tokenizeViewport(i,e,t),this._tokenizationPart.setTokens(i.finalize(),this._isTokenizationComplete())}reset(){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}forceTokenization(e){const t=new yS;this._updateTokensUntilLine(t,e),this._tokenizationPart.setTokens(t.finalize(),this._isTokenizationComplete())}getTokenTypeIfInsertingCharacter(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);const i=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),r=s.substring(0,e.column-1)+t+s.substring(e.column-1),a=Df(this._languageIdCodec,n,this._tokenizationStateStore.tokenizationSupport,r,!0,i),l=new Di(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const c=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(n);const r=this._tokenizationStateStore.getBeginState(n-1);if(!r)return null;const a=this._textModel.getLineContent(n),l=a.substring(0,s-1)+i+a.substring(s-1+t),c=this._textModel.getLanguageIdAtPosition(n,0),d=Df(this._languageIdCodec,c,this._tokenizationStateStore.tokenizationSupport,l,!0,r);return new Di(d.tokens,l,this._languageIdCodec)}isCheapToTokenize(e){if(!this._tokenizationStateStore)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return e>t?!1:e=this._textModel.getLineCount():!1}_tokenizeOneInvalidLine(e){if(!this._tokenizationStateStore||!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}_updateTokensUntilLine(e,t){if(!this._tokenizationStateStore)return;const i=this._textModel.getLanguageId(),n=this._textModel.getLineCount(),s=t-1;for(let r=this._tokenizationStateStore.invalidLineStartIndex;r<=s;r++){const a=this._textModel.getLineContent(r+1),l=this._tokenizationStateStore.getBeginState(r),c=Df(this._languageIdCodec,i,this._tokenizationStateStore.tokenizationSupport,a,!0,l);e.add(r+1,c.tokens),this._tokenizationStateStore.setEndState(n,r,c.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(e,t,i){if(!this._tokenizationStateStore||i<=this._tokenizationStateStore.invalidLineStartIndex)return;if(t<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(e,i);return}let n=this._textModel.getLineFirstNonWhitespaceColumn(t);const s=[];let r=null;for(let c=t-1;n>1&&c>=1;c--){const d=this._textModel.getLineFirstNonWhitespaceColumn(c);if(d!==0&&d=0;c--)l=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,s[c],!1,l).endState;for(let c=t;c<=i;c++){const d=this._textModel.getLineContent(c),h=Df(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,d,!0,l);e.add(c,h.tokens),this._tokenizationStateStore.markMustBeTokenized(c-1),l=h.endState}}}function Hq(o,e){if(o.isTooLargeForTokenization())return[null,null];const t=Wt.get(e.getLanguageId());if(!t)return[null,null];let i;try{i=t.getInitialState()}catch(n){return Te(n),[null,null]}return[t,i]}function Df(o,e,t,i,n,s){let r=null;if(t)try{r=t.tokenizeEncoded(i,n,s.clone())}catch(a){Te(a)}return r||(r=qC(o.encodeLanguageId(e),s)),Di.convertToEndOffset(r.tokens,i.length),r}const wa=new Uint32Array(0).buffer;class Cr{static deleteBeginning(e,t){return e===null||e===wa?e:Cr.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===wa)return e;const i=Aa(e),n=i[i.length-2];return Cr.delete(e,t,n)}static delete(e,t,i){if(e===null||e===wa||t===i)return e;const n=Aa(e),s=n.length>>>1;if(t===0&&n[n.length-2]===i)return wa;const r=Di.findIndexInTokensArray(n,t),a=r>0?n[r-1<<1]:0,l=n[r<<1];if(id&&(n[c++]=f,n[c++]=n[(g<<1)+1],d=f)}if(c===n.length)return e;const u=new Uint32Array(c);return u.set(n.subarray(0,c),0),u.buffer}static append(e,t){if(t===wa)return e;if(e===wa)return t;if(e===null)return e;if(t===null)return null;const i=Aa(e),n=Aa(t),s=n.length>>>1,r=new Uint32Array(i.length+n.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c>>1;let r=Di.findIndexInTokensArray(n,t);r>0&&n[r-1<<1]===t&&r--;for(let a=r;a1&&(s=qi.getLanguageId(n[1])!==e),!s)return wa}if(!n||n.length===0){const s=new Uint32Array(2);return s[0]=t,s[1]=DA(e),s.buffer}return n[n.length-2]=t,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=Cr.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=Cr.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len)){if(t===0){this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i);return}this._lineTokens[n]=Cr.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=Cr.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)}}}function DA(o){return(o<<0|0<<8|0<<11|1<<15|2<<24|1024)>>>0}class NE{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),r=t[t.length-1].getRange();if(!s||!r)return e;i=e.plusRange(s).plusRange(r)}let n=null;for(let s=0,r=this._pieces.length;si.endLineNumber){n=n||{index:s};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(a.endLineNumberi.endLineNumber){n=n||{index:s};continue}const[l,c]=a.split(i);if(l.isEmpty()){n=n||{index:s};continue}c.isEmpty()||(this._pieces.splice(s,1,l,c),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=RC(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(t.getLineContent().length===0)return t;const i=this._pieces;if(i.length===0)return t;const n=NE._findFirstPieceWithLine(i,e),s=i[n].getLineTokens(e);if(!s)return t;const r=t.getCount(),a=s.getCount();let l=0;const c=[];let d=0,h=0;const u=(g,f)=>{g!==h&&(h=g,c[d++]=g,c[d++]=f)};for(let g=0;g>>0,C=~v>>>0;for(;lt)n=s-1;else{for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}}return i}acceptEdit(e,t,i,n,s){for(const r of this._pieces)r.acceptEdit(e,t,i,n,s)}}class Rv extends n5{constructor(e,t,i,n,s){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this.bracketPairsTextModelPart=n,this._languageId=s,this._onDidChangeLanguage=this._register(new R),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new R),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new R),this.onDidChangeTokens=this._onDidChangeTokens.event,this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new R),this._tokens=new Mv(this._languageService.languageIdCodec),this._semanticTokens=new NE(this._languageService.languageIdCodec),this._tokenization=new Vq(i,this,this._languageService.languageIdCodec),this._languageRegistryListener=this._languageConfigurationService.onDidChange(r=>{r.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})}acceptEdit(e,t,i,n,s){this._tokens.acceptEdit(e,i,n),this._semanticTokens.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}handleDidChangeAttached(){this._tokenization.handleDidChangeAttached()}flush(){this._tokens.flush(),this._semanticTokens.flush()}handleDidChangeContent(e){this._tokenization.handleDidChangeContent(e)}dispose(){this._languageRegistryListener.dispose(),this._tokenization.dispose(),super.dispose()}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(this._backgroundTokenizationState===2)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this.bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}setTokens(e,t=!1){if(e.length!==0){const i=[];for(let n=0,s=e.length;n0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._textModel.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this.bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,i)}getTokenTypeIfInsertingCharacter(e,t,i){const n=this._textModel.validatePosition(new B(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){const n=this._textModel.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(n,t,i)}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[r,a]=Rv._findLanguageBoundaries(n,s),l=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(s>0&&r===t.column-1){const[c,d]=Rv._findLanguageBoundaries(n,s-1),h=Mp(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(c,d),c);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let s=e.getLineContent().length;for(let r=t,a=e.getCount();r=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},LS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function Uq(o){const e=new L5;return e.acceptChunk(o),e.finish()}function $q(o){const e=new L5;let t;for(;typeof(t=o.read())=="string";)e.acceptChunk(t);return e.finish()}function kA(o,e){let t;return typeof o=="string"?t=Uq(o):BB(o)?t=$q(o):t=o,t.create(e)}let Cb=0;const jq=999,Kq=1e4;class qq{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const n=this._source.read();if(n===null)return this._eos=!0,t===0?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=64*1024)return e.join("")}while(!0)}}const kf=()=>{throw new Error("Invalid change accessor")};let il=class Yf extends H{constructor(e,t,i,n=null,s,r,a){super(),this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new R),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Qq(u=>this.handleBeforeFireDecorationsChangedEvent(u))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new R),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new R),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new R),this._eventEmitter=this._register(new Xq),this._deltaDecorationCallCnt=0,Cb++,this.id="$model"+Cb,this.isForSimpleWidget=i.isForSimpleWidget,typeof n>"u"||n===null?this._associatedResource=_e.parse("inmemory://model/"+Cb):this._associatedResource=n,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=kA(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=Yf.resolveOptions(this._buffer,i),this._bracketPairs=this._register(new oq(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Aj(this,this._languageConfigurationService)),this._decorationProvider=this._register(new aq(this)),this._tokenizationTextModelPart=new Rv(this._languageService,this._languageConfigurationService,this,this._bracketPairs,t);const d=this._buffer.getLineCount(),h=this._buffer.getValueLengthInRange(new L(1,1,d,this._buffer.getLineLength(d)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=h>Yf.LARGE_FILE_SIZE_THRESHOLD||d>Yf.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=h>Yf.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=mP(Cb),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new xA,this._commandManager=new kE(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){const i=_A(e,t.tabSize,t.insertSpaces);return new p0({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new p0({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return qo(this._eventEmitter.fastEvent(t=>e(t)),this._onDidChangeInjectedText.event(t=>e(t)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new zu([],"",` `,!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=H.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new vd(e,t)))}setValue(e){if(this._assertNotDisposed(),e===null)return;const{textBuffer:t,disposable:i}=kA(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:s,isRedoing:r,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),r=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokenizationTextModelPart.flush(),this._decorations=Object.create(null),this._decorationsTree=new xA,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Vu([new cK],this._versionId,!1,!1),this._createContentChanged2(new L(1,1,s,r),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=e===1?`\r `:` `;if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),r=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Vu([new uK],this._versionId,!1,!1),this._createContentChanged2(new L(1,1,s,r),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const s=this._buffer.getLineLength(n);s>=Kq?t+=s:e+=s}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=typeof e.tabSize<"u"?e.tabSize:this._options.tabSize,i=typeof e.indentSize<"u"?e.indentSize:this._options.indentSize,n=typeof e.insertSpaces<"u"?e.insertSpaces:this._options.insertSpaces,s=typeof e.trimAutoWhitespace<"u"?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=typeof e.bracketColorizationOptions<"u"?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new p0({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:r});if(this._options.equals(a))return;const l=this._options.createChangeEvent(a);this._options=a,this._bracketPairs.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();const i=_A(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),Sv(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(fP.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(i=>({range:i.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new qq(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` @@ -103,17 +103,17 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config `)<0){const c=new $c(e,i,n,s).parseSearchRequest();if(!c)return null;const d=this.getLineCount();let h=new L(a.lineNumber,a.column,d,this.getLineMaxColumn(d)),u=this.findMatchesLineByLine(h,c,r,1);return J_.findNextMatch(this,new $c(e,i,n,s),a,r),u.length>0||(h=new L(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),u=this.findMatchesLineByLine(h,c,r,1),u.length>0)?u[0]:null}return J_.findNextMatch(this,new $c(e,i,n,s),a,r)}findPreviousMatch(e,t,i,n,s,r){this._assertNotDisposed();const a=this.validatePosition(t);return J_.findPreviousMatch(this,new $c(e,i,n,s),a,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if((this.getEOL()===` `?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof Ww?e:new Ww(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(r.range),text:r.text}));let s=!0;if(e)for(let r=0,a=e.length;rl.endLineNumber,f=l.startLineNumber>u.endLineNumber;if(!g&&!f){c=!0;break}}if(!c){s=!1;break}}if(s)for(let r=0,a=this._trimAutoWhitespaceLines.length;rg.endLineNumber)&&!(l===g.startLineNumber&&g.startColumn===c&&g.isEmpty()&&f&&f.length>0&&f.charAt(0)===` `)&&!(l===g.startLineNumber&&g.startColumn===1&&g.isEmpty()&&f&&f.length>0&&f.charAt(f.length-1)===` -`)){d=!1;break}}if(d){const h=new L(l,1,l,c);t.push(new Ww(null,h,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),s=this._buffer.getLineCount(),r=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,r.length!==0){for(let c=0,d=r.length;c=0;I--){const O=g+I,F=w+I;D.takeFromEndWhile(j=>j.lineNumber>F);const z=D.takeFromEndWhile(j=>j.lineNumber===F);a.push(new lA(O,this.getLineContent(F),z))}if(v<_){const I=g+v;a.push(new dK(I+1,f))}if(vye.lineNumberye.lineNumber===Se)}a.push(new hK(O+1,g+b,re,j))}l+=C}this._emitContentChangedEvent(new Vu(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return n.reverseEdits===null?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(e===null||e.size===0)return;const i=Array.from(e).map(n=>new lA(n,this.getLineContent(n),this._getInjectedTextInLine(n)));this._onDidChangeInjectedText.fire(new oF(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(s,r)=>this._deltaDecorationsImpl(e,[],[{range:s,options:r}])[0],changeDecoration:(s,r)=>{this._changeDecorationImpl(s,r)},changeDecorationOptions:(s,r)=>{this._changeDecorationOptionsImpl(s,EA(r))},removeDecoration:s=>{this._deltaDecorationsImpl(e,[s],[])},deltaDecorations:(s,r)=>s.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,s,r)};let n=null;try{n=t(i)}catch(s){Te(s)}return i.addDecoration=kf,i.changeDecoration=kf,i.changeDecorationOptions=kf,i.removeDecoration=kf,i.deltaDecorations=kf,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),Te(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:IA[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,a,s),n.setOptions(IA[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){const s=this.getLineCount(),r=Math.min(s,Math.max(1,e)),a=Math.min(s,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new L(r,1,a,l),d=this._getDecorationsInRange(c,i,n);return kT(d,this._decorationProvider.getDecorationsInRange(c,i,n)),d}getDecorationsInRange(e,t=0,i=!1){const n=this.validateRange(e),s=this._getDecorationsInRange(n,t,i);return kT(s,this._decorationProvider.getDecorationsInRange(n,t,i)),s}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return er.fromDecorations(n).filter(s=>s.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,s,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,r,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!!(i.options.overviewRuler&&i.options.overviewRuler.color),s=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber)}if(i.options.before||t.before){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}n!==s?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const n=this.getVersionId(),s=t.length;let r=0;const a=i.length;let l=0;const c=new Array(a);for(;ra.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(s=>s.options.showIfCollapsed||!s.range.isEmpty())}getAll(e,t,i,n){const s=e.getVersionId(),r=this._search(t,i,n,s);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{const s=this._decorationsTree0.search(e,t,n),r=this._decorationsTree1.search(e,t,n),a=this._injectedTextDecorationsTree.search(e,t,n);return s.concat(r).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){kS(e)?this._injectedTextDecorationsTree.insert(e):DS(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){kS(e)?this._injectedTextDecorationsTree.delete(e):DS(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){kS(e)?this._injectedTextDecorationsTree.resolveNode(e,t):DS(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function da(o){return o.replace(/[^a-z0-9\-_]/gi," ")}class kF{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Zq extends kF{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:Zs.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Yq extends kF{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?W.fromHex(e):t.getColor(e.id)}}class zd{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof zd?e:new zd(e)}}class Ne{constructor(e){var t,i;this.description=e.description,this.blockClassName=e.blockClassName?da(e.blockClassName):null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?da(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Zq(e.overviewRuler):null,this.minimap=e.minimap?new Yq(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?da(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?da(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?da(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?da(e.marginClassName):null,this.inlineClassName=e.inlineClassName?da(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?da(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?da(e.afterContentClassName):null,this.after=e.after?zd.from(e.after):null,this.before=e.before?zd.from(e.before):null,this.hideInCommentTokens=(t=e.hideInCommentTokens)!==null&&t!==void 0?t:!1,this.hideInStringTokens=(i=e.hideInStringTokens)!==null&&i!==void 0?i:!1}static register(e){return new Ne(e)}static createDynamic(e){return new Ne(e)}}Ne.EMPTY=Ne.register({description:"empty"});const IA=[Ne.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Ne.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Ne.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Ne.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function EA(o){return o instanceof Ne?o:Ne.createDynamic(o)}class Qq extends H{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new R),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!!(e.minimap&&e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(e.overviewRuler&&e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Xq extends H{constructor(){super(),this._fastEmitter=this._register(new R),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new R),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}var Jq=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const NA={getInitialState:()=>ng,tokenizeEncoded:(o,e,t)=>qC(0,t)};function eG(o,e,t){return Jq(this,void 0,void 0,function*(){if(!t)return TA(e,o.languageIdCodec,NA);const i=yield Wt.getOrCreate(t);return TA(e,o.languageIdCodec,i||NA)})}function tG(o,e,t,i,n,s,r){let a="
",l=i,c=0,d=!0;for(let h=0,u=e.getCount();h0;)r&&d?(f+=" ",d=!1):(f+=" ",d=!0),b--;break}case 60:f+="<",d=!1;break;case 62:f+=">",d=!1;break;case 38:f+="&",d=!1;break;case 0:f+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:f+="\uFFFD",d=!1;break;case 13:f+="​",d=!1;break;case 32:r&&d?(f+=" ",d=!1):(f+=" ",d=!0);break;default:f+=String.fromCharCode(_),d=!1}}if(a+=`${f}`,g>n||l>=n)break}return a+="
",a}function TA(o,e,t){let i='
';const n=jr(o);let s=t.getInitialState();for(let r=0,a=n.length;r0&&(i+="
");const c=t.tokenizeEncoded(l,!0,s);Di.convertToEndOffset(c.tokens,l.length);const h=new Di(c.tokens,l,e).inflate();let u=0;for(let g=0,f=h.getCount();g${_I(l.substring(u,b))}`,u=b}s=c.endState}return i+="
",i}class iG{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class nG{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}class um{constructor(e,t,i,n){this._instanceId=mP(++um.INSTANCE_COUNT),this._pendingChanges=new iG,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n>>1;t===e[r].afterLineNumber?i{t=!0,n=n|0,s=s|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new nG(l,n,s,r,a)),l},changeOneWhitespace:(n,s,r)=>{t=!0,s=s|0,r=r|0,this._pendingChanges.change({id:n,newAfterLineNumber:s,newHeight:r})},removeWhitespace:n=>{t=!0,this._pendingChanges.remove({id:n})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const c=this._findWhitespaceIndex(l.id);c!==-1&&this._removeWhitespace(c)}return}const n=new Set;for(const l of i)n.add(l.id);const s=new Map;for(const l of t)s.set(l.id,l);const r=l=>{const c=[];for(const d of l)if(!n.has(d.id)){if(s.has(d.id)){const h=s.get(d.id);d.afterLineNumber=h.newAfterLineNumber,d.height=h.newHeight}c.push(d)}return c},a=r(this._arr).concat(r(e));a.sort((l,c)=>l.afterLineNumber===c.afterLineNumber?l.ordinal-c.ordinal:l.afterLineNumber-c.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=um.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else n=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?i=this._lineHeight*(e-1):i=0;const n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0));return i+n+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e=e|0;const i=this._lineHeight*e,n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0));return i+n+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let n=1,s=t;for(;n=a+i)n=r+1;else{if(e>=a)return r;s=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,n=this.getLineNumberAtOrAfterVerticalOffset(e)|0,s=this.getVerticalOffsetForLineNumber(n)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(n)|0;const l=this.getWhitespacesCount()|0;let c,d;a===-1?(a=l,d=r+1,c=0):(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);let h=s,u=h;const g=5e5;let f=0;s>=g&&(f=Math.floor(s/g)*g,f=Math.floor(f/i)*i,u-=f);const _=[],b=e+(t-e)/2;let v=-1;for(let k=n;k<=r;k++){if(v===-1){const x=h,y=h+i;(x<=b&&bb)&&(v=k)}for(h+=i,_[k-n]=u,u+=i;d===k;)u+=c,h+=c,a++,a>=l?d=r+1:(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);if(h>=t){r=k;break}}v===-1&&(v=r);const C=this.getVerticalOffsetForLineNumber(r)|0;let w=n,S=r;return wt&&S--,{bigNumbersDelta:f,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:_,centeredLineNumber:v,completelyVisibleStartLineNumber:w,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let n;return e>0?n=this.getWhitespacesAccumulatedHeight(e-1):n=0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const n=this.getVerticalOffsetForWhitespaceIndex(i),s=this.getHeightForWhitespaceIndex(i);if(e>=n+s)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t),s=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:s,afterLineNumber:r,verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let r=i;r<=n;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;s.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}}um.INSTANCE_COUNT=0;const sG=125;class Qf{constructor(e,t,i,n){e=e|0,t=t|0,i=i|0,n=n|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),n<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class oG extends H{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new R),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Qf(0,0,0,0),this._scrollable=this._register(new f_({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new bE(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class rG extends H{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(133),r=n.get(77);this._linesLayout=new um(t,n.get(61),r.top,r.bottom),this._scrollable=this._register(new oG(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Qf(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(105)?sG:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(61)&&this._linesLayout.setLineHeight(t.get(61)),e.hasChanged(77)){const i=t.get(77);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(133)){const i=t.get(133),n=i.contentWidth,s=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new Qf(n,r.contentWidth,s,this._getContentHeight(n,s,a)))}else this._updateHeight();e.hasChanged(105)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(94);return n.horizontal===2||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(96)?s+=Math.max(0,t-n.get(61)-n.get(77).bottom):s+=this._getHorizontalScrollbarHeight(e,i),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Qf(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(134),n=t.get(46),s=t.get(133);if(i.isViewportWrapping){const r=t.get(67);return e>s.contentWidth+n.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?e+s.verticalScrollbarWidth:e}else{const r=t.get(95)*n.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+r+s.verticalScrollbarWidth,a)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Qf(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),n=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-n,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class aG{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,s=e.options;let r;if(s.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.startLineNumber,1),0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);r=new L(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new $P(r,s),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){const t=new L(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,q0(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,s=[];let r=0;const a=[];for(let l=i;l<=n;l++)a[l-i]=[];for(let l=0,c=t.length;lt===1)}function ME(o,e){return xF(o,e.range,t=>t===2)}function xF(o,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const n=o.tokenization.getLineTokens(i),s=i===e.startLineNumber,r=i===e.endLineNumber;let a=s?n.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(n.getStandardTokenType(a)))return!1;a++}}return!0}function xS(o,e){return o===null?e?Ov.INSTANCE:Pv.INSTANCE:new lG(o,e)}class lG{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((c,d)=>new er(0,0,c+1,this._projectionData.injectionOptions[d],0));r=er.applyInjectedText(e.getLineContent(t),a).substring(n,s)}else r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(r=AA(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,r,a){this._assertVisible();const l=this._projectionData,c=l.injectionOffsets,d=l.injectionOptions;let h=null;if(c){h=[];let g=0,f=0;for(let _=0;_0?l.breakOffsets[_-1]:0,C=l.breakOffsets[_];for(;fC)break;if(v0?l.wrappedTextIndentLength:0,D=y+Math.max(S-v,0),I=y+Math.min(k-v,C);D!==I&&b.push(new PV(D,I,x.inlineClassName,x.inlineClassNameAffectsLetterSpacing))}}if(k<=C)g+=w,f++;else break}}}let u;c?u=e.tokenization.getLineTokens(t).withInserted(c.map((g,f)=>({offset:g,text:d[f].content,tokenMetadata:Di.defaultTokenMetadata}))):u=e.tokenization.getLineTokens(t);for(let g=i;g0?n.wrappedTextIndentLength:0,r=i>0?n.breakOffsets[i-1]:0,a=n.breakOffsets[i],l=e.sliceAndInflate(r,a,s);let c=l.getLineContent();i>0&&(c=AA(n.wrappedTextIndentLength)+c);const d=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,u=i+1=IS.length)for(let e=1;e<=o;e++)IS[e]=cG(e);return IS[o]}function cG(o){return new Array(o+1).join(" ")}class dG{constructor(e,t,i,n,s,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new uG(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,r=this.createLineBreaksComputer(),a=new Rp(er.fromDecorations(n));for(let _=0;_v.lineNumber===_+1);r.addRequest(i[_],b,t?t[_]:null)}const l=r.finalize(),c=[],d=this.hiddenAreasDecorationIds.map(_=>this.model.getDecorationRange(_)).sort(L.compareRangesUsingStarts);let h=1,u=0,g=-1,f=g+1=h&&b<=u,C=xS(l[_],!v);c[_]=C.getViewLineCount(),this.modelLineProjections[_]=C}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new JW(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(u=>this.model.validateRange(u)),i=hG(t),n=this.hiddenAreasDecorationIds.map(u=>this.model.getDecorationRange(u)).sort(L.compareRangesUsingStarts);if(i.length===n.length){let u=!1;for(let g=0;g({range:u,options:Ne.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const r=i;let a=1,l=0,c=-1,d=c+1=a&&g<=l?this.modelLineProjections[u].isVisible()&&(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!1),f=!0):(h=!0,this.modelLineProjections[u].isVisible()||(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!0),f=!0)),f){const _=this.modelLineProjections[u].getViewLineCount();this.projectedModelLineLineCounts.setValue(u,_)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const s=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n;if(s&&r&&a&&l)return!1;const c=s&&r&&!a&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let d=null;if(c){d=[];for(let h=0,u=this.modelLineProjections.length;h2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],c=[];for(let d=0,h=n.length;dl?(d=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=d+l-1,f=h+1,_=f+(s-l)-1,c=!0):st?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),c=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:c.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new MA(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=n.modelLineNumber;l++){const c=this.modelLineProjections[l-1];if(c.isVisible()){const d=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,h=l===n.modelLineNumber?n.modelLineWrappedLineIdx+1:c.getViewLineCount();for(let u=d;u{if(g.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesAfterColumn).lineNumber>=d.modelLineWrappedLineIdx||g.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesBeforeOrAtColumn).lineNumberd.modelLineWrappedLineIdx)return}const _=this.convertModelPositionToViewPosition(d.modelLineNumber,g.horizontalLine.endColumn),b=this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.horizontalLine.endColumn);return b.lineNumber===d.modelLineWrappedLineIdx?new hd(g.visibleColumn,f,g.className,new up(g.horizontalLine.top,_.column),-1,-1):b.lineNumber!!g))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const r=[],a=[],l=i.lineNumber-1,c=n.lineNumber-1;let d=null;for(let f=l;f<=c;f++){const _=this.modelLineProjections[f];if(_.isVisible()){const b=_.getViewLineNumberOfModelPosition(0,f===l?i.column:1),v=_.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),C=v-b+1;let w=0;C>1&&_.getViewLineMinColumn(this.model,f+1,v)===1&&(w=b===0?1:2),r.push(C),a.push(w),d===null&&(d=new B(f+1,0))}else d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,f)),d=null)}d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const h=t-e+1,u=new Array(h);let g=0;for(let f=0,_=s.length;f<_;f++){let b=s[f];const v=Math.min(h-g,r[f]),C=a[f];let w;C===2?w=0:C===1?w=1:w=v;for(let S=0;St&&(f=!0,g=t-s+1),h.getViewLinesData(this.model,c+1,u,g,s-e,i,l),s+=g,f)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,r=n.remainder,a=this.modelLineProjections[s],l=a.getViewLineMinColumn(this.model,s+1,r),c=a.getViewLineMaxColumn(this.model,s+1,r);tc&&(t=c);const d=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new B(s+1,d)).equals(i)?new B(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new L(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new B(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new L(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new B(e,t)),s=n.lineNumber,r=n.column;let a=s-1,l=!1;for(;a>0&&!this.modelLineProjections[a].isVisible();)a--,l=!0;if(a===0&&!this.modelLineProjections[a].isVisible())return new B(1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(a);let d;return l?d=this.modelLineProjections[a].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(a+1),i):d=this.modelLineProjections[s-1].getViewPositionOfModelPosition(c,r,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return L.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new L(i.lineNumber,i.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),s=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(s.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new L(n.lineNumber,1,s.lineNumber,s.column),t,i);let r=[];const a=n.lineNumber-1,l=s.lineNumber-1;let c=null;for(let g=a;g<=l;g++)if(this.modelLineProjections[g].isVisible())c===null&&(c=new B(g+1,g===a?n.column:1));else if(c!==null){const _=this.model.getLineMaxColumn(g);r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,g,_),t,i)),c=null}c!==null&&(r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,s.lineNumber,s.column),t,i)),c=null),r.sort((g,f)=>{const _=L.compareRangesUsingStarts(g.range,f.range);return _===0?g.idf.id?1:0:_});const d=[];let h=0,u=null;for(const g of r){const f=g.id;u!==f&&(u=f,d[h++]=g)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function hG(o){if(o.length===0)return[];const e=o.slice();e.sort(L.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,n=e[0].endLineNumber;for(let s=1,r=e.length;sn+1?(t.push(new L(i,1,n,1)),i=a.startLineNumber,n=a.endLineNumber):a.endLineNumber>n&&(n=a.endLineNumber)}return t.push(new L(i,1,n,1)),t}class MA{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class RA{constructor(e,t){this.modelRange=e,this.viewLines=t}}class uG{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class gG{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new fG(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new _D(t,i)}onModelLinesInserted(e,t,i,n){return new bD(t,i)}onModelLineChanged(e,t,i){return[!1,new rF(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;st)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class pG extends H{constructor(e,t,i,n,s,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new LK,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new mt(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new mt(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=RE.create(this.model),this.model.isTooLargeForTokenization())this._lines=new gG(this.model);else{const c=this._configuration.options,d=c.get(46),h=c.get(127),u=c.get(134),g=c.get(126);this._lines=new dG(this._editorId,this.model,n,s,d,this.model.getOptions().tabSize,h,u.wrappingColumn,g)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new gg(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new rG(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),c.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new vK(c)),this._eventDispatcher.emitOutgoingEvent(new CE(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new aG(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const d=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(d,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(m_.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new SK)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new CK(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new L(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const n of i)this.model.tokenization.tokenizeViewport(n.startLineNumber,n.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new _K(e)),this._eventDispatcher.emitOutgoingEvent(new vE(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new gK)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new fK)}_onConfigurationChanged(e,t){let i=null;if(this._viewportStart.isValid){const d=new B(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber));i=this.coordinatesConverter.convertViewPositionToModelPosition(d)}let n=!1;const s=this._configuration.options,r=s.get(46),a=s.get(127),l=s.get(134),c=s.get(126);if(this._lines.setWrappingSettings(r,a,l.wrappingColumn,c)&&(e.emitViewEvent(new fb),e.emitViewEvent(new pb),e.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(83)&&(this._decorations.reset(),e.emitViewEvent(new Oh(null))),e.emitViewEvent(new pK(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const d=this.coordinatesConverter.convertModelPositionToViewPosition(i),h=this.viewLayout.getVerticalOffsetForLineNumber(d.lineNumber);this.viewLayout.setScrollPosition({scrollTop:h+this._viewportStart.startLineDelta},1)}Rh.shouldRecreate(t)&&(this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const i=this._eventDispatcher.beginEmitViewEvents();let n=!1,s=!1;const r=e instanceof vd?e.rawContentChangedEvent.changes:e.changes,a=e instanceof vd?e.rawContentChangedEvent.versionId:null,l=this._lines.createLineBreaksComputer();for(const h of r)switch(h.changeType){case 4:{for(let u=0;u!_.ownerId||_.ownerId===this._editorId)),l.addRequest(g,f,null)}break}case 2:{let u=null;h.injectedText&&(u=h.injectedText.filter(g=>!g.ownerId||g.ownerId===this._editorId)),l.addRequest(h.detail,u,null);break}}const c=l.finalize(),d=new Rp(c);for(const h of r)switch(h.changeType){case 1:{this._lines.onModelFlushed(),i.emitViewEvent(new fb),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break}case 3:{const u=this._lines.onModelLinesDeleted(a,h.fromLineNumber,h.toLineNumber);u!==null&&(i.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber)),n=!0;break}case 4:{const u=d.takeCount(h.detail.length),g=this._lines.onModelLinesInserted(a,h.fromLineNumber,h.toLineNumber,u);g!==null&&(i.emitViewEvent(g),this.viewLayout.onLinesInserted(g.fromLineNumber,g.toLineNumber)),n=!0;break}case 2:{const u=d.dequeue(),[g,f,_,b]=this._lines.onModelLineChanged(a,h.lineNumber,u);s=g,f&&i.emitViewEvent(f),_&&(i.emitViewEvent(_),this.viewLayout.onLinesInserted(_.fromLineNumber,_.toLineNumber)),b&&(i.emitViewEvent(b),this.viewLayout.onLinesDeleted(b.fromLineNumber,b.toLineNumber));break}case 5:break}a!==null&&this._lines.acceptVersionId(a),this.viewLayout.onHeightMaybeChanged(),!n&&s&&(i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const i=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(i){const n=this.coordinatesConverter.convertModelPositionToViewPosition(i.getStartPosition()),s=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber);this.viewLayout.setScrollPosition({scrollTop:s+this._viewportStart.startLineDelta},1)}}try{const i=this._eventDispatcher.beginEmitViewEvents();e instanceof vd&&i.emitOutgoingEvent(new AK(e.contentChangedEvent)),this._cursor.onModelContentChanged(i,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new bK),this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new TK(e))})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new NK(e))})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new fb),t.emitViewEvent(new pb),t.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new MK(e))})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Oh(e)),this._eventDispatcher.emitOutgoingEvent(new EK(e))}))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new fb),i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new xK)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(133),t=this._configuration.options.get(61),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new L(s,this.getLineMinColumn(s),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const n=[];let s=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,c=t.endColumn;for(let d=0,h=i.length;dl||(r"u")return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=kn(this.getLineContent(e));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Vr(this.getLineContent(e));return t===-1?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const n=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,n)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map(a=>a.toInlineDecoration(e))]),new Ds(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,t,s,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new OV(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,q0(this._configuration.options)),i=new mG;for(const n of t){const s=n.options,r=s.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),d=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(l,s.zIndex,c,d,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i&&i.invalidateCachedColor();const n=t.options.minimap;n&&n.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const n=i?`\r -`:this.model.getEOL();e=e.slice(0),e.sort(L.compareRangesUsingStarts);let s=!1,r=!1;for(const l of e)l.isEmpty()?s=!0:r=!0;if(!r){if(!t)return"";const l=e.map(d=>d.startLineNumber);let c="";for(let d=0;d0&&l[d-1]===l[d]||(c+=this.model.getLineContent(l[d])+n);return c}if(s&&t){const l=[];let c=0;for(const d of e){const h=d.startLineNumber;d.isEmpty()?h!==c&&l.push(this.model.getLineContent(h)):l.push(this.model.getValueInRange(d,i?2:0)),c=h}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Ks||e.length!==1)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const d=n.startLineNumber;n=new L(d,this.model.getLineMinColumn(d),d,this.model.getLineMaxColumn(d))}const s=this._configuration.options.get(46),r=this._getColorMap(),l=/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===ts.fontFamily;let c;return l?c=ts.fontFamily:(c=s.fontFamily,c=c.replace(/"/g,"'"),/[,']/.test(c)||/[+ ]/.test(c)&&(c=`'${c}'`),c=`${c}, ${ts.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,r)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let c=i;c<=s;c++){const d=this.model.tokenization.getLineTokens(c),h=d.getLineContent(),u=c===i?n-1:0,g=c===s?r-1:h.length;h===""?l+="
":l+=tG(h,d.inflate(),t,u,g,a,Yi)}return l}_getColorMap(){const e=Wt.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new IK);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,s){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,s))}paste(e,t,i,n){this._executeCursorEdit(s=>this._cursor.paste(s,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,n,s){this._withViewEventsCollector(r=>r.emitViewEvent(new C0(e,!1,i,null,n,t,s)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new yK),this._eventDispatcher.emitOutgoingEvent(new kK))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class RE{constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}static create(e){const t=e._setTrackedRange(null,new L(1,1,1,1),1);return new RE(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new B(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new L(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=r-s}invalidate(){this._isValid=!1}}class mG{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],c=a[a.length-1];if(l===s&&c+1>=i){n>c&&(a[a.length-1]=n);return}a.push(s,i,n)}else{const a=new jP(e,t,[s,i,n]);this._asMap[e]=a,this.asArray.push(a)}}}class k1{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}var gm;(function(o){o[o.Ignore=0]="Ignore",o[o.Info=1]="Info",o[o.Warning=2]="Warning",o[o.Error=3]="Error"})(gm||(gm={}));(function(o){const e="error",t="warning",i="warn",n="info",s="ignore";function r(l){return l?au(e,l)?o.Error:au(t,l)||au(i,l)?o.Warning:au(n,l)?o.Info:o.Ignore:o.Ignore}o.fromValue=r;function a(l){switch(l){case o.Error:return e;case o.Warning:return t;case o.Info:return n;default:return s}}o.toString=a})(gm||(gm={}));const Bt=gm;var IF=Bt;const di=Ye("notificationService");class _G{}class wp{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let n=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let s=0;sthis.injectionOffsets[s];s++)n0?this.breakOffsets[s-1]:0,t===0)if(e<=r)n=s-1;else if(e>l)i=s+1;else break;else if(e=l)i=s+1;else break}let a=e-r;return s>0&&(a+=this.wrappedTextIndentLength),new wb(s,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new wb(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const n=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&OA(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let n=i.offsetInInputWithInjections;if(PA(this.injectionOptions[i.injectedTextIndex].cursorStops))return n;let s=i.injectedTextIndex-1;for(;s>=0&&this.injectionOffsets[s]===this.injectionOffsets[i.injectedTextIndex]&&!(OA(this.injectionOptions[s].cursorStops)||(n-=this.injectionOptions[s].content.length,PA(this.injectionOptions[s].cursorStops)));)s--;return n}}else if(t===1||t===4){let n=i.offsetInInputWithInjections+i.length,s=i.injectedTextIndex;for(;s+1=0&&this.injectionOffsets[s-1]===this.injectionOffsets[s];)n-=this.injectionOptions[s-1].content.length,s--;return n}OC()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let n=0;for(let s=0;se)break;if(e<=l)return{injectedTextIndex:s,offsetInInputWithInjections:a,length:r};n+=r}}}}function OA(o){return o==null?!0:o===Wo.Right||o===Wo.Both}function PA(o){return o==null?!0:o===Wo.Left||o===Wo.Both}class wb{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new B(e+this.outputLineIndex,this.outputOffset+1)}}class OE{constructor(e,t){this.classifier=new bG(e,t)}static create(e){return new OE(e.get(122),e.get(121))}createLineBreaksComputer(e,t,i,n){const s=[],r=[],a=[];return{addRequest:(l,c,d)=>{s.push(l),r.push(c),a.push(d)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let d=0,h=s.length;d=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let kD=[],xD=[];function vG(o,e,t,i,n,s,r){if(n===-1)return null;const a=t.length;if(a<=1)return null;const l=e.breakOffsets,c=e.breakOffsetsVisibleColumn,d=EF(t,i,n,s,r),h=n-d,u=kD,g=xD;let f=0,_=0,b=0,v=n;const C=l.length;let w=0;if(w>=0){let S=Math.abs(c[w]-v);for(;w+1=S)break;S=k,w++}}for(;wS&&(S=_,k=b);let x=0,y=0,D=0,I=0;if(k<=v){let F=k,z=S===0?0:t.charCodeAt(S-1),j=S===0?0:o.get(z),re=!0;for(let he=S;he_&&ID(z,j,ye,xe)&&(x=Se,y=F),F+=He,F>v){Se>_?(D=Se,I=F-He):(D=he+1,I=F),F-y>h&&(x=0),re=!1;break}z=ye,j=xe}if(re){f>0&&(u[f]=l[l.length-1],g[f]=c[l.length-1],f++);break}}if(x===0){let F=k,z=t.charCodeAt(S),j=o.get(z),re=!1;for(let he=S-1;he>=_;he--){const Se=he+1,ye=t.charCodeAt(he);if(ye===9){re=!0;break}let xe,He;if(Td(ye)?(he--,xe=0,He=2):(xe=o.get(ye),He=ic(ye)?s:1),F<=v){if(D===0&&(D=Se,I=F),F<=v-h)break;if(ID(ye,xe,z,j)){x=Se,y=F;break}}F-=He,z=ye,j=xe}if(x!==0){const he=h-(I-y);if(he<=i){const Se=t.charCodeAt(D);let ye;Li(Se)?ye=2:ye=Sp(Se,I,i,s),he-ye<0&&(x=0)}}if(re){w--;continue}}if(x===0&&(x=D,y=I),x<=_){const F=t.charCodeAt(_);Li(F)?(x=_+2,y=b+2):(x=_+1,y=b+Sp(F,b,i,s))}for(_=x,u[f]=x,b=y,g[f]=y,f++,v=y+h;w<0||w=O)break;O=F,w++}}return f===0?null:(u.length=f,g.length=f,kD=e.breakOffsets,xD=e.breakOffsetsVisibleColumn,e.breakOffsets=u,e.breakOffsetsVisibleColumn=g,e.wrappedTextIndentLength=d,e)}function CG(o,e,t,i,n,s,r){const a=er.applyInjectedText(e,t);let l,c;if(t&&t.length>0?(l=t.map(y=>y.options),c=t.map(y=>y.column-1)):(l=null,c=null),n===-1)return l?new wp(c,l,[a.length],[],0):null;const d=a.length;if(d<=1)return l?new wp(c,l,[a.length],[],0):null;const h=EF(a,i,n,s,r),u=n-h,g=[],f=[];let _=0,b=0,v=0,C=n,w=a.charCodeAt(0),S=o.get(w),k=Sp(w,0,i,s),x=1;Li(w)&&(k+=1,w=a.charCodeAt(1),S=o.get(w),x++);for(let y=x;yC&&((b===0||k-v>u)&&(b=D,v=k-F),g[_]=b,f[_]=v,_++,C=v+u,b=0),w=I,S=O}return _===0&&(!t||t.length===0)?null:(g[_]=d,f[_]=k,new wp(c,l,g,f,h))}function Sp(o,e,t,i){return o===9?t-e%t:ic(o)||o<32?i:1}function FA(o,e){return e-o%e}function ID(o,e,t,i){return t!==32&&(e===2&&i!==2||e!==1&&i===1||e===3&&i!==2||i===3&&e!==1)}function EF(o,e,t,i,n){let s=0;if(n!==0){const r=kn(o);if(r!==-1){for(let l=0;lt&&(s=0)}}return s}var ES;const NS=(ES=window.trustedTypes)===null||ES===void 0?void 0:ES.createPolicy("domLineBreaksComputer",{createHTML:o=>o});class PE{static create(){return new PE}constructor(){}createLineBreaksComputer(e,t,i,n){const s=[],r=[];return{addRequest:(a,l,c)=>{s.push(a),r.push(l)},finalize:()=>wG(s,e,t,i,n,r)}}}function wG(o,e,t,i,n,s){var r;function a(D){const I=s[D];if(I){const O=er.applyInjectedText(o[D],I),F=I.map(j=>j.options),z=I.map(j=>j.column-1);return new wp(z,F,[O.length],[],0)}else return null}if(i===-1){const D=[];for(let I=0,O=o.length;Il?(O=0,F=0):z=l-he}const j=I.substr(O),re=SG(j,F,t,z,g,h);f[D]=O,_[D]=F,b[D]=j,v[D]=re[0],C[D]=re[1]}const w=g.build(),S=(r=NS==null?void 0:NS.createHTML(w))!==null&&r!==void 0?r:w;u.innerHTML=S,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);const k=document.createRange(),x=Array.prototype.slice.call(u.children,0),y=[];for(let D=0;Dxe.options),Se=ye.map(xe=>xe.column-1)):(he=null,Se=null),y[D]=new wp(Se,he,O,re,z)}return document.body.removeChild(u),y}function SG(o,e,t,i,n,s){if(s!==0){const u=String(s);n.appendASCIIString('
');const r=o.length;let a=e,l=0;const c=[],d=[];let h=0");for(let u=0;u"),c[u]=l,d[u]=a;const g=h;h=u+1"),c[o.length]=l,d[o.length]=a,n.appendASCIIString("
"),[c,d]}function yG(o,e,t,i){if(t.length<=1)return null;const n=Array.prototype.slice.call(e.children,0),s=[];try{ED(o,n,i,0,null,t.length-1,null,s)}catch(r){return console.log(r),null}return s.length===0?null:(s.push(t.length),s)}function ED(o,e,t,i,n,s,r,a){if(i===s||(n=n||TS(o,e,t[i],t[i+1]),r=r||TS(o,e,t[s],t[s+1]),Math.abs(n[0].top-r[0].top)<=.1))return;if(i+1===s){a.push(s);return}const l=i+(s-i)/2|0,c=TS(o,e,t[l],t[l+1]);ED(o,e,t,i,n,l,c,a),ED(o,e,t,l,c,s,r,a)}function TS(o,e,t,i){return o.setStart(e[t/16384|0].firstChild,t%16384),o.setEnd(e[i/16384|0].firstChild,i%16384),o.getClientRects()}var LG=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ha=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},DG=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kG=0;class xG{constructor(e,t,i,n,s){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s}dispose(){nt(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let pg=class tu extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this.languageConfigurationService=h,this._deliveryQueue=new XO,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onWillType=this._onWillType.event,this._onDidType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection();const g=Object.assign({},t);this._domElement=e,this._overflowWidgetsDomNode=g.overflowWidgetsDomNode,delete g.overflowWidgetsDomNode,this._id=++kG,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,g,d)),this._register(this._configuration.onDidChange(b=>{this._onDidChangeConfiguration.fire(b);const v=this._configuration.options;if(b.hasChanged(133)){const C=v.get(133);this._onDidLayoutChange.fire(C)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new IG(this,this._contextKeyService)),this._register(new EG(this,this._contextKeyService,u)),this._instantiationService=n.createChild(new k1([Ee,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new NG(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let f;Array.isArray(i.contributions)?f=i.contributions:f=md.getEditorContributions();for(const b of f){if(this._contributions[b.id]){Te(new Error(`Cannot have two contributions with the same id ${b.id}`));continue}try{const v=this._instantiationService.createInstance(b.ctor,this);this._contributions[b.id]=v}catch(v){Te(v)}}md.getEditorActions().forEach(b=>{if(this._actions[b.id]){Te(new Error(`Cannot have two actions with the same id ${b.id}`));return}const v=new aF(b.id,b.label,b.alias,Wn(b.precondition),()=>this._instantiationService.invokeFunction(C=>Promise.resolve(b.runEditorCommand(C,this,null))),this._contextKeyService);this._actions[v.id]=v});const _=()=>!this._configuration.options.get(83)&&this._configuration.options.get(32).enabled;this._register(new zH(this._domElement,{onDragEnter:()=>{},onDragOver:b=>{if(!_())return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this.showDropIndicatorAt(v.position)},onDrop:b=>DG(this,void 0,void 0,function*(){if(!_()||(this.removeDropIndicator(),!b.dataTransfer))return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this._onDropIntoEditor.fire({position:v.position,event:b})}),onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(e,t,i){return new aD(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return o_.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;t{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new L(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),s=this._buffer.getLineCount(),r=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,r.length!==0){for(let c=0,d=r.length;c=0;I--){const O=g+I,F=w+I;D.takeFromEndWhile(j=>j.lineNumber>F);const z=D.takeFromEndWhile(j=>j.lineNumber===F);a.push(new lA(O,this.getLineContent(F),z))}if(v<_){const I=g+v;a.push(new dK(I+1,f))}if(vye.lineNumberye.lineNumber===Se)}a.push(new hK(O+1,g+b,re,j))}l+=C}this._emitContentChangedEvent(new Vu(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return n.reverseEdits===null?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(e===null||e.size===0)return;const i=Array.from(e).map(n=>new lA(n,this.getLineContent(n),this._getInjectedTextInLine(n)));this._onDidChangeInjectedText.fire(new o5(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(s,r)=>this._deltaDecorationsImpl(e,[],[{range:s,options:r}])[0],changeDecoration:(s,r)=>{this._changeDecorationImpl(s,r)},changeDecorationOptions:(s,r)=>{this._changeDecorationOptionsImpl(s,EA(r))},removeDecoration:s=>{this._deltaDecorationsImpl(e,[s],[])},deltaDecorations:(s,r)=>s.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,s,r)};let n=null;try{n=t(i)}catch(s){Te(s)}return i.addDecoration=kf,i.changeDecoration=kf,i.changeDecorationOptions=kf,i.removeDecoration=kf,i.deltaDecorations=kf,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),Te(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:IA[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,a,s),n.setOptions(IA[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){const s=this.getLineCount(),r=Math.min(s,Math.max(1,e)),a=Math.min(s,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new L(r,1,a,l),d=this._getDecorationsInRange(c,i,n);return kT(d,this._decorationProvider.getDecorationsInRange(c,i,n)),d}getDecorationsInRange(e,t=0,i=!1){const n=this.validateRange(e),s=this._getDecorationsInRange(n,t,i);return kT(s,this._decorationProvider.getDecorationsInRange(n,t,i)),s}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return er.fromDecorations(n).filter(s=>s.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,s,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,r,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!!(i.options.overviewRuler&&i.options.overviewRuler.color),s=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber)}if(i.options.before||t.before){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}n!==s?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const n=this.getVersionId(),s=t.length;let r=0;const a=i.length;let l=0;const c=new Array(a);for(;ra.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(s=>s.options.showIfCollapsed||!s.range.isEmpty())}getAll(e,t,i,n){const s=e.getVersionId(),r=this._search(t,i,n,s);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{const s=this._decorationsTree0.search(e,t,n),r=this._decorationsTree1.search(e,t,n),a=this._injectedTextDecorationsTree.search(e,t,n);return s.concat(r).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){kS(e)?this._injectedTextDecorationsTree.insert(e):DS(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){kS(e)?this._injectedTextDecorationsTree.delete(e):DS(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){kS(e)?this._injectedTextDecorationsTree.resolveNode(e,t):DS(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function da(o){return o.replace(/[^a-z0-9\-_]/gi," ")}class k5{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Zq extends k5{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:Zs.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Yq extends k5{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?W.fromHex(e):t.getColor(e.id)}}class zd{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof zd?e:new zd(e)}}class Ne{constructor(e){var t,i;this.description=e.description,this.blockClassName=e.blockClassName?da(e.blockClassName):null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?da(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Zq(e.overviewRuler):null,this.minimap=e.minimap?new Yq(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?da(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?da(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?da(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?da(e.marginClassName):null,this.inlineClassName=e.inlineClassName?da(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?da(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?da(e.afterContentClassName):null,this.after=e.after?zd.from(e.after):null,this.before=e.before?zd.from(e.before):null,this.hideInCommentTokens=(t=e.hideInCommentTokens)!==null&&t!==void 0?t:!1,this.hideInStringTokens=(i=e.hideInStringTokens)!==null&&i!==void 0?i:!1}static register(e){return new Ne(e)}static createDynamic(e){return new Ne(e)}}Ne.EMPTY=Ne.register({description:"empty"});const IA=[Ne.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Ne.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Ne.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Ne.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function EA(o){return o instanceof Ne?o:Ne.createDynamic(o)}class Qq extends H{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new R),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!!(e.minimap&&e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(e.overviewRuler&&e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Xq extends H{constructor(){super(),this._fastEmitter=this._register(new R),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new R),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}var Jq=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const NA={getInitialState:()=>ng,tokenizeEncoded:(o,e,t)=>qC(0,t)};function eG(o,e,t){return Jq(this,void 0,void 0,function*(){if(!t)return TA(e,o.languageIdCodec,NA);const i=yield Wt.getOrCreate(t);return TA(e,o.languageIdCodec,i||NA)})}function tG(o,e,t,i,n,s,r){let a="
",l=i,c=0,d=!0;for(let h=0,u=e.getCount();h0;)r&&d?(f+=" ",d=!1):(f+=" ",d=!0),b--;break}case 60:f+="<",d=!1;break;case 62:f+=">",d=!1;break;case 38:f+="&",d=!1;break;case 0:f+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:f+="\uFFFD",d=!1;break;case 13:f+="​",d=!1;break;case 32:r&&d?(f+=" ",d=!1):(f+=" ",d=!0);break;default:f+=String.fromCharCode(_),d=!1}}if(a+=`${f}`,g>n||l>=n)break}return a+="
",a}function TA(o,e,t){let i='
';const n=jr(o);let s=t.getInitialState();for(let r=0,a=n.length;r0&&(i+="
");const c=t.tokenizeEncoded(l,!0,s);Di.convertToEndOffset(c.tokens,l.length);const h=new Di(c.tokens,l,e).inflate();let u=0;for(let g=0,f=h.getCount();g${_I(l.substring(u,b))}`,u=b}s=c.endState}return i+="
",i}class iG{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class nG{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}class um{constructor(e,t,i,n){this._instanceId=mP(++um.INSTANCE_COUNT),this._pendingChanges=new iG,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n>>1;t===e[r].afterLineNumber?i{t=!0,n=n|0,s=s|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new nG(l,n,s,r,a)),l},changeOneWhitespace:(n,s,r)=>{t=!0,s=s|0,r=r|0,this._pendingChanges.change({id:n,newAfterLineNumber:s,newHeight:r})},removeWhitespace:n=>{t=!0,this._pendingChanges.remove({id:n})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const c=this._findWhitespaceIndex(l.id);c!==-1&&this._removeWhitespace(c)}return}const n=new Set;for(const l of i)n.add(l.id);const s=new Map;for(const l of t)s.set(l.id,l);const r=l=>{const c=[];for(const d of l)if(!n.has(d.id)){if(s.has(d.id)){const h=s.get(d.id);d.afterLineNumber=h.newAfterLineNumber,d.height=h.newHeight}c.push(d)}return c},a=r(this._arr).concat(r(e));a.sort((l,c)=>l.afterLineNumber===c.afterLineNumber?l.ordinal-c.ordinal:l.afterLineNumber-c.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=um.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else n=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?i=this._lineHeight*(e-1):i=0;const n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0));return i+n+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e=e|0;const i=this._lineHeight*e,n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0));return i+n+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let n=1,s=t;for(;n=a+i)n=r+1;else{if(e>=a)return r;s=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,n=this.getLineNumberAtOrAfterVerticalOffset(e)|0,s=this.getVerticalOffsetForLineNumber(n)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(n)|0;const l=this.getWhitespacesCount()|0;let c,d;a===-1?(a=l,d=r+1,c=0):(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);let h=s,u=h;const g=5e5;let f=0;s>=g&&(f=Math.floor(s/g)*g,f=Math.floor(f/i)*i,u-=f);const _=[],b=e+(t-e)/2;let v=-1;for(let k=n;k<=r;k++){if(v===-1){const x=h,y=h+i;(x<=b&&bb)&&(v=k)}for(h+=i,_[k-n]=u,u+=i;d===k;)u+=c,h+=c,a++,a>=l?d=r+1:(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);if(h>=t){r=k;break}}v===-1&&(v=r);const C=this.getVerticalOffsetForLineNumber(r)|0;let w=n,S=r;return wt&&S--,{bigNumbersDelta:f,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:_,centeredLineNumber:v,completelyVisibleStartLineNumber:w,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let n;return e>0?n=this.getWhitespacesAccumulatedHeight(e-1):n=0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const n=this.getVerticalOffsetForWhitespaceIndex(i),s=this.getHeightForWhitespaceIndex(i);if(e>=n+s)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t),s=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:s,afterLineNumber:r,verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let r=i;r<=n;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;s.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}}um.INSTANCE_COUNT=0;const sG=125;class Qf{constructor(e,t,i,n){e=e|0,t=t|0,i=i|0,n=n|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),n<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class oG extends H{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new R),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Qf(0,0,0,0),this._scrollable=this._register(new f_({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new bE(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class rG extends H{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(133),r=n.get(77);this._linesLayout=new um(t,n.get(61),r.top,r.bottom),this._scrollable=this._register(new oG(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Qf(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(105)?sG:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(61)&&this._linesLayout.setLineHeight(t.get(61)),e.hasChanged(77)){const i=t.get(77);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(133)){const i=t.get(133),n=i.contentWidth,s=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new Qf(n,r.contentWidth,s,this._getContentHeight(n,s,a)))}else this._updateHeight();e.hasChanged(105)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(94);return n.horizontal===2||e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(96)?s+=Math.max(0,t-n.get(61)-n.get(77).bottom):s+=this._getHorizontalScrollbarHeight(e,i),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Qf(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new u2(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(134),n=t.get(46),s=t.get(133);if(i.isViewportWrapping){const r=t.get(67);return e>s.contentWidth+n.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?e+s.verticalScrollbarWidth:e}else{const r=t.get(95)*n.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+r+s.verticalScrollbarWidth,a)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Qf(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),n=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-n,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class aG{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,s=e.options;let r;if(s.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.startLineNumber,1),0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new B(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);r=new L(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new $P(r,s),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){const t=new L(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,q0(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,s=[];let r=0;const a=[];for(let l=i;l<=n;l++)a[l-i]=[];for(let l=0,c=t.length;lt===1)}function ME(o,e){return x5(o,e.range,t=>t===2)}function x5(o,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const n=o.tokenization.getLineTokens(i),s=i===e.startLineNumber,r=i===e.endLineNumber;let a=s?n.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(n.getStandardTokenType(a)))return!1;a++}}return!0}function xS(o,e){return o===null?e?Ov.INSTANCE:Pv.INSTANCE:new lG(o,e)}class lG{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((c,d)=>new er(0,0,c+1,this._projectionData.injectionOptions[d],0));r=er.applyInjectedText(e.getLineContent(t),a).substring(n,s)}else r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(r=AA(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,r,a){this._assertVisible();const l=this._projectionData,c=l.injectionOffsets,d=l.injectionOptions;let h=null;if(c){h=[];let g=0,f=0;for(let _=0;_0?l.breakOffsets[_-1]:0,C=l.breakOffsets[_];for(;fC)break;if(v0?l.wrappedTextIndentLength:0,D=y+Math.max(S-v,0),I=y+Math.min(k-v,C);D!==I&&b.push(new PV(D,I,x.inlineClassName,x.inlineClassNameAffectsLetterSpacing))}}if(k<=C)g+=w,f++;else break}}}let u;c?u=e.tokenization.getLineTokens(t).withInserted(c.map((g,f)=>({offset:g,text:d[f].content,tokenMetadata:Di.defaultTokenMetadata}))):u=e.tokenization.getLineTokens(t);for(let g=i;g0?n.wrappedTextIndentLength:0,r=i>0?n.breakOffsets[i-1]:0,a=n.breakOffsets[i],l=e.sliceAndInflate(r,a,s);let c=l.getLineContent();i>0&&(c=AA(n.wrappedTextIndentLength)+c);const d=this._projectionData.getMinOutputOffset(i)+1,h=c.length+1,u=i+1=IS.length)for(let e=1;e<=o;e++)IS[e]=cG(e);return IS[o]}function cG(o){return new Array(o+1).join(" ")}class dG{constructor(e,t,i,n,s,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new uG(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,r=this.createLineBreaksComputer(),a=new Rp(er.fromDecorations(n));for(let _=0;_v.lineNumber===_+1);r.addRequest(i[_],b,t?t[_]:null)}const l=r.finalize(),c=[],d=this.hiddenAreasDecorationIds.map(_=>this.model.getDecorationRange(_)).sort(L.compareRangesUsingStarts);let h=1,u=0,g=-1,f=g+1=h&&b<=u,C=xS(l[_],!v);c[_]=C.getViewLineCount(),this.modelLineProjections[_]=C}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new JW(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(u=>this.model.validateRange(u)),i=hG(t),n=this.hiddenAreasDecorationIds.map(u=>this.model.getDecorationRange(u)).sort(L.compareRangesUsingStarts);if(i.length===n.length){let u=!1;for(let g=0;g({range:u,options:Ne.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const r=i;let a=1,l=0,c=-1,d=c+1=a&&g<=l?this.modelLineProjections[u].isVisible()&&(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!1),f=!0):(h=!0,this.modelLineProjections[u].isVisible()||(this.modelLineProjections[u]=this.modelLineProjections[u].setVisible(!0),f=!0)),f){const _=this.modelLineProjections[u].getViewLineCount();this.projectedModelLineLineCounts.setValue(u,_)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const s=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n;if(s&&r&&a&&l)return!1;const c=s&&r&&!a&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let d=null;if(c){d=[];for(let h=0,u=this.modelLineProjections.length;h2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],c=[];for(let d=0,h=n.length;dl?(d=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,h=d+l-1,f=h+1,_=f+(s-l)-1,c=!0):st?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),c=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:c.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new MA(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new B(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=n.modelLineNumber;l++){const c=this.modelLineProjections[l-1];if(c.isVisible()){const d=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,h=l===n.modelLineNumber?n.modelLineWrappedLineIdx+1:c.getViewLineCount();for(let u=d;u{if(g.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesAfterColumn).lineNumber>=d.modelLineWrappedLineIdx||g.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.forWrappedLinesBeforeOrAtColumn).lineNumberd.modelLineWrappedLineIdx)return}const _=this.convertModelPositionToViewPosition(d.modelLineNumber,g.horizontalLine.endColumn),b=this.modelLineProjections[d.modelLineNumber-1].getViewPositionOfModelPosition(0,g.horizontalLine.endColumn);return b.lineNumber===d.modelLineWrappedLineIdx?new hd(g.visibleColumn,f,g.className,new up(g.horizontalLine.top,_.column),-1,-1):b.lineNumber!!g))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const r=[],a=[],l=i.lineNumber-1,c=n.lineNumber-1;let d=null;for(let f=l;f<=c;f++){const _=this.modelLineProjections[f];if(_.isVisible()){const b=_.getViewLineNumberOfModelPosition(0,f===l?i.column:1),v=_.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),C=v-b+1;let w=0;C>1&&_.getViewLineMinColumn(this.model,f+1,v)===1&&(w=b===0?1:2),r.push(C),a.push(w),d===null&&(d=new B(f+1,0))}else d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,f)),d=null)}d!==null&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const h=t-e+1,u=new Array(h);let g=0;for(let f=0,_=s.length;f<_;f++){let b=s[f];const v=Math.min(h-g,r[f]),C=a[f];let w;C===2?w=0:C===1?w=1:w=v;for(let S=0;St&&(f=!0,g=t-s+1),h.getViewLinesData(this.model,c+1,u,g,s-e,i,l),s+=g,f)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,r=n.remainder,a=this.modelLineProjections[s],l=a.getViewLineMinColumn(this.model,s+1,r),c=a.getViewLineMaxColumn(this.model,s+1,r);tc&&(t=c);const d=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new B(s+1,d)).equals(i)?new B(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new L(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new B(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new L(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new B(e,t)),s=n.lineNumber,r=n.column;let a=s-1,l=!1;for(;a>0&&!this.modelLineProjections[a].isVisible();)a--,l=!0;if(a===0&&!this.modelLineProjections[a].isVisible())return new B(1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(a);let d;return l?d=this.modelLineProjections[a].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(a+1),i):d=this.modelLineProjections[s-1].getViewPositionOfModelPosition(c,r,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return L.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new L(i.lineNumber,i.column,n.lineNumber,n.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),s=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(s.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new L(n.lineNumber,1,s.lineNumber,s.column),t,i);let r=[];const a=n.lineNumber-1,l=s.lineNumber-1;let c=null;for(let g=a;g<=l;g++)if(this.modelLineProjections[g].isVisible())c===null&&(c=new B(g+1,g===a?n.column:1));else if(c!==null){const _=this.model.getLineMaxColumn(g);r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,g,_),t,i)),c=null}c!==null&&(r=r.concat(this.model.getDecorationsInRange(new L(c.lineNumber,c.column,s.lineNumber,s.column),t,i)),c=null),r.sort((g,f)=>{const _=L.compareRangesUsingStarts(g.range,f.range);return _===0?g.idf.id?1:0:_});const d=[];let h=0,u=null;for(const g of r){const f=g.id;u!==f&&(u=f,d[h++]=g)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function hG(o){if(o.length===0)return[];const e=o.slice();e.sort(L.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,n=e[0].endLineNumber;for(let s=1,r=e.length;sn+1?(t.push(new L(i,1,n,1)),i=a.startLineNumber,n=a.endLineNumber):a.endLineNumber>n&&(n=a.endLineNumber)}return t.push(new L(i,1,n,1)),t}class MA{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class RA{constructor(e,t){this.modelRange=e,this.viewLines=t}}class uG{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class gG{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new fG(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new _D(t,i)}onModelLinesInserted(e,t,i,n){return new bD(t,i)}onModelLineChanged(e,t,i){return[!1,new r5(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;st)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class pG extends H{constructor(e,t,i,n,s,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new LK,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new mt(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new mt(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=RE.create(this.model),this.model.isTooLargeForTokenization())this._lines=new gG(this.model);else{const c=this._configuration.options,d=c.get(46),h=c.get(127),u=c.get(134),g=c.get(126);this._lines=new dG(this._editorId,this.model,n,s,d,this.model.getOptions().tabSize,h,u.wrappingColumn,g)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new gg(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new rG(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),c.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new vK(c)),this._eventDispatcher.emitOutgoingEvent(new CE(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new aG(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const d=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(d,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(m_.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new SK)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new CK(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new L(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const n of i)this.model.tokenization.tokenizeViewport(n.startLineNumber,n.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new _K(e)),this._eventDispatcher.emitOutgoingEvent(new vE(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new gK)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new fK)}_onConfigurationChanged(e,t){let i=null;if(this._viewportStart.isValid){const d=new B(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber));i=this.coordinatesConverter.convertViewPositionToModelPosition(d)}let n=!1;const s=this._configuration.options,r=s.get(46),a=s.get(127),l=s.get(134),c=s.get(126);if(this._lines.setWrappingSettings(r,a,l.wrappingColumn,c)&&(e.emitViewEvent(new fb),e.emitViewEvent(new pb),e.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(83)&&(this._decorations.reset(),e.emitViewEvent(new Oh(null))),e.emitViewEvent(new pK(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const d=this.coordinatesConverter.convertModelPositionToViewPosition(i),h=this.viewLayout.getVerticalOffsetForLineNumber(d.lineNumber);this.viewLayout.setScrollPosition({scrollTop:h+this._viewportStart.startLineDelta},1)}Rh.shouldRecreate(t)&&(this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const i=this._eventDispatcher.beginEmitViewEvents();let n=!1,s=!1;const r=e instanceof vd?e.rawContentChangedEvent.changes:e.changes,a=e instanceof vd?e.rawContentChangedEvent.versionId:null,l=this._lines.createLineBreaksComputer();for(const h of r)switch(h.changeType){case 4:{for(let u=0;u!_.ownerId||_.ownerId===this._editorId)),l.addRequest(g,f,null)}break}case 2:{let u=null;h.injectedText&&(u=h.injectedText.filter(g=>!g.ownerId||g.ownerId===this._editorId)),l.addRequest(h.detail,u,null);break}}const c=l.finalize(),d=new Rp(c);for(const h of r)switch(h.changeType){case 1:{this._lines.onModelFlushed(),i.emitViewEvent(new fb),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break}case 3:{const u=this._lines.onModelLinesDeleted(a,h.fromLineNumber,h.toLineNumber);u!==null&&(i.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber)),n=!0;break}case 4:{const u=d.takeCount(h.detail.length),g=this._lines.onModelLinesInserted(a,h.fromLineNumber,h.toLineNumber,u);g!==null&&(i.emitViewEvent(g),this.viewLayout.onLinesInserted(g.fromLineNumber,g.toLineNumber)),n=!0;break}case 2:{const u=d.dequeue(),[g,f,_,b]=this._lines.onModelLineChanged(a,h.lineNumber,u);s=g,f&&i.emitViewEvent(f),_&&(i.emitViewEvent(_),this.viewLayout.onLinesInserted(_.fromLineNumber,_.toLineNumber)),b&&(i.emitViewEvent(b),this.viewLayout.onLinesDeleted(b.fromLineNumber,b.toLineNumber));break}case 5:break}a!==null&&this._lines.acceptVersionId(a),this.viewLayout.onHeightMaybeChanged(),!n&&s&&(i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const i=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(i){const n=this.coordinatesConverter.convertModelPositionToViewPosition(i.getStartPosition()),s=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber);this.viewLayout.setScrollPosition({scrollTop:s+this._viewportStart.startLineDelta},1)}}try{const i=this._eventDispatcher.beginEmitViewEvents();e instanceof vd&&i.emitOutgoingEvent(new AK(e.contentChangedEvent)),this._cursor.onModelContentChanged(i,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new bK),this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new TK(e))})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new NK(e))})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new fb),t.emitViewEvent(new pb),t.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Rh(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new MK(e))})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Oh(e)),this._eventDispatcher.emitOutgoingEvent(new EK(e))}))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new fb),i.emitViewEvent(new pb),i.emitViewEvent(new Oh(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new xK)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(133),t=this._configuration.options.get(61),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new L(s,this.getLineMinColumn(s),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const n=[];let s=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,c=t.endColumn;for(let d=0,h=i.length;dl||(r"u")return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=kn(this.getLineContent(e));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Vr(this.getLineContent(e));return t===-1?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const n=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,n)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map(a=>a.toInlineDecoration(e))]),new Ds(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,t,s,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new OV(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,q0(this._configuration.options)),i=new mG;for(const n of t){const s=n.options,r=s.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),d=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(l,s.zIndex,c,d,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i&&i.invalidateCachedColor();const n=t.options.minimap;n&&n.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const n=i?`\r +`:this.model.getEOL();e=e.slice(0),e.sort(L.compareRangesUsingStarts);let s=!1,r=!1;for(const l of e)l.isEmpty()?s=!0:r=!0;if(!r){if(!t)return"";const l=e.map(d=>d.startLineNumber);let c="";for(let d=0;d0&&l[d-1]===l[d]||(c+=this.model.getLineContent(l[d])+n);return c}if(s&&t){const l=[];let c=0;for(const d of e){const h=d.startLineNumber;d.isEmpty()?h!==c&&l.push(this.model.getLineContent(h)):l.push(this.model.getValueInRange(d,i?2:0)),c=h}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Ks||e.length!==1)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const d=n.startLineNumber;n=new L(d,this.model.getLineMinColumn(d),d,this.model.getLineMaxColumn(d))}const s=this._configuration.options.get(46),r=this._getColorMap(),l=/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===ts.fontFamily;let c;return l?c=ts.fontFamily:(c=s.fontFamily,c=c.replace(/"/g,"'"),/[,']/.test(c)||/[+ ]/.test(c)&&(c=`'${c}'`),c=`${c}, ${ts.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,r)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let c=i;c<=s;c++){const d=this.model.tokenization.getLineTokens(c),h=d.getLineContent(),u=c===i?n-1:0,g=c===s?r-1:h.length;h===""?l+="
":l+=tG(h,d.inflate(),t,u,g,a,Yi)}return l}_getColorMap(){const e=Wt.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new IK);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,s){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,s))}paste(e,t,i,n){this._executeCursorEdit(s=>this._cursor.paste(s,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new L(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(n=>n.emitViewEvent(new C0(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,n,s){this._withViewEventsCollector(r=>r.emitViewEvent(new C0(e,!1,i,null,n,t,s)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new yK),this._eventDispatcher.emitOutgoingEvent(new kK))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class RE{constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}static create(e){const t=e._setTrackedRange(null,new L(1,1,1,1),1);return new RE(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new B(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new L(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=r-s}invalidate(){this._isValid=!1}}class mG{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],c=a[a.length-1];if(l===s&&c+1>=i){n>c&&(a[a.length-1]=n);return}a.push(s,i,n)}else{const a=new jP(e,t,[s,i,n]);this._asMap[e]=a,this.asArray.push(a)}}}class k1{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}var gm;(function(o){o[o.Ignore=0]="Ignore",o[o.Info=1]="Info",o[o.Warning=2]="Warning",o[o.Error=3]="Error"})(gm||(gm={}));(function(o){const e="error",t="warning",i="warn",n="info",s="ignore";function r(l){return l?au(e,l)?o.Error:au(t,l)||au(i,l)?o.Warning:au(n,l)?o.Info:o.Ignore:o.Ignore}o.fromValue=r;function a(l){switch(l){case o.Error:return e;case o.Warning:return t;case o.Info:return n;default:return s}}o.toString=a})(gm||(gm={}));const Bt=gm;var I5=Bt;const di=Ye("notificationService");class _G{}class wp{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let n=this.breakOffsets[e]-t;return e>0&&(n+=this.wrappedTextIndentLength),n}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let n=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let s=0;sthis.injectionOffsets[s];s++)n0?this.breakOffsets[s-1]:0,t===0)if(e<=r)n=s-1;else if(e>l)i=s+1;else break;else if(e=l)i=s+1;else break}let a=e-r;return s>0&&(a+=this.wrappedTextIndentLength),new wb(s,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new wb(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const n=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&OA(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let n=i.offsetInInputWithInjections;if(PA(this.injectionOptions[i.injectedTextIndex].cursorStops))return n;let s=i.injectedTextIndex-1;for(;s>=0&&this.injectionOffsets[s]===this.injectionOffsets[i.injectedTextIndex]&&!(OA(this.injectionOptions[s].cursorStops)||(n-=this.injectionOptions[s].content.length,PA(this.injectionOptions[s].cursorStops)));)s--;return n}}else if(t===1||t===4){let n=i.offsetInInputWithInjections+i.length,s=i.injectedTextIndex;for(;s+1=0&&this.injectionOffsets[s-1]===this.injectionOffsets[s];)n-=this.injectionOptions[s-1].content.length,s--;return n}OC()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let n=0;for(let s=0;se)break;if(e<=l)return{injectedTextIndex:s,offsetInInputWithInjections:a,length:r};n+=r}}}}function OA(o){return o==null?!0:o===Wo.Right||o===Wo.Both}function PA(o){return o==null?!0:o===Wo.Left||o===Wo.Both}class wb{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new B(e+this.outputLineIndex,this.outputOffset+1)}}class OE{constructor(e,t){this.classifier=new bG(e,t)}static create(e){return new OE(e.get(122),e.get(121))}createLineBreaksComputer(e,t,i,n){const s=[],r=[],a=[];return{addRequest:(l,c,d)=>{s.push(l),r.push(c),a.push(d)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let d=0,h=s.length;d=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let kD=[],xD=[];function vG(o,e,t,i,n,s,r){if(n===-1)return null;const a=t.length;if(a<=1)return null;const l=e.breakOffsets,c=e.breakOffsetsVisibleColumn,d=E5(t,i,n,s,r),h=n-d,u=kD,g=xD;let f=0,_=0,b=0,v=n;const C=l.length;let w=0;if(w>=0){let S=Math.abs(c[w]-v);for(;w+1=S)break;S=k,w++}}for(;wS&&(S=_,k=b);let x=0,y=0,D=0,I=0;if(k<=v){let F=k,z=S===0?0:t.charCodeAt(S-1),j=S===0?0:o.get(z),re=!0;for(let he=S;he_&&ID(z,j,ye,xe)&&(x=Se,y=F),F+=He,F>v){Se>_?(D=Se,I=F-He):(D=he+1,I=F),F-y>h&&(x=0),re=!1;break}z=ye,j=xe}if(re){f>0&&(u[f]=l[l.length-1],g[f]=c[l.length-1],f++);break}}if(x===0){let F=k,z=t.charCodeAt(S),j=o.get(z),re=!1;for(let he=S-1;he>=_;he--){const Se=he+1,ye=t.charCodeAt(he);if(ye===9){re=!0;break}let xe,He;if(Td(ye)?(he--,xe=0,He=2):(xe=o.get(ye),He=ic(ye)?s:1),F<=v){if(D===0&&(D=Se,I=F),F<=v-h)break;if(ID(ye,xe,z,j)){x=Se,y=F;break}}F-=He,z=ye,j=xe}if(x!==0){const he=h-(I-y);if(he<=i){const Se=t.charCodeAt(D);let ye;Li(Se)?ye=2:ye=Sp(Se,I,i,s),he-ye<0&&(x=0)}}if(re){w--;continue}}if(x===0&&(x=D,y=I),x<=_){const F=t.charCodeAt(_);Li(F)?(x=_+2,y=b+2):(x=_+1,y=b+Sp(F,b,i,s))}for(_=x,u[f]=x,b=y,g[f]=y,f++,v=y+h;w<0||w=O)break;O=F,w++}}return f===0?null:(u.length=f,g.length=f,kD=e.breakOffsets,xD=e.breakOffsetsVisibleColumn,e.breakOffsets=u,e.breakOffsetsVisibleColumn=g,e.wrappedTextIndentLength=d,e)}function CG(o,e,t,i,n,s,r){const a=er.applyInjectedText(e,t);let l,c;if(t&&t.length>0?(l=t.map(y=>y.options),c=t.map(y=>y.column-1)):(l=null,c=null),n===-1)return l?new wp(c,l,[a.length],[],0):null;const d=a.length;if(d<=1)return l?new wp(c,l,[a.length],[],0):null;const h=E5(a,i,n,s,r),u=n-h,g=[],f=[];let _=0,b=0,v=0,C=n,w=a.charCodeAt(0),S=o.get(w),k=Sp(w,0,i,s),x=1;Li(w)&&(k+=1,w=a.charCodeAt(1),S=o.get(w),x++);for(let y=x;yC&&((b===0||k-v>u)&&(b=D,v=k-F),g[_]=b,f[_]=v,_++,C=v+u,b=0),w=I,S=O}return _===0&&(!t||t.length===0)?null:(g[_]=d,f[_]=k,new wp(c,l,g,f,h))}function Sp(o,e,t,i){return o===9?t-e%t:ic(o)||o<32?i:1}function FA(o,e){return e-o%e}function ID(o,e,t,i){return t!==32&&(e===2&&i!==2||e!==1&&i===1||e===3&&i!==2||i===3&&e!==1)}function E5(o,e,t,i,n){let s=0;if(n!==0){const r=kn(o);if(r!==-1){for(let l=0;lt&&(s=0)}}return s}var ES;const NS=(ES=window.trustedTypes)===null||ES===void 0?void 0:ES.createPolicy("domLineBreaksComputer",{createHTML:o=>o});class PE{static create(){return new PE}constructor(){}createLineBreaksComputer(e,t,i,n){const s=[],r=[];return{addRequest:(a,l,c)=>{s.push(a),r.push(l)},finalize:()=>wG(s,e,t,i,n,r)}}}function wG(o,e,t,i,n,s){var r;function a(D){const I=s[D];if(I){const O=er.applyInjectedText(o[D],I),F=I.map(j=>j.options),z=I.map(j=>j.column-1);return new wp(z,F,[O.length],[],0)}else return null}if(i===-1){const D=[];for(let I=0,O=o.length;Il?(O=0,F=0):z=l-he}const j=I.substr(O),re=SG(j,F,t,z,g,h);f[D]=O,_[D]=F,b[D]=j,v[D]=re[0],C[D]=re[1]}const w=g.build(),S=(r=NS==null?void 0:NS.createHTML(w))!==null&&r!==void 0?r:w;u.innerHTML=S,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);const k=document.createRange(),x=Array.prototype.slice.call(u.children,0),y=[];for(let D=0;Dxe.options),Se=ye.map(xe=>xe.column-1)):(he=null,Se=null),y[D]=new wp(Se,he,O,re,z)}return document.body.removeChild(u),y}function SG(o,e,t,i,n,s){if(s!==0){const u=String(s);n.appendASCIIString('
');const r=o.length;let a=e,l=0;const c=[],d=[];let h=0");for(let u=0;u"),c[u]=l,d[u]=a;const g=h;h=u+1"),c[o.length]=l,d[o.length]=a,n.appendASCIIString("
"),[c,d]}function yG(o,e,t,i){if(t.length<=1)return null;const n=Array.prototype.slice.call(e.children,0),s=[];try{ED(o,n,i,0,null,t.length-1,null,s)}catch(r){return console.log(r),null}return s.length===0?null:(s.push(t.length),s)}function ED(o,e,t,i,n,s,r,a){if(i===s||(n=n||TS(o,e,t[i],t[i+1]),r=r||TS(o,e,t[s],t[s+1]),Math.abs(n[0].top-r[0].top)<=.1))return;if(i+1===s){a.push(s);return}const l=i+(s-i)/2|0,c=TS(o,e,t[l],t[l+1]);ED(o,e,t,i,n,l,c,a),ED(o,e,t,l,c,s,r,a)}function TS(o,e,t,i){return o.setStart(e[t/16384|0].firstChild,t%16384),o.setEnd(e[i/16384|0].firstChild,i%16384),o.getClientRects()}var LG=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ha=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},DG=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kG=0;class xG{constructor(e,t,i,n,s){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s}dispose(){nt(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let pg=class tu extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this.languageConfigurationService=h,this._deliveryQueue=new XO,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new BA({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onWillType=this._onWillType.event,this._onDidType=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new R({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection();const g=Object.assign({},t);this._domElement=e,this._overflowWidgetsDomNode=g.overflowWidgetsDomNode,delete g.overflowWidgetsDomNode,this._id=++kG,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,g,d)),this._register(this._configuration.onDidChange(b=>{this._onDidChangeConfiguration.fire(b);const v=this._configuration.options;if(b.hasChanged(133)){const C=v.get(133);this._onDidLayoutChange.fire(C)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new IG(this,this._contextKeyService)),this._register(new EG(this,this._contextKeyService,u)),this._instantiationService=n.createChild(new k1([Ee,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new NG(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let f;Array.isArray(i.contributions)?f=i.contributions:f=md.getEditorContributions();for(const b of f){if(this._contributions[b.id]){Te(new Error(`Cannot have two contributions with the same id ${b.id}`));continue}try{const v=this._instantiationService.createInstance(b.ctor,this);this._contributions[b.id]=v}catch(v){Te(v)}}md.getEditorActions().forEach(b=>{if(this._actions[b.id]){Te(new Error(`Cannot have two actions with the same id ${b.id}`));return}const v=new a5(b.id,b.label,b.alias,Wn(b.precondition),()=>this._instantiationService.invokeFunction(C=>Promise.resolve(b.runEditorCommand(C,this,null))),this._contextKeyService);this._actions[v.id]=v});const _=()=>!this._configuration.options.get(83)&&this._configuration.options.get(32).enabled;this._register(new zH(this._domElement,{onDragEnter:()=>{},onDragOver:b=>{if(!_())return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this.showDropIndicatorAt(v.position)},onDrop:b=>DG(this,void 0,void 0,function*(){if(!_()||(this.removeDropIndicator(),!b.dataTransfer))return;const v=this.getTargetAtClientPoint(b.clientX,b.clientY);v!=null&&v.position&&this._onDropIntoEditor.fire({position:v.position,event:b})}),onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(e,t,i){return new aD(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return o_.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;tL.lift(i)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Ci.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(!!this._modelData){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!L.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,r,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new L(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=oe.isISelection(e),n=L.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const s={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(s,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new oe(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!L.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(L.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(!!this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let n=0,s=e.length;n0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]);const n=t.contributionsState||{},s=Object.keys(this._contributions);for(let a=0,l=s.length;at.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const s=i;this._type(e,s.text||"");return}case"replacePreviousChar":{const s=i;this._compositionType(e,s.text||"",s.replaceCharCnt||0,0,0);return}case"compositionType":{const s=i;this._compositionType(e,s.text||"",s.replacePrevCharCnt||0,s.replaceNextCharCnt||0,s.positionDelta||0);return}case"paste":{const s=i;this._paste(e,s.text||"",s.pasteOnNewLine||!1,s.multicursorText||null,s.mode||null);return}case"cut":this._cut(e);return}const n=this.getAction(t);if(n){Promise.resolve(n.run()).then(void 0,Te);return}!this._modelData||this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i)}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){!this._modelData||(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){!this._modelData||(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){!this._modelData||this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s){if(!this._modelData||t.length===0)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new L(a.lineNumber,a.column,l.lineNumber,l.column),languageId:s})}_cut(e){!this._modelData||this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=md.getEditorCommand(t);return n?(i=i||{},i.source=e,this._instantiationService.invokeFunction(s=>{Promise.resolve(n.runEditorCommand(s,this,i)).then(void 0,Te)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData||this._configuration.options.get(83))return!1;let n;return i?Array.isArray(i)?n=()=>i:n=i:n=()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){!this._modelData||this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){!this._modelData||this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new TG(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,q0(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,q0(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){!this._modelData||e.length===0||this._modelData.model.changeDecorations(t=>{t.deltaDecorations(e,[])})}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(133)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(133),s=tu._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft();return{top:s,left:r,height:i.get(61)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,e)}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){an(e,this._configuration.options.get(46))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();const i=new pG(this._id,this._configuration,e,PE.create(),OE.create(this._configuration.options),r=>Jo(r),this.languageConfigurationService,this._themeService);t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(r=>{switch(r.kind){case 0:this._onDidContentSizeChange.fire(r);break;case 1:this._editorTextFocus.setValue(r.hasFocus);break;case 2:this._onDidScrollChange.fire(r);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{r.reachedMaxCursorCount&&this._notificationService.warn(p("cursors.maximum","The number of cursors has been limited to {0}.",gg.MAX_CURSOR_COUNT));const a=[];for(let d=0,h=r.selections.length;d{this._paste("keyboard",s,r,a,l)},type:s=>{this._type("keyboard",s)},compositionType:(s,r,a,l)=>{this._compositionType("keyboard",s,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(s,r,a,l)=>{const c={text:s,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",c)},type:s=>{const r={text:s};this._commandService.executeCommand("type",r)},compositionType:(s,r,a,l)=>{if(a||l){const c={text:s,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",c)}else{const c={text:s,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",c)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new w1(e.coordinatesConverter);return i.onKeyDown=s=>this._onKeyDown.fire(s),i.onKeyUp=s=>this._onKeyUp.fire(s),i.onContextMenu=s=>this._onContextMenu.fire(s),i.onMouseMove=s=>this._onMouseMove.fire(s),i.onMouseLeave=s=>this._onMouseLeave.fire(s),i.onMouseDown=s=>this._onMouseDown.fire(s),i.onMouseUp=s=>this._onMouseUp.fire(s),i.onMouseDrag=s=>this._onMouseDrag.fire(s),i.onMouseDrop=s=>this._onMouseDrop.fire(s),i.onMouseDropCanceled=s=>this._onMouseDropCanceled.fire(s),i.onMouseWheel=s=>this._onMouseWheel.fire(s),[new aK(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e==null||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}showDropIndicatorAt(e){const t=[{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:tu.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}};pg.dropIntoEditorDecorationOptions=Ne.register({description:"workbench-dnd-target",className:"dnd-target"});pg=LG([ha(3,Ae),ha(4,ct),ha(5,ci),ha(6,Ee),ha(7,Ct),ha(8,di),ha(9,al),ha(10,si),ha(11,de)],pg);class BA extends H{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new R(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new R(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class IG extends H{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=N.editorSimpleInput.bindTo(t),this._editorFocus=N.focus.bindTo(t),this._textInputFocus=N.textInputFocus.bindTo(t),this._editorTextFocus=N.editorTextFocus.bindTo(t),this._editorTabMovesFocus=N.tabMovesFocus.bindTo(t),this._editorReadonly=N.readOnly.bindTo(t),this._inDiffEditor=N.inDiffEditor.bindTo(t),this._editorColumnSelection=N.columnSelection.bindTo(t),this._hasMultipleSelections=N.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=N.hasNonEmptySelection.bindTo(t),this._canUndo=N.canUndo.bindTo(t),this._canRedo=N.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(132)),this._editorReadonly.set(e.get(83)),this._inDiffEditor.set(e.get(56)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class EG extends H{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=N.languageId.bindTo(t),this._hasCompletionItemProvider=N.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=N.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=N.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=N.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=N.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=N.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=N.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=N.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=N.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=N.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=N.hasReferenceProvider.bindTo(t),this._hasRenameProvider=N.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=N.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=N.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=N.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=N.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=N.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=N.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=N.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===Me.walkThroughSnippet)})}}class NG extends H{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(Od(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}class TG{constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}get length(){return this._decorationIds.length}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations(n=>{this._isChangingDecorations||e.call(t,n)},i)}getRange(e){return!this._editor.hasModel()||e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e])}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations(t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)})}finally{this._isChangingDecorations=!1}}}const AG=encodeURIComponent("");function AS(o){return AG+encodeURIComponent(o.toString())+MG}const RG=encodeURIComponent('');function PG(o){return RG+encodeURIComponent(o.toString())+OG}Et((o,e)=>{const t=o.getColor(x4);t&&e.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${t}; }`);const i=o.getColor(Or);i&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${AS(i)}") repeat-x bottom left; }`);const n=o.getColor(_z);n&&e.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${n}; }`);const s=o.getColor(ag);s&&e.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${s}; }`);const r=o.getColor(vs);r&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${AS(r)}") repeat-x bottom left; }`);const a=o.getColor(bz);a&&e.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=o.getColor(Cv);l&&e.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=o.getColor(zn);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${AS(c)}") repeat-x bottom left; }`);const d=o.getColor(vz);d&&e.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${d}; }`);const h=o.getColor(wz);h&&e.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${h}; }`);const u=o.getColor(Cz);u&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${PG(u)}") no-repeat bottom left; }`);const g=o.getColor(y$);g&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${g.rgba.a}; }`);const f=o.getColor(S$);f&&e.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${f}; }`);const _=o.getColor(Cs)||"inherit";e.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${_}}`)});class bt{constructor(e,t,i){const n=s=>this.emitter.fire(s);this.emitter=new R({onFirstListenerAdd:()=>e.addEventListener(t,n,i),onLastListenerRemove:()=>e.removeEventListener(t,n,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function ND(o){return o.preventDefault(),o.stopPropagation(),o}var Zg=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const FG=!1;var Fv;(function(o){o.North="north",o.South="south",o.East="east",o.West="west"})(Fv||(Fv={}));let BG=4;const WG=new R;let VG=300;const HG=new R;class FE{constructor(){this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new bt(window,"mouseup")).event}dispose(){this.disposables.dispose()}}Zg([pi],FE.prototype,"onPointerMove",null);Zg([pi],FE.prototype,"onPointerUp",null);class BE{constructor(e){this.el=e,this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(this.el,xt.Change)).event}get onPointerUp(){return this.disposables.add(new bt(this.el,xt.End)).event}dispose(){this.disposables.dispose()}}Zg([pi],BE.prototype,"onPointerMove",null);Zg([pi],BE.prototype,"onPointerUp",null);class Bv{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}Zg([pi],Bv.prototype,"onPointerMove",null);Zg([pi],Bv.prototype,"onPointerUp",null);const WA="pointer-events-disabled";class tn extends H{constructor(e,t,i){super(),this.hoverDelay=VG,this.hoverDelayer=this._register(new Kr(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new R),this._onDidStart=this._register(new R),this._onDidChange=this._register(new R),this._onDidReset=this._register(new R),this._onDidEnd=this._register(new R),this.orthogonalStartSashDisposables=this._register(new Q),this.orthogonalStartDragHandleDisposables=this._register(new Q),this.orthogonalEndSashDisposables=this._register(new Q),this.orthogonalEndDragHandleDisposables=this._register(new Q),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=q(e,J(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),Ge&&this.el.classList.add("mac");const n=this._register(new bt(this.el,"mousedown")).event;this._register(n(h=>this.onPointerStart(h,new FE),this));const s=this._register(new bt(this.el,"dblclick")).event;this._register(s(this.onPointerDoublePress,this));const r=this._register(new bt(this.el,"mouseenter")).event;this._register(r(()=>tn.onMouseEnter(this)));const a=this._register(new bt(this.el,"mouseleave")).event;this._register(a(()=>tn.onMouseLeave(this))),this._register(ft.addTarget(this.el));const l=ge.map(this._register(new bt(this.el,xt.Start)).event,h=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(l(h=>this.onPointerStart(h,new BE(this.el)),this));const c=this._register(new bt(this.el,xt.Tap)).event,d=ge.map(ge.filter(ge.debounce(c,(h,u)=>{var g;return{event:u,count:((g=h==null?void 0:h.count)!==null&&g!==void 0?g:0)+1}},250),({count:h})=>h===2),({event:h})=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(d(this.onPointerDoublePress,this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=BG,this._register(WG.event(h=>{this.size=h,this.layout()}))),this._register(HG.event(h=>this.hoverDelay=h)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(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",FG),this.layout()}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",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=q(this.el,J(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Be(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseleave")).event(()=>tn.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.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=q(this.el,J(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Be(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseleave")).event(()=>tn.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){ut.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const f=this.getOrthogonalSash(e);f&&(i=!0,e.__orthogonalSashEvent=!0,f.onPointerStart(e,new Bv(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new Bv(t))),!this.state)return;const n=WH("iframe");for(const f of n)f.classList.add(WA);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 c=Qs(this.el),d=()=>{let f="";i?f="all-scroll":this.orientation===1?this.state===1?f="s-resize":this.state===2?f="n-resize":f=Ge?"row-resize":"ns-resize":this.state===1?f="e-resize":this.state===2?f="w-resize":f=Ge?"col-resize":"ew-resize",c.textContent=`* { cursor: ${f} !important; }`},h=new Q;d(),i||this.onDidEnablementChange.event(d,null,h);const u=f=>{ut.stop(f,!1);const _={startX:s,currentX:f.pageX,startY:r,currentY:f.pageY,altKey:a};this._onDidChange.fire(_)},g=f=>{ut.stop(f,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),h.dispose();for(const _ of n)_.classList.remove(WA)};t.onPointerMove(u,null,h),t.onPointerUp(g,null,h),h.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&&tn.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&tn.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){tn.onMouseLeave(this)}layout(){if(this.orientation===0){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){if(!(!e.target||!(e.target instanceof HTMLElement))&&e.target.classList.contains("orthogonal-drag-handle"))return e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}class hc{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(e.getScrollTop()!==0){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}}return new hc(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const __={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:Vn.text},Vc={CurrentDragAndDropData:void 0};var VA,HA;class zG{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 i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1,t=()=>!1){return new Uu(new jG(e,t))}static forStrings(){return new Uu(new zG)}static forConfigKeys(){return new Uu(new UG)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new Sb,this._root.segment=i.value());const s=[];for(n=this._root;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new Sb,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new Sb,n.right.segment=i.value()),s.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new Sb,n.mid.segment=i.value()),s.push([0,n]),n=n.mid;else break}const r=n.value;n.value=t,n.key=e;for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const d=s[a][0],h=s[a+1][0];if(d===1&&h===1)s[a][1]=l.rotateLeft();else if(d===-1&&h===-1)s[a][1]=l.rotateRight();else if(d===1&&h===-1)l.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=l.rotateLeft();else if(d===-1&&h===1)l.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}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),s=[];let r=this._root;for(;r;){const a=n.cmp(r.segment);if(a>0)s.push([-1,r]),r=r.left;else if(a<0)s.push([1,r]),r=r.right;else if(n.hasNext())n.next(),s.push([0,r]),r=r.mid;else break}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 a=this._min(r.right),{key:l,value:c,segment:d}=a;this._delete(a.key,!1),r.key=l,r.value=c,r.segment=d}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(s.length>0){const[l,c]=s[s.length-1];switch(l){case-1:c.left=a;break;case 0:c.mid=a;break;case 1:c.right=a;break}}else this._root=a}for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),s[a][1]=l.rotateLeft()):c<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),s[a][1]=l.rotateRight()),a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,n;for(;i;){const s=t.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(t.hasNext())t.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else return i.mid?this._entries(i.mid):void 0}}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))}}class KG{constructor(e,t){this.uri=e,this.value=t}}class mn{constructor(e,t){this[VA]="ResourceMap",e instanceof mn?(this.map=new Map(e.map),this.toKey=t!=null?t:mn.defaultToKey):(this.map=new Map,this.toKey=e!=null?e:mn.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new KG(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?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){typeof t<"u"&&(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]}*[(VA=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}mn.defaultToKey=o=>o.toString();class qG{constructor(){this[HA]="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(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(!!i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&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;for(;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 s={value:i.key,done:!1};return i=i.next,s}else 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 s={value:i.value,done:!1};return i=i.next,s}else 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 s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}[(HA=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;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)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),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 Dc extends qG{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))}}function WE(...o){return function(e,t){for(let i=0,n=o.length;i0?[{start:0,end:e.length}]:[]:null}function TF(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t===-1?null:[{start:t,end:t+o.length}]}function AF(o,e){return TD(o.toLowerCase(),e.toLowerCase(),0,0)}function TD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]===e[i]){let n=null;return(n=TD(o,e,t+1,i+1))?zE({start:i,end:i+1},n):null}return TD(o,e,t,i+1)}function VE(o){return 97<=o&&o<=122}function I1(o){return 65<=o&&o<=90}function HE(o){return 48<=o&&o<=57}function MF(o){return o===32||o===9||o===10||o===13}const RF=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(o=>RF.add(o.charCodeAt(0)));function Wv(o){return MF(o)||RF.has(o)}function GG(o,e){return o===e||Wv(o)&&Wv(e)}function OF(o){return VE(o)||I1(o)||HE(o)}function zE(o,e){return e.length===0?e=[o]:o.end===e[0].start?e[0].start=o.start:e.unshift(o),e}function PF(o,e){for(let t=e;t0&&!OF(o.charCodeAt(t-1)))return t}return o.length}function AD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]!==e[i].toLowerCase())return null;{let n=null,s=i+1;for(n=AD(o,e,t+1,i+1);!n&&(s=PF(e,s)).6}function QG(o){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=o;return t>.2&&e<.8&&i>.6&&n<.2}function XG(o){let e=0,t=0,i=0,n=0;for(let s=0;s60)return null;const t=ZG(e);if(!QG(t)){if(!YG(t))return null;e=e.toLowerCase()}let i=null,n=0;for(o=o.toLowerCase();n0&&Wv(o.charCodeAt(t-1)))return t;return o.length}const eZ=WE(x1,FF,TF),tZ=WE(x1,FF,AF),zA=new Dc(1e4);function UA(o,e,t=!1){if(typeof o!="string"||typeof e!="string")return null;let i=zA.get(o);i||(i=new RegExp(hB(o),"i"),zA.set(o,i));const n=i.exec(e);return n?[{start:n.index,end:n.index+n[0].length}]:t?tZ(o,e):eZ(o,e)}function iZ(o,e,t,i,n,s){const r=Math.min(13,o.length);for(;t"u")return[];const e=[],t=o[1];for(let i=o.length-1;i>1;i--){const n=o[i]+t,s=e[e.length-1];s&&s.end===n?s.end=n+1:e.push({start:n,end:n+1})}return e}const Bl=128;function UE(){const o=[],e=[];for(let t=0;t<=Bl;t++)e[t]=0;for(let t=0;t<=Bl;t++)o.push(e.slice(0));return o}function WF(o){const e=[];for(let t=0;t<=o;t++)e[t]=0;return e}const VF=WF(2*Bl),RD=WF(2*Bl),ua=UE(),Hc=UE(),yb=UE();function Lb(o,e){if(e<0||e>=o.length)return!1;const t=o.codePointAt(e);switch(t){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!!yI(t)}}function $A(o,e){if(e<0||e>=o.length)return!1;switch(o.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function S0(o,e,t){return e[o]!==t[o]}function nZ(o,e,t,i,n,s,r=!1){for(;eBl?Bl:o.length,l=i.length>Bl?Bl:i.length;if(t>=a||s>=l||a-t>l-s||!nZ(e,t,a,n,s,l,!0))return;sZ(a,l,t,s,e,n);let c=1,d=1,h=t,u=s;const g=[!1];for(c=1,h=t;hC,I=D?Hc[c][d-1]+(ua[c][d-1]>0?-5:0):0,O=u>C+1&&ua[c][d-1]>0,F=O?Hc[c][d-2]+(ua[c][d-2]>0?-5:0):0;if(O&&(!D||F>=I)&&(!x||F>=y))Hc[c][d]=F,yb[c][d]=3,ua[c][d]=0;else if(D&&(!x||I>=y))Hc[c][d]=I,yb[c][d]=2,ua[c][d]=0;else if(x)Hc[c][d]=y,yb[c][d]=1,ua[c][d]=ua[c-1][d-1]+1;else throw new Error("not possible")}}if(!g[0]&&!r.firstMatchCanBeWeak)return;c--,d--;const f=[Hc[c][d],s];let _=0,b=0;for(;c>=1;){let C=d;do{const w=yb[c][C];if(w===3)C=C-2;else if(w===2)C=C-1;else break}while(C>=1);_>1&&e[t+c-1]===n[s+d-1]&&!S0(C+s-1,i,n)&&_+1>ua[c][C]&&(C=d),C===d?_++:_=1,b||(b=C),c--,d=C-1,f.push(d)}l===a&&r.boostFullMatch&&(f[0]+=2);const v=b-a;return f[0]-=v,f}function sZ(o,e,t,i,n,s){let r=o-1,a=e-1;for(;r>=t&&a>=i;)n[r]===s[a]&&(RD[r]=a,r--),a--}function oZ(o,e,t,i,n,s,r,a,l,c,d){if(e[t]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===t-i?h=o[t]===n[r]?7:5:S0(r,n,s)&&(r===0||!S0(r-1,n,s))?(h=o[t]===n[r]?7:5,u=!0):Lb(s,r)&&(r===0||!Lb(s,r-1))?h=5:(Lb(s,r-1)||$A(s,r-1))&&(h=5,u=!0),h>1&&t===i&&(d[0]=!0),u||(u=S0(r,n,s)||Lb(s,r-1)||$A(s,r-1)),t===i?r>l&&(h-=u?3:5):c?h+=u?2:0:h+=u?0:1,r+1===a&&(h-=u?3:5),h}function rZ(o,e,t,i,n,s,r){return aZ(o,e,t,i,n,s,!0,r)}function aZ(o,e,t,i,n,s,r,a){let l=mg(o,e,t,i,n,s,a);if(l&&!r)return l;if(o.length>=3){const c=Math.min(7,o.length-1);for(let d=t+1;dl[0])&&(l=u))}}}return l}function lZ(o,e){if(e+1>=o.length)return;const t=o[e],i=o[e+1];if(t!==i)return o.slice(0,e)+i+t+o.slice(e+2)}const yp="$(",jE=new RegExp(`\\$\\(${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?\\)`,"g"),cZ=new RegExp(Ln.iconNameCharacter),dZ=new RegExp(`(\\\\)?${jE.source}`,"g");function hZ(o){return o.replace(dZ,(e,t)=>t?e:`\\${e}`)}const uZ=new RegExp(`\\\\${jE.source}`,"g");function gZ(o){return o.replace(uZ,e=>`\\${e}`)}const fZ=new RegExp(`(\\s)?(\\\\)?${jE.source}(\\s)?`,"g");function KE(o){return o.indexOf(yp)===-1?o:o.replace(fZ,(e,t,i,n)=>i?e:t||n||"")}function Wh(o){const e=o.indexOf(yp);return e===-1?{text:o}:pZ(o,e)}function pZ(o,e){const t=[];let i="";function n(u){if(u){i+=u;for(const g of u)t.push(a)}}let s=-1,r="",a=0,l,c,d=e;const h=o.length;for(n(o.substr(0,e));d" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ +`&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){!this._modelData||this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){const t=e;if(this._modelData===null&&t===null||this._modelData&&this._modelData.model===t)return;const i=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),i&&this.hasModel()&&this.focus();const s={oldModelUrl:n?n.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(s),this._postDetachModelCleanup(n)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const s=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,n)}getTopForLineNumber(e,t=!1){return this._modelData?tu._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?tu._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,n=!1){const s=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,n)}getBottomForLineNumber(e,t=!1){return this._modelData?tu._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e){var t;(t=this._modelData)===null||t===void 0||t.viewModel.setHiddenAreas(e.map(i=>L.lift(i)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Ci.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(!!this._modelData){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!L.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,r,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!B.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new L(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=oe.isISelection(e),n=L.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const s={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(s,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new oe(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new L(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!L.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(L.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(!!this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let n=0,s=e.length;n0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]);const n=t.contributionsState||{},s=Object.keys(this._contributions);for(let a=0,l=s.length;at.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const s=i;this._type(e,s.text||"");return}case"replacePreviousChar":{const s=i;this._compositionType(e,s.text||"",s.replaceCharCnt||0,0,0);return}case"compositionType":{const s=i;this._compositionType(e,s.text||"",s.replacePrevCharCnt||0,s.replaceNextCharCnt||0,s.positionDelta||0);return}case"paste":{const s=i;this._paste(e,s.text||"",s.pasteOnNewLine||!1,s.multicursorText||null,s.mode||null);return}case"cut":this._cut(e);return}const n=this.getAction(t);if(n){Promise.resolve(n.run()).then(void 0,Te);return}!this._modelData||this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i)}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){!this._modelData||(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){!this._modelData||(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){!this._modelData||this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s){if(!this._modelData||t.length===0)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new L(a.lineNumber,a.column,l.lineNumber,l.column),languageId:s})}_cut(e){!this._modelData||this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=md.getEditorCommand(t);return n?(i=i||{},i.source=e,this._instantiationService.invokeFunction(s=>{Promise.resolve(n.runEditorCommand(s,this,i)).then(void 0,Te)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData||this._configuration.options.get(83))return!1;let n;return i?Array.isArray(i)?n=()=>i:n=i:n=()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){!this._modelData||this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){!this._modelData||this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new TG(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,q0(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,q0(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){!this._modelData||e.length===0||this._modelData.model.changeDecorations(t=>{t.deltaDecorations(e,[])})}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(133)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(133),s=tu._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft();return{top:s,left:r,height:i.get(61)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,e)}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){an(e,this._configuration.options.get(46))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();const i=new pG(this._id,this._configuration,e,PE.create(),OE.create(this._configuration.options),r=>Jo(r),this.languageConfigurationService,this._themeService);t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(r=>{switch(r.kind){case 0:this._onDidContentSizeChange.fire(r);break;case 1:this._editorTextFocus.setValue(r.hasFocus);break;case 2:this._onDidScrollChange.fire(r);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{r.reachedMaxCursorCount&&this._notificationService.warn(p("cursors.maximum","The number of cursors has been limited to {0}.",gg.MAX_CURSOR_COUNT));const a=[];for(let d=0,h=r.selections.length;d{this._paste("keyboard",s,r,a,l)},type:s=>{this._type("keyboard",s)},compositionType:(s,r,a,l)=>{this._compositionType("keyboard",s,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(s,r,a,l)=>{const c={text:s,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",c)},type:s=>{const r={text:s};this._commandService.executeCommand("type",r)},compositionType:(s,r,a,l)=>{if(a||l){const c={text:s,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",c)}else{const c={text:s,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",c)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new w1(e.coordinatesConverter);return i.onKeyDown=s=>this._onKeyDown.fire(s),i.onKeyUp=s=>this._onKeyUp.fire(s),i.onContextMenu=s=>this._onContextMenu.fire(s),i.onMouseMove=s=>this._onMouseMove.fire(s),i.onMouseLeave=s=>this._onMouseLeave.fire(s),i.onMouseDown=s=>this._onMouseDown.fire(s),i.onMouseUp=s=>this._onMouseUp.fire(s),i.onMouseDrag=s=>this._onMouseDrag.fire(s),i.onMouseDrop=s=>this._onMouseDrop.fire(s),i.onMouseDropCanceled=s=>this._onMouseDropCanceled.fire(s),i.onMouseWheel=s=>this._onMouseWheel.fire(s),[new aK(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e==null||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}showDropIndicatorAt(e){const t=[{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:tu.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}};pg.dropIntoEditorDecorationOptions=Ne.register({description:"workbench-dnd-target",className:"dnd-target"});pg=LG([ha(3,Ae),ha(4,ct),ha(5,ci),ha(6,Ee),ha(7,Ct),ha(8,di),ha(9,al),ha(10,si),ha(11,de)],pg);class BA extends H{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new R(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new R(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class IG extends H{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=N.editorSimpleInput.bindTo(t),this._editorFocus=N.focus.bindTo(t),this._textInputFocus=N.textInputFocus.bindTo(t),this._editorTextFocus=N.editorTextFocus.bindTo(t),this._editorTabMovesFocus=N.tabMovesFocus.bindTo(t),this._editorReadonly=N.readOnly.bindTo(t),this._inDiffEditor=N.inDiffEditor.bindTo(t),this._editorColumnSelection=N.columnSelection.bindTo(t),this._hasMultipleSelections=N.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=N.hasNonEmptySelection.bindTo(t),this._canUndo=N.canUndo.bindTo(t),this._canRedo=N.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(132)),this._editorReadonly.set(e.get(83)),this._inDiffEditor.set(e.get(56)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class EG extends H{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=N.languageId.bindTo(t),this._hasCompletionItemProvider=N.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=N.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=N.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=N.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=N.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=N.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=N.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=N.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=N.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=N.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=N.hasReferenceProvider.bindTo(t),this._hasRenameProvider=N.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=N.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=N.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=N.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=N.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=N.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=N.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=N.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===Me.walkThroughSnippet)})}}class NG extends H{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(Od(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}class TG{constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}get length(){return this._decorationIds.length}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations(n=>{this._isChangingDecorations||e.call(t,n)},i)}getRange(e){return!this._editor.hasModel()||e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e])}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations(t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)})}finally{this._isChangingDecorations=!1}}}const AG=encodeURIComponent("");function AS(o){return AG+encodeURIComponent(o.toString())+MG}const RG=encodeURIComponent('');function PG(o){return RG+encodeURIComponent(o.toString())+OG}Et((o,e)=>{const t=o.getColor(x4);t&&e.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${t}; }`);const i=o.getColor(Or);i&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${AS(i)}") repeat-x bottom left; }`);const n=o.getColor(_z);n&&e.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${n}; }`);const s=o.getColor(ag);s&&e.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${s}; }`);const r=o.getColor(vs);r&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${AS(r)}") repeat-x bottom left; }`);const a=o.getColor(bz);a&&e.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=o.getColor(Cv);l&&e.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=o.getColor(zn);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${AS(c)}") repeat-x bottom left; }`);const d=o.getColor(vz);d&&e.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${d}; }`);const h=o.getColor(wz);h&&e.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${h}; }`);const u=o.getColor(Cz);u&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${PG(u)}") no-repeat bottom left; }`);const g=o.getColor(y$);g&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${g.rgba.a}; }`);const f=o.getColor(S$);f&&e.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${f}; }`);const _=o.getColor(Cs)||"inherit";e.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${_}}`)});class bt{constructor(e,t,i){const n=s=>this.emitter.fire(s);this.emitter=new R({onFirstListenerAdd:()=>e.addEventListener(t,n,i),onLastListenerRemove:()=>e.removeEventListener(t,n,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function ND(o){return o.preventDefault(),o.stopPropagation(),o}var Zg=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const FG=!1;var Fv;(function(o){o.North="north",o.South="south",o.East="east",o.West="west"})(Fv||(Fv={}));let BG=4;const WG=new R;let VG=300;const HG=new R;class FE{constructor(){this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new bt(window,"mouseup")).event}dispose(){this.disposables.dispose()}}Zg([pi],FE.prototype,"onPointerMove",null);Zg([pi],FE.prototype,"onPointerUp",null);class BE{constructor(e){this.el=e,this.disposables=new Q}get onPointerMove(){return this.disposables.add(new bt(this.el,xt.Change)).event}get onPointerUp(){return this.disposables.add(new bt(this.el,xt.End)).event}dispose(){this.disposables.dispose()}}Zg([pi],BE.prototype,"onPointerMove",null);Zg([pi],BE.prototype,"onPointerUp",null);class Bv{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}Zg([pi],Bv.prototype,"onPointerMove",null);Zg([pi],Bv.prototype,"onPointerUp",null);const WA="pointer-events-disabled";class tn extends H{constructor(e,t,i){super(),this.hoverDelay=VG,this.hoverDelayer=this._register(new Kr(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new R),this._onDidStart=this._register(new R),this._onDidChange=this._register(new R),this._onDidReset=this._register(new R),this._onDidEnd=this._register(new R),this.orthogonalStartSashDisposables=this._register(new Q),this.orthogonalStartDragHandleDisposables=this._register(new Q),this.orthogonalEndSashDisposables=this._register(new Q),this.orthogonalEndDragHandleDisposables=this._register(new Q),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=q(e,J(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),Ge&&this.el.classList.add("mac");const n=this._register(new bt(this.el,"mousedown")).event;this._register(n(h=>this.onPointerStart(h,new FE),this));const s=this._register(new bt(this.el,"dblclick")).event;this._register(s(this.onPointerDoublePress,this));const r=this._register(new bt(this.el,"mouseenter")).event;this._register(r(()=>tn.onMouseEnter(this)));const a=this._register(new bt(this.el,"mouseleave")).event;this._register(a(()=>tn.onMouseLeave(this))),this._register(ft.addTarget(this.el));const l=ge.map(this._register(new bt(this.el,xt.Start)).event,h=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(l(h=>this.onPointerStart(h,new BE(this.el)),this));const c=this._register(new bt(this.el,xt.Tap)).event,d=ge.map(ge.filter(ge.debounce(c,(h,u)=>{var g;return{event:u,count:((g=h==null?void 0:h.count)!==null&&g!==void 0?g:0)+1}},250),({count:h})=>h===2),({event:h})=>{var u;return Object.assign(Object.assign({},h),{target:(u=h.initialTarget)!==null&&u!==void 0?u:null})});this._register(d(this.onPointerDoublePress,this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=BG,this._register(WG.event(h=>{this.size=h,this.layout()}))),this._register(HG.event(h=>this.hoverDelay=h)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(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",FG),this.layout()}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",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=q(this.el,J(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Be(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new bt(this._orthogonalStartDragHandle,"mouseleave")).event(()=>tn.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.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=q(this.el,J(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Be(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseenter")).event(()=>tn.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new bt(this._orthogonalEndDragHandle,"mouseleave")).event(()=>tn.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){ut.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const f=this.getOrthogonalSash(e);f&&(i=!0,e.__orthogonalSashEvent=!0,f.onPointerStart(e,new Bv(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new Bv(t))),!this.state)return;const n=WH("iframe");for(const f of n)f.classList.add(WA);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 c=Qs(this.el),d=()=>{let f="";i?f="all-scroll":this.orientation===1?this.state===1?f="s-resize":this.state===2?f="n-resize":f=Ge?"row-resize":"ns-resize":this.state===1?f="e-resize":this.state===2?f="w-resize":f=Ge?"col-resize":"ew-resize",c.textContent=`* { cursor: ${f} !important; }`},h=new Q;d(),i||this.onDidEnablementChange.event(d,null,h);const u=f=>{ut.stop(f,!1);const _={startX:s,currentX:f.pageX,startY:r,currentY:f.pageY,altKey:a};this._onDidChange.fire(_)},g=f=>{ut.stop(f,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),h.dispose();for(const _ of n)_.classList.remove(WA)};t.onPointerMove(u,null,h),t.onPointerUp(g,null,h),h.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&&tn.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&tn.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){tn.onMouseLeave(this)}layout(){if(this.orientation===0){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){if(!(!e.target||!(e.target instanceof HTMLElement))&&e.target.classList.contains("orthogonal-drag-handle"))return e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}class hc{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(e.getScrollTop()!==0){const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}}return new hc(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const __={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:Vn.text},Vc={CurrentDragAndDropData:void 0};var VA,HA;class zG{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 i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1,t=()=>!1){return new Uu(new jG(e,t))}static forStrings(){return new Uu(new zG)}static forConfigKeys(){return new Uu(new UG)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new Sb,this._root.segment=i.value());const s=[];for(n=this._root;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new Sb,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new Sb,n.right.segment=i.value()),s.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new Sb,n.mid.segment=i.value()),s.push([0,n]),n=n.mid;else break}const r=n.value;n.value=t,n.key=e;for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const d=s[a][0],h=s[a+1][0];if(d===1&&h===1)s[a][1]=l.rotateLeft();else if(d===-1&&h===-1)s[a][1]=l.rotateRight();else if(d===1&&h===-1)l.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=l.rotateLeft();else if(d===-1&&h===1)l.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}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),s=[];let r=this._root;for(;r;){const a=n.cmp(r.segment);if(a>0)s.push([-1,r]),r=r.left;else if(a<0)s.push([1,r]),r=r.right;else if(n.hasNext())n.next(),s.push([0,r]),r=r.mid;else break}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 a=this._min(r.right),{key:l,value:c,segment:d}=a;this._delete(a.key,!1),r.key=l,r.value=c,r.segment=d}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(s.length>0){const[l,c]=s[s.length-1];switch(l){case-1:c.left=a;break;case 0:c.mid=a;break;case 1:c.right=a;break}}else this._root=a}for(let a=s.length-1;a>=0;a--){const l=s[a][1];l.updateHeight();const c=l.balanceFactor();if(c>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),s[a][1]=l.rotateLeft()):c<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),s[a][1]=l.rotateRight()),a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,n;for(;i;){const s=t.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(t.hasNext())t.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else return i.mid?this._entries(i.mid):void 0}}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))}}class KG{constructor(e,t){this.uri=e,this.value=t}}class mn{constructor(e,t){this[VA]="ResourceMap",e instanceof mn?(this.map=new Map(e.map),this.toKey=t!=null?t:mn.defaultToKey):(this.map=new Map,this.toKey=e!=null?e:mn.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new KG(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?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){typeof t<"u"&&(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]}*[(VA=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}mn.defaultToKey=o=>o.toString();class qG{constructor(){this[HA]="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(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(!!i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,i!==0&&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;for(;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 s={value:i.key,done:!1};return i=i.next,s}else 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 s={value:i.value,done:!1};return i=i.next,s}else 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 s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return n}[(HA=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;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)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),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 Dc extends qG{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))}}function WE(...o){return function(e,t){for(let i=0,n=o.length;i0?[{start:0,end:e.length}]:[]:null}function T5(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t===-1?null:[{start:t,end:t+o.length}]}function A5(o,e){return TD(o.toLowerCase(),e.toLowerCase(),0,0)}function TD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]===e[i]){let n=null;return(n=TD(o,e,t+1,i+1))?zE({start:i,end:i+1},n):null}return TD(o,e,t,i+1)}function VE(o){return 97<=o&&o<=122}function I1(o){return 65<=o&&o<=90}function HE(o){return 48<=o&&o<=57}function M5(o){return o===32||o===9||o===10||o===13}const R5=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(o=>R5.add(o.charCodeAt(0)));function Wv(o){return M5(o)||R5.has(o)}function GG(o,e){return o===e||Wv(o)&&Wv(e)}function O5(o){return VE(o)||I1(o)||HE(o)}function zE(o,e){return e.length===0?e=[o]:o.end===e[0].start?e[0].start=o.start:e.unshift(o),e}function P5(o,e){for(let t=e;t0&&!O5(o.charCodeAt(t-1)))return t}return o.length}function AD(o,e,t,i){if(t===o.length)return[];if(i===e.length)return null;if(o[t]!==e[i].toLowerCase())return null;{let n=null,s=i+1;for(n=AD(o,e,t+1,i+1);!n&&(s=P5(e,s)).6}function QG(o){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=o;return t>.2&&e<.8&&i>.6&&n<.2}function XG(o){let e=0,t=0,i=0,n=0;for(let s=0;s60)return null;const t=ZG(e);if(!QG(t)){if(!YG(t))return null;e=e.toLowerCase()}let i=null,n=0;for(o=o.toLowerCase();n0&&Wv(o.charCodeAt(t-1)))return t;return o.length}const eZ=WE(x1,F5,T5),tZ=WE(x1,F5,A5),zA=new Dc(1e4);function UA(o,e,t=!1){if(typeof o!="string"||typeof e!="string")return null;let i=zA.get(o);i||(i=new RegExp(hB(o),"i"),zA.set(o,i));const n=i.exec(e);return n?[{start:n.index,end:n.index+n[0].length}]:t?tZ(o,e):eZ(o,e)}function iZ(o,e,t,i,n,s){const r=Math.min(13,o.length);for(;t"u")return[];const e=[],t=o[1];for(let i=o.length-1;i>1;i--){const n=o[i]+t,s=e[e.length-1];s&&s.end===n?s.end=n+1:e.push({start:n,end:n+1})}return e}const Bl=128;function UE(){const o=[],e=[];for(let t=0;t<=Bl;t++)e[t]=0;for(let t=0;t<=Bl;t++)o.push(e.slice(0));return o}function W5(o){const e=[];for(let t=0;t<=o;t++)e[t]=0;return e}const V5=W5(2*Bl),RD=W5(2*Bl),ua=UE(),Hc=UE(),yb=UE();function Lb(o,e){if(e<0||e>=o.length)return!1;const t=o.codePointAt(e);switch(t){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!!yI(t)}}function $A(o,e){if(e<0||e>=o.length)return!1;switch(o.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function S0(o,e,t){return e[o]!==t[o]}function nZ(o,e,t,i,n,s,r=!1){for(;eBl?Bl:o.length,l=i.length>Bl?Bl:i.length;if(t>=a||s>=l||a-t>l-s||!nZ(e,t,a,n,s,l,!0))return;sZ(a,l,t,s,e,n);let c=1,d=1,h=t,u=s;const g=[!1];for(c=1,h=t;hC,I=D?Hc[c][d-1]+(ua[c][d-1]>0?-5:0):0,O=u>C+1&&ua[c][d-1]>0,F=O?Hc[c][d-2]+(ua[c][d-2]>0?-5:0):0;if(O&&(!D||F>=I)&&(!x||F>=y))Hc[c][d]=F,yb[c][d]=3,ua[c][d]=0;else if(D&&(!x||I>=y))Hc[c][d]=I,yb[c][d]=2,ua[c][d]=0;else if(x)Hc[c][d]=y,yb[c][d]=1,ua[c][d]=ua[c-1][d-1]+1;else throw new Error("not possible")}}if(!g[0]&&!r.firstMatchCanBeWeak)return;c--,d--;const f=[Hc[c][d],s];let _=0,b=0;for(;c>=1;){let C=d;do{const w=yb[c][C];if(w===3)C=C-2;else if(w===2)C=C-1;else break}while(C>=1);_>1&&e[t+c-1]===n[s+d-1]&&!S0(C+s-1,i,n)&&_+1>ua[c][C]&&(C=d),C===d?_++:_=1,b||(b=C),c--,d=C-1,f.push(d)}l===a&&r.boostFullMatch&&(f[0]+=2);const v=b-a;return f[0]-=v,f}function sZ(o,e,t,i,n,s){let r=o-1,a=e-1;for(;r>=t&&a>=i;)n[r]===s[a]&&(RD[r]=a,r--),a--}function oZ(o,e,t,i,n,s,r,a,l,c,d){if(e[t]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===t-i?h=o[t]===n[r]?7:5:S0(r,n,s)&&(r===0||!S0(r-1,n,s))?(h=o[t]===n[r]?7:5,u=!0):Lb(s,r)&&(r===0||!Lb(s,r-1))?h=5:(Lb(s,r-1)||$A(s,r-1))&&(h=5,u=!0),h>1&&t===i&&(d[0]=!0),u||(u=S0(r,n,s)||Lb(s,r-1)||$A(s,r-1)),t===i?r>l&&(h-=u?3:5):c?h+=u?2:0:h+=u?0:1,r+1===a&&(h-=u?3:5),h}function rZ(o,e,t,i,n,s,r){return aZ(o,e,t,i,n,s,!0,r)}function aZ(o,e,t,i,n,s,r,a){let l=mg(o,e,t,i,n,s,a);if(l&&!r)return l;if(o.length>=3){const c=Math.min(7,o.length-1);for(let d=t+1;dl[0])&&(l=u))}}}return l}function lZ(o,e){if(e+1>=o.length)return;const t=o[e],i=o[e+1];if(t!==i)return o.slice(0,e)+i+t+o.slice(e+2)}const yp="$(",jE=new RegExp(`\\$\\(${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?\\)`,"g"),cZ=new RegExp(Ln.iconNameCharacter),dZ=new RegExp(`(\\\\)?${jE.source}`,"g");function hZ(o){return o.replace(dZ,(e,t)=>t?e:`\\${e}`)}const uZ=new RegExp(`\\\\${jE.source}`,"g");function gZ(o){return o.replace(uZ,e=>`\\${e}`)}const fZ=new RegExp(`(\\s)?(\\\\)?${jE.source}(\\s)?`,"g");function KE(o){return o.indexOf(yp)===-1?o:o.replace(fZ,(e,t,i,n)=>i?e:t||n||"")}function Wh(o){const e=o.indexOf(yp);return e===-1?{text:o}:pZ(o,e)}function pZ(o,e){const t=[];let i="";function n(u){if(u){i+=u;for(const g of u)t.push(a)}}let s=-1,r="",a=0,l,c,d=e;const h=o.length;for(n(o.substr(0,e));d" ".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ `:` `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=` -`,this.value+=t,this.value+="\n```\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(ys(t),"g");return e.replace(i,(n,s)=>e.charAt(s-1)!=="\\"?`\\${n}`:n)}}function _g(o){return HF(o)?!o.value:Array.isArray(o)?o.every(_g):!0}function HF(o){return o instanceof Fn?!0:o&&typeof o=="object"?typeof o.value=="string"&&(typeof o.isTrusted=="boolean"||o.isTrusted===void 0)&&(typeof o.supportThemeIcons=="boolean"||o.supportThemeIcons===void 0):!1}function mZ(o){return o.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function kb(o){return o.replace(/"/g,""")}function MS(o){return o&&o.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function _Z(o){const e=[],t=o.split("|").map(n=>n.trim());o=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),s=/width=(\d+)/.exec(i),r=n?n[1]:"",a=s?s[1]:"",l=isFinite(parseInt(a)),c=isFinite(parseInt(r));l&&e.push(`width="${a}"`),c&&e.push(`height="${r}"`)}return{href:o,dimensions:e}}var OD=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function bZ(o,e){Un(e)?o.title=KE(e):e!=null&&e.markdownNotSupportedFallback?o.title=e.markdownNotSupportedFallback:o.removeAttribute("title")}class vZ{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t,i){var n;return OD(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(e===void 0||Un(e)||e instanceof HTMLElement)s=e;else if(!K0(e.markdown))s=(n=e.markdown)!==null&&n!==void 0?n:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new Qi;const r=this._cancellationTokenSource.token;if(s=yield e.markdown(r),s===void 0&&(s=e.markdownNotSupportedFallback),this.isDisposed||r.isCancellationRequested)return}this.show(s,t,i)})}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s=Object.assign({content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!n},i);this._hoverWidget=this.hoverDelegate.showHover(s,t)}n==null||n.dispose()}hasContent(e){return e?HF(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function zF(o,e,t,i){let n,s;const r=(h,u)=>{var g;h&&(s==null||s.dispose(),s=void 0),u&&(n==null||n.dispose(),n=void 0),(g=o.onDidHideHover)===null||g===void 0||g.call(o)},a=(h,u,g)=>new xs(()=>OD(this,void 0,void 0,function*(){(!s||s.isDisposed)&&(s=new vZ(o,g||e,h>0),yield s.update(t,u,i))}),h),l=()=>{if(n)return;const h=new Q,u=_=>r(!1,_.fromElement===e);h.add(G(e,ae.MOUSE_LEAVE,u,!0));const g=()=>r(!0,!0);h.add(G(e,ae.MOUSE_DOWN,g,!0));const f={targetElements:[e],dispose:()=>{}};if(o.placement===void 0||o.placement==="mouse"){const _=b=>{f.x=b.x+10,b.target instanceof HTMLElement&&b.target.classList.contains("action-label")&&r(!0,!0)};h.add(G(e,ae.MOUSE_MOVE,_,!0))}h.add(a(o.delay,!1,f)),n=h},c=G(e,ae.MOUSE_OVER,l,!0);return{show:h=>{r(!1,!0),a(0,h)},hide:()=>{r(!0,!0)},update:(h,u)=>OD(this,void 0,void 0,function*(){t=h,yield s==null?void 0:s.update(t,void 0,u)}),dispose:()=>{c.dispose(),r(!0,!0)}}}class Dr extends H{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof is&&this._register(t.onDidChange(n=>{!this.element||this.handleActionChangeEvent(n)}))}get action(){return this._action}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new og)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(ft.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,Ls&&this._register(G(e,ae.DRAG_START,n=>{var s;return(s=n.dataTransfer)===null||s===void 0?void 0:s.setData(__.TEXT,this._action.label)}))),this._register(G(t,xt.Tap,n=>this.onClick(n,!0))),this._register(G(t,ae.MOUSE_DOWN,n=>{i||ut.stop(n,!0),this._action.enabled&&n.button===0&&t.classList.add("active")})),Ge&&this._register(G(t,ae.CONTEXT_MENU,n=>{n.button===0&&n.ctrlKey===!0&&this.onClick(n)})),this._register(G(t,ae.CLICK,n=>{ut.stop(n,!0),this.options&&this.options.isMenu||this.onClick(n)})),this._register(G(t,ae.DBLCLICK,n=>{ut.stop(n,!0)})),[ae.MOUSE_UP,ae.MOUSE_OUT].forEach(n=>{this._register(G(t,n,s=>{ut.stop(s),t.classList.remove("active")}))})}onClick(e,t=!1){var i;ut.stop(e,!0);const n=ms(this._context)?!((i=this.options)===null||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(){}getTooltip(){return this.getAction().tooltip}updateTooltip(){var e;if(!this.element)return;const t=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.element.setAttribute("aria-label",t),this.options.hoverDelegate?(this.element.title="",this.customHover?this.customHover.update(t):(this.customHover=zF(this.options.hoverDelegate,this.element,t),this._store.add(this.customHover))):this.element.title=t}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class fm extends Dr{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=q(this.element,J("a.action-label"))),this.label&&(this._action.id===ln.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(q(this.element,J("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}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.getAction().label)}getTooltip(){let e=null;return this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=p({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e!=null?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):(e=this.label)===null||e===void 0||e.classList.remove("codicon")}updateEnabled(){var e,t;this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(e=this.element)===null||e===void 0||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(t=this.element)===null||t===void 0||t.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}var CZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Zr extends H{constructor(e,t={}){var i,n,s,r,a,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new R({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new R),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new R),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(r=(s=this.options.triggerKeys)===null||s===void 0?void 0:s.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new og,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(h=>this._onDidRun.fire(h))),this._register(this._actionRunner.onBeforeRun(h=>this._onBeforeRun.fire(h))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let c,d;switch(this._orientation){case 0:c=[15],d=[17];break;case 1:c=[16],d=[18],this.domNode.className+=" vertical";break}this._register(G(this.domNode,ae.KEY_DOWN,h=>{const u=new Rt(h);let g=!0;const f=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(u.equals(c[0])||u.equals(c[1]))?g=this.focusPrevious():d&&(u.equals(d[0])||u.equals(d[1]))?g=this.focusNext():u.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():u.equals(14)?g=this.focusFirst():u.equals(13)?g=this.focusLast():u.equals(2)&&f instanceof Dr&&f.trapsArrowNavigation?g=this.focusNext():this.isTriggerKeyEvent(u)?this._triggerKeys.keyDown?this.doTrigger(u):this.triggerKeyDown=!0:g=!1,g&&(u.preventDefault(),u.stopPropagation())})),this._register(G(this.domNode,ae.KEY_UP,h=>{const u=new Rt(h);this.isTriggerKeyEvent(u)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(u)),u.preventDefault(),u.stopPropagation()):(u.equals(2)||u.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(Od(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(Ru()===this.domNode||!Ga(Ru(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",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()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof Dr&&i.isEnabled());t instanceof Dr&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof Dr&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=tc(t.index)?t.index:null;i.forEach(s=>{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation");let a;this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(s)),a||(a=new fm(this.context,s,Object.assign({hoverDelegate:this.options.hoverDelegate},t))),this.options.allowContextMenu||this.viewItemDisposables.set(a,G(r,ae.CONTEXT_MENU,l=>{ut.stop(l,!0)})),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof Dr&&this.viewItems.length===0&&a.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a),this._actionIds.push(s.id)):(this.actionsList.insertBefore(r,this.actionsList.children[n]),this.viewItems.splice(n,0,a),this._actionIds.splice(n,0,s.id),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){nt(this.viewItems),this.viewItemDisposables.forEach(e=>e.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],Si(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem>"u"){const n=this.viewItems.findIndex(s=>s.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),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(typeof this.focusedItem>"u")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===ln.ID));return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem>"u")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===ln.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const s=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(s){let r=!0;K0(s.focus)||(r=!1),this.options.focusOnlyEnabledItems&&K0(s.isEnabled)&&!s.isEnabled()&&(r=!1),s.action.id===ln.ID&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(typeof this.focusedItem>"u")return;const t=this.viewItems[this.focusedItem];if(t instanceof Dr){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}run(e,t){return CZ(this,void 0,void 0,function*(){yield this._actionRunner.run(e,t)})}dispose(){nt(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}const wZ={IconContribution:"base.contributions.icons"};var jA;(function(o){function e(t,i){let n=t.defaults;for(;at.isThemeIcon(n);){const s=bh.getIcon(n.id);if(!s)return;n=s.defaults}return n}o.getDefinition=e})(jA||(jA={}));var KA;(function(o){function e(i){return{weight:i.weight,style:i.style,src:i.src.map(n=>({format:n.format,location:n.location.toString()}))}}o.toJSONObject=e;function t(i){const n=s=>Un(s)?s:void 0;if(i&&Array.isArray(i.src)&&i.src.every(s=>Un(s.format)&&Un(s.location)))return{weight:n(i.weight),style:n(i.style),src:i.src.map(s=>({format:s.format,location:_e.parse(s.location)}))}}o.fromJSONObject=t})(KA||(KA={}));class SZ{constructor(){this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:p("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:p("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Ln.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return s}const r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;const a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(s,r)=>s.id.localeCompare(r.id),t=s=>{for(;at.isThemeIcon(s.defaults);)s=this.iconsById[s.defaults.id];return`codicon codicon-${s?s.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map(s=>this.iconsById[s]);for(const s of n.filter(r=>!!r.description).sort(e))i.push(`||${s.id}|${at.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter(r=>!at.isThemeIcon(r.defaults)).sort(e))i.push(`||${s.id}|`);return i.join(` -`)}}const bh=new SZ;zt.add(wZ.IconContribution,bh);function mi(o,e,t,i){return bh.registerIcon(o,e,t,i)}function UF(){return bh}function yZ(){for(const o of m.getAll())bh.registerIcon(o.id,o.definition,o.description)}yZ();const $F="vscode://schemas/icons",jF=zt.as(KC.JSONContribution);jF.registerSchema($F,bh.getIconSchema());const qA=new mt(()=>jF.notifySchemaChanged($F),200);bh.onDidChange(()=>{qA.isScheduled()||qA.schedule()});const KF=mi("widget-close",m.close,p("widgetClose","Icon for the close action in widgets."));mi("goto-previous-location",m.arrowUp,p("previousChangeIcon","Icon for goto previous editor location."));mi("goto-next-location",m.arrowDown,p("nextChangeIcon","Icon for goto next editor location."));at.modify(m.sync,"spin");at.modify(m.loading,"spin");var LZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},DZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},RS;const xb=3;class xf{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class OS{constructor(e){this.entries=e}}const xZ=mi("diff-review-insert",m.add,p("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),IZ=mi("diff-review-remove",m.remove,p("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),EZ=mi("diff-review-close",m.close,p("diffReviewCloseIcon","Icon for 'Close' in diff review."));let Vv=class Kc extends H{constructor(e,t){super(),this._languageService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Je(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Je(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new Zr(this.actionBarContainer.domNode)),this._actionBar.push(new is("diffreview.close",p("label.close","Close"),"close-diff-review "+at.asClassName(EZ),!0,()=>kZ(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=Je(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Je(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new p_(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(ki(this.domNode.domNode,"click",i=>{i.preventDefault();const n=o4(i.target,"diff-review-row");n&&this._goToRow(n)})),this._register(ki(this.domNode.domNode,"keydown",i=>{(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),this._goToRow(this._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),this._goToRow(this._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),this.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let i=-1;for(let n=0,s=this._diffs.length;n0){const D=e[c-1];D.originalEndLineNumber===0?S=D.originalStartLineNumber+1:S=D.originalEndLineNumber+1,D.modifiedEndLineNumber===0?k=D.modifiedStartLineNumber+1:k=D.modifiedEndLineNumber+1}let x=C-xb+1,y=w-xb+1;if(xS){const D=S-x;x=x+D,y=y+D}if(y>k){const D=k-y;x=x+D,y=y+D}b[v++]=new xf(C,x,w,y)}n[s++]=new OS(b)}let r=n[0].entries;const a=[];let l=0;for(let c=1,d=n.length;ch)&&(h=F),z!==0&&(u===0||zg)&&(g=j)}const f=document.createElement("div");f.className="diff-review-row";const _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=h-d+1,v=g-u+1;_.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${d},${b} +${u},${v} @@`)),f.setAttribute("data-line",String(u));const C=y=>y===0?p("no_lines_changed","no lines changed"):y===1?p("one_line_changed","1 line changed"):p("more_lines_changed","{0} lines changed",y),w=C(b),S=C(v);f.setAttribute("aria-label",p({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,d,w,u,S)),f.appendChild(_),f.setAttribute("role","listitem"),c.appendChild(f);const k=t.get(61);let x=u;for(let y=0,D=l.length;yo});Vv=LZ([DZ(1,Ht)],Vv);Et((o,e)=>{const t=o.getColor(H4);t&&e.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${t}; }`);const i=o.getColor(Kg);i&&e.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class NZ extends ce{constructor(){super({id:"editor.action.diffReview.next",label:p("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=qF(e);i&&i.diffReviewNext()}}class TZ extends ce{constructor(){super({id:"editor.action.diffReview.prev",label:p("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=qF(e);i&&i.diffReviewPrev()}}function qF(o){const e=o.get(ct),t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(!i)return null;for(let n=0,s=t.length;nn.modifiedStartLineNumber?p("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):p("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?p("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):p("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),b=n.originalModel.getValueInRange(_);yield this._clipboardService.writeText(b)})));let h=0,u;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new is("diff.clipboard.copyDeletedLineContent",d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=n.originalModel.getLineContent(n.originalStartLineNumber+h);if(_===""){const b=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(b===0?` +`,this.value+=t,this.value+="\n```\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(ys(t),"g");return e.replace(i,(n,s)=>e.charAt(s-1)!=="\\"?`\\${n}`:n)}}function _g(o){return H5(o)?!o.value:Array.isArray(o)?o.every(_g):!0}function H5(o){return o instanceof Fn?!0:o&&typeof o=="object"?typeof o.value=="string"&&(typeof o.isTrusted=="boolean"||o.isTrusted===void 0)&&(typeof o.supportThemeIcons=="boolean"||o.supportThemeIcons===void 0):!1}function mZ(o){return o.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function kb(o){return o.replace(/"/g,""")}function MS(o){return o&&o.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function _Z(o){const e=[],t=o.split("|").map(n=>n.trim());o=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),s=/width=(\d+)/.exec(i),r=n?n[1]:"",a=s?s[1]:"",l=isFinite(parseInt(a)),c=isFinite(parseInt(r));l&&e.push(`width="${a}"`),c&&e.push(`height="${r}"`)}return{href:o,dimensions:e}}var OD=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function bZ(o,e){Un(e)?o.title=KE(e):e!=null&&e.markdownNotSupportedFallback?o.title=e.markdownNotSupportedFallback:o.removeAttribute("title")}class vZ{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t,i){var n;return OD(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(e===void 0||Un(e)||e instanceof HTMLElement)s=e;else if(!K0(e.markdown))s=(n=e.markdown)!==null&&n!==void 0?n:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new Qi;const r=this._cancellationTokenSource.token;if(s=yield e.markdown(r),s===void 0&&(s=e.markdownNotSupportedFallback),this.isDisposed||r.isCancellationRequested)return}this.show(s,t,i)})}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s=Object.assign({content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!n},i);this._hoverWidget=this.hoverDelegate.showHover(s,t)}n==null||n.dispose()}hasContent(e){return e?H5(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function z5(o,e,t,i){let n,s;const r=(h,u)=>{var g;h&&(s==null||s.dispose(),s=void 0),u&&(n==null||n.dispose(),n=void 0),(g=o.onDidHideHover)===null||g===void 0||g.call(o)},a=(h,u,g)=>new xs(()=>OD(this,void 0,void 0,function*(){(!s||s.isDisposed)&&(s=new vZ(o,g||e,h>0),yield s.update(t,u,i))}),h),l=()=>{if(n)return;const h=new Q,u=_=>r(!1,_.fromElement===e);h.add(G(e,ae.MOUSE_LEAVE,u,!0));const g=()=>r(!0,!0);h.add(G(e,ae.MOUSE_DOWN,g,!0));const f={targetElements:[e],dispose:()=>{}};if(o.placement===void 0||o.placement==="mouse"){const _=b=>{f.x=b.x+10,b.target instanceof HTMLElement&&b.target.classList.contains("action-label")&&r(!0,!0)};h.add(G(e,ae.MOUSE_MOVE,_,!0))}h.add(a(o.delay,!1,f)),n=h},c=G(e,ae.MOUSE_OVER,l,!0);return{show:h=>{r(!1,!0),a(0,h)},hide:()=>{r(!0,!0)},update:(h,u)=>OD(this,void 0,void 0,function*(){t=h,yield s==null?void 0:s.update(t,void 0,u)}),dispose:()=>{c.dispose(),r(!0,!0)}}}class Dr extends H{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof is&&this._register(t.onDidChange(n=>{!this.element||this.handleActionChangeEvent(n)}))}get action(){return this._action}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new og)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(ft.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,Ls&&this._register(G(e,ae.DRAG_START,n=>{var s;return(s=n.dataTransfer)===null||s===void 0?void 0:s.setData(__.TEXT,this._action.label)}))),this._register(G(t,xt.Tap,n=>this.onClick(n,!0))),this._register(G(t,ae.MOUSE_DOWN,n=>{i||ut.stop(n,!0),this._action.enabled&&n.button===0&&t.classList.add("active")})),Ge&&this._register(G(t,ae.CONTEXT_MENU,n=>{n.button===0&&n.ctrlKey===!0&&this.onClick(n)})),this._register(G(t,ae.CLICK,n=>{ut.stop(n,!0),this.options&&this.options.isMenu||this.onClick(n)})),this._register(G(t,ae.DBLCLICK,n=>{ut.stop(n,!0)})),[ae.MOUSE_UP,ae.MOUSE_OUT].forEach(n=>{this._register(G(t,n,s=>{ut.stop(s),t.classList.remove("active")}))})}onClick(e,t=!1){var i;ut.stop(e,!0);const n=ms(this._context)?!((i=this.options)===null||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(){}getTooltip(){return this.getAction().tooltip}updateTooltip(){var e;if(!this.element)return;const t=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.element.setAttribute("aria-label",t),this.options.hoverDelegate?(this.element.title="",this.customHover?this.customHover.update(t):(this.customHover=z5(this.options.hoverDelegate,this.element,t),this._store.add(this.customHover))):this.element.title=t}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class fm extends Dr{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=q(this.element,J("a.action-label"))),this.label&&(this._action.id===ln.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(q(this.element,J("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}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.getAction().label)}getTooltip(){let e=null;return this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=p({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e!=null?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):(e=this.label)===null||e===void 0||e.classList.remove("codicon")}updateEnabled(){var e,t;this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(e=this.element)===null||e===void 0||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(t=this.element)===null||t===void 0||t.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}var CZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Zr extends H{constructor(e,t={}){var i,n,s,r,a,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new R({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new R),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new R),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(r=(s=this.options.triggerKeys)===null||s===void 0?void 0:s.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new og,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(h=>this._onDidRun.fire(h))),this._register(this._actionRunner.onBeforeRun(h=>this._onBeforeRun.fire(h))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let c,d;switch(this._orientation){case 0:c=[15],d=[17];break;case 1:c=[16],d=[18],this.domNode.className+=" vertical";break}this._register(G(this.domNode,ae.KEY_DOWN,h=>{const u=new Rt(h);let g=!0;const f=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(u.equals(c[0])||u.equals(c[1]))?g=this.focusPrevious():d&&(u.equals(d[0])||u.equals(d[1]))?g=this.focusNext():u.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():u.equals(14)?g=this.focusFirst():u.equals(13)?g=this.focusLast():u.equals(2)&&f instanceof Dr&&f.trapsArrowNavigation?g=this.focusNext():this.isTriggerKeyEvent(u)?this._triggerKeys.keyDown?this.doTrigger(u):this.triggerKeyDown=!0:g=!1,g&&(u.preventDefault(),u.stopPropagation())})),this._register(G(this.domNode,ae.KEY_UP,h=>{const u=new Rt(h);this.isTriggerKeyEvent(u)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(u)),u.preventDefault(),u.stopPropagation()):(u.equals(2)||u.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(Od(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(Ru()===this.domNode||!Ga(Ru(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",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()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof Dr&&i.isEnabled());t instanceof Dr&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof Dr&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=tc(t.index)?t.index:null;i.forEach(s=>{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation");let a;this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(s)),a||(a=new fm(this.context,s,Object.assign({hoverDelegate:this.options.hoverDelegate},t))),this.options.allowContextMenu||this.viewItemDisposables.set(a,G(r,ae.CONTEXT_MENU,l=>{ut.stop(l,!0)})),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof Dr&&this.viewItems.length===0&&a.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a),this._actionIds.push(s.id)):(this.actionsList.insertBefore(r,this.actionsList.children[n]),this.viewItems.splice(n,0,a),this._actionIds.splice(n,0,s.id),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){nt(this.viewItems),this.viewItemDisposables.forEach(e=>e.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],Si(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem>"u"){const n=this.viewItems.findIndex(s=>s.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),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(typeof this.focusedItem>"u")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===ln.ID));return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem>"u")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===ln.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const s=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(s){let r=!0;K0(s.focus)||(r=!1),this.options.focusOnlyEnabledItems&&K0(s.isEnabled)&&!s.isEnabled()&&(r=!1),s.action.id===ln.ID&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(typeof this.focusedItem>"u")return;const t=this.viewItems[this.focusedItem];if(t instanceof Dr){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}run(e,t){return CZ(this,void 0,void 0,function*(){yield this._actionRunner.run(e,t)})}dispose(){nt(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}const wZ={IconContribution:"base.contributions.icons"};var jA;(function(o){function e(t,i){let n=t.defaults;for(;at.isThemeIcon(n);){const s=bh.getIcon(n.id);if(!s)return;n=s.defaults}return n}o.getDefinition=e})(jA||(jA={}));var KA;(function(o){function e(i){return{weight:i.weight,style:i.style,src:i.src.map(n=>({format:n.format,location:n.location.toString()}))}}o.toJSONObject=e;function t(i){const n=s=>Un(s)?s:void 0;if(i&&Array.isArray(i.src)&&i.src.every(s=>Un(s.format)&&Un(s.location)))return{weight:n(i.weight),style:n(i.style),src:i.src.map(s=>({format:s.format,location:_e.parse(s.location)}))}}o.fromJSONObject=t})(KA||(KA={}));class SZ{constructor(){this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:p("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:p("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Ln.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return s}const r={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=r;const a={$ref:"#/definitions/icons"};return n&&(a.deprecationMessage=n),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(s,r)=>s.id.localeCompare(r.id),t=s=>{for(;at.isThemeIcon(s.defaults);)s=this.iconsById[s.defaults.id];return`codicon codicon-${s?s.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map(s=>this.iconsById[s]);for(const s of n.filter(r=>!!r.description).sort(e))i.push(`||${s.id}|${at.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter(r=>!at.isThemeIcon(r.defaults)).sort(e))i.push(`||${s.id}|`);return i.join(` +`)}}const bh=new SZ;zt.add(wZ.IconContribution,bh);function mi(o,e,t,i){return bh.registerIcon(o,e,t,i)}function U5(){return bh}function yZ(){for(const o of m.getAll())bh.registerIcon(o.id,o.definition,o.description)}yZ();const $5="vscode://schemas/icons",j5=zt.as(KC.JSONContribution);j5.registerSchema($5,bh.getIconSchema());const qA=new mt(()=>j5.notifySchemaChanged($5),200);bh.onDidChange(()=>{qA.isScheduled()||qA.schedule()});const K5=mi("widget-close",m.close,p("widgetClose","Icon for the close action in widgets."));mi("goto-previous-location",m.arrowUp,p("previousChangeIcon","Icon for goto previous editor location."));mi("goto-next-location",m.arrowDown,p("nextChangeIcon","Icon for goto next editor location."));at.modify(m.sync,"spin");at.modify(m.loading,"spin");var LZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},DZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},RS;const xb=3;class xf{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class OS{constructor(e){this.entries=e}}const xZ=mi("diff-review-insert",m.add,p("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),IZ=mi("diff-review-remove",m.remove,p("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),EZ=mi("diff-review-close",m.close,p("diffReviewCloseIcon","Icon for 'Close' in diff review."));let Vv=class Kc extends H{constructor(e,t){super(),this._languageService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Je(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Je(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new Zr(this.actionBarContainer.domNode)),this._actionBar.push(new is("diffreview.close",p("label.close","Close"),"close-diff-review "+at.asClassName(EZ),!0,()=>kZ(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=Je(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Je(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new p_(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(ki(this.domNode.domNode,"click",i=>{i.preventDefault();const n=o4(i.target,"diff-review-row");n&&this._goToRow(n)})),this._register(ki(this.domNode.domNode,"keydown",i=>{(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),this._goToRow(this._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),this._goToRow(this._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),this.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let i=-1;for(let n=0,s=this._diffs.length;n0){const D=e[c-1];D.originalEndLineNumber===0?S=D.originalStartLineNumber+1:S=D.originalEndLineNumber+1,D.modifiedEndLineNumber===0?k=D.modifiedStartLineNumber+1:k=D.modifiedEndLineNumber+1}let x=C-xb+1,y=w-xb+1;if(xS){const D=S-x;x=x+D,y=y+D}if(y>k){const D=k-y;x=x+D,y=y+D}b[v++]=new xf(C,x,w,y)}n[s++]=new OS(b)}let r=n[0].entries;const a=[];let l=0;for(let c=1,d=n.length;ch)&&(h=F),z!==0&&(u===0||zg)&&(g=j)}const f=document.createElement("div");f.className="diff-review-row";const _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=h-d+1,v=g-u+1;_.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${d},${b} +${u},${v} @@`)),f.setAttribute("data-line",String(u));const C=y=>y===0?p("no_lines_changed","no lines changed"):y===1?p("one_line_changed","1 line changed"):p("more_lines_changed","{0} lines changed",y),w=C(b),S=C(v);f.setAttribute("aria-label",p({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,d,w,u,S)),f.appendChild(_),f.setAttribute("role","listitem"),c.appendChild(f);const k=t.get(61);let x=u;for(let y=0,D=l.length;yo});Vv=LZ([DZ(1,Ht)],Vv);Et((o,e)=>{const t=o.getColor(H4);t&&e.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${t}; }`);const i=o.getColor(Kg);i&&e.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class NZ extends ce{constructor(){super({id:"editor.action.diffReview.next",label:p("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=q5(e);i&&i.diffReviewNext()}}class TZ extends ce{constructor(){super({id:"editor.action.diffReview.prev",label:p("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:se.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=q5(e);i&&i.diffReviewPrev()}}function q5(o){const e=o.get(ct),t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(!i)return null;for(let n=0,s=t.length;nn.modifiedStartLineNumber?p("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):p("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?p("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):p("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),b=n.originalModel.getValueInRange(_);yield this._clipboardService.writeText(b)})));let h=0,u;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new is("diff.clipboard.copyDeletedLineContent",d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=n.originalModel.getLineContent(n.originalStartLineNumber+h);if(_===""){const b=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(b===0?` `:`\r -`)}else yield this._clipboardService.writeText(_)})),c.push(u)),i.getOption(83)||c.push(new is("diff.inline.revertChange",p("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),b=n.originalModel.getValueInRange(_);if(n.modifiedEndLineNumber===0){const v=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,v,n.modifiedStartLineNumber,v),text:l+b}])}else{const v=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,v),text:b}])}})));const f=(_,b)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:b}),getActions:()=>(u&&(u.label=d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+h):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+h)),c),autoSelectFirstItem:!0})};this._register(ki(this._diffActions,"mousedown",_=>{const{top:b,height:v}=on(this._diffActions),C=Math.floor(a/3);_.preventDefault(),f(_.posx,b+v+C)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{!_.event.rightButton||(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a),f(_.event.posx,_.event.posy+a))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,e?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=on(e),s=t-n,r=Math.floor(s/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let l=0;for(let c=0;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ga=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},FS;class GA{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(t=>!this._zonesMap[String(t.id)])}clean(e){this._zones.length>0&&e.changeViewZones(t=>{for(const i of this._zones)t.removeZone(i)}),this._zones=[],this._zonesMap={},e.changeDecorations(t=>{this._decorations=t.deltaDecorations(this._decorations,[])})}apply(e,t,i,n){const s=n?hc.capture(e):null;e.changeViewZones(r=>{var a;for(const l of this._zones)r.removeZone(l);for(const l of this._inlineDiffMargins)l.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let l=0,c=i.zones.length;l{this._decorations=r.deltaDecorations(this._decorations,i.decorations)}),t==null||t.setZones(i.overviewZones)}}let OZ=0;const PZ=mi("diff-insert",m.add,p("diffInsertIcon","Line decoration for inserts in the diff editor.")),ZF=mi("diff-remove",m.remove,p("diffRemoveIcon","Line decoration for removals in the diff editor.")),ZA=(FS=window.trustedTypes)===null||FS===void 0?void 0:FS.createPolicy("diffEditorWidget",{createHTML:o=>o});let uc=class Xi extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this._editorProgressService=u,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new R),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new R),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=s,this._codeEditorService=l,this._contextKeyService=this._register(r.createScoped(e)),this._instantiationService=a.createChild(new k1([Ee,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=c,this._notificationService=d,this._id=++OZ,this._state=0,this._updatingDiffProgress=null,this._domElement=e,t=t||{},this._options=XA(t,{enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof t.isInEmbeddedEditor<"u"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",t.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new mt(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Je(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(ki(this._overviewDomElement,ae.POINTER_DOWN,f=>{this._modifiedEditor.delegateVerticalScrollbarPointerDown(f)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new GA(h,n),this._modifiedEditorState=new GA(h,n),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new y4(this._containerDomElement,t.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),t.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(t,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(t,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=a.createInstance(Vv,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new Ma(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new QA(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(c.onDidColorThemeChange(f=>{this._strategy&&this._strategy.applyColors(f)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const g=md.getDiffEditorContributions();for(const f of g)try{this._register(a.createInstance(f.ctor,this))}catch(_){Te(_)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=fv(e.type),i}_disposeOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose(),this._originalOverviewRuler=null),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose(),this._modifiedOverviewRuler=null)}_createOverviewRulers(){!this._options.renderOverviewRuler||(ap(!this._originalOverviewRuler&&!this._modifiedOverviewRuler),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const n=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),i}_createRightHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(s=>{s.tabSize&&this._updateDecorationsRunner.schedule()}));const n=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),this._register(i.onMouseDown(s=>{var r,a;if(!s.event.rightButton&&s.target.position&&((r=s.target.element)===null||r===void 0?void 0:r.className.includes("arrow-revert-change"))){const l=s.target.position.lineNumber,c=(a=this._diffComputationResult)===null||a===void 0?void 0:a.changes.find(d=>d.modifiedStartLineNumber===l-1||d.modifiedStartLineNumber===l);c&&this.revertChange(c),s.event.stopPropagation(),this._updateDecorations();return}})),i}revertChange(e){const t=this._modifiedEditor,i=this._originalEditor.getModel(),n=this._modifiedEditor.getModel();if(!i||!n||!t)return;const s=e.originalEndLineNumber>0?new L(e.originalStartLineNumber,1,e.originalEndLineNumber,i.getLineMaxColumn(e.originalEndLineNumber)):null,r=s?i.getValueInRange(s):null,a=e.modifiedEndLineNumber>0?new L(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber,n.getLineMaxColumn(e.modifiedEndLineNumber)):null,l=n.getEOL();if(e.originalEndLineNumber===0&&a){let c=a;e.modifiedStartLineNumber>1?c=a.setStartPosition(e.modifiedStartLineNumber-1,n.getLineMaxColumn(e.modifiedStartLineNumber-1)):e.modifiedEndLineNumberthis._beginUpdateDecorations(),Xi.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t?!0:!e||!t?!1:e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const e=this._originalEditor.getModel(),t=this._modifiedEditor.getModel();if(!e||!t)return;this._diffComputationToken++;const i=this._diffComputationToken,n=this._options.maxFileSize*1024*1024,s=r=>{const a=r.getValueLength();return n===0||a<=n};if(!s(e)||!s(t)){(!Xi._equals(e.uri,this._lastOriginalWarning)||!Xi._equals(t.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=e.uri,this._lastModifiedWarning=t.uri,this._notificationService.warn(p("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._setState(1),this._editorWorkerService.computeDiff(e.uri,t.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=r,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,this._options.renderMarginRevertIcon,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.dropIntoEditor={enabled:!t.readOnly},t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(e){const t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=nr.revealHorizontalRightPadding.defaultValue+Xi.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=this._strategy.layout();this._originalDomNode.style.width=n+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-n+"px",this._modifiedDomNode.style.left=n+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(Xi.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:n,height:t-i}),this._modifiedEditor.layout({width:e-n-(this._options.renderOverviewRuler?Xi.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),s=Math.max(0,n-2*0),r=i>0?s/i:0,a=Math.max(0,Math.floor(e.height*r)),l=Math.floor(t*r);return{height:a,top:l}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||e=l?n=r+1:(n=r,s=r)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.originalStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=s?n+Math.min(a,r):n+r-s+a}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.modifiedStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,s):i+s-r+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};uc.ONE_OVERVIEW_WIDTH=15;uc.ENTIRE_DIFF_OVERVIEW_WIDTH=30;uc.UPDATE_DIFF_DECORATIONS_DELAY=200;uc=RZ([ga(3,cl),ga(4,to),ga(5,Ee),ga(6,Ae),ga(7,ct),ga(8,Ct),ga(9,di),ga(10,ll),ga(11,kc)],uc);class YF extends H{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(Zz)||(e.getColor(I4)||cD).transparent(2),i=e.getColor(Yz)||(e.getColor(E4)||dD).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,s,r){r=r.sort((d,h)=>d.afterLineNumber-h.afterLineNumber),s=s.sort((d,h)=>d.afterLineNumber-h.afterLineNumber);const a=this._getViewZones(e,s,r,i),l=this._getOriginalEditorDecorations(a,e,t,i),c=this._getModifiedEditorDecorations(a,e,t,i,n);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:c.decorations,overviewZones:c.overviewZones,zones:a.modified}}}}class YA{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexx.afterLineNumber-y.afterLineNumber,v=(x,y)=>{if(y.domNode===null&&x.length>0){const D=x[x.length-1];if(D.afterLineNumber===y.afterLineNumber&&D.domNode===null){D.heightInLines+=y.heightInLines;return}}x.push(y)},C=new YA(this._modifiedForeignVZ),w=new YA(this._originalForeignVZ);let S=1,k=1;for(let x=0,y=this._lineChanges.length;x<=y;x++){const D=x0?-1:0),g=D.modifiedStartLineNumber+(D.modifiedEndLineNumber>0?-1:0),h=D.originalEndLineNumber>0?ud._getViewLineCount(this._originalEditor,D.originalStartLineNumber,D.originalEndLineNumber):0,d=D.modifiedEndLineNumber>0?ud._getViewLineCount(this._modifiedEditor,D.modifiedStartLineNumber,D.modifiedEndLineNumber):0,f=Math.max(D.originalStartLineNumber,D.originalEndLineNumber),_=Math.max(D.modifiedStartLineNumber,D.modifiedEndLineNumber)):(u+=1e7+h,g+=1e7+d,f=u,_=g);let I=[],O=[];if(s){let j;D?D.originalEndLineNumber>0?j=D.originalStartLineNumber-S:j=D.modifiedStartLineNumber-k:j=r.getLineCount()-S+1;for(let re=0;rexe&&O.push({afterLineNumber:Se,heightInLines:ye-xe,domNode:null,marginDomNode:null})}D&&(S=(D.originalEndLineNumber>0?D.originalEndLineNumber:D.originalStartLineNumber)+1,k=(D.modifiedEndLineNumber>0?D.modifiedEndLineNumber:D.modifiedStartLineNumber)+1)}for(;C.current&&C.current.afterLineNumber<=_;){let j;C.current.afterLineNumber<=g?j=u-g+C.current.afterLineNumber:j=f;let re=null;D&&D.modifiedStartLineNumber<=C.current.afterLineNumber&&C.current.afterLineNumber<=D.modifiedEndLineNumber&&(re=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),I.push({afterLineNumber:j,heightInLines:C.current.height/t,domNode:null,marginDomNode:re}),C.advance()}for(;w.current&&w.current.afterLineNumber<=f;){let j;w.current.afterLineNumber<=u?j=g-u+w.current.afterLineNumber:j=_,O.push({afterLineNumber:j,heightInLines:w.current.height/e,domNode:null}),w.advance()}if(D!==null&&Hv(D)){const j=this._produceOriginalFromDiff(D,h,d);j&&I.push(j)}if(D!==null&&zv(D)){const j=this._produceModifiedFromDiff(D,h,d);j&&O.push(j)}let F=0,z=0;for(I=I.sort(b),O=O.sort(b);F=re.heightInLines?(j.heightInLines-=re.heightInLines,z++):(re.heightInLines-=j.heightInLines,F++)}for(;F(t.domNode||(t.domNode=JF()),t))}}function xa(o,e,t,i,n){return{range:new L(o,e,t,i),options:n}}const wn={arrowRevertChange:Ne.register({description:"diff-editor-arrow-revert-change",glyphMarginClassName:"arrow-revert-change "+at.asClassName(m.arrowRight)}),charDelete:Ne.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:Ne.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:Ne.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:Ne.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:Ne.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:Ne.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+at.asClassName(PZ),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:Ne.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:Ne.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+at.asClassName(ZF),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:Ne.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class Ma extends YF{constructor(e,t){super(e),this._disableSash=t===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new tn(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(i=>this._onSashDrag(i)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=e===!1;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let n=Math.floor((e||.5)*i);const s=Math.floor(.5*i);return n=this._disableSash?s:n||s,i>Ma.MINIMUM_EDITOR_WIDTH*2?(ni-Ma.MINIMUM_EDITOR_WIDTH&&(n=i-Ma.MINIMUM_EDITOR_WIDTH)):n=s,this._sashPosition!==n&&(this._sashPosition=n),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0),n=this.layout((this._startSashPosition+(e.currentX-e.startX))/i);this._sashRatio=n/i,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),s=this._dataSource.getModifiedEditor();return new FZ(e,t,i,n,s).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=String(this._removeColor),a={decorations:[],overviewZones:[]},l=s.getModel(),c=s._getViewModel();for(const d of t)if(zv(d)){a.decorations.push({range:new L(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:n?wn.lineDeleteWithSign:wn.lineDelete}),(!Hv(d)||!d.charChanges)&&a.decorations.push(xa(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824,wn.charDeleteWholeLine));const h=pm(l,c,d.originalStartLineNumber,d.originalEndLineNumber);if(a.overviewZones.push(new lm(h.startLineNumber,h.endLineNumber,0,r)),d.charChanges){for(const u of d.charChanges)if(XF(u))if(i)for(let g=u.originalStartLineNumber;g<=u.originalEndLineNumber;g++){let f,_;g===u.originalStartLineNumber?f=u.originalStartColumn:f=l.getLineFirstNonWhitespaceColumn(g),g===u.originalEndLineNumber?_=u.originalEndColumn:_=l.getLineLastNonWhitespaceColumn(g),a.decorations.push(xa(g,f,g,_,wn.charDelete))}else a.decorations.push(xa(u.originalStartLineNumber,u.originalStartColumn,u.originalEndLineNumber,u.originalEndColumn,wn.charDelete))}}return a}_getModifiedEditorDecorations(e,t,i,n,s){const r=this._dataSource.getModifiedEditor(),a=String(this._insertColor),l={decorations:[],overviewZones:[]},c=r.getModel(),d=r._getViewModel();for(const h of t){if(s)if(h.modifiedEndLineNumber>0)l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedStartLineNumber,1),options:wn.arrowRevertChange});else{const u=e.modified.find(g=>g.afterLineNumber===h.modifiedStartLineNumber);u&&(u.marginDomNode=VZ())}if(Hv(h)){l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824),options:n?wn.lineInsertWithSign:wn.lineInsert}),(!zv(h)||!h.charChanges)&&l.decorations.push(xa(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824,wn.charInsertWholeLine));const u=pm(c,d,h.modifiedStartLineNumber,h.modifiedEndLineNumber);if(l.overviewZones.push(new lm(u.startLineNumber,u.endLineNumber,0,a)),h.charChanges){for(const g of h.charChanges)if(QF(g))if(i)for(let f=g.modifiedStartLineNumber;f<=g.modifiedEndLineNumber;f++){let _,b;f===g.modifiedStartLineNumber?_=g.modifiedStartColumn:_=c.getLineFirstNonWhitespaceColumn(f),f===g.modifiedEndLineNumber?b=g.modifiedEndColumn:b=c.getLineLastNonWhitespaceColumn(f),l.decorations.push(xa(f,_,f,b,wn.charInsert))}else l.decorations.push(xa(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn,wn.charInsert))}}}return l}}Ma.MINIMUM_EDITOR_WIDTH=100;class FZ extends ud{constructor(e,t,i,n,s){super(e,t,i,n,s)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class QA extends YF{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(i=>{this._decorationsLeft!==i.decorationsLeft&&(this._decorationsLeft=i.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new BZ(e,t,i,s,r,n).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=String(this._removeColor),r={decorations:[],overviewZones:[]},a=this._dataSource.getOriginalEditor(),l=a.getModel(),c=a._getViewModel();let d=0;for(const h of t)if(zv(h)){for(r.decorations.push({range:new L(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824),options:wn.lineDeleteMargin});d=h.originalStartLineNumber)break;d++}let u=0;if(d0,O=nc(1e4);let F=0,z=0,j=null;for(let Se=S.originalStartLineNumber;Se<=S.originalEndLineNumber;Se++){const ye=Se-S.originalStartLineNumber,xe=this._originalModel.tokenization.getLineTokens(Se),He=xe.getLineContent(),Mt=v[C++],yt=es.filter(D,Se,1,He.length+1);if(Mt){let ve=0;for(const Nt of Mt.breakOffsets){const Fi=xe.sliceAndInflate(ve,Nt,0),In=He.substring(ve,Nt);F=Math.max(F,this._renderOriginalLine(z++,In,Fi,es.extractWrapped(yt,ve,Nt),I,l,c,n,s,d,u,g,f,_,b,i,O,y)),ve=Nt}for(j||(j=[]);j.lengthw.afterLineNumber-S.afterLineNumber)}_renderOriginalLine(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_,b,v,C){v.appendASCIIString('
');const w=Ds.isBasicASCII(t,r),S=Ds.containsRTL(t,w,a),k=a_(new Lc(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,w,S,0,i,n,b,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,u,g,f,_!==_s.OFF,null),v);if(v.appendASCIIString("
"),this._renderIndicators){const x=document.createElement("div");x.className=`delete-sign ${at.asClassName(ZF)}`,x.setAttribute("style",`position:absolute;top:${e*d}px;width:${h}px;height:${d}px;right:0;`),C.appendChild(x)}return k.characterMapping.getHorizontalOffset(k.characterMapping.length)}}function WZ(o,e){return Ki(o,e,["off","on","inherit"])}function Hv(o){return o.modifiedEndLineNumber>0}function zv(o){return o.originalEndLineNumber>0}function QF(o){return o.modifiedStartLineNumber===o.modifiedEndLineNumber?o.modifiedEndColumn-o.modifiedStartColumn>0:o.modifiedEndLineNumber-o.modifiedStartLineNumber>0}function XF(o){return o.originalStartLineNumber===o.originalEndLineNumber?o.originalEndColumn-o.originalStartColumn>0:o.originalEndLineNumber-o.originalStartLineNumber>0}function JF(){const o=document.createElement("div");return o.className="diagonal-fill",o}function VZ(){const o=document.createElement("div");return o.className="arrow-revert-change "+at.asClassName(m.arrowRight),J("div",{},o)}function pm(o,e,t,i){const n=o.getLineCount();return t=Math.min(n,Math.max(1,t)),i=Math.min(n,Math.max(1,i)),e.coordinatesConverter.convertModelRangeToViewRange(new L(t,o.getLineMinColumn(t),i,o.getLineMaxColumn(i)))}function XA(o,e){return{enableSplitViewResizing:we(o.enableSplitViewResizing,e.enableSplitViewResizing),renderSideBySide:we(o.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:we(o.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:jy(o.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:jy(o.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:we(o.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:we(o.renderIndicators,e.renderIndicators),originalEditable:we(o.originalEditable,e.originalEditable),diffCodeLens:we(o.diffCodeLens,e.diffCodeLens),renderOverviewRuler:we(o.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:WZ(o.diffWordWrap,e.diffWordWrap)}}function HZ(o,e){return{enableSplitViewResizing:o.enableSplitViewResizing!==e.enableSplitViewResizing,renderSideBySide:o.renderSideBySide!==e.renderSideBySide,renderMarginRevertIcon:o.renderMarginRevertIcon!==e.renderMarginRevertIcon,maxComputationTime:o.maxComputationTime!==e.maxComputationTime,maxFileSize:o.maxFileSize!==e.maxFileSize,ignoreTrimWhitespace:o.ignoreTrimWhitespace!==e.ignoreTrimWhitespace,renderIndicators:o.renderIndicators!==e.renderIndicators,originalEditable:o.originalEditable!==e.originalEditable,diffCodeLens:o.diffCodeLens!==e.diffCodeLens,renderOverviewRuler:o.renderOverviewRuler!==e.renderOverviewRuler,diffWordWrap:o.diffWordWrap!==e.diffWordWrap}}Et((o,e)=>{const t=o.getColor(I4);t&&e.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${t}; }`);const i=o.getColor(jz)||t;i&&e.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${i}; }`);const n=o.getColor(qz)||i;n&&(e.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`),e.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${n}; }`));const s=o.getColor(E4);s&&e.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${s}; }`);const r=o.getColor(Kz)||s;r&&e.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${r}; }`);const a=o.getColor(Gz)||r;a&&(e.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${a}; }`),e.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${a}; }`));const l=o.getColor(Qz);l&&e.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${cn(o.type)?"dashed":"solid"} ${l}; }`);const c=o.getColor(Xz);c&&e.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${cn(o.type)?"dashed":"solid"} ${c}; }`);const d=o.getColor(Kg);d&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${d}; }`);const h=o.getColor(Jz);h&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${h}; }`);const u=o.getColor(rd);u&&e.addRule(` +`)}else yield this._clipboardService.writeText(_)})),c.push(u)),i.getOption(83)||c.push(new is("diff.inline.revertChange",p("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>PS(this,void 0,void 0,function*(){const _=new L(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),b=n.originalModel.getValueInRange(_);if(n.modifiedEndLineNumber===0){const v=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,v,n.modifiedStartLineNumber,v),text:l+b}])}else{const v=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new L(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,v),text:b}])}})));const f=(_,b)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:b}),getActions:()=>(u&&(u.label=d?p("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+h):p("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+h)),c),autoSelectFirstItem:!0})};this._register(ki(this._diffActions,"mousedown",_=>{const{top:b,height:v}=on(this._diffActions),C=Math.floor(a/3);_.preventDefault(),f(_.posx,b+v+C)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{!_.event.rightButton||(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a),f(_.event.posx,_.event.posy+a))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,e?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=on(e),s=t-n,r=Math.floor(s/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let l=0;for(let c=0;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ga=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},FS;class GA{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(t=>!this._zonesMap[String(t.id)])}clean(e){this._zones.length>0&&e.changeViewZones(t=>{for(const i of this._zones)t.removeZone(i)}),this._zones=[],this._zonesMap={},e.changeDecorations(t=>{this._decorations=t.deltaDecorations(this._decorations,[])})}apply(e,t,i,n){const s=n?hc.capture(e):null;e.changeViewZones(r=>{var a;for(const l of this._zones)r.removeZone(l);for(const l of this._inlineDiffMargins)l.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let l=0,c=i.zones.length;l{this._decorations=r.deltaDecorations(this._decorations,i.decorations)}),t==null||t.setZones(i.overviewZones)}}let OZ=0;const PZ=mi("diff-insert",m.add,p("diffInsertIcon","Line decoration for inserts in the diff editor.")),Z5=mi("diff-remove",m.remove,p("diffRemoveIcon","Line decoration for removals in the diff editor.")),ZA=(FS=window.trustedTypes)===null||FS===void 0?void 0:FS.createPolicy("diffEditorWidget",{createHTML:o=>o});let uc=class Xi extends H{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(),this._editorProgressService=u,this._onDidDispose=this._register(new R),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new R),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new R),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=s,this._codeEditorService=l,this._contextKeyService=this._register(r.createScoped(e)),this._instantiationService=a.createChild(new k1([Ee,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=c,this._notificationService=d,this._id=++OZ,this._state=0,this._updatingDiffProgress=null,this._domElement=e,t=t||{},this._options=XA(t,{enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof t.isInEmbeddedEditor<"u"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",t.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new mt(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Je(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(ki(this._overviewDomElement,ae.POINTER_DOWN,f=>{this._modifiedEditor.delegateVerticalScrollbarPointerDown(f)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new GA(h,n),this._modifiedEditorState=new GA(h,n),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new y4(this._containerDomElement,t.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),t.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(t,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(t,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=a.createInstance(Vv,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new Ma(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new QA(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(c.onDidColorThemeChange(f=>{this._strategy&&this._strategy.applyColors(f)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=Xi._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const g=md.getDiffEditorContributions();for(const f of g)try{this._register(a.createInstance(f.ctor,this))}catch(_){Te(_)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=fv(e.type),i}_disposeOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose(),this._originalOverviewRuler=null),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose(),this._modifiedOverviewRuler=null)}_createOverviewRulers(){!this._options.renderOverviewRuler||(ap(!this._originalOverviewRuler&&!this._modifiedOverviewRuler),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const n=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),i}_createRightHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(i.onDidScrollChange(s=>{this._isHandlingScrollEvent||!s.scrollTopChanged&&!s.scrollLeftChanged&&!s.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(s=>{!i.getModel()||(s.hasChanged(46)&&this._updateDecorationsRunner.schedule(),s.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(s=>{s.tabSize&&this._updateDecorationsRunner.schedule()}));const n=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>n.set(!0))),this._register(i.onDidBlurEditorWidget(()=>n.set(!1))),this._register(i.onDidContentSizeChange(s=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+Xi.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:s.contentHeightChanged,contentWidthChanged:s.contentWidthChanged})})),this._register(i.onMouseDown(s=>{var r,a;if(!s.event.rightButton&&s.target.position&&((r=s.target.element)===null||r===void 0?void 0:r.className.includes("arrow-revert-change"))){const l=s.target.position.lineNumber,c=(a=this._diffComputationResult)===null||a===void 0?void 0:a.changes.find(d=>d.modifiedStartLineNumber===l-1||d.modifiedStartLineNumber===l);c&&this.revertChange(c),s.event.stopPropagation(),this._updateDecorations();return}})),i}revertChange(e){const t=this._modifiedEditor,i=this._originalEditor.getModel(),n=this._modifiedEditor.getModel();if(!i||!n||!t)return;const s=e.originalEndLineNumber>0?new L(e.originalStartLineNumber,1,e.originalEndLineNumber,i.getLineMaxColumn(e.originalEndLineNumber)):null,r=s?i.getValueInRange(s):null,a=e.modifiedEndLineNumber>0?new L(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber,n.getLineMaxColumn(e.modifiedEndLineNumber)):null,l=n.getEOL();if(e.originalEndLineNumber===0&&a){let c=a;e.modifiedStartLineNumber>1?c=a.setStartPosition(e.modifiedStartLineNumber-1,n.getLineMaxColumn(e.modifiedStartLineNumber-1)):e.modifiedEndLineNumberthis._beginUpdateDecorations(),Xi.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t?!0:!e||!t?!1:e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const e=this._originalEditor.getModel(),t=this._modifiedEditor.getModel();if(!e||!t)return;this._diffComputationToken++;const i=this._diffComputationToken,n=this._options.maxFileSize*1024*1024,s=r=>{const a=r.getValueLength();return n===0||a<=n};if(!s(e)||!s(t)){(!Xi._equals(e.uri,this._lastOriginalWarning)||!Xi._equals(t.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=e.uri,this._lastModifiedWarning=t.uri,this._notificationService.warn(p("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._setState(1),this._editorWorkerService.computeDiff(e.uri,t.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=r,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,this._options.renderMarginRevertIcon,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.dropIntoEditor={enabled:!t.readOnly},t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(e){const t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=nr.revealHorizontalRightPadding.defaultValue+Xi.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=this._strategy.layout();this._originalDomNode.style.width=n+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-n+"px",this._modifiedDomNode.style.left=n+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-Xi.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(Xi.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:n,height:t-i}),this._modifiedEditor.layout({width:e-n-(this._options.renderOverviewRuler?Xi.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),s=Math.max(0,n-2*0),r=i>0?s/i:0,a=Math.max(0,Math.floor(e.height*r)),l=Math.floor(t*r);return{height:a,top:l}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||e=l?n=r+1:(n=r,s=r)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.originalStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=s?n+Math.min(a,r):n+r-s+a}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.modifiedStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),s=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,s):i+s-r+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};uc.ONE_OVERVIEW_WIDTH=15;uc.ENTIRE_DIFF_OVERVIEW_WIDTH=30;uc.UPDATE_DIFF_DECORATIONS_DELAY=200;uc=RZ([ga(3,cl),ga(4,to),ga(5,Ee),ga(6,Ae),ga(7,ct),ga(8,Ct),ga(9,di),ga(10,ll),ga(11,kc)],uc);class Y5 extends H{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(Zz)||(e.getColor(I4)||cD).transparent(2),i=e.getColor(Yz)||(e.getColor(E4)||dD).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,s,r){r=r.sort((d,h)=>d.afterLineNumber-h.afterLineNumber),s=s.sort((d,h)=>d.afterLineNumber-h.afterLineNumber);const a=this._getViewZones(e,s,r,i),l=this._getOriginalEditorDecorations(a,e,t,i),c=this._getModifiedEditorDecorations(a,e,t,i,n);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:c.decorations,overviewZones:c.overviewZones,zones:a.modified}}}}class YA{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexx.afterLineNumber-y.afterLineNumber,v=(x,y)=>{if(y.domNode===null&&x.length>0){const D=x[x.length-1];if(D.afterLineNumber===y.afterLineNumber&&D.domNode===null){D.heightInLines+=y.heightInLines;return}}x.push(y)},C=new YA(this._modifiedForeignVZ),w=new YA(this._originalForeignVZ);let S=1,k=1;for(let x=0,y=this._lineChanges.length;x<=y;x++){const D=x0?-1:0),g=D.modifiedStartLineNumber+(D.modifiedEndLineNumber>0?-1:0),h=D.originalEndLineNumber>0?ud._getViewLineCount(this._originalEditor,D.originalStartLineNumber,D.originalEndLineNumber):0,d=D.modifiedEndLineNumber>0?ud._getViewLineCount(this._modifiedEditor,D.modifiedStartLineNumber,D.modifiedEndLineNumber):0,f=Math.max(D.originalStartLineNumber,D.originalEndLineNumber),_=Math.max(D.modifiedStartLineNumber,D.modifiedEndLineNumber)):(u+=1e7+h,g+=1e7+d,f=u,_=g);let I=[],O=[];if(s){let j;D?D.originalEndLineNumber>0?j=D.originalStartLineNumber-S:j=D.modifiedStartLineNumber-k:j=r.getLineCount()-S+1;for(let re=0;rexe&&O.push({afterLineNumber:Se,heightInLines:ye-xe,domNode:null,marginDomNode:null})}D&&(S=(D.originalEndLineNumber>0?D.originalEndLineNumber:D.originalStartLineNumber)+1,k=(D.modifiedEndLineNumber>0?D.modifiedEndLineNumber:D.modifiedStartLineNumber)+1)}for(;C.current&&C.current.afterLineNumber<=_;){let j;C.current.afterLineNumber<=g?j=u-g+C.current.afterLineNumber:j=f;let re=null;D&&D.modifiedStartLineNumber<=C.current.afterLineNumber&&C.current.afterLineNumber<=D.modifiedEndLineNumber&&(re=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),I.push({afterLineNumber:j,heightInLines:C.current.height/t,domNode:null,marginDomNode:re}),C.advance()}for(;w.current&&w.current.afterLineNumber<=f;){let j;w.current.afterLineNumber<=u?j=g-u+w.current.afterLineNumber:j=_,O.push({afterLineNumber:j,heightInLines:w.current.height/e,domNode:null}),w.advance()}if(D!==null&&Hv(D)){const j=this._produceOriginalFromDiff(D,h,d);j&&I.push(j)}if(D!==null&&zv(D)){const j=this._produceModifiedFromDiff(D,h,d);j&&O.push(j)}let F=0,z=0;for(I=I.sort(b),O=O.sort(b);F=re.heightInLines?(j.heightInLines-=re.heightInLines,z++):(re.heightInLines-=j.heightInLines,F++)}for(;F(t.domNode||(t.domNode=J5()),t))}}function xa(o,e,t,i,n){return{range:new L(o,e,t,i),options:n}}const wn={arrowRevertChange:Ne.register({description:"diff-editor-arrow-revert-change",glyphMarginClassName:"arrow-revert-change "+at.asClassName(m.arrowRight)}),charDelete:Ne.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:Ne.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:Ne.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:Ne.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:Ne.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:Ne.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+at.asClassName(PZ),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:Ne.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:Ne.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+at.asClassName(Z5),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:Ne.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class Ma extends Y5{constructor(e,t){super(e),this._disableSash=t===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new tn(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(i=>this._onSashDrag(i)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=e===!1;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let n=Math.floor((e||.5)*i);const s=Math.floor(.5*i);return n=this._disableSash?s:n||s,i>Ma.MINIMUM_EDITOR_WIDTH*2?(ni-Ma.MINIMUM_EDITOR_WIDTH&&(n=i-Ma.MINIMUM_EDITOR_WIDTH)):n=s,this._sashPosition!==n&&(this._sashPosition=n),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?uc.ENTIRE_DIFF_OVERVIEW_WIDTH:0),n=this.layout((this._startSashPosition+(e.currentX-e.startX))/i);this._sashRatio=n/i,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),s=this._dataSource.getModifiedEditor();return new FZ(e,t,i,n,s).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=String(this._removeColor),a={decorations:[],overviewZones:[]},l=s.getModel(),c=s._getViewModel();for(const d of t)if(zv(d)){a.decorations.push({range:new L(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:n?wn.lineDeleteWithSign:wn.lineDelete}),(!Hv(d)||!d.charChanges)&&a.decorations.push(xa(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824,wn.charDeleteWholeLine));const h=pm(l,c,d.originalStartLineNumber,d.originalEndLineNumber);if(a.overviewZones.push(new lm(h.startLineNumber,h.endLineNumber,0,r)),d.charChanges){for(const u of d.charChanges)if(X5(u))if(i)for(let g=u.originalStartLineNumber;g<=u.originalEndLineNumber;g++){let f,_;g===u.originalStartLineNumber?f=u.originalStartColumn:f=l.getLineFirstNonWhitespaceColumn(g),g===u.originalEndLineNumber?_=u.originalEndColumn:_=l.getLineLastNonWhitespaceColumn(g),a.decorations.push(xa(g,f,g,_,wn.charDelete))}else a.decorations.push(xa(u.originalStartLineNumber,u.originalStartColumn,u.originalEndLineNumber,u.originalEndColumn,wn.charDelete))}}return a}_getModifiedEditorDecorations(e,t,i,n,s){const r=this._dataSource.getModifiedEditor(),a=String(this._insertColor),l={decorations:[],overviewZones:[]},c=r.getModel(),d=r._getViewModel();for(const h of t){if(s)if(h.modifiedEndLineNumber>0)l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedStartLineNumber,1),options:wn.arrowRevertChange});else{const u=e.modified.find(g=>g.afterLineNumber===h.modifiedStartLineNumber);u&&(u.marginDomNode=VZ())}if(Hv(h)){l.decorations.push({range:new L(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824),options:n?wn.lineInsertWithSign:wn.lineInsert}),(!zv(h)||!h.charChanges)&&l.decorations.push(xa(h.modifiedStartLineNumber,1,h.modifiedEndLineNumber,1073741824,wn.charInsertWholeLine));const u=pm(c,d,h.modifiedStartLineNumber,h.modifiedEndLineNumber);if(l.overviewZones.push(new lm(u.startLineNumber,u.endLineNumber,0,a)),h.charChanges){for(const g of h.charChanges)if(Q5(g))if(i)for(let f=g.modifiedStartLineNumber;f<=g.modifiedEndLineNumber;f++){let _,b;f===g.modifiedStartLineNumber?_=g.modifiedStartColumn:_=c.getLineFirstNonWhitespaceColumn(f),f===g.modifiedEndLineNumber?b=g.modifiedEndColumn:b=c.getLineLastNonWhitespaceColumn(f),l.decorations.push(xa(f,_,f,b,wn.charInsert))}else l.decorations.push(xa(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn,wn.charInsert))}}}return l}}Ma.MINIMUM_EDITOR_WIDTH=100;class FZ extends ud{constructor(e,t,i,n,s){super(e,t,i,n,s)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class QA extends Y5{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(i=>{this._decorationsLeft!==i.decorationsLeft&&(this._decorationsLeft=i.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const s=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new BZ(e,t,i,s,r,n).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const s=String(this._removeColor),r={decorations:[],overviewZones:[]},a=this._dataSource.getOriginalEditor(),l=a.getModel(),c=a._getViewModel();let d=0;for(const h of t)if(zv(h)){for(r.decorations.push({range:new L(h.originalStartLineNumber,1,h.originalEndLineNumber,1073741824),options:wn.lineDeleteMargin});d=h.originalStartLineNumber)break;d++}let u=0;if(d0,O=nc(1e4);let F=0,z=0,j=null;for(let Se=S.originalStartLineNumber;Se<=S.originalEndLineNumber;Se++){const ye=Se-S.originalStartLineNumber,xe=this._originalModel.tokenization.getLineTokens(Se),He=xe.getLineContent(),Mt=v[C++],yt=es.filter(D,Se,1,He.length+1);if(Mt){let ve=0;for(const Nt of Mt.breakOffsets){const Fi=xe.sliceAndInflate(ve,Nt,0),In=He.substring(ve,Nt);F=Math.max(F,this._renderOriginalLine(z++,In,Fi,es.extractWrapped(yt,ve,Nt),I,l,c,n,s,d,u,g,f,_,b,i,O,y)),ve=Nt}for(j||(j=[]);j.lengthw.afterLineNumber-S.afterLineNumber)}_renderOriginalLine(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_,b,v,C){v.appendASCIIString('
');const w=Ds.isBasicASCII(t,r),S=Ds.containsRTL(t,w,a),k=a_(new Lc(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,w,S,0,i,n,b,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,u,g,f,_!==_s.OFF,null),v);if(v.appendASCIIString("
"),this._renderIndicators){const x=document.createElement("div");x.className=`delete-sign ${at.asClassName(Z5)}`,x.setAttribute("style",`position:absolute;top:${e*d}px;width:${h}px;height:${d}px;right:0;`),C.appendChild(x)}return k.characterMapping.getHorizontalOffset(k.characterMapping.length)}}function WZ(o,e){return Ki(o,e,["off","on","inherit"])}function Hv(o){return o.modifiedEndLineNumber>0}function zv(o){return o.originalEndLineNumber>0}function Q5(o){return o.modifiedStartLineNumber===o.modifiedEndLineNumber?o.modifiedEndColumn-o.modifiedStartColumn>0:o.modifiedEndLineNumber-o.modifiedStartLineNumber>0}function X5(o){return o.originalStartLineNumber===o.originalEndLineNumber?o.originalEndColumn-o.originalStartColumn>0:o.originalEndLineNumber-o.originalStartLineNumber>0}function J5(){const o=document.createElement("div");return o.className="diagonal-fill",o}function VZ(){const o=document.createElement("div");return o.className="arrow-revert-change "+at.asClassName(m.arrowRight),J("div",{},o)}function pm(o,e,t,i){const n=o.getLineCount();return t=Math.min(n,Math.max(1,t)),i=Math.min(n,Math.max(1,i)),e.coordinatesConverter.convertModelRangeToViewRange(new L(t,o.getLineMinColumn(t),i,o.getLineMaxColumn(i)))}function XA(o,e){return{enableSplitViewResizing:we(o.enableSplitViewResizing,e.enableSplitViewResizing),renderSideBySide:we(o.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:we(o.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:jy(o.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:jy(o.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:we(o.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:we(o.renderIndicators,e.renderIndicators),originalEditable:we(o.originalEditable,e.originalEditable),diffCodeLens:we(o.diffCodeLens,e.diffCodeLens),renderOverviewRuler:we(o.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:WZ(o.diffWordWrap,e.diffWordWrap)}}function HZ(o,e){return{enableSplitViewResizing:o.enableSplitViewResizing!==e.enableSplitViewResizing,renderSideBySide:o.renderSideBySide!==e.renderSideBySide,renderMarginRevertIcon:o.renderMarginRevertIcon!==e.renderMarginRevertIcon,maxComputationTime:o.maxComputationTime!==e.maxComputationTime,maxFileSize:o.maxFileSize!==e.maxFileSize,ignoreTrimWhitespace:o.ignoreTrimWhitespace!==e.ignoreTrimWhitespace,renderIndicators:o.renderIndicators!==e.renderIndicators,originalEditable:o.originalEditable!==e.originalEditable,diffCodeLens:o.diffCodeLens!==e.diffCodeLens,renderOverviewRuler:o.renderOverviewRuler!==e.renderOverviewRuler,diffWordWrap:o.diffWordWrap!==e.diffWordWrap}}Et((o,e)=>{const t=o.getColor(I4);t&&e.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${t}; }`);const i=o.getColor(jz)||t;i&&e.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${i}; }`);const n=o.getColor(qz)||i;n&&(e.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`),e.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${n}; }`));const s=o.getColor(E4);s&&e.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${s}; }`);const r=o.getColor(Kz)||s;r&&e.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${r}; }`);const a=o.getColor(Gz)||r;a&&(e.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${a}; }`),e.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${a}; }`));const l=o.getColor(Qz);l&&e.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${cn(o.type)?"dashed":"solid"} ${l}; }`);const c=o.getColor(Xz);c&&e.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${cn(o.type)?"dashed":"solid"} ${c}; }`);const d=o.getColor(Kg);d&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${d}; }`);const h=o.getColor(Jz);h&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${h}; }`);const u=o.getColor(rd);u&&e.addRule(` .monaco-diff-editor .diffViewport { background: ${u}; } @@ -136,10 +136,10 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config ); background-size: 8px 8px; } - `)});var zZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},UZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},$Z=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let PD=class extends H{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new R),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new R),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new R),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new R),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new Dn,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}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])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.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(i=>i.removeDecorationsByType(e))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}openCodeEditor(e,t,i){return $Z(this,void 0,void 0,function*(){for(const n of this._codeEditorOpenHandlers){const s=yield n(e,t,i);if(s!==null)return s}return null})}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return Be(t)}};PD=zZ([UZ(0,Ct)],PD);var jZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JA=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},KZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Uv=class extends PD{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((i,n,s)=>KZ(this,void 0,void 0,function*(){return n?this.doOpenEditor(n,i):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){if(!this.findModel(e,t.resource)){if(t.resource){const s=t.resource.scheme;if(s===Me.http||s===Me.https)return d4(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{const s={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(s),e.revealPositionInCenter(s,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Uv=jZ([JA(0,Ee),JA(1,Ct)],Uv);et(ct,Uv);const Yg=Ye("layoutService");var e5=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},t5=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let $v=class{constructor(e){this._codeEditorService=e,this.onDidLayout=ge.None,this.offset={top:0,quickPickTop:0}}get dimension(){return this._dimension||(this._dimension=JC(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}};$v=e5([t5(0,ct)],$v);let FD=class extends $v{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};FD=e5([t5(1,ct)],FD);et(Yg,$v);const b_=Ye("dialogService");var qZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},eM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ib=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function Eb(o){return o.scheme===Me.file?o.fsPath:o.path}let i5=0;class Nb{constructor(e,t,i,n,s,r,a){this.id=++i5,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=s,this.sourceId=r,this.sourceOrder=a,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 tM{constructor(e,t){this.resourceLabel=e,this.reason=t}}class iM{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);const i=[];return e.length>0&&i.push(p({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(p({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` -`)}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 GZ{constructor(e,t,i,n,s,r,a){this.id=++i5,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=s,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new iM),this.removedResources.has(t)||this.removedResources.set(t,new tM(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new iM),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new tM(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class n5{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)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&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(` -`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?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)t.type===1&&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 DF(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let a=0,l=this._past.length;a=t||c.id!==e.elements[n])&&(i=!1,s=0),!i&&c.type===1&&c.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,n++){const l=this._future[a];i&&(n>=t||l.id!==e.elements[n])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}s!==-1&&(this._past=this._past.slice(0,s)),r!==-1&&(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 this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?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 BS{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 Er){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Te(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,s){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),s()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),s())}_invokeWorkspacePrepare(e){return Ib(this,void 0,void 0,function*(){if(typeof e.actual.prepareUndoRedo>"u")return H.None;const t=e.actual.prepareUndoRedo();return typeof t>"u"?H.None:t})}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(H.None);const i=e.actual.prepareUndoRedo();return i?hI(i)?t(i):i.then(n=>t(n)):t(H.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||s5);return new BS(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Tb(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Tb}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,p({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,p({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 s=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&s.push(a.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,p({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,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,p({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,p({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),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.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 n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return Ib(this,void 0,void 0,function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const a=yield this._dialogService.show(Bt.Info,p("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[p({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),p("nok","Undo this File"),p("cancel","Cancel")],{cancelId:2});if(a.choice===2)return;if(a.choice===1)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const l=this._checkWorkspaceUndo(e,t,i,!1);if(l)return l.returnValue;n=!0}let s;try{s=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return s.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,s,()=>this._continueUndoInGroup(t.groupId,n))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const n=p({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(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new BS([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.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);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof Er){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?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),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[a,l]=this._findClosestUndoElementInGroup(s.groupId);if(s!==a&&l)return this._undo(l,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return s.type===1?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{}}_confirmAndContinueUndo(e,t,i){return Ib(this,void 0,void 0,function*(){if((yield this._dialogService.show(Bt.Info,p("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[p("confirmDifferentSource.yes","Yes"),p("confirmDifferentSource.no","No")],{cancelId:1})).choice!==1)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,p({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,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,p({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,p({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)}_executeWorkspaceRedo(e,t,i){return Ib(this,void 0,void 0,function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.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){e.flushAllElements();return}if(e.locked){const i=p({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(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new BS([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.groupId===e&&(!t||r.groupOrderqE(o,t))}function r5(o){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(o.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},o=o.with({fragment:""})),{selection:e,uri:o}}var QZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},XZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const no=Ye("ILanguageFeatureDebounceService");var jv;(function(o){const e=new WeakMap;let t=0;function i(n){let s=e.get(n);return s===void 0&&(s=++t,e.set(n,s)),s}o.of=i})(jv||(jv={}));class JZ{constructor(e,t,i,n,s,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=s,this._max=r,this._cache=new Dc(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>ZC(jv.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?Zn(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new ZZ(6),this._cache.set(i,n));const s=Zn(n.update(t),this._min,this._max);return qE(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new o5;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return Zn(e,this._min,this._max)}}let WD=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,s,r;const a=(n=i==null?void 0:i.min)!==null&&n!==void 0?n:50,l=(s=i==null?void 0:i.max)!==null&&s!==void 0?s:Math.pow(a,2),c=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,d=`${jv.of(e)},${a}${c?","+c:""}`;let h=this._data.get(d);return h||(h=new JZ(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(d,h)),h}_overallAverage(){const e=new o5;for(const t of this._data.values())e.update(t.default());return e.value}};WD=QZ([XZ(0,So)],WD);et(no,WD,!0);const v_=Ye("IWorkspaceEditService");class Qg{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(Cd.is(t))return Cd.lift(t);if($u.is(t))return $u.lift(t);throw new Error("Unsupported edit")})}}class Cd extends Qg{constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}static is(e){return e instanceof Cd?!0:Hn(e)&&_e.isUri(e.resource)&&Hn(e.textEdit)}static lift(e){return e instanceof Cd?e:new Cd(e.resource,e.textEdit,e.versionId,e.metadata)}}class $u extends Qg{constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}static is(e){return e instanceof $u?!0:Hn(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof $u?e:new $u(e.oldResource,e.newResource,e.options,e.metadata)}}const GE=Object.freeze({id:"editor",order:5,type:"object",title:p("editorConfigurationTitle","Editor"),scope:5}),Kv=Object.assign(Object.assign({},GE),{properties:{"editor.tabSize":{type:"number",default:sn.tabSize,minimum:1,markdownDescription:p("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:sn.insertSpaces,markdownDescription:p("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:sn.detectIndentation,markdownDescription:p("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:sn.trimAutoWhitespace,description:p("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:sn.largeFileOptimizations,description:p("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:p("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[p("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),p("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),p("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:p("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[p("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),p("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),p("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:p("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:p("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:p("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:["array","null"],default:null,description:p("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:p("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:p("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:p("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:p("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:p("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:p("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:p("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:p("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function eY(o){return typeof o.type<"u"||typeof o.anyOf<"u"}for(const o of ru){const e=o.schema;if(typeof e<"u")if(eY(e))Kv.properties[`editor.${o.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(Kv.properties[t]=e[t])}let Ab=null;function a5(){return Ab===null&&(Ab=Object.create(null),Object.keys(Kv.properties).forEach(o=>{Ab[o]=!0})),Ab}function tY(o){return a5()[`editor.${o}`]||!1}function iY(o){return a5()[`diffEditor.${o}`]||!1}const nY=zt.as(rl.Configuration);nY.registerConfiguration(Kv);class Ft{static insert(e,t){return{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}class Qn{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.frozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?zT(this.contents,e):this.contents}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?zT(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){const t=La(this.contents),i=La(this.overrides),n=[...this.keys];for(const s of e)if(!s.isEmpty()){this.mergeContents(t,s.contents);for(const r of s.overrides){const[a]=i.filter(l=>Ss(l.identifiers,r.identifiers));a?(this.mergeContents(a.contents,r.contents),a.keys.push(...r.keys),a.keys=Qa(a.keys)):i.push(La(r))}for(const r of s.keys)n.indexOf(r)===-1&&n.push(r)}return new Qn(t,n,i)}freeze(){return this.frozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;const i={};for(const n of Qa([...Object.keys(this.contents),...Object.keys(t)])){let s=this.contents[n];const r=t[n];r&&(typeof s=="object"&&typeof r=="object"?(s=La(s),this.mergeContents(s,r)):s=r),i[n]=s}return new Qn(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&Hn(e[i])&&Hn(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=La(t[i])}}checkAndFreeze(e){return this.frozen&&!Object.isFrozen(e)?U8(e):e}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=s=>{s&&(i?this.mergeContents(i,s):i=La(s))};for(const s of this.overrides)Ss(s.identifiers,[e])?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),TI(this.contents,e,t,i=>{throw new Error(i)})}removeValue(e){this.removeKey(e)&&oW(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iC.identifiers).flat()).filter(C=>n.getOverrideValue(e,C)!==void 0);return{defaultValue:a,policyValue:l,applicationValue:c,userValue:d,userLocalValue:h,userRemoteValue:u,workspaceValue:g,workspaceFolderValue:f,memoryValue:_,value:b,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,policy:l!==void 0?{value:l}:void 0,application:c!==void 0?{value:c,override:t.overrideIdentifier?this.applicationConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:d!==void 0?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:h!==void 0?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:u!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:g!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:f!==void 0?{value:s==null?void 0:s.freeze().getValue(e),override:t.overrideIdentifier?s==null?void 0:s.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:_!==void 0?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:v.length?v:void 0}}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),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()&&this._policyConfiguration.getValue(e)!==void 0&&(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 s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),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._freeze&&(t=t.freeze()),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:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),s=this.parseConfigurationModel(e.user),r=this.parseConfigurationModel(e.workspace),a=e.folders.reduce((l,c)=>(l.set(_e.revive(c[0]),this.parseConfigurationModel(c[1])),l),new mn);return new N1(t,i,n,s,new Qn,r,a,new Qn,new mn,!1)}static parseConfigurationModel(e){return new Qn(e.contents,e.keys,e.overrides).freeze()}}class sY{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const s=new Set;e.keys.forEach(a=>s.add(a)),e.overrides.forEach(([,a])=>a.forEach(l=>s.add(l))),this.affectedKeys=[...s.values()];const r=new Qn;this.affectedKeys.forEach(a=>r.setValue(a,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=N1.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!$s(n,s)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=kP({[t]:!0},()=>{}),n;for(;typeof i=="object"&&(n=Object.keys(i)[0]);){if(e=e[n],!e)return!1;i=i[n]}return!0}}const oY=/^(cursor|delete)/;class rY extends H{constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new R),this._currentChord=null,this._currentChordChecker=new r_,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new xs,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ge.None}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.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[n]=i.getDispatchParts();if(n===null)return this._log("\\ Keyboard event cannot be dispatched"),null;const s=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(s,r,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(p("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier===null?(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[s]=i.getParts();return this._ignoreSingleModifiers=new wu(s),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let s=null,r=null;if(i){const[d]=e.getSingleModifierDispatchParts();s=d,r=d}else[s]=e.getDispatchParts(),r=this._currentChord?this._currentChord.keypress:null;if(s===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,s);return this._logService.trace("KeybindingService#dispatch",l,c==null?void 0:c.commandId),c&&c.enterChord?(n=!0,this._enterChordMode(s,l),this._log("+ Entering chord mode..."),n):(this._currentChord&&(!c||!c.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${l}".`),this._notificationService.status(p("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,l),{hideAfter:10*1e3}),n=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(n=!0),this._log(`+ Invoking command ${c.commandId}.`),typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,d=>this._notificationService.warn(d)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,d=>this._notificationService.warn(d)),oY.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class wu{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}wu.EMPTY=new wu(null);const _i=Ye("keybindingService");class Lp{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const n of e){const s=n.command;s&&s.charAt(0)!=="-"&&this._defaultBoundCommands.set(s,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Lp.handleRemovals([].concat(e).concat(t));for(let n=0,s=this._keybindings.length;n"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(let n=i.length-1;n>=0;n--){const s=i[n];if(s.command===t.command)continue;const r=s.keypressParts.length>1,a=t.keypressParts.length>1;r&&a&&s.keypressParts[1]!==t.keypressParts[1]||Lp.whenIsEntirelyIncluded(s.when,t.when)&&this._removeFromLookupMap(s)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);typeof t>"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(let i=0,n=t.length;i"u"||i.length===0)return null;if(i.length===1)return i[0];for(let n=i.length-1;n>=0;n--){const s=i[n];if(t.contextMatchesRules(s.when))return s}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let n=null;if(t!==null){const r=this._map.get(t);if(typeof r>"u")return this._log("\\ No keybinding entries."),null;n=[];for(let a=0,l=r.length;a"u")return this._log("\\ No keybinding entries."),null;n=r}const s=this._findCommand(e,n);return s?t===null&&s.keypressParts.length>1&&s.keypressParts[1]!==null?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${s.command}, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!1,leaveChord:s.keypressParts.length>1,commandId:s.command,commandArgs:s.commandArgs,bubble:s.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(!!Lp._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function oM(o){return o?`${o.serialize()}`:"no when condition"}function rM(o){return o.extensionId?o.isBuiltinExtension?`built-in extension ${o.extensionId}`:`user extension ${o.extensionId}`:o.isDefault?"built-in":"user"}class aM{constructor(e,t,i,n,s,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?VD(e.getDispatchParts()):[],e&&this.keypressParts.length===0&&(this.keypressParts=VD(e.getSingleModifierDispatchParts())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=r,this.isBuiltinExtension=a}}function VD(o){const e=[];for(let t=0,i=o.length;tthis._getLabel(e))}getAriaLabel(){return aY.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:lY.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new GV(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class mm extends dY{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return sd.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":sd.toString(e.keyCode)}_getElectronAccelerator(e){return sd.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return mm.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+=sd.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=pI[e];if(t!==-1)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 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof Md)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new Md(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=VD(e.map(n=>this._resolveSimpleUserBinding(n)));return i.length>0?[new mm(new av(i),t)]:[]}}const bg=Ye("labelService"),_m=Ye("contextService");function lM(o){const e=o;return typeof(e==null?void 0:e.id)=="string"&&_e.isUri(e.uri)}function hY(o){if(o.configuration)return{id:o.id,configPath:o.configuration};if(o.folders.length===1)return{id:o.id,uri:o.folders[0].uri}}class uY{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const HD="code-workspace";p("codeWorkspace","Code Workspace");var hi;(function(o){o.noSelection=p("noSelection","No selection"),o.singleSelectionRange=p("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),o.singleSelection=p("singleSelection","Line {0}, Column {1}"),o.multiSelectionRange=p("multiSelectionRange","{0} selections ({1} characters selected)"),o.multiSelection=p("multiSelection","{0} selections"),o.emergencyConfOn=p("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),o.openingDocs=p("openingDocs","Now opening the Editor Accessibility documentation page."),o.readonlyDiffEditor=p("readonlyDiffEditor"," in a read-only pane of a diff editor."),o.editableDiffEditor=p("editableDiffEditor"," in a pane of a diff editor."),o.readonlyEditor=p("readonlyEditor"," in a read-only code editor"),o.editableEditor=p("editableEditor"," in a code editor"),o.changeConfigToOnMac=p("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),o.changeConfigToOnWinLinux=p("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),o.auto_on=p("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),o.auto_off=p("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o.tabFocusModeOnMsg=p("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),o.tabFocusModeOnMsgNoKb=p("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),o.tabFocusModeOffMsg=p("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),o.tabFocusModeOffMsgNoKb=p("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),o.openDocMac=p("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),o.openDocWinLinux=p("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),o.outroMsg=p("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),o.showAccessibilityHelpAction=p("showAccessibilityHelpAction","Show Accessibility Help")})(hi||(hi={}));var zD;(function(o){o.inspectTokensAction=p("inspectTokens","Developer: Inspect Tokens")})(zD||(zD={}));var qv;(function(o){o.gotoLineActionLabel=p("gotoLineActionLabel","Go to Line/Column...")})(qv||(qv={}));var UD;(function(o){o.helpQuickAccessActionLabel=p("helpQuickAccess","Show all Quick Access Providers")})(UD||(UD={}));var Gv;(function(o){o.quickCommandActionLabel=p("quickCommandActionLabel","Command Palette"),o.quickCommandHelp=p("quickCommandActionHelp","Show And Run Commands")})(Gv||(Gv={}));var bm;(function(o){o.quickOutlineActionLabel=p("quickOutlineActionLabel","Go to Symbol..."),o.quickOutlineByCategoryActionLabel=p("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(bm||(bm={}));var Zv;(function(o){o.editorViewAccessibleLabel=p("editorViewAccessibleLabel","Editor content"),o.accessibilityHelpMessage=p("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Zv||(Zv={}));var $D;(function(o){o.toggleHighContrast=p("toggleHighContrast","Toggle High Contrast Theme")})($D||($D={}));var jD;(function(o){o.bulkEditServiceSummary=p("bulkEditServiceSummary","Made {0} edits in {1} files")})(jD||(jD={}));const l5=Ye("workspaceTrustManagementService");var en;(function(o){function e(s,r){if(s.start>=r.end||r.start>=s.end)return{start:0,end:0};const a=Math.max(s.start,r.start),l=Math.min(s.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}o.intersect=e;function t(s){return s.end-s.start<=0}o.isEmpty=t;function i(s,r){return!t(e(s,r))}o.intersects=i;function n(s,r){const a=[],l={start:s.start,end:Math.min(r.start,s.end)},c={start:Math.max(r.end,s.start),end:s.end};return t(l)||a.push(l),t(c)||a.push(c),a}o.relativeComplement=n})(en||(en={}));var Wl;(function(o){o[o.AVOID=0]="AVOID",o[o.ALIGN=1]="ALIGN"})(Wl||(Wl={}));function Su(o,e,t){const i=t.mode===Wl.ALIGN?t.offset:t.offset+t.size,n=t.mode===Wl.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=o-i?i:e<=n?n-e:Math.max(o-e,0):e<=n?n-e:e<=o-i?i:0}class vg extends H{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=H.None,this.toDisposeOnSetContainer=H.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=J(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,Pn(this.view),this.setContainer(e,t),this._register(Be(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=J(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const s=document.createElement("style");s.textContent=gY,this.shadowRoot.appendChild(s),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(J("slot"))}else this.container.appendChild(this.view);const n=new Q;vg.BUBBLE_UP_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!1)}))}),vg.BUBBLE_DOWN_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){var t,i;this.isVisible()&&this.hide(),Si(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",bs(this.view),this.toDisposeOnClean=e.render(this.view)||H.None,this.delegate=e,this.doLayout(),(i=(t=this.delegate).focus)===null||i===void 0||i.call(t)}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(Ur&&$I.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(l4(e)){const h=on(e),u=AH(e);t={top:h.top*u,left:h.left*u,width:h.width*u,height:h.height*u}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=co(this.view),n=iD(this.view),s=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,c;if(a===0){const h={offset:t.top-window.pageYOffset,size:t.height,position:s===0?0:1},u={offset:t.left,size:t.width,position:r===0?0:1,mode:Wl.ALIGN};l=Su(window.innerHeight,n,h)+window.pageYOffset,en.intersects({start:l,end:l+n},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),c=Su(window.innerWidth,i,u)}else{const h={offset:t.left,size:t.width,position:r===0?0:1},u={offset:t.top,size:t.height,position:s===0?0:1,mode:Wl.ALIGN};c=Su(window.innerWidth,i,h),en.intersects({start:c,end:c+i},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),l=Su(window.innerHeight,n,u)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(s===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const d=on(this.container);this.view.style.top=`${l-(this.useFixedPosition?on(this.view).top:d.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?on(this.view).left:d.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Pn(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Ga(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}vg.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];vg.BUBBLE_DOWN_EVENTS=["click"];const gY=` + `)});var zZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},UZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},$Z=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let PD=class extends H{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new R),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new R),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new R),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new R),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new Dn,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}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])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.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(i=>i.removeDecorationsByType(e))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}openCodeEditor(e,t,i){return $Z(this,void 0,void 0,function*(){for(const n of this._codeEditorOpenHandlers){const s=yield n(e,t,i);if(s!==null)return s}return null})}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return Be(t)}};PD=zZ([UZ(0,Ct)],PD);var jZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JA=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},KZ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Uv=class extends PD{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((i,n,s)=>KZ(this,void 0,void 0,function*(){return n?this.doOpenEditor(n,i):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){if(!this.findModel(e,t.resource)){if(t.resource){const s=t.resource.scheme;if(s===Me.http||s===Me.https)return d4(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if(typeof n.endLineNumber=="number"&&typeof n.endColumn=="number")e.setSelection(n),e.revealRangeInCenter(n,1);else{const s={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(s),e.revealPositionInCenter(s,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Uv=jZ([JA(0,Ee),JA(1,Ct)],Uv);et(ct,Uv);const Yg=Ye("layoutService");var eF=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},tF=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let $v=class{constructor(e){this._codeEditorService=e,this.onDidLayout=ge.None,this.offset={top:0,quickPickTop:0}}get dimension(){return this._dimension||(this._dimension=JC(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}};$v=eF([tF(0,ct)],$v);let FD=class extends $v{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};FD=eF([tF(1,ct)],FD);et(Yg,$v);const b_=Ye("dialogService");var qZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},eM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ib=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function Eb(o){return o.scheme===Me.file?o.fsPath:o.path}let iF=0;class Nb{constructor(e,t,i,n,s,r,a){this.id=++iF,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=s,this.sourceId=r,this.sourceOrder=a,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 tM{constructor(e,t){this.resourceLabel=e,this.reason=t}}class iM{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(n.reason===0?e:t).push(n.resourceLabel);const i=[];return e.length>0&&i.push(p({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(p({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` +`)}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 GZ{constructor(e,t,i,n,s,r,a){this.id=++iF,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=s,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new iM),this.removedResources.has(t)||this.removedResources.set(t,new tM(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new iM),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new tM(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class nF{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)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&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(` +`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?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)t.type===1&&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 D5(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let a=0,l=this._past.length;a=t||c.id!==e.elements[n])&&(i=!1,s=0),!i&&c.type===1&&c.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,n++){const l=this._future[a];i&&(n>=t||l.id!==e.elements[n])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}s!==-1&&(this._past=this._past.slice(0,s)),r!==-1&&(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 this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?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 BS{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 Er){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){Te(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,s){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),n.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),n.dispose(),s()),l=>(r(),n.dispose(),this._onError(l,e))):(r(),n.dispose(),s())}_invokeWorkspacePrepare(e){return Ib(this,void 0,void 0,function*(){if(typeof e.actual.prepareUndoRedo>"u")return H.None;const t=e.actual.prepareUndoRedo();return typeof t>"u"?H.None:t})}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(H.None);const i=e.actual.prepareUndoRedo();return i?hI(i)?t(i):i.then(n=>t(n)):t(H.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||sF);return new BS(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Tb(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Tb}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,p({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,p({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 s=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&s.push(a.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,p({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,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,p({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,p({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),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.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 n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return Ib(this,void 0,void 0,function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const a=yield this._dialogService.show(Bt.Info,p("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[p({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),p("nok","Undo this File"),p("cancel","Cancel")],{cancelId:2});if(a.choice===2)return;if(a.choice===1)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const l=this._checkWorkspaceUndo(e,t,i,!1);if(l)return l.returnValue;n=!0}let s;try{s=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return s.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,s,()=>this._continueUndoInGroup(t.groupId,n))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const n=p({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(n);return}return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new BS([e]),n,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.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);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof Er){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?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),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[a,l]=this._findClosestUndoElementInGroup(s.groupId);if(s!==a&&l)return this._undo(l,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return s.type===1?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{}}_confirmAndContinueUndo(e,t,i){return Ib(this,void 0,void 0,function*(){if((yield this._dialogService.show(Bt.Info,p("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[p("confirmDifferentSource.yes","Yes"),p("confirmDifferentSource.no","No")],{cancelId:1})).choice!==1)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,p({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,s.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,p({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,p({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)}_executeWorkspaceRedo(e,t,i){return Ib(this,void 0,void 0,function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.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){e.flushAllElements();return}if(e.locked){const i=p({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(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new BS([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const r=s.getClosestFutureElement();!r||r.groupId===e&&(!t||r.groupOrderqE(o,t))}function rF(o){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(o.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},o=o.with({fragment:""})),{selection:e,uri:o}}var QZ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},XZ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const no=Ye("ILanguageFeatureDebounceService");var jv;(function(o){const e=new WeakMap;let t=0;function i(n){let s=e.get(n);return s===void 0&&(s=++t,e.set(n,s)),s}o.of=i})(jv||(jv={}));class JZ{constructor(e,t,i,n,s,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=s,this._max=r,this._cache=new Dc(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>ZC(jv.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?Zn(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new ZZ(6),this._cache.set(i,n));const s=Zn(n.update(t),this._min,this._max);return qE(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new oF;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return Zn(e,this._min,this._max)}}let WD=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,s,r;const a=(n=i==null?void 0:i.min)!==null&&n!==void 0?n:50,l=(s=i==null?void 0:i.max)!==null&&s!==void 0?s:Math.pow(a,2),c=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,d=`${jv.of(e)},${a}${c?","+c:""}`;let h=this._data.get(d);return h||(h=new JZ(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(d,h)),h}_overallAverage(){const e=new oF;for(const t of this._data.values())e.update(t.default());return e.value}};WD=QZ([XZ(0,So)],WD);et(no,WD,!0);const v_=Ye("IWorkspaceEditService");class Qg{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(Cd.is(t))return Cd.lift(t);if($u.is(t))return $u.lift(t);throw new Error("Unsupported edit")})}}class Cd extends Qg{constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}static is(e){return e instanceof Cd?!0:Hn(e)&&_e.isUri(e.resource)&&Hn(e.textEdit)}static lift(e){return e instanceof Cd?e:new Cd(e.resource,e.textEdit,e.versionId,e.metadata)}}class $u extends Qg{constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}static is(e){return e instanceof $u?!0:Hn(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof $u?e:new $u(e.oldResource,e.newResource,e.options,e.metadata)}}const GE=Object.freeze({id:"editor",order:5,type:"object",title:p("editorConfigurationTitle","Editor"),scope:5}),Kv=Object.assign(Object.assign({},GE),{properties:{"editor.tabSize":{type:"number",default:sn.tabSize,minimum:1,markdownDescription:p("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:sn.insertSpaces,markdownDescription:p("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:sn.detectIndentation,markdownDescription:p("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:sn.trimAutoWhitespace,description:p("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:sn.largeFileOptimizations,description:p("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:p("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[p("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),p("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),p("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:p("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[p("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),p("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),p("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:p("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:p("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:p("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:["array","null"],default:null,description:p("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:p("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:p("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:p("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:p("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:p("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:p("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:p("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:p("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:p("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:p("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function eY(o){return typeof o.type<"u"||typeof o.anyOf<"u"}for(const o of ru){const e=o.schema;if(typeof e<"u")if(eY(e))Kv.properties[`editor.${o.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(Kv.properties[t]=e[t])}let Ab=null;function aF(){return Ab===null&&(Ab=Object.create(null),Object.keys(Kv.properties).forEach(o=>{Ab[o]=!0})),Ab}function tY(o){return aF()[`editor.${o}`]||!1}function iY(o){return aF()[`diffEditor.${o}`]||!1}const nY=zt.as(rl.Configuration);nY.registerConfiguration(Kv);class Ft{static insert(e,t){return{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}class Qn{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.frozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?zT(this.contents,e):this.contents}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?zT(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){const t=La(this.contents),i=La(this.overrides),n=[...this.keys];for(const s of e)if(!s.isEmpty()){this.mergeContents(t,s.contents);for(const r of s.overrides){const[a]=i.filter(l=>Ss(l.identifiers,r.identifiers));a?(this.mergeContents(a.contents,r.contents),a.keys.push(...r.keys),a.keys=Qa(a.keys)):i.push(La(r))}for(const r of s.keys)n.indexOf(r)===-1&&n.push(r)}return new Qn(t,n,i)}freeze(){return this.frozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;const i={};for(const n of Qa([...Object.keys(this.contents),...Object.keys(t)])){let s=this.contents[n];const r=t[n];r&&(typeof s=="object"&&typeof r=="object"?(s=La(s),this.mergeContents(s,r)):s=r),i[n]=s}return new Qn(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&Hn(e[i])&&Hn(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=La(t[i])}}checkAndFreeze(e){return this.frozen&&!Object.isFrozen(e)?U8(e):e}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=s=>{s&&(i?this.mergeContents(i,s):i=La(s))};for(const s of this.overrides)Ss(s.identifiers,[e])?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),TI(this.contents,e,t,i=>{throw new Error(i)})}removeValue(e){this.removeKey(e)&&oW(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iC.identifiers).flat()).filter(C=>n.getOverrideValue(e,C)!==void 0);return{defaultValue:a,policyValue:l,applicationValue:c,userValue:d,userLocalValue:h,userRemoteValue:u,workspaceValue:g,workspaceFolderValue:f,memoryValue:_,value:b,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,policy:l!==void 0?{value:l}:void 0,application:c!==void 0?{value:c,override:t.overrideIdentifier?this.applicationConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:d!==void 0?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:h!==void 0?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:u!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:g!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:f!==void 0?{value:s==null?void 0:s.freeze().getValue(e),override:t.overrideIdentifier?s==null?void 0:s.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:_!==void 0?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:v.length?v:void 0}}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),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()&&this._policyConfiguration.getValue(e)!==void 0&&(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 s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),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._freeze&&(t=t.freeze()),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:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),s=this.parseConfigurationModel(e.user),r=this.parseConfigurationModel(e.workspace),a=e.folders.reduce((l,c)=>(l.set(_e.revive(c[0]),this.parseConfigurationModel(c[1])),l),new mn);return new N1(t,i,n,s,new Qn,r,a,new Qn,new mn,!1)}static parseConfigurationModel(e){return new Qn(e.contents,e.keys,e.overrides).freeze()}}class sY{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const s=new Set;e.keys.forEach(a=>s.add(a)),e.overrides.forEach(([,a])=>a.forEach(l=>s.add(l))),this.affectedKeys=[...s.values()];const r=new Qn;this.affectedKeys.forEach(a=>r.setValue(a,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=N1.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!$s(n,s)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=kP({[t]:!0},()=>{}),n;for(;typeof i=="object"&&(n=Object.keys(i)[0]);){if(e=e[n],!e)return!1;i=i[n]}return!0}}const oY=/^(cursor|delete)/;class rY extends H{constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new R),this._currentChord=null,this._currentChordChecker=new r_,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new xs,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ge.None}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.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[n]=i.getDispatchParts();if(n===null)return this._log("\\ Keyboard event cannot be dispatched"),null;const s=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(s,r,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(p("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=wu.EMPTY,this._currentSingleModifier===null?(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[s]=i.getParts();return this._ignoreSingleModifiers=new wu(s),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let s=null,r=null;if(i){const[d]=e.getSingleModifierDispatchParts();s=d,r=d}else[s]=e.getDispatchParts(),r=this._currentChord?this._currentChord.keypress:null;if(s===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,s);return this._logService.trace("KeybindingService#dispatch",l,c==null?void 0:c.commandId),c&&c.enterChord?(n=!0,this._enterChordMode(s,l),this._log("+ Entering chord mode..."),n):(this._currentChord&&(!c||!c.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${l}".`),this._notificationService.status(p("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,l),{hideAfter:10*1e3}),n=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(n=!0),this._log(`+ Invoking command ${c.commandId}.`),typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,d=>this._notificationService.warn(d)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,d=>this._notificationService.warn(d)),oY.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class wu{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}wu.EMPTY=new wu(null);const _i=Ye("keybindingService");class Lp{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const n of e){const s=n.command;s&&s.charAt(0)!=="-"&&this._defaultBoundCommands.set(s,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Lp.handleRemovals([].concat(e).concat(t));for(let n=0,s=this._keybindings.length;n"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(let n=i.length-1;n>=0;n--){const s=i[n];if(s.command===t.command)continue;const r=s.keypressParts.length>1,a=t.keypressParts.length>1;r&&a&&s.keypressParts[1]!==t.keypressParts[1]||Lp.whenIsEntirelyIncluded(s.when,t.when)&&this._removeFromLookupMap(s)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);typeof t>"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(let i=0,n=t.length;i"u"||i.length===0)return null;if(i.length===1)return i[0];for(let n=i.length-1;n>=0;n--){const s=i[n];if(t.contextMatchesRules(s.when))return s}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let n=null;if(t!==null){const r=this._map.get(t);if(typeof r>"u")return this._log("\\ No keybinding entries."),null;n=[];for(let a=0,l=r.length;a"u")return this._log("\\ No keybinding entries."),null;n=r}const s=this._findCommand(e,n);return s?t===null&&s.keypressParts.length>1&&s.keypressParts[1]!==null?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${s.command}, when: ${oM(s.when)}, source: ${rM(s)}.`),{enterChord:!1,leaveChord:s.keypressParts.length>1,commandId:s.command,commandArgs:s.commandArgs,bubble:s.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(!!Lp._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function oM(o){return o?`${o.serialize()}`:"no when condition"}function rM(o){return o.extensionId?o.isBuiltinExtension?`built-in extension ${o.extensionId}`:`user extension ${o.extensionId}`:o.isDefault?"built-in":"user"}class aM{constructor(e,t,i,n,s,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?VD(e.getDispatchParts()):[],e&&this.keypressParts.length===0&&(this.keypressParts=VD(e.getSingleModifierDispatchParts())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=r,this.isBuiltinExtension=a}}function VD(o){const e=[];for(let t=0,i=o.length;tthis._getLabel(e))}getAriaLabel(){return aY.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:lY.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new GV(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class mm extends dY{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return sd.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":sd.toString(e.keyCode)}_getElectronAccelerator(e){return sd.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return mm.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+=sd.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=pI[e];if(t!==-1)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 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof Md)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new Md(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=VD(e.map(n=>this._resolveSimpleUserBinding(n)));return i.length>0?[new mm(new av(i),t)]:[]}}const bg=Ye("labelService"),_m=Ye("contextService");function lM(o){const e=o;return typeof(e==null?void 0:e.id)=="string"&&_e.isUri(e.uri)}function hY(o){if(o.configuration)return{id:o.id,configPath:o.configuration};if(o.folders.length===1)return{id:o.id,uri:o.folders[0].uri}}class uY{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const HD="code-workspace";p("codeWorkspace","Code Workspace");var hi;(function(o){o.noSelection=p("noSelection","No selection"),o.singleSelectionRange=p("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),o.singleSelection=p("singleSelection","Line {0}, Column {1}"),o.multiSelectionRange=p("multiSelectionRange","{0} selections ({1} characters selected)"),o.multiSelection=p("multiSelection","{0} selections"),o.emergencyConfOn=p("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),o.openingDocs=p("openingDocs","Now opening the Editor Accessibility documentation page."),o.readonlyDiffEditor=p("readonlyDiffEditor"," in a read-only pane of a diff editor."),o.editableDiffEditor=p("editableDiffEditor"," in a pane of a diff editor."),o.readonlyEditor=p("readonlyEditor"," in a read-only code editor"),o.editableEditor=p("editableEditor"," in a code editor"),o.changeConfigToOnMac=p("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),o.changeConfigToOnWinLinux=p("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),o.auto_on=p("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),o.auto_off=p("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o.tabFocusModeOnMsg=p("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),o.tabFocusModeOnMsgNoKb=p("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),o.tabFocusModeOffMsg=p("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),o.tabFocusModeOffMsgNoKb=p("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),o.openDocMac=p("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),o.openDocWinLinux=p("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),o.outroMsg=p("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),o.showAccessibilityHelpAction=p("showAccessibilityHelpAction","Show Accessibility Help")})(hi||(hi={}));var zD;(function(o){o.inspectTokensAction=p("inspectTokens","Developer: Inspect Tokens")})(zD||(zD={}));var qv;(function(o){o.gotoLineActionLabel=p("gotoLineActionLabel","Go to Line/Column...")})(qv||(qv={}));var UD;(function(o){o.helpQuickAccessActionLabel=p("helpQuickAccess","Show all Quick Access Providers")})(UD||(UD={}));var Gv;(function(o){o.quickCommandActionLabel=p("quickCommandActionLabel","Command Palette"),o.quickCommandHelp=p("quickCommandActionHelp","Show And Run Commands")})(Gv||(Gv={}));var bm;(function(o){o.quickOutlineActionLabel=p("quickOutlineActionLabel","Go to Symbol..."),o.quickOutlineByCategoryActionLabel=p("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(bm||(bm={}));var Zv;(function(o){o.editorViewAccessibleLabel=p("editorViewAccessibleLabel","Editor content"),o.accessibilityHelpMessage=p("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Zv||(Zv={}));var $D;(function(o){o.toggleHighContrast=p("toggleHighContrast","Toggle High Contrast Theme")})($D||($D={}));var jD;(function(o){o.bulkEditServiceSummary=p("bulkEditServiceSummary","Made {0} edits in {1} files")})(jD||(jD={}));const lF=Ye("workspaceTrustManagementService");var en;(function(o){function e(s,r){if(s.start>=r.end||r.start>=s.end)return{start:0,end:0};const a=Math.max(s.start,r.start),l=Math.min(s.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}o.intersect=e;function t(s){return s.end-s.start<=0}o.isEmpty=t;function i(s,r){return!t(e(s,r))}o.intersects=i;function n(s,r){const a=[],l={start:s.start,end:Math.min(r.start,s.end)},c={start:Math.max(r.end,s.start),end:s.end};return t(l)||a.push(l),t(c)||a.push(c),a}o.relativeComplement=n})(en||(en={}));var Wl;(function(o){o[o.AVOID=0]="AVOID",o[o.ALIGN=1]="ALIGN"})(Wl||(Wl={}));function Su(o,e,t){const i=t.mode===Wl.ALIGN?t.offset:t.offset+t.size,n=t.mode===Wl.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=o-i?i:e<=n?n-e:Math.max(o-e,0):e<=n?n-e:e<=o-i?i:0}class vg extends H{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=H.None,this.toDisposeOnSetContainer=H.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=J(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,Pn(this.view),this.setContainer(e,t),this._register(Be(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=J(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const s=document.createElement("style");s.textContent=gY,this.shadowRoot.appendChild(s),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(J("slot"))}else this.container.appendChild(this.view);const n=new Q;vg.BUBBLE_UP_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!1)}))}),vg.BUBBLE_DOWN_EVENTS.forEach(s=>{n.add(ki(this.container,s,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){var t,i;this.isVisible()&&this.hide(),Si(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",bs(this.view),this.toDisposeOnClean=e.render(this.view)||H.None,this.delegate=e,this.doLayout(),(i=(t=this.delegate).focus)===null||i===void 0||i.call(t)}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(Ur&&$I.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(l4(e)){const h=on(e),u=AH(e);t={top:h.top*u,left:h.left*u,width:h.width*u,height:h.height*u}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=co(this.view),n=iD(this.view),s=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,c;if(a===0){const h={offset:t.top-window.pageYOffset,size:t.height,position:s===0?0:1},u={offset:t.left,size:t.width,position:r===0?0:1,mode:Wl.ALIGN};l=Su(window.innerHeight,n,h)+window.pageYOffset,en.intersects({start:l,end:l+n},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),c=Su(window.innerWidth,i,u)}else{const h={offset:t.left,size:t.width,position:r===0?0:1},u={offset:t.top,size:t.height,position:s===0?0:1,mode:Wl.ALIGN};c=Su(window.innerWidth,i,h),en.intersects({start:c,end:c+i},{start:h.offset,end:h.offset+h.size})&&(u.mode=Wl.AVOID),l=Su(window.innerHeight,n,u)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(s===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const d=on(this.container);this.view.style.top=`${l-(this.useFixedPosition?on(this.view).top:d.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?on(this.view).left:d.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Pn(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Ga(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}vg.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];vg.BUBBLE_DOWN_EVENTS=["click"];const gY=` :host { all: initial; /* 1st rule so subsequent properties are reset. */ } @@ -184,7 +184,7 @@ var p8=Object.defineProperty;var m8=(o,e,t)=>e in o?p8(o,e,{enumerable:!0,config :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; } :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; } :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; } -`;var fY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pY=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let KD=class extends H{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=H.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new vg(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?(t!==this.container||this.shadowRoot!==i)&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=i,this.contextView.show(e);const n=Be(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};KD=fY([pY(0,Yg)],KD);var cM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Mb="**",dM="/",y0="[/\\\\]",L0="[^/\\\\]",mY=/\//g;function hM(o,e){switch(o){case 0:return"";case 1:return`${L0}*?`;default:return`(?:${y0}|${L0}+${y0}${e?`|${y0}${L0}+`:""})*?`}}function uM(o,e){if(!o)return[];const t=[];let i=!1,n=!1,s="";for(const r of o){switch(r){case e:if(!i&&!n){t.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}s+=r}return s&&t.push(s),t}function c5(o){if(!o)return"";let e="";const t=uM(o,dM);if(t.every(i=>i===Mb))e=".*";else{let i=!1;t.forEach((n,s)=>{if(n===Mb){if(i)return;e+=hM(2,s===t.length-1)}else{let r=!1,a="",l=!1,c="";for(const d of n){if(d!=="}"&&r){a+=d;continue}if(l&&(d!=="]"||!c)){let h;d==="-"?h=d:(d==="^"||d==="!")&&!c?h="^":d===dM?h="":h=ys(d),c+=h;continue}switch(d){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{const u=`(?:${uM(a,",").map(g=>c5(g)).join("|")})`;e+=u,r=!1,a="";break}case"]":{e+="["+c+"]",l=!1,c="";break}case"?":e+=L0;continue;case"*":e+=hM(1);continue;default:e+=ys(d)}}sYE(a,e)).filter(a=>a!==zr),o),i=t.length;if(!i)return zr;if(i===1)return t[0];const n=function(a,l){for(let c=0,d=t.length;c!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function mM(o,e,t){const i=Br===gi.sep,n=i?o:o.replace(mY,Br),s=Br+n,r=gi.sep+o;let a;return t?a=function(l,c){return typeof l=="string"&&(l===n||l.endsWith(s)||!i&&(l===o||l.endsWith(r)))?e:null}:a=function(l,c){return typeof l=="string"&&(l===n||!i&&l===o)?e:null},a.allPaths=[(t?"*/":"./")+o],a}function kY(o){try{const e=new RegExp(`^${c5(o)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?o:null}}catch{return zr}}function xY(o,e,t){return!o||typeof e!="string"?!1:d5(o)(e,void 0,t)}function d5(o,e={}){if(!o)return fM;if(typeof o=="string"||IY(o)){const t=YE(o,e);if(t===zr)return fM;const i=function(n,s){return!!t(n,s)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return EY(o,e)}function IY(o){const e=o;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function EY(o,e){const t=h5(Object.getOwnPropertyNames(o).map(a=>NY(a,o[a],e)).filter(a=>a!==zr)),i=t.length;if(!i)return zr;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(d,h){let u;for(let g=0,f=t.length;gcM(this,void 0,void 0,function*(){for(const g of u){const f=yield g;if(typeof f=="string")return f}return null}))():null},l=t.find(d=>!!d.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=t.reduce((d,h)=>h.allPaths?d.concat(h.allPaths):d,[]);return c.length&&(a.allPaths=c),a}const n=function(a,l,c){let d,h;for(let u=0,g=t.length;ucM(this,void 0,void 0,function*(){for(const u of h){const g=yield u;if(typeof g=="string")return g}return null}))():null},s=t.find(a=>!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function NY(o,e,t){if(e===!1)return zr;const i=YE(o,t);if(i===zr)return zr;if(typeof e=="boolean")return i;if(e){const n=e.when;if(typeof n=="string"){const s=(r,a,l,c)=>{if(!c||!i(r,a))return null;const d=n.replace("$(basename)",l),h=c(d);return jL(h)?h.then(u=>u?o:null):h?o:null};return s.requiresSiblings=!0,s}}return i}function h5(o,e){const t=o.filter(a=>!!a.basenames);if(t.length<2)return o;const i=t.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let n;if(e){n=[];for(let a=0,l=i.length;a{const c=l.patterns;return c?a.concat(c):a},[]);const s=function(a,l){if(typeof a!="string")return null;if(!l){let d;for(d=a.length;d>0;d--){const h=a.charCodeAt(d-1);if(h===47||h===92)break}l=a.substr(d)}const c=i.indexOf(l);return c!==-1?n[c]:null};s.basenames=i,s.patterns=n,s.allBasenames=i;const r=o.filter(a=>!a.basenames);return r.push(s),r}let Cg=[],QE=[],u5=[];function Rb(o,e=!1){TY(o,!1,e)}function TY(o,e,t){const i=AY(o,e);Cg.push(i),i.userConfigured?u5.push(i):QE.push(i),t&&!i.userConfigured&&Cg.forEach(n=>{n.mime===i.mime||n.userConfigured||(i.extension&&n.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&n.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&n.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&n.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function AY(o,e){return{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:e,filenameLowercase:o.filename?o.filename.toLowerCase():void 0,extensionLowercase:o.extension?o.extension.toLowerCase():void 0,filepatternLowercase:o.filepattern?d5(o.filepattern.toLowerCase()):void 0,filepatternOnPath:o.filepattern?o.filepattern.indexOf(gi.sep)>=0:!1}}function MY(){Cg=Cg.filter(o=>o.userConfigured),QE=[]}function RY(o,e){return OY(o,e).map(t=>t.id)}function OY(o,e){let t;if(o)switch(o.scheme){case Me.file:t=o.fsPath;break;case Me.data:{t=cc.parseMetaData(o).get(cc.META_DATA_LABEL);break}case Me.vscodeNotebookCell:t=void 0;break;default:t=o.path}if(!t)return[{id:"unknown",mime:Vn.unknown}];t=t.toLowerCase();const i=fd(t),n=_M(t,i,u5);if(n)return[n,{id:Ks,mime:Vn.text}];const s=_M(t,i,QE);if(s)return[s,{id:Ks,mime:Vn.text}];if(e){const r=PY(e);if(r)return[r,{id:Ks,mime:Vn.text}]}return[{id:"unknown",mime:Vn.unknown}]}function _M(o,e,t){var i;let n,s,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){n=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const c=l.filepatternOnPath?o:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,c)&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(n)return n;if(s)return s;if(r)return r}function PY(o){if(LI(o)&&(o=o.substr(1)),o.length>0)for(let e=Cg.length-1;e>=0;e--){const t=Cg[e];if(!t.firstline)continue;const i=o.match(t.firstline);if(i&&i.length>0)return t}}const Ob=Object.prototype.hasOwnProperty,bM="vs.editor.nullLanguage";class FY{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(bM,0),this._register(Ks,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]||bM}}class vm extends H{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,vm.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new FY,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(ig.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){vm.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},MY();const e=[].concat(ig.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(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(n=>{this._lowercaseNameMap[n.toLowerCase()]=i.identifier}),i.mimetypes.forEach(n=>{this._mimeTypesMap[n]=i.identifier})}),zt.as(rl.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Ob.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 a of t.extensions)Rb({id:i,mime:n,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)Rb({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)Rb({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);gB(l)||Rb({id:i,mime:n,firstline:l},this._warnOnOverwrite)}catch(l){Te(l)}}e.aliases.push(i);let s=null;if(typeof t.aliases<"u"&&Array.isArray(t.aliases)&&(t.aliases.length===0?s=[null]:s=t.aliases),s!==null)for(const a of s)!a||a.length===0||e.aliases.push(a);const r=s!==null&&s.length>0;if(!(r&&s[0]===null)){const a=(r?s[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?Ob.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Ob.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Ob.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return!e&&!t?[]:RY(e,t)}}vm.instanceCount=0;class Cm extends H{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new R),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new R({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,Cm.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new vm(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){Cm.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 VO(i,null)}createById(e){return new vM(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new vM(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Ks),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),Wt.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}Cm.instanceCount=0;class vM{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 R({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,(e=this._emitter)===null||e===void 0||e.fire(this.languageId))}}function CM(o){let e=o.definition;for(;e instanceof m;)e=e.definition;return`.codicon-${o.id}:before { content: '${e.fontCharacter}'; }`}const qD=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,VS=/(&)?(&)([^\s&])/g;var Yv;(function(o){o[o.Right=0]="Right",o[o.Left=1]="Left"})(Yv||(Yv={}));class ju extends Zr{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:a=>this.doGetActionViewItem(a,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...Ge||dn?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Q),this.initializeOrUpdateStyleSheet(e,{}),this._register(ft.addTarget(n)),G(n,ae.KEY_DOWN,a=>{new Rt(a).equals(2)&&a.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(G(n,ae.KEY_DOWN,a=>{const l=a.key.toLocaleLowerCase();if(this.mnemonics.has(l)){ut.stop(a,!0);const c=this.mnemonics.get(l);if(c.length===1&&(c[0]instanceof wM&&c[0].container&&this.focusItemByElement(c[0].container),c[0].onClick(a)),c.length>1){const d=c.shift();d&&d.container&&(this.focusItemByElement(d.container),c.push(d)),this.mnemonics.set(l,c)}}})),dn&&this._register(G(n,ae.KEY_DOWN,a=>{const l=new Rt(a);l.equals(14)||l.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),ut.stop(a,!0)):(l.equals(13)||l.equals(12))&&(this.focusedItem=0,this.focusPrevious(),ut.stop(a,!0))})),this._register(G(this.domNode,ae.MOUSE_OUT,a=>{const l=a.relatedTarget;Ga(l,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),a.stopPropagation())})),this._register(G(this.actionsList,ae.MOUSE_OVER,a=>{let l=a.target;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}})),this._register(ft.addTarget(this.actionsList)),this._register(G(this.actionsList,xt.Tap,a=>{let l=a.initialTarget;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}}));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new p_(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this._register(G(n,xt.Change,a=>{ut.stop(a,!0);const l=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:l-a.translationY})})),this._register(G(r,ae.MOUSE_UP,a=>{a.preventDefault()})),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(a=>{var l;return!((l=i.submenuIds)===null||l===void 0)&&l.has(a.id)?(console.warn(`Found submenu cycle: ${a.id}`),!1):!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(a=>!(a instanceof HS)).forEach((a,l,c)=>{a.updatePositionInSet(l+1,c.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(Gp(e)?this.styleSheet=Qs(e):(ju.globalStyleSheet||(ju.globalStyleSheet=Qs()),this.styleSheet=ju.globalStyleSheet)),this.styleSheet.textContent=WY(t,Gp(e))}style(e){const t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);const i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",s=e.borderColor?`1px solid ${e.borderColor}`:"",r="5px",a=e.shadowColor?`0 2px 8px ${e.shadowColor}`:"";t.style.outline=s,t.style.borderRadius=r,t.style.color=i,t.style.backgroundColor=n,t.style.boxShadow=a,this.viewItems&&this.viewItems.forEach(l=>{(l instanceof GD||l instanceof HS)&&l.style(e)})}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(G(this.element,ae.MOUSE_UP,n=>{if(ut.stop(n,!0),Ls){if(new Mr(n).rightButton)return;this.onClick(n)}else setTimeout(()=>{this.onClick(n)},0)})),this._register(G(this.element,ae.CONTEXT_MENU,n=>{ut.stop(n,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=q(this.element,J("a.action-menu-item")),this._action.id===ln.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=q(this.item,J("span.menu-item-check"+m.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=q(this.item,J("span.action-label")),this.options.label&&this.options.keybinding&&(q(this.item,J("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.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){Si(this.label);let t=KE(this.getAction().label);if(t){const i=BY(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=qD.exec(t);if(n){t=_I(t),VS.lastIndex=0;let s=VS.exec(t);for(;s&&s[1];)s=VS.exec(t);const r=a=>a.replace(/&&/g,"&");s?this.label.append(WC(r(t.substr(0,s.index))," "),J("u",{"aria-hidden":"true"},s[3]),hP(r(t.substr(s.index+s[0].length))," ")):this.label.innerText=r(t).trim(),(e=this.item)===null||e===void 0||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.getAction().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.getAction().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.getAction().checked;this.item.classList.toggle("checked",!!e),e!==void 0?(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(){if(!this.menuStyle)return;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}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=t?t.toString():"")}style(e){this.menuStyle=e,this.applyStyle()}}class wM extends GD{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new Q),this.mouseOver=!1,this.expandDirection=n&&n.expandDirection!==void 0?n.expandDirection:Yv.Right,this.showScheduler=new mt(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new mt(()=>{this.element&&!Ga(Ru(),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=q(this.item,J("span.submenu-indicator"+m.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(G(this.element,ae.KEY_UP,t=>{const i=new Rt(t);(i.equals(17)||i.equals(3))&&(ut.stop(t,!0),this.createSubmenu(!0))})),this._register(G(this.element,ae.KEY_DOWN,t=>{const i=new Rt(t);Ru()===this.item&&(i.equals(17)||i.equals(3))&&ut.stop(t,!0)})),this._register(G(this.element,ae.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(G(this.element,ae.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(G(this.element,ae.FOCUS_OUT,t=>{this.element&&!Ga(Ru(),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){ut.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{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const s={top:0,left:0};return s.left=Su(e.width,t.width,{position:n===Yv.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left{new Rt(c).equals(15)&&(ut.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(G(this.submenuContainer,ae.KEY_DOWN,c=>{new Rt(c).equals(15)&&ut.stop(c,!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&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){var e;if(super.applyStyle(),!this.menuStyle)return;const i=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=i?`${i}`:""),(e=this.parentData.submenu)===null||e===void 0||e.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class HS extends fm{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function BY(o){const e=qD,t=e.exec(o);if(!t)return o;const i=!t[1];return o.replace(e,i?"$2$3":"").trim()}function WY(o,e){let t=` +`;var fY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pY=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let KD=class extends H{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=H.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new vg(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?(t!==this.container||this.shadowRoot!==i)&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=i,this.contextView.show(e);const n=Be(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};KD=fY([pY(0,Yg)],KD);var cM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Mb="**",dM="/",y0="[/\\\\]",L0="[^/\\\\]",mY=/\//g;function hM(o,e){switch(o){case 0:return"";case 1:return`${L0}*?`;default:return`(?:${y0}|${L0}+${y0}${e?`|${y0}${L0}+`:""})*?`}}function uM(o,e){if(!o)return[];const t=[];let i=!1,n=!1,s="";for(const r of o){switch(r){case e:if(!i&&!n){t.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}s+=r}return s&&t.push(s),t}function cF(o){if(!o)return"";let e="";const t=uM(o,dM);if(t.every(i=>i===Mb))e=".*";else{let i=!1;t.forEach((n,s)=>{if(n===Mb){if(i)return;e+=hM(2,s===t.length-1)}else{let r=!1,a="",l=!1,c="";for(const d of n){if(d!=="}"&&r){a+=d;continue}if(l&&(d!=="]"||!c)){let h;d==="-"?h=d:(d==="^"||d==="!")&&!c?h="^":d===dM?h="":h=ys(d),c+=h;continue}switch(d){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{const u=`(?:${uM(a,",").map(g=>cF(g)).join("|")})`;e+=u,r=!1,a="";break}case"]":{e+="["+c+"]",l=!1,c="";break}case"?":e+=L0;continue;case"*":e+=hM(1);continue;default:e+=ys(d)}}sYE(a,e)).filter(a=>a!==zr),o),i=t.length;if(!i)return zr;if(i===1)return t[0];const n=function(a,l){for(let c=0,d=t.length;c!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function mM(o,e,t){const i=Br===gi.sep,n=i?o:o.replace(mY,Br),s=Br+n,r=gi.sep+o;let a;return t?a=function(l,c){return typeof l=="string"&&(l===n||l.endsWith(s)||!i&&(l===o||l.endsWith(r)))?e:null}:a=function(l,c){return typeof l=="string"&&(l===n||!i&&l===o)?e:null},a.allPaths=[(t?"*/":"./")+o],a}function kY(o){try{const e=new RegExp(`^${cF(o)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?o:null}}catch{return zr}}function xY(o,e,t){return!o||typeof e!="string"?!1:dF(o)(e,void 0,t)}function dF(o,e={}){if(!o)return fM;if(typeof o=="string"||IY(o)){const t=YE(o,e);if(t===zr)return fM;const i=function(n,s){return!!t(n,s)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return EY(o,e)}function IY(o){const e=o;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function EY(o,e){const t=hF(Object.getOwnPropertyNames(o).map(a=>NY(a,o[a],e)).filter(a=>a!==zr)),i=t.length;if(!i)return zr;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(d,h){let u;for(let g=0,f=t.length;gcM(this,void 0,void 0,function*(){for(const g of u){const f=yield g;if(typeof f=="string")return f}return null}))():null},l=t.find(d=>!!d.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=t.reduce((d,h)=>h.allPaths?d.concat(h.allPaths):d,[]);return c.length&&(a.allPaths=c),a}const n=function(a,l,c){let d,h;for(let u=0,g=t.length;ucM(this,void 0,void 0,function*(){for(const u of h){const g=yield u;if(typeof g=="string")return g}return null}))():null},s=t.find(a=>!!a.allBasenames);s&&(n.allBasenames=s.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(n.allPaths=r),n}function NY(o,e,t){if(e===!1)return zr;const i=YE(o,t);if(i===zr)return zr;if(typeof e=="boolean")return i;if(e){const n=e.when;if(typeof n=="string"){const s=(r,a,l,c)=>{if(!c||!i(r,a))return null;const d=n.replace("$(basename)",l),h=c(d);return jL(h)?h.then(u=>u?o:null):h?o:null};return s.requiresSiblings=!0,s}}return i}function hF(o,e){const t=o.filter(a=>!!a.basenames);if(t.length<2)return o;const i=t.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let n;if(e){n=[];for(let a=0,l=i.length;a{const c=l.patterns;return c?a.concat(c):a},[]);const s=function(a,l){if(typeof a!="string")return null;if(!l){let d;for(d=a.length;d>0;d--){const h=a.charCodeAt(d-1);if(h===47||h===92)break}l=a.substr(d)}const c=i.indexOf(l);return c!==-1?n[c]:null};s.basenames=i,s.patterns=n,s.allBasenames=i;const r=o.filter(a=>!a.basenames);return r.push(s),r}let Cg=[],QE=[],uF=[];function Rb(o,e=!1){TY(o,!1,e)}function TY(o,e,t){const i=AY(o,e);Cg.push(i),i.userConfigured?uF.push(i):QE.push(i),t&&!i.userConfigured&&Cg.forEach(n=>{n.mime===i.mime||n.userConfigured||(i.extension&&n.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&n.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&n.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&n.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function AY(o,e){return{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:e,filenameLowercase:o.filename?o.filename.toLowerCase():void 0,extensionLowercase:o.extension?o.extension.toLowerCase():void 0,filepatternLowercase:o.filepattern?dF(o.filepattern.toLowerCase()):void 0,filepatternOnPath:o.filepattern?o.filepattern.indexOf(gi.sep)>=0:!1}}function MY(){Cg=Cg.filter(o=>o.userConfigured),QE=[]}function RY(o,e){return OY(o,e).map(t=>t.id)}function OY(o,e){let t;if(o)switch(o.scheme){case Me.file:t=o.fsPath;break;case Me.data:{t=cc.parseMetaData(o).get(cc.META_DATA_LABEL);break}case Me.vscodeNotebookCell:t=void 0;break;default:t=o.path}if(!t)return[{id:"unknown",mime:Vn.unknown}];t=t.toLowerCase();const i=fd(t),n=_M(t,i,uF);if(n)return[n,{id:Ks,mime:Vn.text}];const s=_M(t,i,QE);if(s)return[s,{id:Ks,mime:Vn.text}];if(e){const r=PY(e);if(r)return[r,{id:Ks,mime:Vn.text}]}return[{id:"unknown",mime:Vn.unknown}]}function _M(o,e,t){var i;let n,s,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){n=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const c=l.filepatternOnPath?o:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,c)&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(n)return n;if(s)return s;if(r)return r}function PY(o){if(LI(o)&&(o=o.substr(1)),o.length>0)for(let e=Cg.length-1;e>=0;e--){const t=Cg[e];if(!t.firstline)continue;const i=o.match(t.firstline);if(i&&i.length>0)return t}}const Ob=Object.prototype.hasOwnProperty,bM="vs.editor.nullLanguage";class FY{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(bM,0),this._register(Ks,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]||bM}}class vm extends H{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,vm.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new FY,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(ig.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){vm.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},MY();const e=[].concat(ig.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(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(n=>{this._lowercaseNameMap[n.toLowerCase()]=i.identifier}),i.mimetypes.forEach(n=>{this._mimeTypesMap[n]=i.identifier})}),zt.as(rl.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Ob.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 a of t.extensions)Rb({id:i,mime:n,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)Rb({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)Rb({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);gB(l)||Rb({id:i,mime:n,firstline:l},this._warnOnOverwrite)}catch(l){Te(l)}}e.aliases.push(i);let s=null;if(typeof t.aliases<"u"&&Array.isArray(t.aliases)&&(t.aliases.length===0?s=[null]:s=t.aliases),s!==null)for(const a of s)!a||a.length===0||e.aliases.push(a);const r=s!==null&&s.length>0;if(!(r&&s[0]===null)){const a=(r?s[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?Ob.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Ob.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Ob.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return!e&&!t?[]:RY(e,t)}}vm.instanceCount=0;class Cm extends H{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new R),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new R({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,Cm.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new vm(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){Cm.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 VO(i,null)}createById(e){return new vM(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new vM(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Ks),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),Wt.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}Cm.instanceCount=0;class vM{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 R({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,(e=this._emitter)===null||e===void 0||e.fire(this.languageId))}}function CM(o){let e=o.definition;for(;e instanceof m;)e=e.definition;return`.codicon-${o.id}:before { content: '${e.fontCharacter}'; }`}const qD=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,VS=/(&)?(&)([^\s&])/g;var Yv;(function(o){o[o.Right=0]="Right",o[o.Left=1]="Left"})(Yv||(Yv={}));class ju extends Zr{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:a=>this.doGetActionViewItem(a,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...Ge||dn?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Q),this.initializeOrUpdateStyleSheet(e,{}),this._register(ft.addTarget(n)),G(n,ae.KEY_DOWN,a=>{new Rt(a).equals(2)&&a.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(G(n,ae.KEY_DOWN,a=>{const l=a.key.toLocaleLowerCase();if(this.mnemonics.has(l)){ut.stop(a,!0);const c=this.mnemonics.get(l);if(c.length===1&&(c[0]instanceof wM&&c[0].container&&this.focusItemByElement(c[0].container),c[0].onClick(a)),c.length>1){const d=c.shift();d&&d.container&&(this.focusItemByElement(d.container),c.push(d)),this.mnemonics.set(l,c)}}})),dn&&this._register(G(n,ae.KEY_DOWN,a=>{const l=new Rt(a);l.equals(14)||l.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),ut.stop(a,!0)):(l.equals(13)||l.equals(12))&&(this.focusedItem=0,this.focusPrevious(),ut.stop(a,!0))})),this._register(G(this.domNode,ae.MOUSE_OUT,a=>{const l=a.relatedTarget;Ga(l,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),a.stopPropagation())})),this._register(G(this.actionsList,ae.MOUSE_OVER,a=>{let l=a.target;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}})),this._register(ft.addTarget(this.actionsList)),this._register(G(this.actionsList,xt.Tap,a=>{let l=a.initialTarget;if(!(!l||!Ga(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}}));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new p_(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this._register(G(n,xt.Change,a=>{ut.stop(a,!0);const l=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:l-a.translationY})})),this._register(G(r,ae.MOUSE_UP,a=>{a.preventDefault()})),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(a=>{var l;return!((l=i.submenuIds)===null||l===void 0)&&l.has(a.id)?(console.warn(`Found submenu cycle: ${a.id}`),!1):!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(a=>!(a instanceof HS)).forEach((a,l,c)=>{a.updatePositionInSet(l+1,c.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(Gp(e)?this.styleSheet=Qs(e):(ju.globalStyleSheet||(ju.globalStyleSheet=Qs()),this.styleSheet=ju.globalStyleSheet)),this.styleSheet.textContent=WY(t,Gp(e))}style(e){const t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);const i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",s=e.borderColor?`1px solid ${e.borderColor}`:"",r="5px",a=e.shadowColor?`0 2px 8px ${e.shadowColor}`:"";t.style.outline=s,t.style.borderRadius=r,t.style.color=i,t.style.backgroundColor=n,t.style.boxShadow=a,this.viewItems&&this.viewItems.forEach(l=>{(l instanceof GD||l instanceof HS)&&l.style(e)})}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(G(this.element,ae.MOUSE_UP,n=>{if(ut.stop(n,!0),Ls){if(new Mr(n).rightButton)return;this.onClick(n)}else setTimeout(()=>{this.onClick(n)},0)})),this._register(G(this.element,ae.CONTEXT_MENU,n=>{ut.stop(n,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=q(this.element,J("a.action-menu-item")),this._action.id===ln.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=q(this.item,J("span.menu-item-check"+m.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=q(this.item,J("span.action-label")),this.options.label&&this.options.keybinding&&(q(this.item,J("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.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){Si(this.label);let t=KE(this.getAction().label);if(t){const i=BY(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=qD.exec(t);if(n){t=_I(t),VS.lastIndex=0;let s=VS.exec(t);for(;s&&s[1];)s=VS.exec(t);const r=a=>a.replace(/&&/g,"&");s?this.label.append(WC(r(t.substr(0,s.index))," "),J("u",{"aria-hidden":"true"},s[3]),hP(r(t.substr(s.index+s[0].length))," ")):this.label.innerText=r(t).trim(),(e=this.item)===null||e===void 0||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.getAction().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.getAction().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.getAction().checked;this.item.classList.toggle("checked",!!e),e!==void 0?(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(){if(!this.menuStyle)return;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}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=t?t.toString():"")}style(e){this.menuStyle=e,this.applyStyle()}}class wM extends GD{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new Q),this.mouseOver=!1,this.expandDirection=n&&n.expandDirection!==void 0?n.expandDirection:Yv.Right,this.showScheduler=new mt(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new mt(()=>{this.element&&!Ga(Ru(),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=q(this.item,J("span.submenu-indicator"+m.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(G(this.element,ae.KEY_UP,t=>{const i=new Rt(t);(i.equals(17)||i.equals(3))&&(ut.stop(t,!0),this.createSubmenu(!0))})),this._register(G(this.element,ae.KEY_DOWN,t=>{const i=new Rt(t);Ru()===this.item&&(i.equals(17)||i.equals(3))&&ut.stop(t,!0)})),this._register(G(this.element,ae.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(G(this.element,ae.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(G(this.element,ae.FOCUS_OUT,t=>{this.element&&!Ga(Ru(),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){ut.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{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const s={top:0,left:0};return s.left=Su(e.width,t.width,{position:n===Yv.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left{new Rt(c).equals(15)&&(ut.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(G(this.submenuContainer,ae.KEY_DOWN,c=>{new Rt(c).equals(15)&&ut.stop(c,!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&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){var e;if(super.applyStyle(),!this.menuStyle)return;const i=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=i?`${i}`:""),(e=this.parentData.submenu)===null||e===void 0||e.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class HS extends fm{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function BY(o){const e=qD,t=e.exec(o);if(!t)return o;const i=!t[1];return o.replace(e,i?"$2$3":"").trim()}function WY(o,e){let t=` .monaco-menu { font-size: 13px; border-radius: 5px; @@ -550,14 +550,14 @@ ${CM(m.menuSubmenu)} .monaco-scrollable-element > .scrollbar > .slider.active { background: ${r}; } - `)}return t}function Ao(o,e){const t=Object.create(null);for(const i in e){const n=e[i];n&&(t[i]=va(n,o))}return t}function XE(o,e,t){function i(){const n=Ao(o.getColorTheme(),e);typeof t=="function"?t(n):t.style(n)}return i(),o.onDidColorThemeChange(i)}function VY(o,e,t){return XE(e,{badgeBackground:(t==null?void 0:t.badgeBackground)||gu,badgeForeground:(t==null?void 0:t.badgeForeground)||fu,badgeBorder:We},o)}function Ud(o,e,t){return XE(e,Object.assign(Object.assign({},A1),t||{}),o)}const A1={listFocusBackground:tU,listFocusForeground:iU,listFocusOutline:nU,listActiveSelectionBackground:Ua,listActiveSelectionForeground:Pr,listActiveSelectionIconForeground:$f,listFocusAndSelectionOutline:sU,listFocusAndSelectionBackground:Ua,listFocusAndSelectionForeground:Pr,listInactiveSelectionBackground:oU,listInactiveSelectionIconForeground:aU,listInactiveSelectionForeground:rU,listInactiveFocusBackground:lU,listInactiveFocusOutline:cU,listHoverBackground:dU,listHoverForeground:hU,listDropBackground:uU,listSelectionOutline:Ot,listHoverOutline:Ot,listFilterWidgetBackground:gU,listFilterWidgetOutline:fU,listFilterWidgetNoMatchesOutline:pU,listFilterWidgetShadow:mU,treeIndentGuidesStroke:_U,tableColumnsBorder:bU,tableOddRowsBackgroundColor:vU,inputActiveOptionBorder:_v,inputActiveOptionForeground:vv,inputActiveOptionBackground:bv,inputBackground:g1,inputForeground:f1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE},HY={shadowColor:Ho,borderColor:CU,foregroundColor:wU,backgroundColor:SU,selectionForegroundColor:yU,selectionBackgroundColor:LU,selectionBorderColor:DU,separatorColor:kU,scrollbarShadow:Kg,scrollbarSliderBackground:rd,scrollbarSliderHoverBackground:ad,scrollbarSliderActiveBackground:ld};function zY(o,e,t){return XE(e,Object.assign(Object.assign({},HY),t),o)}class UY{constructor(e,t,i,n,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=s,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let i;const n=l4(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{const r=e.getMenuClassName?e.getMenuClassName():"";r&&(s.className+=" "+r),this.options.blockMouse&&(this.block=s.appendChild(J(".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",G(this.block,ae.MOUSE_DOWN,c=>c.stopPropagation()));const a=new Q,l=e.actionRunner||new og;return l.onBeforeRun(this.onActionRun,this,a),l.onDidRun(this.onDidActionRun,this,a),i=new ju(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)}),a.add(zY(i,this.themeService)),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,a),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,a),a.add(G(window,ae.BLUR,()=>this.contextViewService.hideContextView(!0))),a.add(G(window,ae.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;const d=new Mr(c);let h=d.target;if(!d.rightButton){for(;h;){if(h===s)return;h=h.parentElement}this.contextViewService.hideContextView(!0)}})),qo(a,i)},focus:()=>{i==null||i.focus(!!e.autoSelectFirstItem)},onHide:s=>{var r;(r=e.onHide)===null||r===void 0||r.call(e,!!s),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},n,!!n)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!ea(e.error)&&this.notificationService.error(e.error)}}var $Y=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},If=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ZD=class extends H{constructor(e,t,i,n,s){super(),this._onDidShowContextMenu=new R,this._onDidHideContextMenu=new R,this.contextMenuHandler=new UY(i,e,t,n,s)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;(i=e.onHide)===null||i===void 0||i.call(e,t),this._onDidHideContextMenu.fire()}})),Ol.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};ZD=$Y([If(0,sr),If(1,di),If(2,vh),If(3,_i),If(4,Ct)],ZD);function Qv(o){let e=JSON.parse(o);return e=YD(e),e}function YD(o,e=0){if(!o||e>200)return o;if(typeof o=="object"){switch(o.$mid){case 1:return _e.revive(o);case 2:return new RegExp(o.source,o.flags);case 14:return new Date(o.source)}if(o instanceof UC||o instanceof Uint8Array)return o;if(Array.isArray(o))for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Jv=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ed=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let QD=class{constructor(e){this._commandService=e}open(e,t){return ed(this,void 0,void 0,function*(){if(!qE(e,Me.command))return!1;if(!(t!=null&&t.allowCommands))return!0;typeof e=="string"&&(e=_e.parse(e));let i=[];try{i=Qv(decodeURIComponent(e.query))}catch{try{i=Qv(e.query)}catch{}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0})}};QD=JE([Jv(0,ci)],QD);let XD=class{constructor(e){this._editorService=e}open(e,t){return ed(this,void 0,void 0,function*(){typeof e=="string"&&(e=_e.parse(e));const{selection:i,uri:n}=r5(e);return e=n,e.scheme===Me.file&&(e=fq(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:t!=null&&t.fromUserGesture?Xv.USER:Xv.API},t==null?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0})}};XD=JE([Jv(0,ct)],XD);let JD=class{constructor(e,t){this._openers=new Dn,this._validators=new Dn,this._resolvers=new Dn,this._resolvedUriTargets=new mn(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Dn,this._defaultExternalOpener={openExternal:i=>ed(this,void 0,void 0,function*(){return sM(i,Me.http,Me.https)?d4(i):window.location.href=i,!0})},this._openers.push({open:(i,n)=>ed(this,void 0,void 0,function*(){return(n==null?void 0:n.openExternal)||sM(i,Me.mailto,Me.http,Me.https,Me.vsls)?(yield this._doOpenExternal(i,n),!0):!1})}),this._openers.push(new QD(t)),this._openers.push(new XD(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return ed(this,void 0,void 0,function*(){const n=typeof e=="string"?_e.parse(e):e,s=(i=this._resolvedUriTargets.get(n))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!(yield r.shouldOpen(s,t)))return!1;for(const r of this._openers)if(yield r.open(e,t))return!0;return!1})}resolveExternalUri(e,t){return ed(this,void 0,void 0,function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch{}throw new Error("Could not resolve external URI: "+e.toString())})}_doOpenExternal(e,t){return ed(this,void 0,void 0,function*(){const i=typeof e=="string"?_e.parse(e):e;let n;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch{n=i}let s;if(typeof e=="string"&&i.toString()===n.toString()?s=e:s=encodeURI(n.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(yield a.openExternal(s,{sourceUri:i,preferredOpenerId:r},ze.None))return!0}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},ze.None)})}dispose(){this._validators.clear()}};JD=JE([Jv(0,ct),Jv(1,ci)],JD);var Vt;(function(o){o[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error"})(Vt||(Vt={}));(function(o){function e(r,a){return a-r}o.compare=e;const t=Object.create(null);t[o.Error]=p("sev.error","Error"),t[o.Warning]=p("sev.warning","Warning"),t[o.Info]=p("sev.info","Info");function i(r){return t[r]||""}o.toString=i;function n(r){switch(r){case Bt.Error:return o.Error;case Bt.Warning:return o.Warning;case Bt.Info:return o.Info;case Bt.Ignore:return o.Hint}}o.fromSeverity=n;function s(r){switch(r){case o.Error:return Bt.Error;case o.Warning:return Bt.Warning;case o.Info:return Bt.Info;case o.Hint:return Bt.Ignore}}o.toSeverity=s})(Vt||(Vt={}));var eC;(function(o){const e="";function t(n){return i(n,!0)}o.makeKey=t;function i(n,s){const r=[e];return n.source?r.push(n.source.replace("\xA6","\\\xA6")):r.push(e),n.code?typeof n.code=="string"?r.push(n.code.replace("\xA6","\\\xA6")):r.push(n.code.value.replace("\xA6","\\\xA6")):r.push(e),n.severity!==void 0&&n.severity!==null?r.push(Vt.toString(n.severity)):r.push(e),n.message&&s?r.push(n.message.replace("\xA6","\\\xA6")):r.push(e),n.startLineNumber!==void 0&&n.startLineNumber!==null?r.push(n.startLineNumber.toString()):r.push(e),n.startColumn!==void 0&&n.startColumn!==null?r.push(n.startColumn.toString()):r.push(e),n.endLineNumber!==void 0&&n.endLineNumber!==null?r.push(n.endLineNumber.toString()):r.push(e),n.endColumn!==void 0&&n.endColumn!==null?r.push(n.endColumn.toString()):r.push(e),r.push(e),r.join("\xA6")}o.makeKeyOptionalMessage=i})(eC||(eC={}));const na=Ye("markerService");var jY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class KY extends H{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Be(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let s=0;sthis._onModelAdded(i)),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(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new KY(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===Me.inMemory||e.uri.scheme===Me.internal||e.uri.scheme===Me.vscode)&&((t=this._markerService)===null||t===void 0||t.read({resource:e.uri}).map(n=>n.owner).forEach(n=>this._markerService.remove(n,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(n=>({range:this._createDecorationRange(e.model,n),options:this._createDecorationOption(n)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=L.lift(t);if(t.severity===Vt.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const n=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(n===1||i.endColumn>=n)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new L(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0:!1}};ek=jY([SM(0,Ut),SM(1,na)],ek);class Dp{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new Dp(e,new tC(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new L(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Dp(this._startLineNumber,n),new Dp(this._startLineNumber+r,s)]}applyEdit(e,t){const[i,n,s]=Hd(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new B(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const s=i-t;this._startLineNumber-=s;return}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,s)}}class tC{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;ae||u===e&&f>=t)&&(ue||f===e&&b>=t){if(fs?_-=s-i:_=i;else if(g===t&&f===i)if(g===n&&_>s)_-=s-i;else{d=!0;continue}else if(gs)g===t?(f=i,_=f+(_-s)):(f=0,_=f+(_-s));else{d=!0;continue}else if(g>n){if(l===0&&!d){c=a;break}g-=l}else if(g===n&&f>=s)e&&g===0&&(f+=e,_+=e),g-=l,f-=s-i,_-=s-i;else throw new Error("Not possible!");const v=4*c;r[v]=g,r[v+1]=f,r[v+2]=_,r[v+3]=b,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,s,r){const a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let d=0;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let tk=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new Ia}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),s=this._hashTable.get(e,t,n);let r;if(s)r=s.metadata,this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let c=t;for(let h=0;c>0&&h>1;c>0&&this._logService.getLevel()===Vo.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const d=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof d>"u")r=2147483647;else{if(r=0,typeof d.italic<"u"){const h=(d.italic?1:0)<<11;r|=h|1}if(typeof d.bold<"u"){const h=(d.bold?2:0)<<11;r|=h|2}if(typeof d.underline<"u"){const h=(d.underline?4:0)<<11;r|=h|4}if(typeof d.strikethrough<"u"){const h=(d.strikethrough?8:0)<<11;r|=h|8}if(d.foreground){const h=d.foreground<<15;r|=h|16}r===0&&(r=2147483647)}}else this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r),this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};tk=qY([zS(1,Ct),zS(2,Ht),zS(3,So)],tk);function g5(o,e,t){const i=o.data,n=o.data.length/5|0,s=Math.max(Math.ceil(n/1024),400),r=[];let a=0,l=1,c=0;for(;ad&&i[5*C]===0;)C--;if(C-1===d){let w=h;for(;w+1x)e.warnOverlappingSemanticTokens(k,x+1);else{const F=e.getMetadata(I,O,t);F!==2147483647&&(f===0&&(f=k),u[g]=k-f,u[g+1]=x,u[g+2]=D,u[g+3]=F,g+=4,_=k,b=D)}l=k,c=x,a++}g!==u.length&&(u=u.subarray(0,g));const v=Dp.create(f,u);r.push(v)}return r}class GY{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class Ia{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const s=this._elements;this._currentLengthIndex++,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10?t[0]:[]}function _5(o,e,t,i,n){return gc(this,void 0,void 0,function*(){const s=JY(o,e),r=yield Promise.all(s.map(a=>gc(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?i:null,n)}catch(d){c=d,l=null}return(!l||!M1(l)&&!p5(l))&&(l=null),new XY(a,l,c)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null})}function eQ(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:null}class tQ{constructor(e,t){this.provider=e,this.tokens=t}}function iQ(o,e){return o.has(e)}function b5(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:[]}function eN(o,e,t,i){return gc(this,void 0,void 0,function*(){const n=b5(o,e),s=yield Promise.all(n.map(r=>gc(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){Pi(l),a=null}return(!a||!M1(a))&&(a=null),new tQ(r,a)})));for(const r of s)if(r.tokens)return r;return s.length>0?s[0]:null})}Xe.registerCommand("_provideDocumentSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de),s=eQ(n,i);return s?s[0].getLegend():o.get(ci).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Xe.registerCommand("_provideDocumentSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de);if(!m5(n,i))return o.get(ci).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const s=yield _5(n,i,null,null,ze.None);if(!s)return;const{provider:r,tokens:a}=s;if(!a||!M1(a))return;const l=f5({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l}));Xe.registerCommand("_provideDocumentRangeSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e);const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=b5(s,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!L.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=yield eN(s,n,L.lift(i),ze.None);if(!!a)return a.provider.getLegend()}));Xe.registerCommand("_provideDocumentRangeSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e),pt(L.isIRange(i));const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=yield eN(s,n,L.lift(i),ze.None);if(!(!r||!r.tokens))return f5({id:0,type:"full",data:r.tokens.data})}));var tN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yn=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function bl(o){return o.toString()}function LM(o){const e=new YC,t=o.createSnapshot();let i;for(;i=t.read();)e.update(i);return e.digest()}class nQ{constructor(e,t,i){this._modelEventListeners=new Q,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(n=>i(e,n)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageId)),this.model.setMode(e.languageId)}}const sQ=dn||Ge?1:2;class oQ{constructor(e,t,i,n,s,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let iC=class Xf extends H{constructor(e,t,i,n,s,r,a,l,c){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=n,this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new R),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new R),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new R),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new rQ(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new nk(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,c))}static _readModelOptions(e,t){var i;let n=sn.tabSize;if(e.editor&&typeof e.editor.tabSize<"u"){const g=parseInt(e.editor.tabSize,10);isNaN(g)||(n=g),n<1&&(n=1)}let s=n;if(e.editor&&typeof e.editor.indentSize<"u"&&e.editor.indentSize!=="tabSize"){const g=parseInt(e.editor.indentSize,10);isNaN(g)||(s=g),s<1&&(s=1)}let r=sn.insertSpaces;e.editor&&typeof e.editor.insertSpaces<"u"&&(r=e.editor.insertSpaces==="false"?!1:Boolean(e.editor.insertSpaces));let a=sQ;const l=e.eol;l===`\r + `)}return t}function Ao(o,e){const t=Object.create(null);for(const i in e){const n=e[i];n&&(t[i]=va(n,o))}return t}function XE(o,e,t){function i(){const n=Ao(o.getColorTheme(),e);typeof t=="function"?t(n):t.style(n)}return i(),o.onDidColorThemeChange(i)}function VY(o,e,t){return XE(e,{badgeBackground:(t==null?void 0:t.badgeBackground)||gu,badgeForeground:(t==null?void 0:t.badgeForeground)||fu,badgeBorder:We},o)}function Ud(o,e,t){return XE(e,Object.assign(Object.assign({},A1),t||{}),o)}const A1={listFocusBackground:tU,listFocusForeground:iU,listFocusOutline:nU,listActiveSelectionBackground:Ua,listActiveSelectionForeground:Pr,listActiveSelectionIconForeground:$f,listFocusAndSelectionOutline:sU,listFocusAndSelectionBackground:Ua,listFocusAndSelectionForeground:Pr,listInactiveSelectionBackground:oU,listInactiveSelectionIconForeground:aU,listInactiveSelectionForeground:rU,listInactiveFocusBackground:lU,listInactiveFocusOutline:cU,listHoverBackground:dU,listHoverForeground:hU,listDropBackground:uU,listSelectionOutline:Ot,listHoverOutline:Ot,listFilterWidgetBackground:gU,listFilterWidgetOutline:fU,listFilterWidgetNoMatchesOutline:pU,listFilterWidgetShadow:mU,treeIndentGuidesStroke:_U,tableColumnsBorder:bU,tableOddRowsBackgroundColor:vU,inputActiveOptionBorder:_v,inputActiveOptionForeground:vv,inputActiveOptionBackground:bv,inputBackground:g1,inputForeground:f1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE},HY={shadowColor:Ho,borderColor:CU,foregroundColor:wU,backgroundColor:SU,selectionForegroundColor:yU,selectionBackgroundColor:LU,selectionBorderColor:DU,separatorColor:kU,scrollbarShadow:Kg,scrollbarSliderBackground:rd,scrollbarSliderHoverBackground:ad,scrollbarSliderActiveBackground:ld};function zY(o,e,t){return XE(e,Object.assign(Object.assign({},HY),t),o)}class UY{constructor(e,t,i,n,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=s,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let i;const n=l4(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{const r=e.getMenuClassName?e.getMenuClassName():"";r&&(s.className+=" "+r),this.options.blockMouse&&(this.block=s.appendChild(J(".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",G(this.block,ae.MOUSE_DOWN,c=>c.stopPropagation()));const a=new Q,l=e.actionRunner||new og;return l.onBeforeRun(this.onActionRun,this,a),l.onDidRun(this.onDidActionRun,this,a),i=new ju(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)}),a.add(zY(i,this.themeService)),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,a),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,a),a.add(G(window,ae.BLUR,()=>this.contextViewService.hideContextView(!0))),a.add(G(window,ae.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;const d=new Mr(c);let h=d.target;if(!d.rightButton){for(;h;){if(h===s)return;h=h.parentElement}this.contextViewService.hideContextView(!0)}})),qo(a,i)},focus:()=>{i==null||i.focus(!!e.autoSelectFirstItem)},onHide:s=>{var r;(r=e.onHide)===null||r===void 0||r.call(e,!!s),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},n,!!n)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!ea(e.error)&&this.notificationService.error(e.error)}}var $Y=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},If=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ZD=class extends H{constructor(e,t,i,n,s){super(),this._onDidShowContextMenu=new R,this._onDidHideContextMenu=new R,this.contextMenuHandler=new UY(i,e,t,n,s)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;(i=e.onHide)===null||i===void 0||i.call(e,t),this._onDidHideContextMenu.fire()}})),Ol.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};ZD=$Y([If(0,sr),If(1,di),If(2,vh),If(3,_i),If(4,Ct)],ZD);function Qv(o){let e=JSON.parse(o);return e=YD(e),e}function YD(o,e=0){if(!o||e>200)return o;if(typeof o=="object"){switch(o.$mid){case 1:return _e.revive(o);case 2:return new RegExp(o.source,o.flags);case 14:return new Date(o.source)}if(o instanceof UC||o instanceof Uint8Array)return o;if(Array.isArray(o))for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Jv=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ed=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let QD=class{constructor(e){this._commandService=e}open(e,t){return ed(this,void 0,void 0,function*(){if(!qE(e,Me.command))return!1;if(!(t!=null&&t.allowCommands))return!0;typeof e=="string"&&(e=_e.parse(e));let i=[];try{i=Qv(decodeURIComponent(e.query))}catch{try{i=Qv(e.query)}catch{}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0})}};QD=JE([Jv(0,ci)],QD);let XD=class{constructor(e){this._editorService=e}open(e,t){return ed(this,void 0,void 0,function*(){typeof e=="string"&&(e=_e.parse(e));const{selection:i,uri:n}=rF(e);return e=n,e.scheme===Me.file&&(e=fq(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:t!=null&&t.fromUserGesture?Xv.USER:Xv.API},t==null?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0})}};XD=JE([Jv(0,ct)],XD);let JD=class{constructor(e,t){this._openers=new Dn,this._validators=new Dn,this._resolvers=new Dn,this._resolvedUriTargets=new mn(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Dn,this._defaultExternalOpener={openExternal:i=>ed(this,void 0,void 0,function*(){return sM(i,Me.http,Me.https)?d4(i):window.location.href=i,!0})},this._openers.push({open:(i,n)=>ed(this,void 0,void 0,function*(){return(n==null?void 0:n.openExternal)||sM(i,Me.mailto,Me.http,Me.https,Me.vsls)?(yield this._doOpenExternal(i,n),!0):!1})}),this._openers.push(new QD(t)),this._openers.push(new XD(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return ed(this,void 0,void 0,function*(){const n=typeof e=="string"?_e.parse(e):e,s=(i=this._resolvedUriTargets.get(n))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!(yield r.shouldOpen(s,t)))return!1;for(const r of this._openers)if(yield r.open(e,t))return!0;return!1})}resolveExternalUri(e,t){return ed(this,void 0,void 0,function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch{}throw new Error("Could not resolve external URI: "+e.toString())})}_doOpenExternal(e,t){return ed(this,void 0,void 0,function*(){const i=typeof e=="string"?_e.parse(e):e;let n;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch{n=i}let s;if(typeof e=="string"&&i.toString()===n.toString()?s=e:s=encodeURI(n.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(yield a.openExternal(s,{sourceUri:i,preferredOpenerId:r},ze.None))return!0}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},ze.None)})}dispose(){this._validators.clear()}};JD=JE([Jv(0,ct),Jv(1,ci)],JD);var Vt;(function(o){o[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error"})(Vt||(Vt={}));(function(o){function e(r,a){return a-r}o.compare=e;const t=Object.create(null);t[o.Error]=p("sev.error","Error"),t[o.Warning]=p("sev.warning","Warning"),t[o.Info]=p("sev.info","Info");function i(r){return t[r]||""}o.toString=i;function n(r){switch(r){case Bt.Error:return o.Error;case Bt.Warning:return o.Warning;case Bt.Info:return o.Info;case Bt.Ignore:return o.Hint}}o.fromSeverity=n;function s(r){switch(r){case o.Error:return Bt.Error;case o.Warning:return Bt.Warning;case o.Info:return Bt.Info;case o.Hint:return Bt.Ignore}}o.toSeverity=s})(Vt||(Vt={}));var eC;(function(o){const e="";function t(n){return i(n,!0)}o.makeKey=t;function i(n,s){const r=[e];return n.source?r.push(n.source.replace("\xA6","\\\xA6")):r.push(e),n.code?typeof n.code=="string"?r.push(n.code.replace("\xA6","\\\xA6")):r.push(n.code.value.replace("\xA6","\\\xA6")):r.push(e),n.severity!==void 0&&n.severity!==null?r.push(Vt.toString(n.severity)):r.push(e),n.message&&s?r.push(n.message.replace("\xA6","\\\xA6")):r.push(e),n.startLineNumber!==void 0&&n.startLineNumber!==null?r.push(n.startLineNumber.toString()):r.push(e),n.startColumn!==void 0&&n.startColumn!==null?r.push(n.startColumn.toString()):r.push(e),n.endLineNumber!==void 0&&n.endLineNumber!==null?r.push(n.endLineNumber.toString()):r.push(e),n.endColumn!==void 0&&n.endColumn!==null?r.push(n.endColumn.toString()):r.push(e),r.push(e),r.join("\xA6")}o.makeKeyOptionalMessage=i})(eC||(eC={}));const na=Ye("markerService");var jY=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class KY extends H{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Be(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let s=0;sthis._onModelAdded(i)),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(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new KY(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===Me.inMemory||e.uri.scheme===Me.internal||e.uri.scheme===Me.vscode)&&((t=this._markerService)===null||t===void 0||t.read({resource:e.uri}).map(n=>n.owner).forEach(n=>this._markerService.remove(n,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(n=>({range:this._createDecorationRange(e.model,n),options:this._createDecorationOption(n)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=L.lift(t);if(t.severity===Vt.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const n=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(n===1||i.endColumn>=n)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new L(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0:!1}};ek=jY([SM(0,Ut),SM(1,na)],ek);class Dp{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new Dp(e,new tC(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new L(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Dp(this._startLineNumber,n),new Dp(this._startLineNumber+r,s)]}applyEdit(e,t){const[i,n,s]=Hd(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new B(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const s=i-t;this._startLineNumber-=s;return}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,n,s)}}class tC{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=n-1;else{let r=n;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=n;for(;ae||u===e&&f>=t)&&(ue||f===e&&b>=t){if(fs?_-=s-i:_=i;else if(g===t&&f===i)if(g===n&&_>s)_-=s-i;else{d=!0;continue}else if(gs)g===t?(f=i,_=f+(_-s)):(f=0,_=f+(_-s));else{d=!0;continue}else if(g>n){if(l===0&&!d){c=a;break}g-=l}else if(g===n&&f>=s)e&&g===0&&(f+=e,_+=e),g-=l,f-=s-i,_-=s-i;else throw new Error("Not possible!");const v=4*c;r[v]=g,r[v+1]=f,r[v+2]=_,r[v+3]=b,c++}this._tokenCount=c}acceptInsertText(e,t,i,n,s,r){const a=i===0&&n===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let d=0;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let tk=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new Ia}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),s=this._hashTable.get(e,t,n);let r;if(s)r=s.metadata,this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let c=t;for(let h=0;c>0&&h>1;c>0&&this._logService.getLevel()===Vo.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const d=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof d>"u")r=2147483647;else{if(r=0,typeof d.italic<"u"){const h=(d.italic?1:0)<<11;r|=h|1}if(typeof d.bold<"u"){const h=(d.bold?2:0)<<11;r|=h|2}if(typeof d.underline<"u"){const h=(d.underline?4:0)<<11;r|=h|4}if(typeof d.strikethrough<"u"){const h=(d.strikethrough?8:0)<<11;r|=h|8}if(d.foreground){const h=d.foreground<<15;r|=h|16}r===0&&(r=2147483647)}}else this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,n,r),this._logService.getLevel()===Vo.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${qi.getForeground(r)}, fontStyle ${qi.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};tk=qY([zS(1,Ct),zS(2,Ht),zS(3,So)],tk);function gF(o,e,t){const i=o.data,n=o.data.length/5|0,s=Math.max(Math.ceil(n/1024),400),r=[];let a=0,l=1,c=0;for(;ad&&i[5*C]===0;)C--;if(C-1===d){let w=h;for(;w+1x)e.warnOverlappingSemanticTokens(k,x+1);else{const F=e.getMetadata(I,O,t);F!==2147483647&&(f===0&&(f=k),u[g]=k-f,u[g+1]=x,u[g+2]=D,u[g+3]=F,g+=4,_=k,b=D)}l=k,c=x,a++}g!==u.length&&(u=u.subarray(0,g));const v=Dp.create(f,u);r.push(v)}return r}class GY{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class Ia{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const s=this._elements;this._currentLengthIndex++,this._currentLength=Ia._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10?t[0]:[]}function _F(o,e,t,i,n){return gc(this,void 0,void 0,function*(){const s=JY(o,e),r=yield Promise.all(s.map(a=>gc(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?i:null,n)}catch(d){c=d,l=null}return(!l||!M1(l)&&!pF(l))&&(l=null),new XY(a,l,c)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null})}function eQ(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:null}class tQ{constructor(e,t){this.provider=e,this.tokens=t}}function iQ(o,e){return o.has(e)}function bF(o,e){const t=o.orderedGroups(e);return t.length>0?t[0]:[]}function eN(o,e,t,i){return gc(this,void 0,void 0,function*(){const n=bF(o,e),s=yield Promise.all(n.map(r=>gc(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){Pi(l),a=null}return(!a||!M1(a))&&(a=null),new tQ(r,a)})));for(const r of s)if(r.tokens)return r;return s.length>0?s[0]:null})}Xe.registerCommand("_provideDocumentSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de),s=eQ(n,i);return s?s[0].getLegend():o.get(ci).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Xe.registerCommand("_provideDocumentSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t]=e;pt(t instanceof _e);const i=o.get(Ut).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=o.get(de);if(!mF(n,i))return o.get(ci).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const s=yield _F(n,i,null,null,ze.None);if(!s)return;const{provider:r,tokens:a}=s;if(!a||!M1(a))return;const l=fF({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l}));Xe.registerCommand("_provideDocumentRangeSemanticTokensLegend",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e);const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=bF(s,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!L.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=yield eN(s,n,L.lift(i),ze.None);if(!!a)return a.provider.getLegend()}));Xe.registerCommand("_provideDocumentRangeSemanticTokens",(o,...e)=>gc(void 0,void 0,void 0,function*(){const[t,i]=e;pt(t instanceof _e),pt(L.isIRange(i));const n=o.get(Ut).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:s}=o.get(de),r=yield eN(s,n,L.lift(i),ze.None);if(!(!r||!r.tokens))return fF({id:0,type:"full",data:r.tokens.data})}));var tN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yn=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function bl(o){return o.toString()}function LM(o){const e=new YC,t=o.createSnapshot();let i;for(;i=t.read();)e.update(i);return e.digest()}class nQ{constructor(e,t,i){this._modelEventListeners=new Q,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(n=>i(e,n)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageId)),this.model.setMode(e.languageId)}}const sQ=dn||Ge?1:2;class oQ{constructor(e,t,i,n,s,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let iC=class Xf extends H{constructor(e,t,i,n,s,r,a,l,c){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=n,this._undoRedoService=s,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new R),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new R),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new R),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new rQ(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new nk(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,c))}static _readModelOptions(e,t){var i;let n=sn.tabSize;if(e.editor&&typeof e.editor.tabSize<"u"){const g=parseInt(e.editor.tabSize,10);isNaN(g)||(n=g),n<1&&(n=1)}let s=n;if(e.editor&&typeof e.editor.indentSize<"u"&&e.editor.indentSize!=="tabSize"){const g=parseInt(e.editor.indentSize,10);isNaN(g)||(s=g),s<1&&(s=1)}let r=sn.insertSpaces;e.editor&&typeof e.editor.insertSpaces<"u"&&(r=e.editor.insertSpaces==="false"?!1:Boolean(e.editor.insertSpaces));let a=sQ;const l=e.eol;l===`\r `?a=2:l===` `&&(a=1);let c=sn.trimAutoWhitespace;e.editor&&typeof e.editor.trimAutoWhitespace<"u"&&(c=e.editor.trimAutoWhitespace==="false"?!1:Boolean(e.editor.trimAutoWhitespace));let d=sn.detectIndentation;e.editor&&typeof e.editor.detectIndentation<"u"&&(d=e.editor.detectIndentation==="false"?!1:Boolean(e.editor.detectIndentation));let h=sn.largeFileOptimizations;e.editor&&typeof e.editor.largeFileOptimizations<"u"&&(h=e.editor.largeFileOptimizations==="false"?!1:Boolean(e.editor.largeFileOptimizations));let u=sn.bracketPairColorizationOptions;return((i=e.editor)===null||i===void 0?void 0:i.bracketPairColorization)&&typeof e.editor.bracketPairColorization=="object"&&(u={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:s,insertSpaces:r,detectIndentation:d,defaultEOL:a,trimAutoWhitespace:c,largeFileOptimizations:h,bracketPairColorizationOptions:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&typeof i=="string"&&i!=="auto"?i:Os===3||Os===2?` `:`\r -`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){let n=this._modelCreationOptionsByLanguageAndResource[e+t];if(!n){const s=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._getEOL(t,e);n=Xf._readModelOptions({editor:s,eol:r},i),this._modelCreationOptionsByLanguageAndResource[e+t]=n}return n}_updateModelOptions(){const e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const t=Object.keys(this._models);for(let i=0,n=t.length;ie){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,n)=>i.time-n.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),r=new il(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(bl(i))){const c=this._removeDisposedModel(i),d=this._undoRedoService.getElements(i),h=LM(r)===c.sha1;if(h||c.sharesUndoRedoStack){for(const u of d.past)ka(u)&&u.matchesResource(i)&&u.setModel(r);for(const u of d.future)ka(u)&&u.matchesResource(i)&&u.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,u=>ka(u)&&u.matchesResource(i)),h&&(r._overwriteVersionId(c.versionId),r._overwriteAlternativeVersionId(c.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(c.initialUndoRedoSnapshot))}else c.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(c.initialUndoRedoSnapshot)}const a=bl(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new nQ(r,c=>this._onWillDispose(c),(c,d)=>this._onDidChangeLanguage(c,d));return this._models[a]=l,l}createModel(e,t,i,n=!1){let s;return t?(s=this._createModelData(e,t.languageId,i,n),this.setMode(s.model,t)):s=this._createModelData(e,Ks,i,n),this._onModelAdded.fire(s.model),s.model}setMode(e,t){if(!t)return;const i=this._models[bl(e.uri)];!i||i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||l.future.length>0){for(const c of l.past)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of l.future)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=Xf.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(s)if(!n&&r>a){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,l=>ka(l)&&l.matchesResource(e.uri)),this._insertDisposedModel(new oQ(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,LM(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!n){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}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(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Xf._setModelOptionsForModel(e,r,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}};iC.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;iC=tN([yn(0,ot),yn(1,VP),yn(2,Ct),yn(3,So),yn(4,D1),yn(5,Ht),yn(6,si),yn(7,no),yn(8,de)],iC);const iN="editor.semanticHighlighting";function ik(o,e,t){var i;const n=(i=t.getValue(iN,{overrideIdentifier:o.getLanguageId(),resource:o.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}let nk=class extends H{constructor(e,t,i,n,s,r){super(),this._watchers=Object.create(null),this._semanticStyling=e;const a=d=>{this._watchers[d.uri.toString()]=new wm(d,this._semanticStyling,i,s,r)},l=(d,h)=>{h.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(const d of t.getModels()){const h=this._watchers[d.uri.toString()];ik(d,i,n)?h||a(d):h&&l(d,h)}};this._register(t.onModelAdded(d=>{ik(d,i,n)&&a(d)})),this._register(t.onModelRemoved(d=>{const h=this._watchers[d.uri.toString()];h&&l(d,h)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(iN)&&c()})),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};nk=tN([yn(1,Ut),yn(2,Ct),yn(3,ot),yn(4,no),yn(5,de)],nk);class rQ extends H{constructor(e,t,i){super(),this._themeService=e,this._languageService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new tk(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class aQ{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let wm=class qc extends H{constructor(e,t,i,n,s){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=t,this._provider=s.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:qc.REQUEST_MIN_DELAY,max:qc.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new mt(()=>this._fetchDocumentSemanticTokensNow(),qc.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{nt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!m5(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}const e=new Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=_5(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const s=[],r=this._model.onDidChangeContent(l=>{s.push(l)}),a=new $n(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,s);else{const{provider:c,tokens:d}=l,h=this._semanticStyling.get(c);this._setDocumentSemanticTokens(c,d||null,h,s)}},l=>{l&&(ea(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||Te(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),s.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let r=0;r{n.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),r();return}if(p5(t)){if(!s){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:s.data};else{let a=0;for(const u of t.edits)a+=(u.data?u.data.length:0)-u.deleteCount;const l=s.data,c=new Uint32Array(l.length+a);let d=l.length,h=c.length;for(let u=t.edits.length-1;u>=0;u--){const g=t.edits[u];if(g.start>l.length){i.warnInvalidEditStart(s.resultId,t.resultId,u,g.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}const f=d-(g.start+g.deleteCount);f>0&&(qc._copy(l,d-f,c,h-f,f),h-=f),g.data&&(qc._copy(g.data,0,c,h-g.data.length,g.data.length),h-=g.data.length),d=g.start}d>0&&qc._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(M1(t)){this._currentDocumentResponse=new aQ(e,t.resultId,t.data);const a=g5(t,i,this._model.getLanguageId());if(n.length>0)for(const l of n)for(const c of a)for(const d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}};wm.REQUEST_MIN_DELAY=300;wm.REQUEST_MAX_DELAY=2e3;wm=tN([yn(2,Ct),yn(3,no),yn(4,de)],wm);const lQ=new RegExp(`(\\\\)?\\$\\((${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?)\\)`,"g");function wd(o){const e=new Array;let t,i=0,n=0;for(;(t=lQ.exec(o))!==null;){n=t.index||0,e.push(o.substring(i,n)),i=(t.index||0)+t[0].length;const[,s,r]=t;e.push(s?`$(${r})`:cQ({id:r}))}return i{this._register(G(this._element,i,n=>{if(!this.enabled){ut.stop(n);return}this._onDidClick.fire(n)}))}),this._register(G(this._element,ae.KEY_DOWN,i=>{const n=new Rt(i);let s=!1;this.enabled&&(n.equals(3)||n.equals(10))?(this._onDidClick.fire(i),s=!0):n.equals(9)&&(this._element.blur(),s=!0),s&&ut.stop(n,!0)})),this._register(G(this._element,ae.MOUSE_OVER,i=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(G(this._element,ae.MOUSE_OUT,i=>{this.applyStyles()})),this.focusTracker=this._register(Od(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;this.options.secondary?e=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?oc(this._element,...wd(e)):this._element.textContent=e,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=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")}}const hQ={badgeBackground:W.fromHex("#4D4D4D"),badgeForeground:W.fromHex("#FFFFFF")};class sk{constructor(e,t){this.count=0,this.options=t||Object.create(null),Jr(this.options,hQ,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=q(e,J(".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(){this.element.textContent=Vs(this.countFormat,this.count),this.element.title=Vs(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}const kM="done",xM="active",US="infinite",$S="infinite-long-running",IM="discrete",uQ={progressBarBackground:W.fromHex("#0E70C0")};class R1 extends H{constructor(e,t){super(),this.options=t||Object.create(null),Jr(this.options,uQ,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new mt(()=>bs(this.element),0)),this.longRunningScheduler=this._register(new mt(()=>this.infiniteLongRunning(),R1.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){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.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(xM,US,$S,IM),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(kM),this.element.classList.contains(US)?(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(IM,kM,$S),this.element.classList.add(xM,US),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add($S)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}R1.LONG_RUNNING_INFINITE_THRESHOLD=1e4;class nN{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const v5=new nN("id#");const jS={},gQ=new nN("quick-input-button-icon-");function ok(o){if(!o)return;let e;const t=o.dark.toString();return jS[t]?e=jS[t]:(e=gQ.nextId(),nD(`.${e}, .hc-light .${e}`,`background-image: ${Pd(o.light||o.dark)}`),nD(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${Pd(o.dark)}`),jS[t]=e),e}const fQ={ctrlCmd:!1,alt:!1};var Sm;(function(o){o[o.Blur=1]="Blur",o[o.Gesture=2]="Gesture",o[o.Other=3]="Other"})(Sm||(Sm={}));var To;(function(o){o[o.NONE=0]="NONE",o[o.FIRST=1]="FIRST",o[o.SECOND=2]="SECOND",o[o.LAST=3]="LAST"})(To||(To={}));function pQ(o,e={}){const t=sN(e);return t.textContent=o,t}function C5(o,e={}){const t=sN(e);return w5(t,_Q(o,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function sN(o){const e=o.inline?"span":"div",t=document.createElement(e);return o.className&&(t.className=o.className),t}class mQ{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 w5(o,e,t,i){let n;if(e.type===2)n=document.createTextNode(e.content||"");else if(e.type===3)n=document.createElement("b");else if(e.type===4)n=document.createElement("i");else if(e.type===7&&i)n=document.createElement("code");else if(e.type===5&&t){const s=document.createElement("a");t.disposables.add(ki(s,"click",r=>{t.callback(String(e.index),r)})),n=s}else e.type===8?n=document.createElement("br"):e.type===1&&(n=o);n&&o!==n&&o.appendChild(n),n&&Array.isArray(e.children)&&e.children.forEach(s=>{w5(n,s,t,i)})}function _Q(o,e){const t={type:1,children:[]};let i=0,n=t;const s=[],r=new mQ(o);for(;!r.eos();){let a=r.next();const l=a==="\\"&&rk(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&bQ(a,e)&&a===r.peek()){r.advance(),n.type===2&&(n=s.pop());const c=rk(a,e);if(n.type===c||n.type===5&&c===6)n=s.pop();else{const d={type:c,children:[]};c===5&&(d.index=i,i++),n.children.push(d),s.push(n),n=d}}else if(a===` -`)n.type===2&&(n=s.pop()),n.children.push({type:8});else if(n.type!==2){const c={type:2,content:a};n.children.push(c),s.push(n),n=c}else n.content+=a}return n.type===2&&(n=s.pop()),t}function bQ(o,e){return rk(o,e)!==0}function rk(o,e){switch(o){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}class vQ{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 CQ{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._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new vQ(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}}const Ef=J,wQ={inputBackground:W.fromHex("#3C3C3C"),inputForeground:W.fromHex("#CCCCCC"),inputValidationInfoBorder:W.fromHex("#55AAFF"),inputValidationInfoBackground:W.fromHex("#063B49"),inputValidationWarningBorder:W.fromHex("#B89500"),inputValidationWarningBackground:W.fromHex("#352A05"),inputValidationErrorBorder:W.fromHex("#BE1100"),inputValidationErrorBackground:W.fromHex("#5A1D1D")};class S5 extends yo{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new R),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),Jr(this.options,wQ,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(n=this.options.tooltip)!==null&&n!==void 0?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=q(e,Ef(".monaco-inputbox.idle"));const s=this.options.flexibleHeight?"textarea":"input",r=q(this.element,Ef(".ibwrapper"));if(this.input=q(r,Ef(s+".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=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=q(r,Ef("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new iF(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),q(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(c=>this.input.scrollTop=c.scrollTop));const a=this._register(new bt(document,"selectionchange")),l=ge.filter(a.event,()=>{const c=document.getSelection();return(c==null?void 0:c.anchorNode)===r});this._register(l(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.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new Zr(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}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}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 typeof this.cachedHeight=="number"?this.cachedHeight:iD(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===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()}get width(){return co(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const i=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=i+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!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){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=i.border?`1px solid ${i.border}`:"",(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())),e==null?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.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=co(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:n=>{if(!this.message)return null;e=q(n,Ef(".monaco-inputbox-container")),t();const s={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?C5(this.message.content,s):pQ(this.message.content,s);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",q(e,r),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=p("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=p("alertWarningMessage","Warning: {0}",this.message.content):i=p("alertInfoMessage","Info: {0}",this.message.content),Gi(i),this.state="open"}_hideMessage(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText="\xA0",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=iD(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,s=t.value;i!==null&&n!==null&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class y5 extends S5{constructor(e,t,i){const n=p({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history"]},"for history"),s=` or \u21C5 ${n}`,r=` (\u21C5 ${n})`;super(e,t,i),this._onDidFocus=this._register(new R),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this.history=new CQ(i.history,100);const a=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(s)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const l=this.placeholder.endsWith(")")?s:r,c=this.placeholder+l;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=c:this.setPlaceHolder(c)}};this.observer=new MutationObserver((l,c)=>{l.forEach(d=>{d.target.textContent||a()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>a()),this.onblur(this.input,()=>{const l=c=>{if(this.placeholder.endsWith(c)){const d=this.placeholder.slice(0,this.placeholder.length-c.length);return i.showPlaceholderOnFocus?this.placeholder=d:this.setPlaceHolder(d),!0}else return!1};l(r)||l(s)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,dv(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,dv(this.value))}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()||this.history.last()}}const SQ=J;class yQ extends H{constructor(e){super(),this.parent=e,this.onKeyDown=t=>G(this.inputBox.inputElement,ae.KEY_DOWN,i=>{t(new Rt(i))}),this.onMouseDown=t=>G(this.inputBox.inputElement,ae.MOUSE_DOWN,i=>{t(new Mr(i))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=q(this.parent,SQ(".quick-input-box")),this.inputBox=this._register(new S5(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return this.inputBox.inputElement.type==="password"}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Bt.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Bt.Info?1:e===Bt.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Bt.Info?1:e===Bt.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}class $d{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=q(e,J("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=$d.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&$s(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=s===`\r -`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=n),a.end>=r&&(a.end+=n));return i+=n,"\u23CE"})}}class KS{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 nC extends H{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new KS(q(e,J(".monaco-icon-label")))),this.labelContainer=q(this.domNode.element,J(".monaco-icon-label-container"));const i=q(this.labelContainer,J("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new KS(q(this.labelContainer,J("span.monaco-icon-description-container")))),(t==null?void 0:t.supportHighlights)||(t==null?void 0:t.supportIcons)?this.nameNode=new kQ(i,!!t.supportIcons):this.nameNode=new LQ(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new $d(q(this.descriptionContainer.element,J("span.label-description")),{supportIcons:!!t.supportIcons}):this.descriptionNodeFactory=()=>this._register(new KS(q(this.descriptionContainer.element,J("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof $d?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)bZ(e,t);else{const n=zF(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class LQ{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=q(this.container,J("a.label-name",{id:t==null?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 s={start:i,end:i+n.length},r=t.map(a=>en.intersect(s,a)).filter(a=>!en.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=s.end+e.length,r})}class kQ{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new $d(q(this.container,J("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=DQ(e,i,t==null?void 0:t.matches);for(let s=0;s{const o=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:o,collatorIsNumeric:o.resolvedOptions().numeric}});new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0})}));new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function xQ(o,e,t=!1){const i=o||"",n=e||"",s=EM.value.collator.compare(i,n);return EM.value.collatorIsNumeric&&s===0&&i!==n?in.length)return 1}return 0}var L5=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},NQ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const br=J;class TQ{constructor(e){this.hidden=!1,this._onChecked=new R,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class C_{get templateId(){return C_.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=q(e,br(".quick-input-list-entry"));const i=q(t.entry,br("label.quick-input-list-label"));t.toDisposeTemplate.push(ki(i,ae.CLICK,c=>{t.checkbox.offsetParent||c.preventDefault()})),t.checkbox=q(i,br("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(ki(t.checkbox,ae.CHANGE,c=>{t.element.checked=t.checkbox.checked}));const n=q(i,br(".quick-input-list-rows")),s=q(n,br(".quick-input-list-row")),r=q(n,br(".quick-input-list-row"));t.label=new nC(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=q(s,br(".quick-input-list-entry-keybinding"));t.keybinding=new oN(a,Os);const l=q(r,br(".quick-input-list-label-meta"));return t.detail=new nC(l,{supportHighlights:!0,supportIcons:!0}),t.separator=q(t.entry,br(".quick-input-list-separator")),t.actionBar=new Zr(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(c=>i.checkbox.checked=c));const{labelHighlights:n,descriptionHighlights:s,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=s||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),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),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((c,d)=>{let h=c.iconClass||(c.iconPath?ok(c.iconPath):void 0);c.alwaysVisible&&(h=h?`${h} always-visible`:"always-visible");const u=new is(`id-${d}`,"",h,!0,()=>NQ(this,void 0,void 0,function*(){e.fireButtonTriggered({button:c,item:e.item})}));return u.tooltip=c.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=nt(e.toDisposeElement),e.toDisposeTemplate=nt(e.toDisposeTemplate)}}C_.ID="listelement";class AQ{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return C_.ID}}var oi;(function(o){o[o.First=1]="First",o[o.Second=2]="Second",o[o.Last=3]="Last",o[o.Next=4]="Next",o[o.Previous=5]="Previous",o[o.NextPage=6]="NextPage",o[o.PreviousPage=7]="PreviousPage"})(oi||(oi={}));class rN{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new R,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new R,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new R,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new R,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new R,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new R,this.onKeyDown=this._onKeyDown.event,this._onLeave=new R,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=q(this.parent,br(".quick-input-list"));const n=new AQ,s=new OQ;this.list=i.createList("QuickInput",this.container,n,[new C_],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Rt(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(Ge?r.metaKey:r.ctrlKey)&&this.list.setFocus(Cn(this.list.length));break;case 16:{const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break}case 18:{const l=this.list.getFocus();l.length===1&&l[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(G(this.container,ae.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return ge.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=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=nt(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,s)=>{var r,a,l;if(n.type!=="separator"){const c=s&&e[s-1],d=n.label&&n.label.replace(/\r?\n/g," "),h=Wh(d).text.trim(),u=n.meta&&n.meta.replace(/\r?\n/g," "),g=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),_=n.ariaLabel||[d,g,f].map(v=>sB(v)).filter(v=>!!v).join(", "),b=this.parent.classList.contains("show-checkboxes");i.push(new TQ({hasCheckbox:b,index:s,item:n,saneLabel:d,saneSortLabel:h,saneMeta:u,saneAriaLabel:_,saneDescription:g,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:c&&c.type==="separator"?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,s)=>(i.set(n.item,s),i),new Map),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(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.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===oi.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=oi.First),e===oi.Previous&&this.list.getFocus()[0]===0&&(e=oi.Last),e===oi.Second&&this.list.length<2&&(e=oi.First),e){case oi.First:this.list.focusFirst();break;case oi.Second:this.list.focusNth(1);break;case oi.Last:this.list.focusLast();break;case oi.Next:this.list.focusNext();break;case oi.Previous:this.list.focusPrevious();break;case oi.NextPage:this.list.focusNextPage();break;case oi.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}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))this.elements.forEach(n=>{n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!1;const s=n.index&&this.inputElements[n.index-1];n.separator=s&&s.type==="separator"?s:void 0});else{let n;this.elements.forEach(s=>{let r;this.matchOnLabelMode==="fuzzy"?r=this.matchOnLabel?Wn(Db(e,Wh(s.saneLabel))):void 0:r=this.matchOnLabel?Wn(MQ(t,Wh(s.saneLabel))):void 0;const a=this.matchOnDescription?Wn(Db(e,Wh(s.saneDescription||""))):void 0,l=this.matchOnDetail?Wn(Db(e,Wh(s.saneDetail||""))):void 0,c=this.matchOnMeta?Wn(Db(e,Wh(s.saneMeta||""))):void 0;if(r||a||l||c?(s.labelHighlights=r,s.descriptionHighlights=a,s.detailHighlights=l,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item.alwaysShow),s.separator=void 0,!this.sortByLabel){const d=s.index&&this.inputElements[s.index-1];n=d&&d.type==="separator"?d:n,n&&!s.hidden&&(s.separator=n,n=void 0)}})}const i=this.elements.filter(n=>!n.hidden);if(this.sortByLabel&&e){const n=e.toLowerCase();i.sort((s,r)=>RQ(s,r,n))}return this.elementsToIndexes=i.reduce((n,s,r)=>(n.set(s.item,r),n),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 this.container.style.display!=="none"}dispose(){this.elementDisposables=nt(this.elementDisposables),this.disposables=nt(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)}style(e){this.list.style(e)}}L5([pi],rN.prototype,"onDidChangeFocus",null);L5([pi],rN.prototype,"onDidChangeSelection",null);function MQ(o,e){const{text:t,iconOffsets:i}=e;if(!i||i.length===0)return NM(o,t);const n=WC(t," "),s=t.length-n.length,r=NM(o,n);if(r)for(const a of r){const l=i[a.start+s]+s;a.start+=l,a.end+=l}return r}function NM(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t!==-1?[{start:t,end:t+o.length}]:null}function RQ(o,e,t){const i=o.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:IQ(o.saneSortLabel,e.saneSortLabel,t)}class OQ{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){var t;return!((t=e.separator)===null||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 TM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const ds=J,ak={iconClass:m.quickInputBack.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class O1 extends H{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=O1.noPromptMessage,this._severity=Bt.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new R),this.onDidHideEmitter=this._register(new R),this.onDisposeEmitter=this._register(new R),this.visibleDisposables=this._register(new Q),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&&!Ur;this._ignoreFocusOut=e&&!Ur,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!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=>{this.buttons.indexOf(e)!==-1&&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.update())}hide(){!this.visible||this.ui.hide()}didHide(e=Sm.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new xs,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 n=this.buttons.filter(r=>r===ak);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const s=this.buttons.filter(r=>r!==ak);this.ui.rightActionBar.push(s.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,oc(this.ui.message,...wd(i))),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?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Bt.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()}}O1.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ym extends O1{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new R),this.onWillAcceptEmitter=this._register(new R),this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),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._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?To.NONE:To.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new R),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new R),this.onDidTriggerItemButtonEmitter=this._register(new R),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}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){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&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 autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=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?fQ: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.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(oi.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(oi.Next),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(oi.Previous):this.ui.list.focus(oi.Last),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 12:this.ui.list.focus(oi.NextPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 11:this.ui.list.focus(oi.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!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(oi.First),ut.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(oi.Last),ut.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&&Ss(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.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 G(this.ui.container,ae.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Rt(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(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._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?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||(n=this.placeholder||ym.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),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 To.NONE:this._itemActivation=To.FIRST;break;case To.SECOND:this.ui.list.focus(oi.Second),this._itemActivation=To.FIRST;break;case To.LAST:this.ui.list.focus(oi.Last),this._itemActivation=To.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||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(oi.First)),this.keepScrollPosition&&(this.scrollTop=e)}}ym.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class P1 extends H{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),this.onDidTriggerButtonEmitter=this._register(new R),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new R),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new R),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(G(window,ae.KEY_DOWN,e,!0)),this._register(G(window,ae.KEY_UP,e,!0)),this._register(G(window,ae.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=q(this.parentElement,ds(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Qs(e),i=q(e,ds(".quick-input-titlebar")),n=this._register(new Zr(i));n.domNode.classList.add("quick-input-left-action-bar");const s=q(i,ds(".quick-input-title")),r=this._register(new Zr(i));r.domNode.classList.add("quick-input-right-action-bar");const a=q(e,ds(".quick-input-description")),l=q(e,ds(".quick-input-header")),c=q(l,ds("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",p("quickInput.checkAll","Toggle all checkboxes")),this._register(ki(c,ae.CHANGE,O=>{const F=c.checked;y.setAllVisibleChecked(F)})),this._register(G(c,ae.CLICK,O=>{(O.x||O.y)&&g.setFocus()}));const d=q(l,ds(".quick-input-description")),h=q(l,ds(".quick-input-and-message")),u=q(h,ds(".quick-input-filter")),g=this._register(new yQ(u));g.setAttribute("aria-describedby",`${this.idPrefix}message`);const f=q(u,ds(".quick-input-visible-count"));f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true");const _=new sk(f,{countFormat:p({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")}),b=q(u,ds(".quick-input-count"));b.setAttribute("aria-live","polite");const v=new sk(b,{countFormat:p({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")}),C=q(l,ds(".quick-input-action")),w=new DM(C);w.label=p("ok","OK"),this._register(w.onDidClick(O=>{this.onDidAcceptEmitter.fire()}));const S=q(l,ds(".quick-input-action")),k=new DM(S);k.label=p("custom","Custom"),this._register(k.onDidClick(O=>{this.onDidCustomEmitter.fire()}));const x=q(h,ds(`#${this.idPrefix}message.quick-input-message`)),y=this._register(new rN(e,this.idPrefix+"list",this.options));this._register(y.onChangedAllVisibleChecked(O=>{c.checked=O})),this._register(y.onChangedVisibleCount(O=>{_.setCount(O)})),this._register(y.onChangedCheckedCount(O=>{v.setCount(O)})),this._register(y.onLeave(()=>{setTimeout(()=>{g.setFocus(),this.controller instanceof ym&&this.controller.canSelectMany&&y.clearFocus()},0)})),this._register(y.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new R1(e);D.getContainer().classList.add("quick-input-progress");const I=Od(e);return this._register(I),this._register(G(e,ae.FOCUS,O=>{this.previousFocusElement=O.relatedTarget instanceof HTMLElement?O.relatedTarget:void 0},!0)),this._register(I.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(Sm.Blur),this.previousFocusElement=void 0})),this._register(G(e,ae.FOCUS,O=>{g.setFocus()})),this._register(G(e,ae.KEY_DOWN,O=>{const F=new Rt(O);switch(F.keyCode){case 3:ut.stop(O,!0),this.onDidAcceptEmitter.fire();break;case 9:ut.stop(O,!0),this.hide(Sm.Gesture);break;case 2:if(!F.altKey&&!F.ctrlKey&&!F.metaKey){const z=[".action-label.codicon"];e.classList.contains("show-checkboxes")?z.push("input"):z.push("input[type=text]"),this.getUI().list.isDisplayed()&&z.push(".monaco-list");const j=e.querySelectorAll(z.join(", "));F.shiftKey&&F.target===j[0]?(ut.stop(O,!0),j[j.length-1].focus()):!F.shiftKey&&F.target===j[j.length-1]&&(ut.stop(O,!0),j[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:s,description1:a,description2:d,rightActionBar:r,checkAll:c,filterContainer:u,inputBox:g,visibleCountContainer:f,visibleCount:_,countContainer:b,count:v,okContainer:C,ok:w,message:x,customButtonContainer:S,customButton:k,list:y,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:O=>this.show(O),hide:()=>this.hide(),setVisibilities:O=>this.setVisibilities(O),setComboboxAccessibility:O=>this.setComboboxAccessibility(O),setEnabled:O=>this.setEnabled(O),setContextKey:O=>this.options.setContextKey(O)},this.updateStyles(),this.ui}pick(e,t={},i=ze.None){return new Promise((n,s)=>{let r=d=>{var h;r=n,(h=t.onKeyMods)===null||h===void 0||h.call(t,a.keyMods),n(d)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const d=a.activeItems[0];d&&(r(d),a.hide())}}),a.onDidChangeActive(d=>{const h=d[0];h&&t.onDidFocus&&t.onDidFocus(h)}),a.onDidChangeSelection(d=>{if(!a.canSelectMany){const h=d[0];h&&(r(h),a.hide())}}),a.onDidTriggerItemButton(d=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},d),{removeItem:()=>{const h=a.items.indexOf(d.item);if(h!==-1){const u=a.items.slice(),g=u.splice(h,1),f=a.activeItems.filter(b=>b!==g[0]),_=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,f&&(a.activeItems=f),a.keepScrollPosition=_}}}))),a.onDidChangeValue(d=>{l&&!d&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{nt(c),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([d,h])=>{l=h,a.busy=!1,a.items=d,a.canSelectMany&&(a.selectedItems=d.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,d=>{s(d),a.hide()})})}createQuickPick(){const e=this.getUI();return new ym(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Bt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),oc(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,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();ak.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}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.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[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!n){let s=this.previousFocusElement;for(;s&&!s.offsetParent;)s=Wn(s.parentElement);s!=null&&s.offsetParent?(s.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,P1.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(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 a=r.join(` -`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}P1.MAX_WIDTH=600;class PQ{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}class Vh extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function AM(o,e){const t=[];for(const i of e){if(o.start>=i.range.end)continue;if(o.ende.concat(t),[]))}class MM{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const n=i.length-t,s=AM({start:0,end:e},this.groups),r=AM({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:lk(l.range,n),size:l.size})),a=i.map((l,c)=>({range:{start:e+c,end:e+c+1},size:l.size}));this.groups=BQ(s,a,r),this._size=this.groups.reduce((l,c)=>l+c.size*(c.range.end-c.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;let t=0,i=0;for(const n of this.groups){const s=n.range.end-n.range.start,r=i+s*n.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var xc=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const gr={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(o){return[o]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w_{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class HQ{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class zQ{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;tn,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class Lo{constructor(e,t,i,n=gr){var s,r,a,l,c,d,h,u,g,f;if(this.virtualDelegate=t,this.domId=`list_id_${++Lo.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Kr(50),this.splicing=!1,this.dragOverAnimationStopDisposable=H.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=H.None,this.onDragLeaveTimeout=H.None,this.disposables=new Q,this._onDidChangeContentHeight=new R,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=new MM;for(const b of i)this.renderers.set(b.templateId,b);this.cache=this.disposables.add(new VQ(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",typeof n.mouseSupport=="boolean"?n.mouseSupport:!0),this._horizontalScrolling=(s=n.horizontalScrolling)!==null&&s!==void 0?s:gr.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof n.additionalScrollHeight>"u"?0:n.additionalScrollHeight,this.accessibilityProvider=new $Q(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((r=n.transformOptimization)!==null&&r!==void 0?r:gr.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(ft.addTarget(this.rowsContainer)),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:(a=n.smoothScrolling)!==null&&a!==void 0&&a?125:0,scheduleAtNextAnimationFrame:b=>Jo(b)}),this.scrollableElement=this.disposables.add(new pE(this.rowsContainer,{alwaysConsumeMouseWheel:(l=n.alwaysConsumeMouseWheel)!==null&&l!==void 0?l:gr.alwaysConsumeMouseWheel,horizontal:1,vertical:(c=n.verticalScrollMode)!==null&&c!==void 0?c:gr.verticalScrollMode,useShadows:(d=n.useShadows)!==null&&d!==void 0?d:gr.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(G(this.rowsContainer,xt.Change,b=>this.onTouchChange(b))),this.disposables.add(G(this.scrollableElement.getDomNode(),"scroll",b=>b.target.scrollTop=0)),this.disposables.add(G(this.domNode,"dragover",b=>this.onDragOver(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"drop",b=>this.onDrop(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragleave",b=>this.onDragLeave(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragend",b=>this.onDragEnd(b))),this.setRowLineHeight=(h=n.setRowLineHeight)!==null&&h!==void 0?h:gr.setRowLineHeight,this.setRowHeight=(u=n.setRowHeight)!==null&&u!==void 0?u:gr.setRowHeight,this.supportDynamicHeights=(g=n.supportDynamicHeights)!==null&&g!==void 0?g:gr.supportDynamicHeights,this.dnd=(f=n.dnd)!==null&&f!==void 0?f:gr.dnd,this.layout()}get contentHeight(){return this.rangeMap.size}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 t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:oS(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=""}}updateOptions(e){e.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling),e.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}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),s={start:e,end:e+t},r=en.intersect(n,s),a=new Map;for(let x=r.end-1;x>=r.start;x--){const y=this.items[x];if(y.dragStartDisposable.dispose(),y.checkedDisposable.dispose(),y.row){let D=a.get(y.templateId);D||(D=[],a.set(y.templateId,D));const I=this.renderers.get(y.templateId);I&&I.disposeElement&&I.disposeElement(y.element,x,y.row.templateData,y.size),D.push(y.row)}y.row=null}const l={start:e+t,end:this.items.length},c=en.intersect(l,n),d=en.relativeComplement(l,n),h=i.map(x=>({id:String(this.itemId++),element:x,templateId:this.virtualDelegate.getTemplateId(x),size:this.virtualDelegate.getHeight(x),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(x),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:H.None,checkedDisposable:H.None}));let u;e===0&&t>=this.items.length?(this.rangeMap=new MM,this.rangeMap.splice(0,0,h),u=this.items,this.items=h):(this.rangeMap.splice(e,t,h),u=this.items.splice(e,t,...h));const g=i.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=lk(c,g),b=en.intersect(f,_);for(let x=b.start;xlk(x,g)),S=[{start:e,end:e+i.length},...C].map(x=>en.intersect(f,x)),k=this.getNextToLastElement(S);for(const x of S)for(let y=x.start;yx.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Jo(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)typeof t.width<"u"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10})}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(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}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:typeof e=="number"?e:MH(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t<"u"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:oS(this.domNode)})}render(e,t,i,n,s,r=!1){const a=this.getRenderRange(t,i),l=en.relativeComplement(a,e),c=en.relativeComplement(e,a),d=this.getNextToLastElement(l);if(r){const h=en.intersect(e,a);for(let u=h.start;un.row.domNode.setAttribute("aria-checked",String(!!d));c(r.value),n.checkedDisposable=r.onDidChange(c)}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const a=this.renderers.get(n.templateId);if(!a)throw new Error(`No renderer found for template id ${n.templateId}`);a==null||a.renderElement(n.element,e,n.row.templateData,n.size);const l=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!l,l&&(n.dragStartDisposable=G(n.row.domNode,"dragstart",c=>this.onDragStart(n.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=Ls?"-moz-fit-content":"fit-content",e.width=oS(e.row.domNode);const t=window.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(){return this.scrollableElement.getScrollPosition().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.additionalScrollHeight}get onMouseClick(){return ge.map(this.disposables.add(new bt(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return ge.map(this.disposables.add(new bt(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return ge.filter(ge.map(this.disposables.add(new bt(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>e.browserEvent.button===1,this.disposables)}get onMouseDown(){return ge.map(this.disposables.add(new bt(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return ge.map(this.disposables.add(new bt(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return ge.any(ge.map(this.disposables.add(new bt(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),ge.map(this.disposables.add(new bt(this.domNode,xt.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return ge.map(this.disposables.add(new bt(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return ge.map(this.disposables.add(new bt(this.rowsContainer,xt.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?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=typeof t>"u"?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=typeof t>"u"?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=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}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 n,s;if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(__.TEXT,t),i.dataTransfer.setDragImage){let a;this.dnd.getDragLabel&&(a=this.dnd.getDragLabel(r,i)),typeof a>"u"&&(a=String(r.length));const l=J(".monaco-drag-image");l.textContent=a,document.body.appendChild(l),i.dataTransfer.setDragImage(l,-10,-10),setTimeout(()=>document.body.removeChild(l),0)}this.currentDragData=new w_(r),Vc.CurrentDragAndDropData=new HQ(r),(s=(n=this.dnd).onDragStart)===null||s===void 0||s.call(n,this.currentDragData,i)}onDragOver(e){var t;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),Vc.CurrentDragAndDropData&&Vc.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(Vc.CurrentDragAndDropData)this.currentDragData=Vc.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new zQ}const i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop=typeof i=="boolean"?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof i!="boolean"&&i.effect===0?"copy":"move";let n;if(typeof i!="boolean"&&i.feedback?n=i.feedback:typeof e.index>"u"?n=[-1]:n=[e.index],n=Qa(n).filter(s=>s>=-1&&ss-r),n=n[0]===-1?[-1]:n,UQ(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),n[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Be(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const s of n){const r=this.items[s];r.dropTarget=!0,(t=r.row)===null||t===void 0||t.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Be(()=>{var s;for(const r of n){const a=this.items[r];a.dropTarget=!1,(s=a.row)===null||s===void 0||s.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Ad(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||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.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=H.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=s4(this.domNode).top;this.dragOverAnimationDisposable=VH(this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Ad(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)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)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const n=i.getAttribute("data-index");if(n){const s=Number(n);if(!isNaN(s))return s}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 s,r;e===this.elementTop(n.start)?(s=n.start,r=0):n.end-n.start>1&&(s=n.start+1,r=this.elementTop(s)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let c=!1;for(let d=l.start;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},RM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class jQ{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(s=>s.templateData===i);if(n>=0){const s=this.renderedElements[n];this.trait.unrender(i),s.index=t}else{const s={index:t,templateData:i};this.renderedElements.push(s)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index=e+t&&n.push({index:s.index+i-t,templateData:s.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(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}class sC{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new R,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new jQ(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const s=i.length-t,r=e+t,a=[...this.sortedIndexes.filter(c=>cc?d+e:-1).filter(c=>c!==-1),...this.sortedIndexes.filter(c=>c>=r).map(c=>c+s)],l=this.length+s;if(this.sortedIndexes.length>0&&a.length===0&&l>0){const c=(n=this.sortedIndexes.find(d=>d>=e))!==null&&n!==void 0?n:l-1;a.push(Math.min(c,l-1))}this.renderer.splice(e,t,i.length),this._set(a,a),this.length=l}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(PM),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=ck(s,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return aI(this.sortedIndexes,e,PM)>=0}dispose(){nt(this._onChange)}}wh([pi],sC.prototype,"renderer",null);class KQ extends sC{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 qS{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,i.map(()=>!1));const n=this.trait.get().map(r=>this.identityProvider.getId(this.view.element(r)).toString()),s=i.map(r=>n.indexOf(this.identityProvider.getId(r).toString())>-1);this.trait.splice(e,t,s)}}function jd(o){return o.tagName==="INPUT"||o.tagName==="TEXTAREA"}function yu(o){return o.classList.contains("monaco-editor")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:yu(o.parentElement)}function D5(o){return o.tagName==="A"&&o.classList.contains("monaco-button")||o.tagName==="DIV"&&o.classList.contains("monaco-button-dropdown")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:D5(o.parentElement)}class k5{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new Q,this.multipleSelectionDisposables=new Q,this.onKeyDown.filter(n=>n.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===9).on(this.onEscape,this,this.disposables),i.multipleSelectionSupport!==!1&&this.onKeyDown.filter(n=>(Ge?n.metaKey:n.ctrlKey)&&n.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event).filter(e=>!jd(e.target)).map(e=>new Rt(e)))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(t=>(Ge?t.metaKey:t.ctrlKey)&&t.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}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(Cn(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()}}wh([pi],k5.prototype,"onKeyDown",null);var Yl;(function(o){o[o.Automatic=0]="Automatic",o[o.Trigger=1]="Trigger"})(Yl||(Yl={}));var Lu;(function(o){o[o.Idle=0]="Idle",o[o.Typing=1]="Typing"})(Lu||(Lu={}));const qQ=new class{mightProducePrintableCharacter(o){return o.ctrlKey||o.metaKey||o.altKey?!1:o.keyCode>=31&&o.keyCode<=56||o.keyCode>=21&&o.keyCode<=30||o.keyCode>=93&&o.keyCode<=102||o.keyCode>=80&&o.keyCode<=90}};class GQ{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=Lu.Idle,this.mode=Yl.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new Q,this.disposables=new Q,this.updateOptions(e.options)}updateOptions(e){var t,i;!((t=e.typeNavigationEnabled)!==null&&t!==void 0)||t?this.enable():this.disable(),this.mode=(i=e.typeNavigationMode)!==null&&i!==void 0?i:Yl.Automatic}enable(){if(this.enabled)return;let e=!1;const t=this.enabledDisposables.add(ge.chain(this.enabledDisposables.add(new bt(this.view.domNode,"keydown")).event)).filter(s=>!jd(s.target)).filter(()=>this.mode===Yl.Automatic||this.triggered).map(s=>new Rt(s)).filter(s=>e||this.keyboardNavigationEventFilter(s)).filter(s=>this.delegate.mightProducePrintableCharacter(s)).forEach(ND).map(s=>s.browserEvent.key).event,i=ge.debounce(t,()=>null,800,void 0,void 0,this.enabledDisposables);ge.reduce(ge.any(t,i),(s,r)=>r===null?null:(s||"")+r,void 0,this.enabledDisposables)(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=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));i&&Gi(i)}this.previouslyFocused=-1}onInput(e){if(!e){this.state=Lu.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===Lu.Idle?1:0;this.state=Lu.Typing;for(let s=0;s"u"||x1(e,l)){this.previouslyFocused=i,this.list.setFocus([r]),this.list.reveal(r);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class ZQ{constructor(e,t){this.list=e,this.view=t,this.disposables=new Q,this.disposables.add(ge.chain(this.disposables.add(new bt(t.domNode,"keydown")).event)).filter(n=>!jd(n.target)).map(n=>new Rt(n)).filter(n=>n.keyCode===2&&!n.ctrlKey&&!n.metaKey&&!n.shiftKey&&!n.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(n instanceof HTMLElement)||n.tabIndex===-1)return;const s=window.getComputedStyle(n);s.visibility==="hidden"||s.display==="none"||(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function x5(o){return Ge?o.browserEvent.metaKey:o.browserEvent.ctrlKey}function I5(o){return o.browserEvent.shiftKey}function YQ(o){return o instanceof MouseEvent&&o.button===2}const OM={isSelectionSingleChangeEvent:x5,isSelectionRangeChangeEvent:I5};class E5{constructor(e){this.list=e,this.disposables=new Q,this._onPointer=new R,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!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(ft.addTarget(e.getHTMLElement()))),ge.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){yu(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(yu(e.browserEvent.target))return;const t=typeof e.index>"u"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.index;if(typeof t>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),YQ(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(jd(e.browserEvent.target)||yu(e.browserEvent.target)||this.isSelectionChangeEvent(e))return;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(typeof i>"u"){const d=this.list.getFocus()[0];i=d!=null?d:t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),r=Cn(n,s+1),a=this.list.getSelection(),l=JQ(ck(a,[i]),i);if(l.length===0)return;const c=ck(r,eX(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),s=n.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class N5{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):Ge||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionOutline&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { outline-color: ${e.listFocusAndSelectionOutline} !important; }`),e.listFocusAndSelectionBackground&&i.push(` +`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){let n=this._modelCreationOptionsByLanguageAndResource[e+t];if(!n){const s=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._getEOL(t,e);n=Xf._readModelOptions({editor:s,eol:r},i),this._modelCreationOptionsByLanguageAndResource[e+t]=n}return n}_updateModelOptions(){const e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const t=Object.keys(this._models);for(let i=0,n=t.length;ie){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,n)=>i.time-n.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),r=new il(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(bl(i))){const c=this._removeDisposedModel(i),d=this._undoRedoService.getElements(i),h=LM(r)===c.sha1;if(h||c.sharesUndoRedoStack){for(const u of d.past)ka(u)&&u.matchesResource(i)&&u.setModel(r);for(const u of d.future)ka(u)&&u.matchesResource(i)&&u.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,u=>ka(u)&&u.matchesResource(i)),h&&(r._overwriteVersionId(c.versionId),r._overwriteAlternativeVersionId(c.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(c.initialUndoRedoSnapshot))}else c.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(c.initialUndoRedoSnapshot)}const a=bl(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new nQ(r,c=>this._onWillDispose(c),(c,d)=>this._onDidChangeLanguage(c,d));return this._models[a]=l,l}createModel(e,t,i,n=!1){let s;return t?(s=this._createModelData(e,t.languageId,i,n),this.setMode(s.model,t)):s=this._createModelData(e,Ks,i,n),this._onModelAdded.fire(s.model),s.model}setMode(e,t){if(!t)return;const i=this._models[bl(e.uri)];!i||i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||l.future.length>0){for(const c of l.past)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of l.future)ka(c)&&c.matchesResource(e.uri)&&(s=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=Xf.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(s)if(!n&&r>a){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,l=>ka(l)&&l.matchesResource(e.uri)),this._insertDisposedModel(new oQ(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,LM(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!n){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}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(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Xf._setModelOptionsForModel(e,r,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}};iC.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;iC=tN([yn(0,ot),yn(1,VP),yn(2,Ct),yn(3,So),yn(4,D1),yn(5,Ht),yn(6,si),yn(7,no),yn(8,de)],iC);const iN="editor.semanticHighlighting";function ik(o,e,t){var i;const n=(i=t.getValue(iN,{overrideIdentifier:o.getLanguageId(),resource:o.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}let nk=class extends H{constructor(e,t,i,n,s,r){super(),this._watchers=Object.create(null),this._semanticStyling=e;const a=d=>{this._watchers[d.uri.toString()]=new wm(d,this._semanticStyling,i,s,r)},l=(d,h)=>{h.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(const d of t.getModels()){const h=this._watchers[d.uri.toString()];ik(d,i,n)?h||a(d):h&&l(d,h)}};this._register(t.onModelAdded(d=>{ik(d,i,n)&&a(d)})),this._register(t.onModelRemoved(d=>{const h=this._watchers[d.uri.toString()];h&&l(d,h)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(iN)&&c()})),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};nk=tN([yn(1,Ut),yn(2,Ct),yn(3,ot),yn(4,no),yn(5,de)],nk);class rQ extends H{constructor(e,t,i){super(),this._themeService=e,this._languageService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new tk(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class aQ{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let wm=class qc extends H{constructor(e,t,i,n,s){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=t,this._provider=s.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:qc.REQUEST_MIN_DELAY,max:qc.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new mt(()=>this._fetchDocumentSemanticTokensNow(),qc.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{nt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!mF(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}const e=new Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=_F(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const s=[],r=this._model.onDidChangeContent(l=>{s.push(l)}),a=new $n(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,s);else{const{provider:c,tokens:d}=l,h=this._semanticStyling.get(c);this._setDocumentSemanticTokens(c,d||null,h,s)}},l=>{l&&(ea(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||Te(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),s.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let r=0;r{n.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),r();return}if(pF(t)){if(!s){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:s.data};else{let a=0;for(const u of t.edits)a+=(u.data?u.data.length:0)-u.deleteCount;const l=s.data,c=new Uint32Array(l.length+a);let d=l.length,h=c.length;for(let u=t.edits.length-1;u>=0;u--){const g=t.edits[u];if(g.start>l.length){i.warnInvalidEditStart(s.resultId,t.resultId,u,g.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}const f=d-(g.start+g.deleteCount);f>0&&(qc._copy(l,d-f,c,h-f,f),h-=f),g.data&&(qc._copy(g.data,0,c,h-g.data.length,g.data.length),h-=g.data.length),d=g.start}d>0&&qc._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(M1(t)){this._currentDocumentResponse=new aQ(e,t.resultId,t.data);const a=gF(t,i,this._model.getLanguageId());if(n.length>0)for(const l of n)for(const c of a)for(const d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}};wm.REQUEST_MIN_DELAY=300;wm.REQUEST_MAX_DELAY=2e3;wm=tN([yn(2,Ct),yn(3,no),yn(4,de)],wm);const lQ=new RegExp(`(\\\\)?\\$\\((${Ln.iconNameExpression}(?:${Ln.iconModifierExpression})?)\\)`,"g");function wd(o){const e=new Array;let t,i=0,n=0;for(;(t=lQ.exec(o))!==null;){n=t.index||0,e.push(o.substring(i,n)),i=(t.index||0)+t[0].length;const[,s,r]=t;e.push(s?`$(${r})`:cQ({id:r}))}return i{this._register(G(this._element,i,n=>{if(!this.enabled){ut.stop(n);return}this._onDidClick.fire(n)}))}),this._register(G(this._element,ae.KEY_DOWN,i=>{const n=new Rt(i);let s=!1;this.enabled&&(n.equals(3)||n.equals(10))?(this._onDidClick.fire(i),s=!0):n.equals(9)&&(this._element.blur(),s=!0),s&&ut.stop(n,!0)})),this._register(G(this._element,ae.MOUSE_OVER,i=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(G(this._element,ae.MOUSE_OUT,i=>{this.applyStyles()})),this.focusTracker=this._register(Od(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;this.options.secondary?e=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?oc(this._element,...wd(e)):this._element.textContent=e,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=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")}}const hQ={badgeBackground:W.fromHex("#4D4D4D"),badgeForeground:W.fromHex("#FFFFFF")};class sk{constructor(e,t){this.count=0,this.options=t||Object.create(null),Jr(this.options,hQ,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=q(e,J(".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(){this.element.textContent=Vs(this.countFormat,this.count),this.element.title=Vs(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}const kM="done",xM="active",US="infinite",$S="infinite-long-running",IM="discrete",uQ={progressBarBackground:W.fromHex("#0E70C0")};class R1 extends H{constructor(e,t){super(),this.options=t||Object.create(null),Jr(this.options,uQ,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new mt(()=>bs(this.element),0)),this.longRunningScheduler=this._register(new mt(()=>this.infiniteLongRunning(),R1.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){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.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(xM,US,$S,IM),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(kM),this.element.classList.contains(US)?(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(IM,kM,$S),this.element.classList.add(xM,US),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add($S)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}R1.LONG_RUNNING_INFINITE_THRESHOLD=1e4;class nN{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const vF=new nN("id#");const jS={},gQ=new nN("quick-input-button-icon-");function ok(o){if(!o)return;let e;const t=o.dark.toString();return jS[t]?e=jS[t]:(e=gQ.nextId(),nD(`.${e}, .hc-light .${e}`,`background-image: ${Pd(o.light||o.dark)}`),nD(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${Pd(o.dark)}`),jS[t]=e),e}const fQ={ctrlCmd:!1,alt:!1};var Sm;(function(o){o[o.Blur=1]="Blur",o[o.Gesture=2]="Gesture",o[o.Other=3]="Other"})(Sm||(Sm={}));var To;(function(o){o[o.NONE=0]="NONE",o[o.FIRST=1]="FIRST",o[o.SECOND=2]="SECOND",o[o.LAST=3]="LAST"})(To||(To={}));function pQ(o,e={}){const t=sN(e);return t.textContent=o,t}function CF(o,e={}){const t=sN(e);return wF(t,_Q(o,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function sN(o){const e=o.inline?"span":"div",t=document.createElement(e);return o.className&&(t.className=o.className),t}class mQ{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 wF(o,e,t,i){let n;if(e.type===2)n=document.createTextNode(e.content||"");else if(e.type===3)n=document.createElement("b");else if(e.type===4)n=document.createElement("i");else if(e.type===7&&i)n=document.createElement("code");else if(e.type===5&&t){const s=document.createElement("a");t.disposables.add(ki(s,"click",r=>{t.callback(String(e.index),r)})),n=s}else e.type===8?n=document.createElement("br"):e.type===1&&(n=o);n&&o!==n&&o.appendChild(n),n&&Array.isArray(e.children)&&e.children.forEach(s=>{wF(n,s,t,i)})}function _Q(o,e){const t={type:1,children:[]};let i=0,n=t;const s=[],r=new mQ(o);for(;!r.eos();){let a=r.next();const l=a==="\\"&&rk(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&bQ(a,e)&&a===r.peek()){r.advance(),n.type===2&&(n=s.pop());const c=rk(a,e);if(n.type===c||n.type===5&&c===6)n=s.pop();else{const d={type:c,children:[]};c===5&&(d.index=i,i++),n.children.push(d),s.push(n),n=d}}else if(a===` +`)n.type===2&&(n=s.pop()),n.children.push({type:8});else if(n.type!==2){const c={type:2,content:a};n.children.push(c),s.push(n),n=c}else n.content+=a}return n.type===2&&(n=s.pop()),t}function bQ(o,e){return rk(o,e)!==0}function rk(o,e){switch(o){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}class vQ{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 CQ{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._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new vQ(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}}const Ef=J,wQ={inputBackground:W.fromHex("#3C3C3C"),inputForeground:W.fromHex("#CCCCCC"),inputValidationInfoBorder:W.fromHex("#55AAFF"),inputValidationInfoBackground:W.fromHex("#063B49"),inputValidationWarningBorder:W.fromHex("#B89500"),inputValidationWarningBackground:W.fromHex("#352A05"),inputValidationErrorBorder:W.fromHex("#BE1100"),inputValidationErrorBackground:W.fromHex("#5A1D1D")};class SF extends yo{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new R),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),Jr(this.options,wQ,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(n=this.options.tooltip)!==null&&n!==void 0?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=q(e,Ef(".monaco-inputbox.idle"));const s=this.options.flexibleHeight?"textarea":"input",r=q(this.element,Ef(".ibwrapper"));if(this.input=q(r,Ef(s+".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=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=q(r,Ef("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new i5(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),q(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(c=>this.input.scrollTop=c.scrollTop));const a=this._register(new bt(document,"selectionchange")),l=ge.filter(a.event,()=>{const c=document.getSelection();return(c==null?void 0:c.anchorNode)===r});this._register(l(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.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new Zr(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}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}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 typeof this.cachedHeight=="number"?this.cachedHeight:iD(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===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()}get width(){return co(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const i=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=i+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!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){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=i.border?`1px solid ${i.border}`:"",(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())),e==null?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.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=co(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:n=>{if(!this.message)return null;e=q(n,Ef(".monaco-inputbox-container")),t();const s={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?CF(this.message.content,s):pQ(this.message.content,s);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",q(e,r),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=p("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=p("alertWarningMessage","Warning: {0}",this.message.content):i=p("alertInfoMessage","Info: {0}",this.message.content),Gi(i),this.state="open"}_hideMessage(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText="\xA0",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=iD(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,s=t.value;i!==null&&n!==null&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class yF extends SF{constructor(e,t,i){const n=p({key:"history.inputbox.hint",comment:["Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history"]},"for history"),s=` or \u21C5 ${n}`,r=` (\u21C5 ${n})`;super(e,t,i),this._onDidFocus=this._register(new R),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new R),this.onDidBlur=this._onDidBlur.event,this.history=new CQ(i.history,100);const a=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(s)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const l=this.placeholder.endsWith(")")?s:r,c=this.placeholder+l;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=c:this.setPlaceHolder(c)}};this.observer=new MutationObserver((l,c)=>{l.forEach(d=>{d.target.textContent||a()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>a()),this.onblur(this.input,()=>{const l=c=>{if(this.placeholder.endsWith(c)){const d=this.placeholder.slice(0,this.placeholder.length-c.length);return i.showPlaceholderOnFocus?this.placeholder=d:this.setPlaceHolder(d),!0}else return!1};l(r)||l(s)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,dv(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,dv(this.value))}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()||this.history.last()}}const SQ=J;class yQ extends H{constructor(e){super(),this.parent=e,this.onKeyDown=t=>G(this.inputBox.inputElement,ae.KEY_DOWN,i=>{t(new Rt(i))}),this.onMouseDown=t=>G(this.inputBox.inputElement,ae.MOUSE_DOWN,i=>{t(new Mr(i))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=q(this.parent,SQ(".quick-input-box")),this.inputBox=this._register(new SF(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return this.inputBox.inputElement.type==="password"}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Bt.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Bt.Info?1:e===Bt.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Bt.Info?1:e===Bt.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}class $d{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=q(e,J("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=$d.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&$s(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=s===`\r +`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=n),a.end>=r&&(a.end+=n));return i+=n,"\u23CE"})}}class KS{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 nC extends H{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new KS(q(e,J(".monaco-icon-label")))),this.labelContainer=q(this.domNode.element,J(".monaco-icon-label-container"));const i=q(this.labelContainer,J("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new KS(q(this.labelContainer,J("span.monaco-icon-description-container")))),(t==null?void 0:t.supportHighlights)||(t==null?void 0:t.supportIcons)?this.nameNode=new kQ(i,!!t.supportIcons):this.nameNode=new LQ(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new $d(q(this.descriptionContainer.element,J("span.label-description")),{supportIcons:!!t.supportIcons}):this.descriptionNodeFactory=()=>this._register(new KS(q(this.descriptionContainer.element,J("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof $d?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)bZ(e,t);else{const n=z5(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class LQ{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=q(this.container,J("a.label-name",{id:t==null?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 s={start:i,end:i+n.length},r=t.map(a=>en.intersect(s,a)).filter(a=>!en.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=s.end+e.length,r})}class kQ{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&$s(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new $d(q(this.container,J("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=DQ(e,i,t==null?void 0:t.matches);for(let s=0;s{const o=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:o,collatorIsNumeric:o.resolvedOptions().numeric}});new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0})}));new $l(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function xQ(o,e,t=!1){const i=o||"",n=e||"",s=EM.value.collator.compare(i,n);return EM.value.collatorIsNumeric&&s===0&&i!==n?in.length)return 1}return 0}var LF=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},NQ=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const br=J;class TQ{constructor(e){this.hidden=!1,this._onChecked=new R,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class C_{get templateId(){return C_.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=q(e,br(".quick-input-list-entry"));const i=q(t.entry,br("label.quick-input-list-label"));t.toDisposeTemplate.push(ki(i,ae.CLICK,c=>{t.checkbox.offsetParent||c.preventDefault()})),t.checkbox=q(i,br("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(ki(t.checkbox,ae.CHANGE,c=>{t.element.checked=t.checkbox.checked}));const n=q(i,br(".quick-input-list-rows")),s=q(n,br(".quick-input-list-row")),r=q(n,br(".quick-input-list-row"));t.label=new nC(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=q(s,br(".quick-input-list-entry-keybinding"));t.keybinding=new oN(a,Os);const l=q(r,br(".quick-input-list-label-meta"));return t.detail=new nC(l,{supportHighlights:!0,supportIcons:!0}),t.separator=q(t.entry,br(".quick-input-list-separator")),t.actionBar=new Zr(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(c=>i.checkbox.checked=c));const{labelHighlights:n,descriptionHighlights:s,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=s||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),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),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((c,d)=>{let h=c.iconClass||(c.iconPath?ok(c.iconPath):void 0);c.alwaysVisible&&(h=h?`${h} always-visible`:"always-visible");const u=new is(`id-${d}`,"",h,!0,()=>NQ(this,void 0,void 0,function*(){e.fireButtonTriggered({button:c,item:e.item})}));return u.tooltip=c.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=nt(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=nt(e.toDisposeElement),e.toDisposeTemplate=nt(e.toDisposeTemplate)}}C_.ID="listelement";class AQ{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return C_.ID}}var oi;(function(o){o[o.First=1]="First",o[o.Second=2]="Second",o[o.Last=3]="Last",o[o.Next=4]="Next",o[o.Previous=5]="Previous",o[o.NextPage=6]="NextPage",o[o.PreviousPage=7]="PreviousPage"})(oi||(oi={}));class rN{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new R,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new R,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new R,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new R,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new R,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new R,this.onKeyDown=this._onKeyDown.event,this._onLeave=new R,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=q(this.parent,br(".quick-input-list"));const n=new AQ,s=new OQ;this.list=i.createList("QuickInput",this.container,n,[new C_],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Rt(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(Ge?r.metaKey:r.ctrlKey)&&this.list.setFocus(Cn(this.list.length));break;case 16:{const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break}case 18:{const l=this.list.getFocus();l.length===1&&l[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(G(this.container,ae.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return ge.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=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=nt(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,s)=>{var r,a,l;if(n.type!=="separator"){const c=s&&e[s-1],d=n.label&&n.label.replace(/\r?\n/g," "),h=Wh(d).text.trim(),u=n.meta&&n.meta.replace(/\r?\n/g," "),g=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),_=n.ariaLabel||[d,g,f].map(v=>sB(v)).filter(v=>!!v).join(", "),b=this.parent.classList.contains("show-checkboxes");i.push(new TQ({hasCheckbox:b,index:s,item:n,saneLabel:d,saneSortLabel:h,saneMeta:u,saneAriaLabel:_,saneDescription:g,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:c&&c.type==="separator"?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,s)=>(i.set(n.item,s),i),new Map),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(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.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===oi.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=oi.First),e===oi.Previous&&this.list.getFocus()[0]===0&&(e=oi.Last),e===oi.Second&&this.list.length<2&&(e=oi.First),e){case oi.First:this.list.focusFirst();break;case oi.Second:this.list.focusNth(1);break;case oi.Last:this.list.focusLast();break;case oi.Next:this.list.focusNext();break;case oi.Previous:this.list.focusPrevious();break;case oi.NextPage:this.list.focusNextPage();break;case oi.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}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))this.elements.forEach(n=>{n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!1;const s=n.index&&this.inputElements[n.index-1];n.separator=s&&s.type==="separator"?s:void 0});else{let n;this.elements.forEach(s=>{let r;this.matchOnLabelMode==="fuzzy"?r=this.matchOnLabel?Wn(Db(e,Wh(s.saneLabel))):void 0:r=this.matchOnLabel?Wn(MQ(t,Wh(s.saneLabel))):void 0;const a=this.matchOnDescription?Wn(Db(e,Wh(s.saneDescription||""))):void 0,l=this.matchOnDetail?Wn(Db(e,Wh(s.saneDetail||""))):void 0,c=this.matchOnMeta?Wn(Db(e,Wh(s.saneMeta||""))):void 0;if(r||a||l||c?(s.labelHighlights=r,s.descriptionHighlights=a,s.detailHighlights=l,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item.alwaysShow),s.separator=void 0,!this.sortByLabel){const d=s.index&&this.inputElements[s.index-1];n=d&&d.type==="separator"?d:n,n&&!s.hidden&&(s.separator=n,n=void 0)}})}const i=this.elements.filter(n=>!n.hidden);if(this.sortByLabel&&e){const n=e.toLowerCase();i.sort((s,r)=>RQ(s,r,n))}return this.elementsToIndexes=i.reduce((n,s,r)=>(n.set(s.item,r),n),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 this.container.style.display!=="none"}dispose(){this.elementDisposables=nt(this.elementDisposables),this.disposables=nt(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)}style(e){this.list.style(e)}}LF([pi],rN.prototype,"onDidChangeFocus",null);LF([pi],rN.prototype,"onDidChangeSelection",null);function MQ(o,e){const{text:t,iconOffsets:i}=e;if(!i||i.length===0)return NM(o,t);const n=WC(t," "),s=t.length-n.length,r=NM(o,n);if(r)for(const a of r){const l=i[a.start+s]+s;a.start+=l,a.end+=l}return r}function NM(o,e){const t=e.toLowerCase().indexOf(o.toLowerCase());return t!==-1?[{start:t,end:t+o.length}]:null}function RQ(o,e,t){const i=o.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:IQ(o.saneSortLabel,e.saneSortLabel,t)}class OQ{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){var t;return!((t=e.separator)===null||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 TM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const ds=J,ak={iconClass:m.quickInputBack.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class O1 extends H{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=O1.noPromptMessage,this._severity=Bt.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new R),this.onDidHideEmitter=this._register(new R),this.onDisposeEmitter=this._register(new R),this.visibleDisposables=this._register(new Q),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&&!Ur;this._ignoreFocusOut=e&&!Ur,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!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=>{this.buttons.indexOf(e)!==-1&&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.update())}hide(){!this.visible||this.ui.hide()}didHide(e=Sm.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new xs,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 n=this.buttons.filter(r=>r===ak);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const s=this.buttons.filter(r=>r!==ak);this.ui.rightActionBar.push(s.map((r,a)=>{const l=new is(`id-${a}`,"",r.iconClass||ok(r.iconPath),!0,()=>TM(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,oc(this.ui.message,...wd(i))),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?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Bt.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()}}O1.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ym extends O1{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new R),this.onWillAcceptEmitter=this._register(new R),this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),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._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?To.NONE:To.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new R),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new R),this.onDidTriggerItemButtonEmitter=this._register(new R),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}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){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&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 autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=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?fQ: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.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(oi.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(oi.Next),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(oi.Previous):this.ui.list.focus(oi.Last),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 12:this.ui.list.focus(oi.NextPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 11:this.ui.list.focus(oi.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),ut.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!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(oi.First),ut.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(oi.Last),ut.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&&Ss(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&Ss(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.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 G(this.ui.container,ae.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Rt(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(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._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?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||(n=this.placeholder||ym.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),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 To.NONE:this._itemActivation=To.FIRST;break;case To.SECOND:this.ui.list.focus(oi.Second),this._itemActivation=To.FIRST;break;case To.LAST:this.ui.list.focus(oi.Last),this._itemActivation=To.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||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(oi.First)),this.keepScrollPosition&&(this.scrollTop=e)}}ym.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class P1 extends H{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new R),this.onDidCustomEmitter=this._register(new R),this.onDidTriggerButtonEmitter=this._register(new R),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new R),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new R),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(G(window,ae.KEY_DOWN,e,!0)),this._register(G(window,ae.KEY_UP,e,!0)),this._register(G(window,ae.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=q(this.parentElement,ds(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Qs(e),i=q(e,ds(".quick-input-titlebar")),n=this._register(new Zr(i));n.domNode.classList.add("quick-input-left-action-bar");const s=q(i,ds(".quick-input-title")),r=this._register(new Zr(i));r.domNode.classList.add("quick-input-right-action-bar");const a=q(e,ds(".quick-input-description")),l=q(e,ds(".quick-input-header")),c=q(l,ds("input.quick-input-check-all"));c.type="checkbox",c.setAttribute("aria-label",p("quickInput.checkAll","Toggle all checkboxes")),this._register(ki(c,ae.CHANGE,O=>{const F=c.checked;y.setAllVisibleChecked(F)})),this._register(G(c,ae.CLICK,O=>{(O.x||O.y)&&g.setFocus()}));const d=q(l,ds(".quick-input-description")),h=q(l,ds(".quick-input-and-message")),u=q(h,ds(".quick-input-filter")),g=this._register(new yQ(u));g.setAttribute("aria-describedby",`${this.idPrefix}message`);const f=q(u,ds(".quick-input-visible-count"));f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true");const _=new sk(f,{countFormat:p({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")}),b=q(u,ds(".quick-input-count"));b.setAttribute("aria-live","polite");const v=new sk(b,{countFormat:p({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")}),C=q(l,ds(".quick-input-action")),w=new DM(C);w.label=p("ok","OK"),this._register(w.onDidClick(O=>{this.onDidAcceptEmitter.fire()}));const S=q(l,ds(".quick-input-action")),k=new DM(S);k.label=p("custom","Custom"),this._register(k.onDidClick(O=>{this.onDidCustomEmitter.fire()}));const x=q(h,ds(`#${this.idPrefix}message.quick-input-message`)),y=this._register(new rN(e,this.idPrefix+"list",this.options));this._register(y.onChangedAllVisibleChecked(O=>{c.checked=O})),this._register(y.onChangedVisibleCount(O=>{_.setCount(O)})),this._register(y.onChangedCheckedCount(O=>{v.setCount(O)})),this._register(y.onLeave(()=>{setTimeout(()=>{g.setFocus(),this.controller instanceof ym&&this.controller.canSelectMany&&y.clearFocus()},0)})),this._register(y.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new R1(e);D.getContainer().classList.add("quick-input-progress");const I=Od(e);return this._register(I),this._register(G(e,ae.FOCUS,O=>{this.previousFocusElement=O.relatedTarget instanceof HTMLElement?O.relatedTarget:void 0},!0)),this._register(I.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(Sm.Blur),this.previousFocusElement=void 0})),this._register(G(e,ae.FOCUS,O=>{g.setFocus()})),this._register(G(e,ae.KEY_DOWN,O=>{const F=new Rt(O);switch(F.keyCode){case 3:ut.stop(O,!0),this.onDidAcceptEmitter.fire();break;case 9:ut.stop(O,!0),this.hide(Sm.Gesture);break;case 2:if(!F.altKey&&!F.ctrlKey&&!F.metaKey){const z=[".action-label.codicon"];e.classList.contains("show-checkboxes")?z.push("input"):z.push("input[type=text]"),this.getUI().list.isDisplayed()&&z.push(".monaco-list");const j=e.querySelectorAll(z.join(", "));F.shiftKey&&F.target===j[0]?(ut.stop(O,!0),j[j.length-1].focus()):!F.shiftKey&&F.target===j[j.length-1]&&(ut.stop(O,!0),j[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:s,description1:a,description2:d,rightActionBar:r,checkAll:c,filterContainer:u,inputBox:g,visibleCountContainer:f,visibleCount:_,countContainer:b,count:v,okContainer:C,ok:w,message:x,customButtonContainer:S,customButton:k,list:y,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:O=>this.show(O),hide:()=>this.hide(),setVisibilities:O=>this.setVisibilities(O),setComboboxAccessibility:O=>this.setComboboxAccessibility(O),setEnabled:O=>this.setEnabled(O),setContextKey:O=>this.options.setContextKey(O)},this.updateStyles(),this.ui}pick(e,t={},i=ze.None){return new Promise((n,s)=>{let r=d=>{var h;r=n,(h=t.onKeyMods)===null||h===void 0||h.call(t,a.keyMods),n(d)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const d=a.activeItems[0];d&&(r(d),a.hide())}}),a.onDidChangeActive(d=>{const h=d[0];h&&t.onDidFocus&&t.onDidFocus(h)}),a.onDidChangeSelection(d=>{if(!a.canSelectMany){const h=d[0];h&&(r(h),a.hide())}}),a.onDidTriggerItemButton(d=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},d),{removeItem:()=>{const h=a.items.indexOf(d.item);if(h!==-1){const u=a.items.slice(),g=u.splice(h,1),f=a.activeItems.filter(b=>b!==g[0]),_=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,f&&(a.activeItems=f),a.keepScrollPosition=_}}}))),a.onDidChangeValue(d=>{l&&!d&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{nt(c),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([d,h])=>{l=h,a.busy=!1,a.items=d,a.canSelectMany&&(a.selectedItems=d.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,d=>{s(d),a.hide()})})}createQuickPick(){const e=this.getUI();return new ym(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Bt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),oc(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,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();ak.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}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.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[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!n){let s=this.previousFocusElement;for(;s&&!s.offsetParent;)s=Wn(s.parentElement);s!=null&&s.offsetParent?(s.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,P1.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(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 a=r.join(` +`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}P1.MAX_WIDTH=600;class PQ{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}class Vh extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function AM(o,e){const t=[];for(const i of e){if(o.start>=i.range.end)continue;if(o.ende.concat(t),[]))}class MM{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const n=i.length-t,s=AM({start:0,end:e},this.groups),r=AM({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:lk(l.range,n),size:l.size})),a=i.map((l,c)=>({range:{start:e+c,end:e+c+1},size:l.size}));this.groups=BQ(s,a,r),this._size=this.groups.reduce((l,c)=>l+c.size*(c.range.end-c.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;let t=0,i=0;for(const n of this.groups){const s=n.range.end-n.range.start,r=i+s*n.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var xc=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const gr={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(o){return[o]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w_{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class HQ{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class zQ{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;tn,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class Lo{constructor(e,t,i,n=gr){var s,r,a,l,c,d,h,u,g,f;if(this.virtualDelegate=t,this.domId=`list_id_${++Lo.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Kr(50),this.splicing=!1,this.dragOverAnimationStopDisposable=H.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=H.None,this.onDragLeaveTimeout=H.None,this.disposables=new Q,this._onDidChangeContentHeight=new R,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=new MM;for(const b of i)this.renderers.set(b.templateId,b);this.cache=this.disposables.add(new VQ(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",typeof n.mouseSupport=="boolean"?n.mouseSupport:!0),this._horizontalScrolling=(s=n.horizontalScrolling)!==null&&s!==void 0?s:gr.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof n.additionalScrollHeight>"u"?0:n.additionalScrollHeight,this.accessibilityProvider=new $Q(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((r=n.transformOptimization)!==null&&r!==void 0?r:gr.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(ft.addTarget(this.rowsContainer)),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:(a=n.smoothScrolling)!==null&&a!==void 0&&a?125:0,scheduleAtNextAnimationFrame:b=>Jo(b)}),this.scrollableElement=this.disposables.add(new pE(this.rowsContainer,{alwaysConsumeMouseWheel:(l=n.alwaysConsumeMouseWheel)!==null&&l!==void 0?l:gr.alwaysConsumeMouseWheel,horizontal:1,vertical:(c=n.verticalScrollMode)!==null&&c!==void 0?c:gr.verticalScrollMode,useShadows:(d=n.useShadows)!==null&&d!==void 0?d:gr.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(G(this.rowsContainer,xt.Change,b=>this.onTouchChange(b))),this.disposables.add(G(this.scrollableElement.getDomNode(),"scroll",b=>b.target.scrollTop=0)),this.disposables.add(G(this.domNode,"dragover",b=>this.onDragOver(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"drop",b=>this.onDrop(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragleave",b=>this.onDragLeave(this.toDragEvent(b)))),this.disposables.add(G(this.domNode,"dragend",b=>this.onDragEnd(b))),this.setRowLineHeight=(h=n.setRowLineHeight)!==null&&h!==void 0?h:gr.setRowLineHeight,this.setRowHeight=(u=n.setRowHeight)!==null&&u!==void 0?u:gr.setRowHeight,this.supportDynamicHeights=(g=n.supportDynamicHeights)!==null&&g!==void 0?g:gr.supportDynamicHeights,this.dnd=(f=n.dnd)!==null&&f!==void 0?f:gr.dnd,this.layout()}get contentHeight(){return this.rangeMap.size}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 t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:oS(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=""}}updateOptions(e){e.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling),e.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}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),s={start:e,end:e+t},r=en.intersect(n,s),a=new Map;for(let x=r.end-1;x>=r.start;x--){const y=this.items[x];if(y.dragStartDisposable.dispose(),y.checkedDisposable.dispose(),y.row){let D=a.get(y.templateId);D||(D=[],a.set(y.templateId,D));const I=this.renderers.get(y.templateId);I&&I.disposeElement&&I.disposeElement(y.element,x,y.row.templateData,y.size),D.push(y.row)}y.row=null}const l={start:e+t,end:this.items.length},c=en.intersect(l,n),d=en.relativeComplement(l,n),h=i.map(x=>({id:String(this.itemId++),element:x,templateId:this.virtualDelegate.getTemplateId(x),size:this.virtualDelegate.getHeight(x),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(x),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:H.None,checkedDisposable:H.None}));let u;e===0&&t>=this.items.length?(this.rangeMap=new MM,this.rangeMap.splice(0,0,h),u=this.items,this.items=h):(this.rangeMap.splice(e,t,h),u=this.items.splice(e,t,...h));const g=i.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=lk(c,g),b=en.intersect(f,_);for(let x=b.start;xlk(x,g)),S=[{start:e,end:e+i.length},...C].map(x=>en.intersect(f,x)),k=this.getNextToLastElement(S);for(const x of S)for(let y=x.start;yx.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Jo(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)typeof t.width<"u"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10})}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(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}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:typeof e=="number"?e:MH(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t<"u"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:oS(this.domNode)})}render(e,t,i,n,s,r=!1){const a=this.getRenderRange(t,i),l=en.relativeComplement(a,e),c=en.relativeComplement(e,a),d=this.getNextToLastElement(l);if(r){const h=en.intersect(e,a);for(let u=h.start;un.row.domNode.setAttribute("aria-checked",String(!!d));c(r.value),n.checkedDisposable=r.onDidChange(c)}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const a=this.renderers.get(n.templateId);if(!a)throw new Error(`No renderer found for template id ${n.templateId}`);a==null||a.renderElement(n.element,e,n.row.templateData,n.size);const l=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!l,l&&(n.dragStartDisposable=G(n.row.domNode,"dragstart",c=>this.onDragStart(n.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=Ls?"-moz-fit-content":"fit-content",e.width=oS(e.row.domNode);const t=window.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(){return this.scrollableElement.getScrollPosition().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.additionalScrollHeight}get onMouseClick(){return ge.map(this.disposables.add(new bt(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return ge.map(this.disposables.add(new bt(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return ge.filter(ge.map(this.disposables.add(new bt(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>e.browserEvent.button===1,this.disposables)}get onMouseDown(){return ge.map(this.disposables.add(new bt(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return ge.map(this.disposables.add(new bt(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return ge.any(ge.map(this.disposables.add(new bt(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),ge.map(this.disposables.add(new bt(this.domNode,xt.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return ge.map(this.disposables.add(new bt(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return ge.map(this.disposables.add(new bt(this.rowsContainer,xt.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?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=typeof t>"u"?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=typeof t>"u"?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=typeof t>"u"?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}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 n,s;if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(__.TEXT,t),i.dataTransfer.setDragImage){let a;this.dnd.getDragLabel&&(a=this.dnd.getDragLabel(r,i)),typeof a>"u"&&(a=String(r.length));const l=J(".monaco-drag-image");l.textContent=a,document.body.appendChild(l),i.dataTransfer.setDragImage(l,-10,-10),setTimeout(()=>document.body.removeChild(l),0)}this.currentDragData=new w_(r),Vc.CurrentDragAndDropData=new HQ(r),(s=(n=this.dnd).onDragStart)===null||s===void 0||s.call(n,this.currentDragData,i)}onDragOver(e){var t;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),Vc.CurrentDragAndDropData&&Vc.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(Vc.CurrentDragAndDropData)this.currentDragData=Vc.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new zQ}const i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop=typeof i=="boolean"?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof i!="boolean"&&i.effect===0?"copy":"move";let n;if(typeof i!="boolean"&&i.feedback?n=i.feedback:typeof e.index>"u"?n=[-1]:n=[e.index],n=Qa(n).filter(s=>s>=-1&&ss-r),n=n[0]===-1?[-1]:n,UQ(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),n[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Be(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const s of n){const r=this.items[s];r.dropTarget=!0,(t=r.row)===null||t===void 0||t.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Be(()=>{var s;for(const r of n){const a=this.items[r];a.dropTarget=!1,(s=a.row)===null||s===void 0||s.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Ad(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||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.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,Vc.CurrentDragAndDropData=void 0,(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=H.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=s4(this.domNode).top;this.dragOverAnimationDisposable=VH(this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Ad(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)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)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const n=i.getAttribute("data-index");if(n){const s=Number(n);if(!isNaN(s))return s}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 s,r;e===this.elementTop(n.start)?(s=n.start,r=0):n.end-n.start>1&&(s=n.start+1,r=this.elementTop(s)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let c=!1;for(let d=l.start;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},RM=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class jQ{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(s=>s.templateData===i);if(n>=0){const s=this.renderedElements[n];this.trait.unrender(i),s.index=t}else{const s={index:t,templateData:i};this.renderedElements.push(s)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index=e+t&&n.push({index:s.index+i-t,templateData:s.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(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}class sC{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new R,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new jQ(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const s=i.length-t,r=e+t,a=[...this.sortedIndexes.filter(c=>cc?d+e:-1).filter(c=>c!==-1),...this.sortedIndexes.filter(c=>c>=r).map(c=>c+s)],l=this.length+s;if(this.sortedIndexes.length>0&&a.length===0&&l>0){const c=(n=this.sortedIndexes.find(d=>d>=e))!==null&&n!==void 0?n:l-1;a.push(Math.min(c,l-1))}this.renderer.splice(e,t,i.length),this._set(a,a),this.length=l}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(PM),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=ck(s,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return aI(this.sortedIndexes,e,PM)>=0}dispose(){nt(this._onChange)}}wh([pi],sC.prototype,"renderer",null);class KQ extends sC{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 qS{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,i.map(()=>!1));const n=this.trait.get().map(r=>this.identityProvider.getId(this.view.element(r)).toString()),s=i.map(r=>n.indexOf(this.identityProvider.getId(r).toString())>-1);this.trait.splice(e,t,s)}}function jd(o){return o.tagName==="INPUT"||o.tagName==="TEXTAREA"}function yu(o){return o.classList.contains("monaco-editor")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:yu(o.parentElement)}function DF(o){return o.tagName==="A"&&o.classList.contains("monaco-button")||o.tagName==="DIV"&&o.classList.contains("monaco-button-dropdown")?!0:o.classList.contains("monaco-list")||!o.parentElement?!1:DF(o.parentElement)}class kF{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new Q,this.multipleSelectionDisposables=new Q,this.onKeyDown.filter(n=>n.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(n=>n.keyCode===9).on(this.onEscape,this,this.disposables),i.multipleSelectionSupport!==!1&&this.onKeyDown.filter(n=>(Ge?n.metaKey:n.ctrlKey)&&n.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event).filter(e=>!jd(e.target)).map(e=>new Rt(e)))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(t=>(Ge?t.metaKey:t.ctrlKey)&&t.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}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(Cn(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()}}wh([pi],kF.prototype,"onKeyDown",null);var Yl;(function(o){o[o.Automatic=0]="Automatic",o[o.Trigger=1]="Trigger"})(Yl||(Yl={}));var Lu;(function(o){o[o.Idle=0]="Idle",o[o.Typing=1]="Typing"})(Lu||(Lu={}));const qQ=new class{mightProducePrintableCharacter(o){return o.ctrlKey||o.metaKey||o.altKey?!1:o.keyCode>=31&&o.keyCode<=56||o.keyCode>=21&&o.keyCode<=30||o.keyCode>=93&&o.keyCode<=102||o.keyCode>=80&&o.keyCode<=90}};class GQ{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=Lu.Idle,this.mode=Yl.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new Q,this.disposables=new Q,this.updateOptions(e.options)}updateOptions(e){var t,i;!((t=e.typeNavigationEnabled)!==null&&t!==void 0)||t?this.enable():this.disable(),this.mode=(i=e.typeNavigationMode)!==null&&i!==void 0?i:Yl.Automatic}enable(){if(this.enabled)return;let e=!1;const t=this.enabledDisposables.add(ge.chain(this.enabledDisposables.add(new bt(this.view.domNode,"keydown")).event)).filter(s=>!jd(s.target)).filter(()=>this.mode===Yl.Automatic||this.triggered).map(s=>new Rt(s)).filter(s=>e||this.keyboardNavigationEventFilter(s)).filter(s=>this.delegate.mightProducePrintableCharacter(s)).forEach(ND).map(s=>s.browserEvent.key).event,i=ge.debounce(t,()=>null,800,void 0,void 0,this.enabledDisposables);ge.reduce(ge.any(t,i),(s,r)=>r===null?null:(s||"")+r,void 0,this.enabledDisposables)(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=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));i&&Gi(i)}this.previouslyFocused=-1}onInput(e){if(!e){this.state=Lu.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===Lu.Idle?1:0;this.state=Lu.Typing;for(let s=0;s"u"||x1(e,l)){this.previouslyFocused=i,this.list.setFocus([r]),this.list.reveal(r);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class ZQ{constructor(e,t){this.list=e,this.view=t,this.disposables=new Q,this.disposables.add(ge.chain(this.disposables.add(new bt(t.domNode,"keydown")).event)).filter(n=>!jd(n.target)).map(n=>new Rt(n)).filter(n=>n.keyCode===2&&!n.ctrlKey&&!n.metaKey&&!n.shiftKey&&!n.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(n instanceof HTMLElement)||n.tabIndex===-1)return;const s=window.getComputedStyle(n);s.visibility==="hidden"||s.display==="none"||(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function xF(o){return Ge?o.browserEvent.metaKey:o.browserEvent.ctrlKey}function IF(o){return o.browserEvent.shiftKey}function YQ(o){return o instanceof MouseEvent&&o.button===2}const OM={isSelectionSingleChangeEvent:xF,isSelectionRangeChangeEvent:IF};class EF{constructor(e){this.list=e,this.disposables=new Q,this._onPointer=new R,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!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(ft.addTarget(e.getHTMLElement()))),ge.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||OM))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){yu(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(yu(e.browserEvent.target))return;const t=typeof e.index>"u"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.index;if(typeof t>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),YQ(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(jd(e.browserEvent.target)||yu(e.browserEvent.target)||this.isSelectionChangeEvent(e))return;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(typeof i>"u"){const d=this.list.getFocus()[0];i=d!=null?d:t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),r=Cn(n,s+1),a=this.list.getSelection(),l=JQ(ck(a,[i]),i);if(l.length===0)return;const c=ck(r,eX(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),s=n.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class NF{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):Ge||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionOutline&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { outline-color: ${e.listFocusAndSelectionOutline} !important; }`),e.listFocusAndSelectionBackground&&i.push(` .monaco-drag-image, .monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; } `),e.listFocusAndSelectionForeground&&i.push(` @@ -582,15 +582,15 @@ ${CM(m.menuSubmenu)} background-color: ${e.tableOddRowsBackgroundColor}; } `),this.styleElement.textContent=i.join(` -`)}}const QQ={listFocusBackground:W.fromHex("#7FB0D0"),listActiveSelectionBackground:W.fromHex("#0E639C"),listActiveSelectionForeground:W.fromHex("#FFFFFF"),listActiveSelectionIconForeground:W.fromHex("#FFFFFF"),listFocusAndSelectionOutline:W.fromHex("#90C2F9"),listFocusAndSelectionBackground:W.fromHex("#094771"),listFocusAndSelectionForeground:W.fromHex("#FFFFFF"),listInactiveSelectionBackground:W.fromHex("#3F3F46"),listInactiveSelectionIconForeground:W.fromHex("#FFFFFF"),listHoverBackground:W.fromHex("#2A2D2E"),listDropBackground:W.fromHex("#383B3D"),treeIndentGuidesStroke:W.fromHex("#a9a9a9"),tableColumnsBorder:W.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:W.fromHex("#cccccc").transparent(.04)},XQ={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function JQ(o,e){const t=o.indexOf(e);if(t===-1)return[];const i=[];let n=t-1;for(;n>=0&&o[n]===e-(t-n);)i.push(o[n--]);for(i.reverse(),n=t;n=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){t.push(o[i]),i++,n++;continue}else o[i]=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){i++,n++;continue}else o[i]o-e;class tX{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 s=0;for(const r of this.renderers)r.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let r=0;for(const a of this.renderers)(s=a.disposeElement)===null||s===void 0||s.call(a,e,t,i[r],n),r+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class iX{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 s=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof s=="number"?i.setAttribute("aria-level",`${s}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class nX{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}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;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var s,r;(r=(s=this.dnd).onDragLeave)===null||r===void 0||r.call(s,e,t,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class rr{constructor(e,t,i,n,s=XQ){var r,a,l,c;this.user=e,this._options=s,this.focus=new sC("focused"),this.anchor=new sC("anchor"),this.eventBufferer=new gI,this._ariaLabel="",this.disposables=new Q,this._onDidDispose=new R,this.onDidDispose=this._onDidDispose.event;const d=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new KQ(d!=="listbox"),Jr(s,QQ,!1);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new iX(this.accessibilityProvider)),(l=(a=this.accessibilityProvider).onDidChangeActiveDescendant)===null||l===void 0||l.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map(g=>new tX(g.templateId,[...h,g]));const u=Object.assign(Object.assign({},s),{dnd:s.dnd&&new nX(this,s.dnd)});if(this.view=new Lo(t,i,n,u),this.view.domNode.setAttribute("role",d),s.styleController)this.styleController=s.styleController(this.view.domId);else{const g=Qs(this.view.domNode);this.styleController=new N5(g,this.view.domId)}if(this.spliceable=new PQ([new qS(this.focus,this.view,s.identityProvider),new qS(this.selection,this.view,s.identityProvider),new qS(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 ZQ(this,this.view)),(typeof s.keyboardSupport!="boolean"||s.keyboardSupport)&&(this.keyboardController=new k5(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const g=s.keyboardNavigationDelegate||qQ;this.typeNavigationController=new GQ(this,this.view,s.keyboardNavigationLabelProvider,(c=s.keyboardNavigationEventFilter)!==null&&c!==void 0?c:()=>!0,g),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()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return ge.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return ge.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e),this.disposables)}get domId(){return this.view.domId}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 onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event)).map(s=>new Rt(s)).filter(s=>e=s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).filter(()=>!1).event,i=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keyup")).event)).forEach(()=>e=!1).map(s=>new Rt(s)).filter(s=>s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).map(({browserEvent:s})=>{const r=this.getFocus(),a=r.length?r[0]:void 0,l=typeof a<"u"?this.view.element(a):void 0,c=typeof a<"u"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:s}}).event,n=this.disposables.add(ge.chain(this.view.onContextMenu)).filter(s=>!e).map(({element:s,index:r,browserEvent:a})=>({element:s,index:r,anchor:{x:a.pageX+1,y:a.pageY},browserEvent:a})).event;return ge.any(t,i,n)}get onKeyDown(){return this.disposables.add(new bt(this.view.domNode,"keydown")).event}get onDidFocus(){return ge.signal(this.disposables.add(new bt(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new E5(this)}updateOptions(e={}){var t,i;this._options=Object.assign(Object.assign({},this._options),e),(t=this.typeNavigationController)===null||t===void 0||t.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(i=this.keyboardController)===null||i===void 0||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 Vh(this.user,`Invalid start index: ${e}`);if(t<0)throw new Vh(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}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 Vh(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(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return VO(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new Vh(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findNextIndex(s.length>0?s[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}focusNextPage(e,t){return RM(this,void 0,void 0,function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const n=this.getFocus()[0];if(n!==i&&(n===void 0||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let r=s+this.view.renderHeight;i>n&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==s&&(this.setFocus([]),yield sc(0),yield this.focusNextPage(e,t))}})}focusPreviousPage(e,t){return RM(this,void 0,void 0,function*(){let i;const n=this.view.getScrollTop();n===0?i=this.view.indexAt(n):i=this.view.indexAfter(n-1);const s=this.getFocus()[0];if(s!==i&&(s===void 0||s>=i)){const r=this.findNextIndex(i,!1,t);r>-1&&s!==r?this.setFocus([r],e):this.setFocus([i],e)}else{const r=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==r&&(this.setFocus([]),yield sc(0),yield this.focusPreviousPage(e,t))}})}focusLast(e,t){if(this.length===0)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(this.length===0)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=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){if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(tc(t)){const r=s-this.view.renderHeight;this.view.setScrollTop(r*Zn(t,0,1)+n)}else{const r=n+s,a=i+this.view.renderHeight;n=a||(n=a&&s>=this.view.renderHeight?this.view.setScrollTop(n):r>=a&&this.view.setScrollTop(r-this.view.renderHeight))}}getHTMLElement(){return this.view.domNode}getElementID(e){return this.view.getElementDomId(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),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;!((e=this.accessibilityProvider)===null||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",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}wh([pi],rr.prototype,"onDidChangeFocus",null);wh([pi],rr.prototype,"onDidChangeSelection",null);wh([pi],rr.prototype,"onContextMenu",null);wh([pi],rr.prototype,"onKeyDown",null);wh([pi],rr.prototype,"onDidFocus",null);class sX{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:H.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),!i.data)return;const s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);const r=new Qi,a=s.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then(l=>this.renderer.renderElement(l,e,i.data,n))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class oX{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function rX(o,e){return Object.assign(Object.assign({},e),{accessibilityProvider:e.accessibilityProvider&&new oX(o,e.accessibilityProvider)})}class aX{constructor(e,t,i,n,s={}){const r=()=>this.model,a=n.map(l=>new sX(l,r));this.list=new rr(e,t,i,a,rX(r,s))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return ge.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return ge.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(n=>this._model.get(n)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Cn(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const lX={separatorBorder:W.transparent};class T5{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,t){var i,n;e!==this.visible&&(e?(this.size=Zn(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e),(n=(i=this.view).setVisible)===null||n===void 0||n.call(i,e))}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 snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class cX extends T5{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class dX extends T5{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var Sa;(function(o){o[o.Idle=0]="Idle",o[o.Busy=1]="Busy"})(Sa||(Sa={}));var oC;(function(o){o.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}o.Split=e;function t(i){return{type:"invisible",cachedVisibleSize:i}}o.Invisible=t})(oC||(oC={}));class A5 extends H{constructor(e,t={}){var i,n,s,r,a;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=Sa.Idle,this._onDidSashChange=this._register(new R),this._onDidSashReset=this._register(new R),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(n=t.inverseAltBehavior)!==null&&n!==void 0?n:!1,this.proportionalLayout=(s=t.proportionalLayout)!==null&&s!==void 0?s:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=q(this.el,J(".sash-container")),this.viewContainer=J(".split-view-container"),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:Jo}),this.scrollableElement=this._register(new pE(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(l=>{this.viewContainer.scrollTop=l.scrollTop,this.viewContainer.scrollLeft=l.scrollLeft})),q(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||lX),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((l,c)=>{const d=Xn(l.visible)||l.visible?l.size:{type:"invisible",cachedVisibleSize:l.size},h=l.view;this.doAddView(h,d,c,!0)}),this.contentSize=this.viewItems.reduce((l,c)=>l+c.size,0),this.saveProportions())}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())}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)for(let n=0;nthis.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const n=this.sashItems.findIndex(a=>a.sash===e),s=qo(G(document.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),G(document.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const c=this.viewItems.map(f=>f.size);let d=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(n===this.sashItems.length-1){const _=this.viewItems[n];d=(_.minimumSize-_.size)/2,h=(_.maximumSize-_.size)/2}else{const _=this.viewItems[n+1];d=(_.size-_.maximumSize)/2,h=(_.size-_.minimumSize)/2}let u,g;if(!l){const f=Cn(n,-1),_=Cn(n+1,this.viewItems.length),b=f.reduce((D,I)=>D+(this.viewItems[I].minimumSize-c[I]),0),v=f.reduce((D,I)=>D+(this.viewItems[I].viewMaximumSize-c[I]),0),C=_.length===0?Number.POSITIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].minimumSize),0),w=_.length===0?Number.NEGATIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].viewMaximumSize),0),S=Math.max(b,w),k=Math.min(C,v),x=this.findFirstSnapIndex(f),y=this.findFirstSnapIndex(_);if(typeof x=="number"){const D=this.viewItems[x],I=Math.floor(D.viewMinimumSize/2);u={index:x,limitDelta:D.visible?S-I:S+I,size:D.size}}if(typeof y=="number"){const D=this.viewItems[y],I=Math.floor(D.viewMinimumSize/2);g={index:y,limitDelta:D.visible?k+I:k-I,size:D.size}}}this.sashDragState={start:a,current:a,index:n,sizes:c,minDelta:d,maxDelta:h,alt:l,snapBefore:u,snapAfter:g,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:s,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const d=e-i,h=this.resize(t,d,n,void 0,void 0,r,a,l,c);if(s){const u=t===this.sashItems.length-1,g=this.viewItems.map(w=>w.size),f=u?t:t+1,_=this.viewItems[f],b=_.size-_.maximumSize,v=_.size-_.minimumSize,C=u?t-1:t+1;this.resize(C,-h,g,void 0,void 0,b,v)}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=typeof t=="number"?t:e.size,t=Zn(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(this.state!==Sa.Idle)throw new Error("Cant modify splitview");if(this.state=Sa.Busy,e<0||e>=this.viewItems.length)return;const i=Cn(this.viewItems.length).filter(a=>a!==e),n=[...i.filter(a=>this.viewItems[a].priority===1),e],s=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=Zn(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,s),this.state=Sa.Idle}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=Zn(i,a.minimumSize,a.maximumSize);const n=Cn(this.viewItems.length),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.relayout(s,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==Sa.Idle)throw new Error("Cant modify splitview");this.state=Sa.Busy;const s=J(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(i));const r=e.onDidChange(u=>this.onViewChange(d,u)),a=Be(()=>this.viewContainer.removeChild(s)),l=qo(r,a);let c;typeof t=="number"?c=t:t.type==="split"?c=this.getViewSize(t.index)/2:t.type==="invisible"?c={cachedVisibleSize:t.cachedVisibleSize}:c=e.minimumSize;const d=this.orientation===0?new cX(s,e,c,l):new dX(s,e,c,l);if(this.viewItems.splice(i,0,d),this.viewItems.length>1){const u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},g=this.orientation===0?new tn(this.sashContainer,{getHorizontalSashTop:D=>this.getSashPosition(D),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:1})):new tn(this.sashContainer,{getVerticalSashLeft:D=>this.getSashPosition(D),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:0})),f=this.orientation===0?D=>({sash:g,start:D.startY,current:D.currentY,alt:D.altKey}):D=>({sash:g,start:D.startX,current:D.currentX,alt:D.altKey}),b=ge.map(g.onDidStart,f)(this.onSashStart,this),C=ge.map(g.onDidChange,f)(this.onSashChange,this),S=ge.map(g.onDidEnd,()=>this.sashItems.findIndex(D=>D.sash===g))(this.onSashEnd,this),k=g.onDidReset(()=>{const D=this.sashItems.findIndex(j=>j.sash===g),I=Cn(D,-1),O=Cn(D+1,this.viewItems.length),F=this.findFirstSnapIndex(I),z=this.findFirstSnapIndex(O);typeof F=="number"&&!this.viewItems[F].visible||typeof z=="number"&&!this.viewItems[z].visible||this._onDidSashReset.fire(D)}),x=qo(b,C,S,k,g),y={sash:g,disposable:x};this.sashItems.splice(i-1,0,y)}s.appendChild(e.element);let h;typeof t!="number"&&t.type==="split"&&(h=[t.index]),n||this.relayout([i],h),this.state=Sa.Idle,!n&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce((n,s)=>n+s.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(d=>d.size),n,s,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const d=Cn(e,-1),h=Cn(e+1,this.viewItems.length);if(s)for(const y of s)Pw(d,y),Pw(h,y);if(n)for(const y of n)G_(d,y),G_(h,y);const u=d.map(y=>this.viewItems[y]),g=d.map(y=>i[y]),f=h.map(y=>this.viewItems[y]),_=h.map(y=>i[y]),b=d.reduce((y,D)=>y+(this.viewItems[D].minimumSize-i[D]),0),v=d.reduce((y,D)=>y+(this.viewItems[D].maximumSize-i[D]),0),C=h.length===0?Number.POSITIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].minimumSize),0),w=h.length===0?Number.NEGATIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].maximumSize),0),S=Math.max(b,w,r),k=Math.min(C,v,a);let x=!1;if(l){const y=this.viewItems[l.index],D=t>=l.limitDelta;x=D!==y.visible,y.setVisible(D,l.size)}if(!x&&c){const y=this.viewItems[c.index],D=ta+l.size,0);let i=this.size-t;const n=Cn(this.viewItems.length-1,-1),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);for(const a of r)Pw(n,a);for(const a of s)G_(n,a);typeof e=="number"&&G_(n,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?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(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),n=[...this.viewItems].reverse();e=!1;const s=n.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=n.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?c.state=1:C&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}dispose(){super.dispose(),nt(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}class S_{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=S_.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map(s=>[s.templateId,s]));this.renderers=[];for(const s of e){const r=n.get(s.templateId);if(!r)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=q(e,J(".monaco-table-tr")),i=[],n=[];for(let r=0;rnew uX(d,h)),l={size:a.reduce((d,h)=>d+h.column.weight,0),views:a.map(d=>({size:d.column.weight,view:d}))};this.splitview=this.disposables.add(new A5(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const c=new S_(n,s,d=>this.splitview.getViewSize(d));this.list=this.disposables.add(new rr(e,this.domNode,hX(i),[c],r)),ge.any(...a.map(d=>d.onDidLayout))(([d,h])=>c.layoutColumn(d,h),null,this.disposables),this.splitview.onDidSashReset(d=>{const h=n.reduce((g,f)=>g+f.weight,0),u=n[d].weight/h*this.cachedWidth;this.splitview.resizeView(d,u)},null,this.disposables),this.styleElement=Qs(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { +`)}}const QQ={listFocusBackground:W.fromHex("#7FB0D0"),listActiveSelectionBackground:W.fromHex("#0E639C"),listActiveSelectionForeground:W.fromHex("#FFFFFF"),listActiveSelectionIconForeground:W.fromHex("#FFFFFF"),listFocusAndSelectionOutline:W.fromHex("#90C2F9"),listFocusAndSelectionBackground:W.fromHex("#094771"),listFocusAndSelectionForeground:W.fromHex("#FFFFFF"),listInactiveSelectionBackground:W.fromHex("#3F3F46"),listInactiveSelectionIconForeground:W.fromHex("#FFFFFF"),listHoverBackground:W.fromHex("#2A2D2E"),listDropBackground:W.fromHex("#383B3D"),treeIndentGuidesStroke:W.fromHex("#a9a9a9"),tableColumnsBorder:W.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:W.fromHex("#cccccc").transparent(.04)},XQ={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function JQ(o,e){const t=o.indexOf(e);if(t===-1)return[];const i=[];let n=t-1;for(;n>=0&&o[n]===e-(t-n);)i.push(o[n--]);for(i.reverse(),n=t;n=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){t.push(o[i]),i++,n++;continue}else o[i]=o.length)t.push(e[n++]);else if(n>=e.length)t.push(o[i++]);else if(o[i]===e[n]){i++,n++;continue}else o[i]o-e;class tX{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 s=0;for(const r of this.renderers)r.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let r=0;for(const a of this.renderers)(s=a.disposeElement)===null||s===void 0||s.call(a,e,t,i[r],n),r+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class iX{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 s=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof s=="number"?i.setAttribute("aria-level",`${s}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class nX{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}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;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var s,r;(r=(s=this.dnd).onDragLeave)===null||r===void 0||r.call(s,e,t,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class rr{constructor(e,t,i,n,s=XQ){var r,a,l,c;this.user=e,this._options=s,this.focus=new sC("focused"),this.anchor=new sC("anchor"),this.eventBufferer=new gI,this._ariaLabel="",this.disposables=new Q,this._onDidDispose=new R,this.onDidDispose=this._onDidDispose.event;const d=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new KQ(d!=="listbox"),Jr(s,QQ,!1);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new iX(this.accessibilityProvider)),(l=(a=this.accessibilityProvider).onDidChangeActiveDescendant)===null||l===void 0||l.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map(g=>new tX(g.templateId,[...h,g]));const u=Object.assign(Object.assign({},s),{dnd:s.dnd&&new nX(this,s.dnd)});if(this.view=new Lo(t,i,n,u),this.view.domNode.setAttribute("role",d),s.styleController)this.styleController=s.styleController(this.view.domId);else{const g=Qs(this.view.domNode);this.styleController=new NF(g,this.view.domId)}if(this.spliceable=new PQ([new qS(this.focus,this.view,s.identityProvider),new qS(this.selection,this.view,s.identityProvider),new qS(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 ZQ(this,this.view)),(typeof s.keyboardSupport!="boolean"||s.keyboardSupport)&&(this.keyboardController=new kF(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const g=s.keyboardNavigationDelegate||qQ;this.typeNavigationController=new GQ(this,this.view,s.keyboardNavigationLabelProvider,(c=s.keyboardNavigationEventFilter)!==null&&c!==void 0?c:()=>!0,g),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()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return ge.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return ge.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e),this.disposables)}get domId(){return this.view.domId}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 onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keydown")).event)).map(s=>new Rt(s)).filter(s=>e=s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).filter(()=>!1).event,i=this.disposables.add(ge.chain(this.disposables.add(new bt(this.view.domNode,"keyup")).event)).forEach(()=>e=!1).map(s=>new Rt(s)).filter(s=>s.keyCode===58||s.shiftKey&&s.keyCode===68).map(ND).map(({browserEvent:s})=>{const r=this.getFocus(),a=r.length?r[0]:void 0,l=typeof a<"u"?this.view.element(a):void 0,c=typeof a<"u"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:s}}).event,n=this.disposables.add(ge.chain(this.view.onContextMenu)).filter(s=>!e).map(({element:s,index:r,browserEvent:a})=>({element:s,index:r,anchor:{x:a.pageX+1,y:a.pageY},browserEvent:a})).event;return ge.any(t,i,n)}get onKeyDown(){return this.disposables.add(new bt(this.view.domNode,"keydown")).event}get onDidFocus(){return ge.signal(this.disposables.add(new bt(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new EF(this)}updateOptions(e={}){var t,i;this._options=Object.assign(Object.assign({},this._options),e),(t=this.typeNavigationController)===null||t===void 0||t.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(i=this.keyboardController)===null||i===void 0||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 Vh(this.user,`Invalid start index: ${e}`);if(t<0)throw new Vh(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}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 Vh(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(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return VO(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new Vh(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findNextIndex(s.length>0?s[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(this.length===0)return;const s=this.focus.get(),r=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}focusNextPage(e,t){return RM(this,void 0,void 0,function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const n=this.getFocus()[0];if(n!==i&&(n===void 0||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let r=s+this.view.renderHeight;i>n&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==s&&(this.setFocus([]),yield sc(0),yield this.focusNextPage(e,t))}})}focusPreviousPage(e,t){return RM(this,void 0,void 0,function*(){let i;const n=this.view.getScrollTop();n===0?i=this.view.indexAt(n):i=this.view.indexAfter(n-1);const s=this.getFocus()[0];if(s!==i&&(s===void 0||s>=i)){const r=this.findNextIndex(i,!1,t);r>-1&&s!==r?this.setFocus([r],e):this.setFocus([i],e)}else{const r=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==r&&(this.setFocus([]),yield sc(0),yield this.focusPreviousPage(e,t))}})}focusLast(e,t){if(this.length===0)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(this.length===0)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=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){if(e<0||e>=this.length)throw new Vh(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(tc(t)){const r=s-this.view.renderHeight;this.view.setScrollTop(r*Zn(t,0,1)+n)}else{const r=n+s,a=i+this.view.renderHeight;n=a||(n=a&&s>=this.view.renderHeight?this.view.setScrollTop(n):r>=a&&this.view.setScrollTop(r-this.view.renderHeight))}}getHTMLElement(){return this.view.domNode}getElementID(e){return this.view.getElementDomId(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),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;!((e=this.accessibilityProvider)===null||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",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}wh([pi],rr.prototype,"onDidChangeFocus",null);wh([pi],rr.prototype,"onDidChangeSelection",null);wh([pi],rr.prototype,"onContextMenu",null);wh([pi],rr.prototype,"onKeyDown",null);wh([pi],rr.prototype,"onDidFocus",null);class sX{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:H.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),!i.data)return;const s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);const r=new Qi,a=s.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then(l=>this.renderer.renderElement(l,e,i.data,n))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class oX{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function rX(o,e){return Object.assign(Object.assign({},e),{accessibilityProvider:e.accessibilityProvider&&new oX(o,e.accessibilityProvider)})}class aX{constructor(e,t,i,n,s={}){const r=()=>this.model,a=n.map(l=>new sX(l,r));this.list=new rr(e,t,i,a,rX(r,s))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return ge.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return ge.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return ge.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(n=>this._model.get(n)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Cn(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const lX={separatorBorder:W.transparent};class TF{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,t){var i,n;e!==this.visible&&(e?(this.size=Zn(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e),(n=(i=this.view).setVisible)===null||n===void 0||n.call(i,e))}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 snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class cX extends TF{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class dX extends TF{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var Sa;(function(o){o[o.Idle=0]="Idle",o[o.Busy=1]="Busy"})(Sa||(Sa={}));var oC;(function(o){o.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}o.Split=e;function t(i){return{type:"invisible",cachedVisibleSize:i}}o.Invisible=t})(oC||(oC={}));class AF extends H{constructor(e,t={}){var i,n,s,r,a;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=Sa.Idle,this._onDidSashChange=this._register(new R),this._onDidSashReset=this._register(new R),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(n=t.inverseAltBehavior)!==null&&n!==void 0?n:!1,this.proportionalLayout=(s=t.proportionalLayout)!==null&&s!==void 0?s:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=q(this.el,J(".sash-container")),this.viewContainer=J(".split-view-container"),this.scrollable=new f_({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:Jo}),this.scrollableElement=this._register(new pE(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(l=>{this.viewContainer.scrollTop=l.scrollTop,this.viewContainer.scrollLeft=l.scrollLeft})),q(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||lX),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((l,c)=>{const d=Xn(l.visible)||l.visible?l.size:{type:"invisible",cachedVisibleSize:l.size},h=l.view;this.doAddView(h,d,c,!0)}),this.contentSize=this.viewItems.reduce((l,c)=>l+c.size,0),this.saveProportions())}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())}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)for(let n=0;nthis.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const n=this.sashItems.findIndex(a=>a.sash===e),s=qo(G(document.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),G(document.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const c=this.viewItems.map(f=>f.size);let d=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(n===this.sashItems.length-1){const _=this.viewItems[n];d=(_.minimumSize-_.size)/2,h=(_.maximumSize-_.size)/2}else{const _=this.viewItems[n+1];d=(_.size-_.maximumSize)/2,h=(_.size-_.minimumSize)/2}let u,g;if(!l){const f=Cn(n,-1),_=Cn(n+1,this.viewItems.length),b=f.reduce((D,I)=>D+(this.viewItems[I].minimumSize-c[I]),0),v=f.reduce((D,I)=>D+(this.viewItems[I].viewMaximumSize-c[I]),0),C=_.length===0?Number.POSITIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].minimumSize),0),w=_.length===0?Number.NEGATIVE_INFINITY:_.reduce((D,I)=>D+(c[I]-this.viewItems[I].viewMaximumSize),0),S=Math.max(b,w),k=Math.min(C,v),x=this.findFirstSnapIndex(f),y=this.findFirstSnapIndex(_);if(typeof x=="number"){const D=this.viewItems[x],I=Math.floor(D.viewMinimumSize/2);u={index:x,limitDelta:D.visible?S-I:S+I,size:D.size}}if(typeof y=="number"){const D=this.viewItems[y],I=Math.floor(D.viewMinimumSize/2);g={index:y,limitDelta:D.visible?k+I:k-I,size:D.size}}}this.sashDragState={start:a,current:a,index:n,sizes:c,minDelta:d,maxDelta:h,alt:l,snapBefore:u,snapAfter:g,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:s,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const d=e-i,h=this.resize(t,d,n,void 0,void 0,r,a,l,c);if(s){const u=t===this.sashItems.length-1,g=this.viewItems.map(w=>w.size),f=u?t:t+1,_=this.viewItems[f],b=_.size-_.maximumSize,v=_.size-_.minimumSize,C=u?t-1:t+1;this.resize(C,-h,g,void 0,void 0,b,v)}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=typeof t=="number"?t:e.size,t=Zn(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(this.state!==Sa.Idle)throw new Error("Cant modify splitview");if(this.state=Sa.Busy,e<0||e>=this.viewItems.length)return;const i=Cn(this.viewItems.length).filter(a=>a!==e),n=[...i.filter(a=>this.viewItems[a].priority===1),e],s=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=Zn(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,s),this.state=Sa.Idle}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=Zn(i,a.minimumSize,a.maximumSize);const n=Cn(this.viewItems.length),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);this.relayout(s,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==Sa.Idle)throw new Error("Cant modify splitview");this.state=Sa.Busy;const s=J(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(i));const r=e.onDidChange(u=>this.onViewChange(d,u)),a=Be(()=>this.viewContainer.removeChild(s)),l=qo(r,a);let c;typeof t=="number"?c=t:t.type==="split"?c=this.getViewSize(t.index)/2:t.type==="invisible"?c={cachedVisibleSize:t.cachedVisibleSize}:c=e.minimumSize;const d=this.orientation===0?new cX(s,e,c,l):new dX(s,e,c,l);if(this.viewItems.splice(i,0,d),this.viewItems.length>1){const u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},g=this.orientation===0?new tn(this.sashContainer,{getHorizontalSashTop:D=>this.getSashPosition(D),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:1})):new tn(this.sashContainer,{getVerticalSashLeft:D=>this.getSashPosition(D),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:0})),f=this.orientation===0?D=>({sash:g,start:D.startY,current:D.currentY,alt:D.altKey}):D=>({sash:g,start:D.startX,current:D.currentX,alt:D.altKey}),b=ge.map(g.onDidStart,f)(this.onSashStart,this),C=ge.map(g.onDidChange,f)(this.onSashChange,this),S=ge.map(g.onDidEnd,()=>this.sashItems.findIndex(D=>D.sash===g))(this.onSashEnd,this),k=g.onDidReset(()=>{const D=this.sashItems.findIndex(j=>j.sash===g),I=Cn(D,-1),O=Cn(D+1,this.viewItems.length),F=this.findFirstSnapIndex(I),z=this.findFirstSnapIndex(O);typeof F=="number"&&!this.viewItems[F].visible||typeof z=="number"&&!this.viewItems[z].visible||this._onDidSashReset.fire(D)}),x=qo(b,C,S,k,g),y={sash:g,disposable:x};this.sashItems.splice(i-1,0,y)}s.appendChild(e.element);let h;typeof t!="number"&&t.type==="split"&&(h=[t.index]),n||this.relayout([i],h),this.state=Sa.Idle,!n&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce((n,s)=>n+s.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(d=>d.size),n,s,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const d=Cn(e,-1),h=Cn(e+1,this.viewItems.length);if(s)for(const y of s)Pw(d,y),Pw(h,y);if(n)for(const y of n)G_(d,y),G_(h,y);const u=d.map(y=>this.viewItems[y]),g=d.map(y=>i[y]),f=h.map(y=>this.viewItems[y]),_=h.map(y=>i[y]),b=d.reduce((y,D)=>y+(this.viewItems[D].minimumSize-i[D]),0),v=d.reduce((y,D)=>y+(this.viewItems[D].maximumSize-i[D]),0),C=h.length===0?Number.POSITIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].minimumSize),0),w=h.length===0?Number.NEGATIVE_INFINITY:h.reduce((y,D)=>y+(i[D]-this.viewItems[D].maximumSize),0),S=Math.max(b,w,r),k=Math.min(C,v,a);let x=!1;if(l){const y=this.viewItems[l.index],D=t>=l.limitDelta;x=D!==y.visible,y.setVisible(D,l.size)}if(!x&&c){const y=this.viewItems[c.index],D=ta+l.size,0);let i=this.size-t;const n=Cn(this.viewItems.length-1,-1),s=n.filter(a=>this.viewItems[a].priority===1),r=n.filter(a=>this.viewItems[a].priority===2);for(const a of r)Pw(n,a);for(const a of s)G_(n,a);typeof e=="number"&&G_(n,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?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(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),n=[...this.viewItems].reverse();e=!1;const s=n.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=n.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?c.state=1:C&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}dispose(){super.dispose(),nt(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}class S_{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=S_.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map(s=>[s.templateId,s]));this.renderers=[];for(const s of e){const r=n.get(s.templateId);if(!r)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=q(e,J(".monaco-table-tr")),i=[],n=[];for(let r=0;rnew uX(d,h)),l={size:a.reduce((d,h)=>d+h.column.weight,0),views:a.map(d=>({size:d.column.weight,view:d}))};this.splitview=this.disposables.add(new AF(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const c=new S_(n,s,d=>this.splitview.getViewSize(d));this.list=this.disposables.add(new rr(e,this.domNode,hX(i),[c],r)),ge.any(...a.map(d=>d.onDidLayout))(([d,h])=>c.layoutColumn(d,h),null,this.disposables),this.splitview.onDidSashReset(d=>{const h=n.reduce((g,f)=>g+f.weight,0),u=n[d].weight/h*this.cachedWidth;this.splitview.resizeView(d,u)},null,this.disposables),this.styleElement=Qs(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { top: ${this.virtualDelegate.headerRowHeight+1}px; height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); }`),this.styleElement.textContent=t.join(` -`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}F1.InstanceCount=0;const gX={inputActiveOptionBorder:W.fromHex("#007ACC00"),inputActiveOptionForeground:W.fromHex("#FFFFFF"),inputActiveOptionBackground:W.fromHex("#0E639C50")};class y_ extends yo{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},gX),e),this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...Ln.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=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,i=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault(),i.stopPropagation();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}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 2+2+2+16}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const fX=p("caseDescription","Match Case"),pX=p("wordsDescription","Match Whole Word"),mX=p("regexDescription","Use Regular Expression");class M5 extends y_{constructor(e){super({icon:m.caseSensitive,title:fX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class R5 extends y_{constructor(e){super({icon:m.wholeWord,title:pX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class O5 extends y_{constructor(e){super({icon:m.regex,title:mX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}const _X=p("defaultLabel","input");class bX extends yo{constructor(e,t,i,n){var s;super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onCaseSensitiveKeyDown=this._register(new R),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new R),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||_X,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const r=n.appendCaseSensitiveLabel||"",a=n.appendWholeWordsLabel||"",l=n.appendRegexLabel||"",c=n.history||[],d=!!n.flexibleHeight,h=!!n.flexibleWidth,u=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new y5(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:c,showHistoryHint:n.showHistoryHint,flexibleHeight:d,flexibleWidth:h,flexibleMaxHeight:u})),this.regex=this._register(new O5({appendTitle:l,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(f=>{this._onRegexKeyDown.fire(f)})),this.wholeWords=this._register(new R5({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new M5({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(f=>{this._onCaseSensitiveKeyDown.fire(f)}));const g=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,f=>{if(f.equals(15)||f.equals(17)||f.equals(9)){const _=g.indexOf(document.activeElement);if(_>=0){let b=-1;f.equals(17)?b=(_+1)%g.length:f.equals(15)&&(_===0?b=g.length-1:b=_-1),f.equals(9)?(g[_].blur(),this.inputBox.focus()):b>=0&&g[b].focus(),ut.stop(f,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this._showOptionButtons||(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none");for(const f of(s=n==null?void 0:n.additionalToggles)!==null&&s!==void 0?s:[])this._register(f),this.controls.appendChild(f.domNode),this._register(f.onChange(_=>{this._onDidOptionChange.fire(_),!_&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(f);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((f,_)=>f+_.width(),0),this.domNode.appendChild(this.controls),e==null||e.appendChild(this.domNode),this._register(G(this.inputBox.inputElement,"compositionstart",f=>{this.imeSessionInProgress=!0})),this._register(G(this.inputBox.inputElement,"compositionend",f=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,f=>this._onKeyDown.fire(f)),this.onkeyup(this.inputBox.inputElement,f=>this._onKeyUp.fire(f)),this.oninput(this.inputBox.inputElement,f=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,f=>this._onMouseDown.fire(f))}get onDidChange(){return this.inputBox.onDidChange}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);for(const i of this.additionalToggles)i.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.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()}}var gd;(function(o){o[o.Unknown=0]="Unknown",o[o.Twistie=1]="Twistie",o[o.Element=2]="Element",o[o.Filter=3]="Filter"})(gd||(gd={}));class Ws extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class aN{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function lN(o){return typeof o=="object"&&"visibility"in o&&"data"in o}function Lm(o){switch(o){case!0:return 1;case!1:return 0;default:return o}}function GS(o){return typeof o.collapsible=="boolean"}class vX{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new gI,this._onDidChangeCollapseState=new R,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new R,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new R,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new Kr(RP),this.collapseByDefault=typeof n.collapseByDefault>"u"?!1:n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=typeof n.autoExpandSingleChildren>"u"?!1:n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=je.empty(),n={}){if(e.length===0)throw new Ws(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,s,r){var a;n===void 0&&(n=je.empty()),r===void 0&&(r=(a=s.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const c=[...n],d=t[t.length-1],h=new xr({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,d),...c,...l.children.slice(d+i)].map(b=>e.getId(b.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,s);const u=t.slice(0,-1),g=(b,v,C)=>{if(r>0)for(let w=0;wC.originalStart-v.originalStart))g(f,_,f-(b.originalStart+b.originalLength)),f=b.originalStart,_=b.modifiedStart-d,this.spliceSimple([...u,f],b.originalLength,je.slice(c,_,_+b.modifiedLength),s);g(f,_,f)}spliceSimple(e,t,i=je.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),h=[],u=je.map(i,y=>this.createTreeNode(y,a,a.visible?1:0,c,h,n)),g=e[e.length-1],f=a.children.length>0;let _=0;for(let y=g;y>=0&&yr.getId(y.element).toString())):a.lastDiffIds=a.children.map(y=>r.getId(y.element).toString()):a.lastDiffIds=void 0;let S=0;for(const y of w)y.visible&&S++;if(S!==0)for(let y=g+b.length;yD+(I.visible?I.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,C-y),this.list.splice(l,y,h)}if(w.length>0&&s){const y=D=>{s(D),D.children.forEach(y)};w.forEach(y)}this._onDidSplice.fire({insertedNodes:b,deletedNodes:w});const k=a.children.length>0;f!==k&&this.setCollapsible(e.slice(0,-1),k);let x=a;for(;x;){if(x.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}x=x.parent}}rerender(e){if(e.length===0)throw new Ws(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t>"u"&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);typeof t>"u"&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!GS(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(GS(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!GS(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,n&&s.push(a);const c=e.children||je.empty(),d=n&&l!==0&&!a.collapsed,h=je.map(c,f=>this.createTreeNode(f,a,l,d,s,r));let u=0,g=1;for(const f of h)a.children.push(f),g+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=u++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=u,a.visible=l===2?u>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=g):(a.renderNodeCount=0,n&&s.pop()),r==null||r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(s=this._filterNode(e,t),s===0)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||s!==0){let l=0;for(const c of e.children)a=this._updateNodeAfterFilterChange(c,s,i,n&&!e.collapsed)||a,c.visible&&(c.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=s===2?a:s===1,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):lN(i)?(e.filterData=i.data,Lm(i.visibility)):(e.filterData=void 0,Lm(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...n]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new Ws(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:s}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:n,visible:s&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,s=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function ZS(o){return o instanceof w_?new wX(o):o}class SX{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=H.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,ZS(e),t)}onDragOver(e,t,i,n,s=!0){const r=this.dnd.onDragOver(ZS(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t>"u")return r;if(a&&typeof r!="boolean"&&r.autoExpand&&(this.autoExpandDisposable=Ad(()=>{const u=this.modelProvider(),g=u.getNodeLocation(t);u.isCollapsed(g)&&u.setCollapsed(g,!1),this.autoExpandNode=void 0},500)),typeof r=="boolean"||!r.accept||typeof r.bubble>"u"||r.feedback){if(!s){const u=typeof r=="boolean"?r:r.accept,g=typeof r=="boolean"?void 0:r.effect;return{accept:u,effect:g,feedback:[i]}}return r}if(r.bubble===1){const u=this.modelProvider(),g=u.getNodeLocation(t),f=u.getParentNodeLocation(g),_=u.getNode(f),b=f&&u.getListIndex(f);return this.onDragOver(e,_,b,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),h=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:Cn(d,d+h)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ZS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function yX(o,e){return e&&Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new SX(o,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getSetSize(t){const i=o(),n=i.getNodeLocation(t),s=i.getParentNodeLocation(n);return i.getNode(s).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}})})}class cN{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;(n=(i=this.delegate).setDynamicHeight)===null||n===void 0||n.call(i,e.element,t)}}var Dm;(function(o){o.None="none",o.OnHover="onHover",o.Always="always"})(Dm||(Dm={}));class LX{constructor(e,t=[]){this._elements=t,this.disposables=new Q,this.onDidChange=ge.forEach(e,i=>this._elements=i,this.disposables)}get elements(){return this._elements}dispose(){this.disposables.dispose()}}class km{constructor(e,t,i,n,s={}){var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=km.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new CX,this.activeIndentNodes=new Set,this.indentGuidesDisposable=H.None,this.disposables=new Q,this.templateId=e.templateId,this.updateOptions(s),ge.map(i,a=>a.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(r=e.onDidChangeTwistieState)===null||r===void 0||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent<"u"&&(this.indent=Zn(e.indent,0,40)),typeof e.renderIndentGuides<"u"){const t=e.renderIndentGuides!==Dm.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const i=new Q;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof e.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=q(e,J(".monaco-tl-row")),i=q(t,J(".monaco-tl-indent")),n=q(t,J(".monaco-tl-twistie")),s=q(t,J(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:n,indentGuidesDisposable:H.None,templateData:r}}renderElement(e,t,i,n){typeof n=="number"&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));const s=km.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${s}px`,i.indent.style.width=`${s+this.indent-16}px`,this.renderTwistie(e,i),typeof n=="number"&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,r;i.indentGuidesDisposable.dispose(),(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,e,t,i.templateData,n),typeof n=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);!t||this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);!t||(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...m.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...m.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Si(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new Q,n=this.modelProvider();let s=e;for(;;){const r=n.getNodeLocation(s),a=n.getParentNodeLocation(r);if(!a)break;const l=n.getNode(a),c=J(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add(Be(()=>this.renderedIndentGuides.delete(l,c))),s=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(n=>{const s=i.getNodeLocation(n);try{const r=i.getParentNodeLocation(s);n.collapsible&&n.children.length>0&&!n.collapsed?t.add(n):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(n=>{t.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.remove("active"))}),t.forEach(n=>{this.activeIndentNodes.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),nt(this.disposables)}}km.DefaultIndent=8;class DX{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new Q,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}filter(e,t){let i=1;if(this._filter){const r=this._filter.filter(e,t);if(typeof r=="boolean"?i=r?1:0:lN(r)?i=Lm(r.visibility):i=r,i===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:Zo.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const r of s){const a=r&&r.toString();if(typeof a>"u")return{data:Zo.Default,visibility:i};const l=mg(this._pattern,this._lowercasePattern,0,a,a.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(l)return this._matchCount++,s.length===1?{data:l,visibility:i}:{data:{label:a,score:l},visibility:i}}return this.tree.findMode===Fr.Filter?2:{data:Zo.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){nt(this.disposables)}}var Fr;(function(o){o[o.Highlight=0]="Highlight",o[o.Filter=1]="Filter"})(Fr||(Fr={}));class kX{constructor(e,t,i,n,s){var r;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this._pattern="",this.width=0,this._onDidChangeMode=new R,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangePattern=new R,this._onDidChangeOpenState=new R,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new Q,this.disposables=new Q,this._mode=(r=e.options.defaultFindMode)!==null&&r!==void 0?r:Fr.Highlight,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var e,t;const i=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&i?(e=this.widget)===null||e===void 0||e.showMessage({type:2,content:p("not found","No elements found.")}):(t=this.widget)===null||t===void 0||t.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===Fr.Filter||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!Zo.isDefault(e.filterData)}style(e){var t;this.styles=e,(t=this.widget)===null||t===void 0||t.style(e)}layout(e){var t;this.width=e,(t=this.widget)===null||t===void 0||t.layout(e)}dispose(){this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function FM(o){let e=gd.Unknown;return rS(o.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=gd.Twistie:rS(o.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?e=gd.Element:rS(o.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(e=gd.Filter),{browserEvent:o.browserEvent,element:o.element?o.element.element:null,target:e}}function D0(o,e){e(o),o.children.forEach(t=>D0(t,e))}class YS{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new R,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(t!=null&&t.__forceEvent)&&Ss(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),c=d=>l.delete(d);t.forEach(d=>D0(d,c)),this.set([...l.values()]);return}const i=new Set,n=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>D0(l,n));const s=new Map,r=l=>s.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>D0(l,r));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const h=s.get(c);h&&a.push(h)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class xX extends E5{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(D5(e.browserEvent.target)||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let s=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?s=this.tree.expandOnlyOnTwistieClick(t.element):s=!!this.tree.expandOnlyOnTwistieClick,s&&!n&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e);if(t.collapsible){const r=this.tree.model,a=r.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),r.setCollapsed(a,void 0,l),s&&n)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick(e)}}class IX extends rr{constructor(e,t,i,n,s,r,a,l){super(e,t,i,n,l),this.focusTrait=s,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new xX(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const n=[],s=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&n.push(e+l),this.selectionTrait.has(a)&&s.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),n.length>0&&super.setFocus(Qa([...super.getFocus(),...n])),s.length>0&&super.setSelection(Qa([...super.getSelection(),...s])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(n=>this.element(n)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(n=>this.element(n)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class P5{constructor(e,t,i,n,s={}){var r;this._user=e,this._options=s,this.eventBufferer=new gI,this.onDidChangeFindOpenState=ge.None,this.disposables=new Q,this._onWillRefilter=new R,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new R;const a=new cN(i),l=new AT,c=new AT,d=this.disposables.add(new LX(c.event));this.renderers=n.map(g=>new km(g,()=>this.model,l.event,d,s));for(const g of this.renderers)this.disposables.add(g);let h;s.keyboardNavigationLabelProvider&&(h=new DX(this,s.keyboardNavigationLabelProvider,s.filter),s=Object.assign(Object.assign({},s),{filter:h}),this.disposables.add(h)),this.focus=new YS(()=>this.view.getFocusedElements()[0],s.identityProvider),this.selection=new YS(()=>this.view.getSelectedElements()[0],s.identityProvider),this.anchor=new YS(()=>this.view.getAnchorElement(),s.identityProvider),this.view=new IX(e,t,a,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},yX(()=>this.model,s)),{tree:this})),this.model=this.createModel(e,this.view,s),l.input=this.model.onDidChangeCollapseState;const u=ge.forEach(this.model.onDidSplice,g=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(g),this.selection.onDidModelSplice(g)})},this.disposables);if(u(()=>null,null,this.disposables),c.input=ge.chain(ge.any(u,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const g=new Set;for(const f of this.focus.getNodes())g.add(f);for(const f of this.selection.getNodes())g.add(f);return[...g.values()]}).event,s.keyboardSupport!==!1){const g=ge.chain(this.view.onKeyDown).filter(f=>!jd(f.target)).map(f=>new Rt(f));g.filter(f=>f.keyCode===15).on(this.onLeftArrow,this,this.disposables),g.filter(f=>f.keyCode===17).on(this.onRightArrow,this,this.disposables),g.filter(f=>f.keyCode===10).on(this.onSpace,this,this.disposables)}((r=s.findWidgetEnabled)!==null&&r!==void 0?r:!0)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider?(this.findController=new kX(this,this.model,this.view,h,s.contextViewProvider),this.focusNavigationFilter=g=>this.findController.shouldAllowFocus(g),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode):this.onDidChangeFindMode=ge.None,this.styleElement=Qs(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return ge.filter(ge.map(this.view.onMouseDblClick,FM),e=>e.target!==gd.Filter)}get onPointer(){return ge.map(this.view.onPointer,FM)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return ge.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return(t=(e=this.findController)===null||e===void 0?void 0:e.mode)!==null&&t!==void 0?t:Fr.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),tc(t)&&((i=this.findController)===null||i===void 0||i.layout(t))}style(e){var t;const i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=n.join(` -`),(t=this.findController)===null||t===void 0||t.style(e),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(s=>this.model.getNode(s));this.selection.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(s=>this.model.getNode(s));this.focus.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);i!==-1&&this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const r=this.model.getParentNodeLocation(n);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){nt(this.disposables),this.view.dispose()}}class dN{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new vX(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(n,s){return i.sorter.compare(n.element,s.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=je.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=je.empty(),i){const n=new Set,s=new Set,r=l=>{var c;if(l.element===null)return;const d=l;if(n.add(d.element),this.nodes.set(d.element,d),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.add(h),this.nodesByIdentity.set(h,d)}(c=i.onDidCreateNode)===null||c===void 0||c.call(i,d)},a=l=>{var c;if(l.element===null)return;const d=l;if(n.has(d.element)||this.nodes.delete(d.element),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.has(h)||this.nodesByIdentity.delete(h)}(c=i.onDidDeleteNode)===null||c===void 0||c.call(i,d)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:r,onDidDeleteNode:a}))}preserveCollapseState(e=je.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),je.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i)return Object.assign(Object.assign({},t),{children:this.preserveCollapseState(t.children)});const n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,s=typeof t.collapsed<"u"?t.collapsed:i.collapsed;return Object.assign(Object.assign({},t),{collapsible:n,collapsed:s,children:this.preserveCollapseState(t.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new Ws(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function k0(o){const e=[o.element],t=o.incompressible||!1;return{element:{elements:e,incompressible:t},children:je.map(je.from(o.children),k0),collapsible:o.collapsible,collapsed:o.collapsed}}function x0(o){const e=[o.element],t=o.incompressible||!1;let i,n;for(;[n,i]=je.consume(je.from(o.children),2),!(n.length!==1||n[0].incompressible);)o=n[0],e.push(o.element);return{element:{elements:e,incompressible:t},children:je.map(je.concat(n,i),x0),collapsible:o.collapsible,collapsed:o.collapsed}}function dk(o,e=0){let t;return edk(i,0)),e===0&&o.element.incompressible?{element:o.element.elements[e],children:t,incompressible:!0,collapsible:o.collapsible,collapsed:o.collapsed}:{element:o.element.elements[e],children:t,collapsible:o.collapsible,collapsed:o.collapsed}}function BM(o){return dk(o,0)}function F5(o,e,t){return o.element===e?Object.assign(Object.assign({},o),{children:t}):Object.assign(Object.assign({},o),{children:je.map(je.from(o.children),i=>F5(i,e,t))})}const EX=o=>({getId(e){return e.elements.map(t=>o.getId(t).toString()).join("\0")}});class NX{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new dN(e,t,i),this.enabled=typeof i.compressionEnabled>"u"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=je.empty(),i){const n=i.diffIdentityProvider&&EX(i.diffIdentityProvider);if(e===null){const g=je.map(t,this.enabled?x0:k0);this._setChildren(null,g,{diffIdentityProvider:n,diffDepth:1/0});return}const s=this.nodes.get(e);if(!s)throw new Error("Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),c=BM(r),d=F5(c,e,t),h=(this.enabled?x0:k0)(d),u=l.children.map(g=>g===r?h:g);this._setChildren(l.element,u,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,n=je.map(i,BM),s=je.map(n,e?x0:k0);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,s=a=>{for(const l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:s,onDidDeleteNode:r}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}}const TX=o=>o[o.length-1];class hN{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new hN(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function AX(o,e){return{splice(t,i,n){e.splice(t,i,n.map(s=>o.map(s)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function MX(o,e){return Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(o(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(o(t),i)}}})}class RX{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||TX;const n=s=>this.elementMapper(s.elements);this.nodeMapper=new aN(s=>new hN(n,s)),this.model=new NX(e,AX(this.nodeMapper,t),MX(n,i))}get onDidSplice(){return ge.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return ge.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return ge.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=je.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var OX=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};class uN extends P5{constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new dN(e,t,i)}}class B5{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){const s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);s.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,r,a,l;i.compressedTreeNode?(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,i.compressedTreeNode,t,i.data,n):(l=(a=this.renderer).disposeElement)===null||l===void 0||l.call(a,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}OX([pi],B5.prototype,"compressedTreeNodeProvider",null);function PX(o,e){return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=o().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}class W5 extends uN{constructor(e,t,i,n,s={}){const r=()=>this,a=n.map(l=>new B5(r,l));super(e,t,i,a,PX(r,s))}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new RX(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var vl=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function QS(o){return Object.assign(Object.assign({},o),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function hk(o,e){return e.parent?e.parent===o?!0:hk(o,e.parent):!1}function FX(o,e){return o===e||hk(o,e)||hk(e,o)}class gN{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new gN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class BX{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function WM(o){return{browserEvent:o.browserEvent,elements:o.elements.map(e=>e.element)}}function VM(o){return{browserEvent:o.browserEvent,element:o.element&&o.element.element,target:o.target}}class WX extends w_{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function XS(o){return o instanceof w_?new WX(o):o}class VX{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,XS(e),t)}onDragOver(e,t,i,n,s=!0){return this.dnd.onDragOver(XS(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(XS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function V5(o){return o&&Object.assign(Object.assign({},o),{collapseByDefault:!0,identityProvider:o.identityProvider&&{getId(e){return o.identityProvider.getId(e.element)}},dnd:o.dnd&&new VX(o.dnd),multipleSelectionController:o.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return o.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return o.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:o.accessibilityProvider&&Object.assign(Object.assign({},o.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:o.accessibilityProvider.getRole?e=>o.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:o.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=o.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return o.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return o.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:o.accessibilityProvider.getWidgetRole?()=>o.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:o.accessibilityProvider.getAriaLevel&&(e=>o.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:o.accessibilityProvider.getActiveDescendantId&&(e=>o.accessibilityProvider.getActiveDescendantId(e.element))}),filter:o.filter&&{filter(e,t){return o.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},o.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return o.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof o.expandOnlyOnTwistieClick>"u"?void 0:typeof o.expandOnlyOnTwistieClick!="function"?o.expandOnlyOnTwistieClick:e=>o.expandOnlyOnTwistieClick(e.element),additionalScrollHeight:o.additionalScrollHeight})}function uk(o,e){e(o),o.children.forEach(t=>uk(t,e))}class H5{constructor(e,t,i,n,s,r={}){this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new R,this._onDidChangeNodeSlowState=new R,this.nodeMapper=new aN(a=>new gN(a)),this.disposables=new Q,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,n,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=QS({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return ge.map(this.tree.onDidChangeFocus,WM)}get onDidChangeSelection(){return ge.map(this.tree.onDidChangeSelection,WM)}get onMouseDblClick(){return ge.map(this.tree.onMouseDblClick,VM)}get onPointer(){return ge.map(this.tree.onPointer,VM)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new BX(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=V5(s)||{};return new uN(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return vl(this,void 0,void 0,function*(){this.refreshPromises.forEach(n=>n.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)})}_updateChildren(e=this.root.element,t=!0,i=!1,n,s){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,n,s),i)try{this.tree.rerender(r)}catch{}})}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),n})}setSelection(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Ws(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return vl(this,void 0,void 0,function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)})}refreshNode(e,t,i){return vl(this,void 0,void 0,function*(){let n;if(this.subTreeRefreshPromises.forEach((s,r)=>{!n&&FX(r,e)&&(n=s.then(()=>this.refreshNode(e,t,i)))}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0;return}return this.doRefreshSubTree(e,t,i)})}doRefreshSubTree(e,t,i){return vl(this,void 0,void 0,function*(){let n;e.refreshPromise=new Promise(s=>n=s),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const s=yield this.doRefreshNode(e,t,i);e.stale=!1,yield KL.settled(s.map(r=>this.doRefreshSubTree(r,t,i)))}finally{n()}})}doRefreshNode(e,t,i){return vl(this,void 0,void 0,function*(){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(je.empty());else{const s=this.doGetChildren(e);if(ET(s))n=Promise.resolve(s);else{const r=sc(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=s.finally(()=>r.cancel())}}try{const s=yield n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),ea(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}})}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return ET(i)?this.processChildren(i):(t=Ri(()=>vl(this,void 0,void 0,function*(){return this.processChildren(yield i)})),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Te))}setChildren(e,t,i,n){const s=[...t];if(e.children.length===0&&s.length===0)return[];const r=new Map,a=new Map;for(const d of e.children)if(r.set(d.element,d),this.identityProvider){const h=this.tree.isCollapsed(d);a.set(d.id,{node:d,collapsed:h})}const l=[],c=s.map(d=>{const h=!!this.dataSource.hasChildren(d);if(!this.identityProvider){const _=QS({element:d,parent:e,hasChildren:h});return h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const u=this.identityProvider.getId(d).toString(),g=a.get(u);if(g){const _=g.node;return r.delete(_.element),this.nodes.delete(_.element),this.nodes.set(d,_),_.element=d,_.hasChildren=h,i?g.collapsed?(_.children.forEach(b=>uk(b,v=>this.nodes.delete(v.element))),_.children.splice(0,_.children.length),_.stale=!0):l.push(_):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const f=QS({element:d,parent:e,id:u,hasChildren:h});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(f),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(f),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1?l.push(f):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(f.collapsedByDefault=!1,l.push(f)),f});for(const d of r.values())uk(d,h=>this.nodes.delete(h.element));for(const d of c)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].collapsedByDefault=!1,l.push(c[0])),l}render(e,t,i){const n=e.children.map(r=>this.asTreeElement(r,t)),s=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}});this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:i=e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?je.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class fN{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new fN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class HX{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,r;(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=nt(this.disposables)}}function zX(o){const e=o&&V5(o);return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return o.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}})})}class UX extends H5{constructor(e,t,i,n,s,r,a={}){super(e,t,i,s,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new aN(l=>new fN(l)),this.filter=a.filter}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new HX(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=zX(s)||{};return new W5(e,t,r,a,l)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=u=>this.identityProvider.getId(u).toString(),n=u=>{const g=new Set;for(const f of u){const _=this.tree.getCompressedTreeNode(f===this.root?null:f);if(!!_.element)for(const b of _.element.elements)g.add(i(b.element))}return g},s=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let l=!1;const c=this.getFocus();let d=!1;const h=u=>{const g=u.element;if(g)for(let f=0;f{const i=this.filter.filter(t,1),n=$X(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}}function $X(o){return typeof o=="boolean"?o?1:0:lN(o)?Lm(o.visibility):Lm(o)}class jX extends P5{constructor(e,t,i,n,s,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=s,this.identityProvider=r.identityProvider}createModel(e,t,i){return new dN(e,t,i)}}new le("isMac",Ge,p("isMac","Whether the operating system is macOS"));new le("isLinux",dn,p("isLinux","Whether the operating system is Linux"));const B1=new le("isWindows",Yi,p("isWindows","Whether the operating system is Windows"));new le("isWeb",Sc,p("isWeb","Whether the platform is a web browser"));new le("isMacNative",Ge&&!Sc,p("isMacNative","Whether the operating system is macOS on a non-browser platform"));new le("isIOS",Ur,p("isIOS","Whether the operating system is iOS"));new le("isDevelopment",!1,!0);new le("productQualityType","",p("productQualityType","Quality type of VS Code"));const z5="inputFocus";new le(z5,!1,p("inputFocus","Whether keyboard focus is inside an input box"));var sa=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},st=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const so=Ye("listService");let gk=class{constructor(e){this._themeService=e,this.disposables=new Q,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const n=new N5(Qs(),"");this.disposables.add(Ud(n,this._themeService))}if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),qo(e.onDidFocus(()=>this.setLastFocusedList(e)),Be(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};gk=sa([st(0,Ct)],gk);const U5=new le("listFocus",!0),W1=new le("listSupportsMultiselect",!0),$5=se.and(U5,se.not(z5)),pN=new le("listHasSelectionOrFocus",!1),mN=new le("listDoubleSelection",!1),_N=new le("listMultiSelection",!1),V1=new le("listSelectionNavigation",!1),KX=new le("listSupportsFind",!0),bN=new le("treeElementCanCollapse",!1),qX=new le("treeElementHasParent",!1),vN=new le("treeElementCanExpand",!1),GX=new le("treeElementHasChild",!1),ZX=new le("treeFindOpen",!1),j5="listTypeNavigationMode",K5="listAutomaticKeyboardNavigation";function H1(o,e){const t=o.createScoped(e.getHTMLElement());return U5.bindTo(t),t}const Sh="workbench.list.multiSelectModifier",fk="workbench.list.openMode",Gs="workbench.list.horizontalScrolling",CN="workbench.list.defaultFindMode",wN="workbench.list.keyboardNavigation",xm="workbench.tree.indent",rC="workbench.tree.renderIndentGuides",tr="workbench.list.smoothScrolling",Yr="workbench.list.mouseWheelScrollSensitivity",Qr="workbench.list.fastScrollSensitivity",aC="workbench.tree.expandMode";function Xr(o){return o.getValue(Sh)==="alt"}class YX extends H{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Xr(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Sh)&&(this.useAltAsMultipleSelectionModifier=Xr(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:x5(e)}isSelectionRangeChangeEvent(e){return I5(e)}}function z1(o,e){var t;const i=o.get(ot),n=o.get(_i),s=new Q;return[Object.assign(Object.assign({},e),{keyboardNavigationDelegate:{mightProducePrintableCharacter(a){return n.mightProducePrintableCharacter(a)}},smoothScrolling:Boolean(i.getValue(tr)),mouseWheelScrollSensitivity:i.getValue(Yr),fastScrollSensitivity:i.getValue(Qr),multipleSelectionController:(t=e.multipleSelectionController)!==null&&t!==void 0?t:s.add(new YX(i)),keyboardNavigationEventFilter:JX(n)}),s]}let pk=class extends rr{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const _=this.getSelection(),b=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(_.length>0||b.length>0),this.listMultiSelection.set(_.length>1),this.listDoubleSelection.set(_.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const _=this.getSelection(),b=this.getFocus();this.listHasSelectionOrFocus.set(_.length>0||b.length>0)})),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new q5(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),super.dispose()}};pk=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],pk);let HM=class extends aX{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables=new Q,this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),s.overrideStyles&&this.disposables.add(Ud(this,l,s.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new q5(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};HM=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],HM);let zM=class extends F1{constructor(e,t,i,n,s,r,a,l,c,d,h){const u=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:Boolean(d.getValue(Gs)),[g,f]=h.invokeFunction(z1,r);super(e,t,i,n,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(c.getColorTheme(),A1)),g),{horizontalScrolling:u})),this.disposables.add(f),this.contextKeyService=H1(a,this),this.themeService=c,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(d),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const b=this.getSelection(),v=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(b.length>0||v.length>0),this.listMultiSelection.set(b.length>1),this.listDoubleSelection.set(b.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const b=this.getSelection(),v=this.getFocus();this.listHasSelectionOrFocus.set(b.length>0||v.length>0)})),this.disposables.add(d.onDidChangeConfiguration(b=>{b.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(d));let v={};if(b.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const C=Boolean(d.getValue(Gs));v=Object.assign(Object.assign({},v),{horizontalScrolling:C})}if(b.affectsConfiguration(tr)){const C=Boolean(d.getValue(tr));v=Object.assign(Object.assign({},v),{smoothScrolling:C})}if(b.affectsConfiguration(Yr)){const C=d.getValue(Yr);v=Object.assign(Object.assign({},v),{mouseWheelScrollSensitivity:C})}if(b.affectsConfiguration(Qr)){const C=d.getValue(Qr);v=Object.assign(Object.assign({},v),{fastScrollSensitivity:C})}Object.keys(v).length>0&&this.updateOptions(v)})),this.navigator=new QX(this,Object.assign({configurationService:d},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};zM=sa([st(6,Ee),st(7,so),st(8,Ct),st(9,ot),st(10,Ae)],zM);class SN extends H{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new R),this.onDidOpen=this._onDidOpen.event,this._register(ge.filter(this.widget.onDidChangeSelection,n=>n.browserEvent instanceof KeyboardEvent)(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t==null?void 0:t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick"}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i,s=!1;this._open(this.getSelectedElement(),i,n,s,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const n=t.button===1,s=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}_open(e,t,i,n,s){!e||this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class q5 extends SN{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class QX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class XX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function JX(o){let e=!1;return t=>{if(t.toKeybinding().isModifierKey())return!1;if(e)return e=!1,!1;const i=o.softDispatch(t,t.target);return i!=null&&i.enterChord?(e=!0,!1):(e=!1,!i)}}let UM=class extends uN{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};UM=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],UM);let $M=class extends W5{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};$M=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],$M);let jM=class extends jX{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};jM=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],jM);let mk=class extends H5{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mk=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],mk);let KM=class extends UX{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const{options:g,getTypeNavigationMode:f,disposable:_}=l.invokeFunction(L_,a);super(e,t,i,n,s,r,g),this.disposables.add(_),this.internals=new Kd(this,a,f,a.overrideStyles,c,d,h,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};KM=sa([st(7,Ae),st(8,Ee),st(9,so),st(10,Ct),st(11,ot)],KM);function G5(o){const e=o.getValue(CN);if(e==="highlight")return Fr.Highlight;if(e==="filter")return Fr.Filter;const t=o.getValue(wN);if(t==="simple"||t==="highlight")return Fr.Highlight;if(t==="filter")return Fr.Filter}function L_(o,e){var t;const i=o.get(ot),n=o.get(vh),s=o.get(Ee),r=o.get(Ae),a=()=>{const u=s.getContextKeyValue(j5);if(u==="automatic")return Yl.Automatic;if(u==="trigger"||s.getContextKeyValue(K5)===!1)return Yl.Trigger},l=e.horizontalScrolling!==void 0?e.horizontalScrolling:Boolean(i.getValue(Gs)),[c,d]=r.invokeFunction(z1,e),h=e.additionalScrollHeight;return{getTypeNavigationMode:a,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},c),{indent:typeof i.getValue(xm)=="number"?i.getValue(xm):void 0,renderIndentGuides:i.getValue(rC),smoothScrolling:Boolean(i.getValue(tr)),defaultFindMode:G5(i),horizontalScrolling:l,additionalScrollHeight:h,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(t=e.expandOnlyOnTwistieClick)!==null&&t!==void 0?t:i.getValue(aC)==="doubleClick",contextViewProvider:n})}}let Kd=class{constructor(e,t,i,n,s,r,a,l){var c;this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=H1(s,e),this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=KX.bindTo(this.contextKeyService),this.listSupportFindWidget.set((c=t.findWidgetEnabled)!==null&&c!==void 0?c:!0),this.hasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.hasDoubleSelection=mN.bindTo(this.contextKeyService),this.hasMultiSelection=_N.bindTo(this.contextKeyService),this.treeElementCanCollapse=bN.bindTo(this.contextKeyService),this.treeElementHasParent=qX.bindTo(this.contextKeyService),this.treeElementCanExpand=vN.bindTo(this.contextKeyService),this.treeElementHasChild=GX.bindTo(this.contextKeyService),this.treeFindOpen=ZX.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Xr(l),this.updateStyleOverrides(n);const h=()=>{const g=e.getFocus()[0];if(!g)return;const f=e.getNode(g);this.treeElementCanCollapse.set(f.collapsible&&!f.collapsed),this.treeElementHasParent.set(!!e.getParentElement(g)),this.treeElementCanExpand.set(f.collapsible&&f.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(g))},u=new Set;u.add(j5),u.add(K5),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const g=e.getSelection(),f=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(g.length>0||f.length>0),this.hasMultiSelection.set(g.length>1),this.hasDoubleSelection.set(g.length===2)})}),e.onDidChangeFocus(()=>{const g=e.getSelection(),f=e.getFocus();this.hasSelectionOrFocus.set(g.length>0||f.length>0),h()}),e.onDidChangeCollapseState(h),e.onDidChangeModel(h),e.onDidChangeFindOpenState(g=>this.treeFindOpen.set(g)),l.onDidChangeConfiguration(g=>{let f={};if(g.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(l)),g.affectsConfiguration(xm)){const _=l.getValue(xm);f=Object.assign(Object.assign({},f),{indent:_})}if(g.affectsConfiguration(rC)){const _=l.getValue(rC);f=Object.assign(Object.assign({},f),{renderIndentGuides:_})}if(g.affectsConfiguration(tr)){const _=Boolean(l.getValue(tr));f=Object.assign(Object.assign({},f),{smoothScrolling:_})}if((g.affectsConfiguration(CN)||g.affectsConfiguration(wN))&&e.updateOptions({defaultFindMode:G5(l)}),g.affectsConfiguration(Gs)&&t.horizontalScrolling===void 0){const _=Boolean(l.getValue(Gs));f=Object.assign(Object.assign({},f),{horizontalScrolling:_})}if(g.affectsConfiguration(aC)&&t.expandOnlyOnTwistieClick===void 0&&(f=Object.assign(Object.assign({},f),{expandOnlyOnTwistieClick:l.getValue(aC)==="doubleClick"})),g.affectsConfiguration(Yr)){const _=l.getValue(Yr);f=Object.assign(Object.assign({},f),{mouseWheelScrollSensitivity:_})}if(g.affectsConfiguration(Qr)){const _=l.getValue(Qr);f=Object.assign(Object.assign({},f),{fastScrollSensitivity:_})}Object.keys(f).length>0&&e.updateOptions(f)}),this.contextKeyService.onDidChangeContext(g=>{g.affectsSome(u)&&e.updateOptions({typeNavigationMode:i()})})),this.navigator=new XX(e,Object.assign({configurationService:l},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){nt(this.styler),this.styler=e?Ud(this.tree,this.themeService,e):H.None}dispose(){this.disposables=nt(this.disposables),nt(this.styler),this.styler=void 0}};Kd=sa([st(4,Ee),st(5,so),st(6,Ct),st(7,ot)],Kd);const eJ=zt.as(rl.Configuration);eJ.registerConfiguration({id:"workbench",order:7,title:p("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Sh]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[p("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:p({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[fk]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Gs]:{type:"boolean",default:!1,description:p("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[xm]:{type:"number",default:8,minimum:4,maximum:40,description:p("tree indent setting","Controls tree indentation in pixels.")},[rC]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:p("render tree indent guides","Controls whether the tree should render indent guides.")},[tr]:{type:"boolean",default:!1,description:p("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Yr]:{type:"number",default:1,markdownDescription:p("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Qr]:{type:"number",default:5,description:p("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[CN]:{type:"string",enum:["highlight","filter"],enumDescriptions:[p("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),p("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:p("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[wN]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[p("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),p("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),p("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:p("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:p("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' instead.")},[aC]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}});var _k;(function(o){o[o.PRESERVE=0]="PRESERVE",o[o.LAST=1]="LAST"})(_k||(_k={}));const yh={Quickaccess:"workbench.contributions.quickaccess"};class tJ{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Be(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return i_([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}zt.add(yh.Quickaccess,new tJ);const dl=Ye("quickInputService");var iJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let bk=class extends H{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=zt.as(yh.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[s,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let g;if(a&&l&&l!==r){const f=a.value.substr(l.prefix.length);f&&(g=`${r.prefix}${f}`)}if(!g){const f=s==null?void 0:s.defaultFilterValue;f===_k.LAST?g=this.lastAcceptedPickerValues.get(r):typeof f=="string"&&(g=`${r.prefix}${f}`)}typeof g=="string"&&(e=g)}const c=new Q,d=c.add(this.quickInputService.createQuickPick());d.value=e,this.adjustValueSelection(d,r,i),d.placeholder=r==null?void 0:r.placeholder,d.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||(i==null?void 0:i.quickNavigateConfiguration))&&(d.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:To.SECOND),d.contextKey=r==null?void 0:r.contextKey,d.filterValue=g=>g.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(d.ariaLabel=r==null?void 0:r.placeholder);let h;t&&(h=new RI,c.add(Xa(d.onWillAccept)(g=>{g.veto(),d.hide()}))),c.add(this.registerPickerListeners(d,s,r,e));const u=c.add(new Qi);if(s&&c.add(s.provide(d,u.token)),Xa(d.onDidHide)(()=>{d.selectedItems.length===0&&u.cancel(),c.dispose(),h==null||h.complete(d.selectedItems.slice(0))}),d.show(),t)return h==null?void 0:h.p}adjustValueSelection(e,t,i){var n;let s;i!=null&&i.preserveValue?s=[e.value.length,e.value.length]:s=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n){const s=new Q,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return s.add(Be(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),s.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),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]}};bk=iJ([qM(0,dl),qM(1,Ae)],bk);var nJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Nf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vk=class extends GH{constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=s,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(bk))),this._quickAccess}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:s=>this.setContextKey(s),returnFocus:()=>e.focus(),createList:(s,r,a,l,c)=>this.instantiationService.createInstance(pk,s,r,a,l,c),styles:this.computeStyles()},n=this._register(new P1(Object.assign(Object.assign({},i),t)));return n.layout(e.dimension,e.offset.quickPickTop),this._register(e.onDidLayout(s=>n.layout(s,e.offset.quickPickTop))),this._register(n.onShow(()=>this.resetContextKeys())),this._register(n.onHide(()=>this.resetContextKeys())),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new le(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t==null||t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=ze.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Ao(this.theme,{quickInputBackground:M2,quickInputForeground:yz,quickInputTitleBackground:Lz,contrastBorder:We,widgetShadow:Ho})),inputBox:Ao(this.theme,{inputForeground:f1,inputBackground:g1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE}),countBadge:Ao(this.theme,{badgeBackground:gu,badgeForeground:fu,badgeBorder:We}),button:Ao(this.theme,{buttonForeground:Uf,buttonBackground:lD,buttonHoverBackground:pz,buttonBorder:We}),progressBar:Ao(this.theme,{progressBarBackground:mz}),keybindingLabel:Ao(this.theme,{keybindingLabelBackground:xz,keybindingLabelForeground:Iz,keybindingLabelBorder:Ez,keybindingLabelBottomBorder:Nz,keybindingLabelShadow:Ho}),list:Ao(this.theme,{listBackground:M2,listInactiveFocusForeground:jf,listInactiveSelectionIconForeground:Kf,listInactiveFocusBackground:qf,listFocusOutline:Ot,listInactiveFocusOutline:Ot,pickerGroupBorder:kz,pickerGroupForeground:Dz})}}};vk=nJ([Nf(0,Ae),Nf(1,Ee),Nf(2,Ct),Nf(3,al),Nf(4,Yg)],vk);var Z5=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},td=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Ck=class extends vk{constructor(e,t,i,n,s,r){super(t,i,n,s,new FD(e.getContainerDomNode(),r)),this.host=void 0;const a=wg.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return l.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus(),offset:{top:0,quickPickTop:0}}}else this.host=void 0}createController(){return super.createController(this.host)}};Ck=Z5([td(1,Ae),td(2,Ee),td(3,Ct),td(4,al),td(5,ct)],Ck);let wk=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}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(Ck,e);this.mapEditorToService.set(e,t),Xa(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=ze.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};wk=Z5([td(0,Ae),td(1,ct)],wk);class wg{constructor(e){this.editor=e,this.widget=new U1(this.editor)}static get(e){return e.getContribution(wg.ID)}dispose(){this.widget.dispose()}}wg.ID="editor.controller.quickInput";class U1{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return U1.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}U1.ID="editor.contrib.quickInputWidget";tt(wg.ID,wg);class sJ{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}function oJ(o){if(!o||!Array.isArray(o))return[];const e=[];let t=0;for(let i=0,n=o.length;i{const u=hJ(d.token,h.token);return u!==0?u:d.index-h.index});let t=0,i="000000",n="ffffff";for(;o.length>=1&&o[0].token==="";){const d=o.shift();d.fontStyle!==-1&&(t=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(n=d.background)}const s=new lJ;for(const d of e)s.getId(d);const r=s.getId(i),a=s.getId(n),l=new yN(t,r,a),c=new LN(l);for(let d=0,h=o.length;d"u"){const n=this._match(t),s=dJ(t);i=(n.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const cJ=/\b(comment|string|regex|regexp)\b/;function dJ(o){const e=o.match(cJ);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function hJ(o,e){return oe?1:0}class yN{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new yN(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class LN{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,n;t===-1?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return typeof s<"u"?s.match(n):this._mainRule}insert(e,t,i,n){if(e===""){this._mainRule.acceptOverwrite(t,i,n);return}const s=e.indexOf(".");let r,a;s===-1?(r=e,a=""):(r=e.substring(0,s),a=e.substring(s+1));let l=this._children.get(r);typeof l>"u"&&(l=new LN(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,n)}}function uJ(o){const e=[];for(let t=1,i=o.length;te.fire()),o==null||o.onDidProductIconThemeChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const i=o?o.getProductIconTheme():new Q5,n={},s=a=>{const l=i.getIcon(a);if(!l)return;const c=l.font;return c?(n[c.id]=c.definition,`.codicon-${a.id}:before { content: '${l.fontCharacter}'; font-family: ${x2(c.id)}; }`):`.codicon-${a.id}:before { content: '${l.fontCharacter}'; }`},r=[];for(const a of t.getIcons()){const l=s(a);l&&r.push(l)}for(const a in n){const l=n[a],c=l.weight?`font-weight: ${l.weight};`:"",d=l.style?`font-style: ${l.style};`:"",h=l.src.map(u=>`${Pd(u.location)} format('${u.format}')`).join(", ");r.push(`@font-face { src: ${h}; font-family: ${x2(a)};${c}${d} font-display: block; }`)}return r.join(` -`)}}}class Q5{getIcon(e){const t=UF();let i=e.defaults;for(;at.isThemeIcon(i);){const n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}}const Ra="vs",Ku="vs-dark",Sd="hc-black",yd="hc-light",X5=zt.as(D4.ColorContribution),bJ=zt.as(f4.ThemingContribution);class J5{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(I0(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,W.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=Sk(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,W.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=X5.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case Ra:return Hs.LIGHT;case Sd:return Hs.HIGH_CONTRAST_DARK;case yd:return Hs.HIGH_CONTRAST_LIGHT;default:return Hs.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const s=Sk(this.themeData.base);e=s.rules,s.encodedTokensColors&&(t=s.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const s={token:""};i&&(s.foreground=i),n&&(s.background=n),e.push(s)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=Y5.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=qi.getForeground(s),a=qi.getFontStyle(s);return{foreground:r,italic:Boolean(a&1),bold:Boolean(a&2),underline:Boolean(a&4),strikethrough:Boolean(a&8)}}}function I0(o){return o===Ra||o===Ku||o===Sd||o===yd}function Sk(o){switch(o){case Ra:return gJ;case Ku:return fJ;case Sd:return pJ;case yd:return mJ}}function Fb(o){const e=Sk(o);return new J5(o,e)}class vJ extends H{constructor(){super(),this._onColorThemeChange=this._register(new R),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new R),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new Q5,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Ra,Fb(Ra)),this._knownThemes.set(Ku,Fb(Ku)),this._knownThemes.set(Sd,Fb(Sd)),this._knownThemes.set(yd,Fb(yd));const e=_J(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} -${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(Ra),this._onOSSchemeChanged(),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),DI("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return Gp(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Qs(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),H.None}_registerShadowDomContainer(e){const t=Qs(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(Ra),this._updateActualTheme(t)}_updateActualTheme(e){!e||this._theme===e||(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=window.matchMedia("(forced-colors: active)").matches;if(e!==cn(this._theme.type)){let t;Xp(this._theme.type)?t=e?Sd:Ku:t=e?yd:Ra,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};bJ.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const n=[];for(const r of X5.getColors()){const a=this._theme.getColor(r.id,!0);a&&n.push(`${L4(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor { ${n.join(` +`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}F1.InstanceCount=0;const gX={inputActiveOptionBorder:W.fromHex("#007ACC00"),inputActiveOptionForeground:W.fromHex("#FFFFFF"),inputActiveOptionBackground:W.fromHex("#0E639C50")};class y_ extends yo{constructor(e){super(),this._onChange=this._register(new R),this.onChange=this._onChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},gX),e),this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...Ln.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=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,i=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault(),i.stopPropagation();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}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 2+2+2+16}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const fX=p("caseDescription","Match Case"),pX=p("wordsDescription","Match Whole Word"),mX=p("regexDescription","Use Regular Expression");class MF extends y_{constructor(e){super({icon:m.caseSensitive,title:fX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class RF extends y_{constructor(e){super({icon:m.wholeWord,title:pX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class OF extends y_{constructor(e){super({icon:m.regex,title:mX+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}const _X=p("defaultLabel","input");class bX extends yo{constructor(e,t,i,n){var s;super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onCaseSensitiveKeyDown=this._register(new R),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new R),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||_X,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const r=n.appendCaseSensitiveLabel||"",a=n.appendWholeWordsLabel||"",l=n.appendRegexLabel||"",c=n.history||[],d=!!n.flexibleHeight,h=!!n.flexibleWidth,u=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new yF(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:c,showHistoryHint:n.showHistoryHint,flexibleHeight:d,flexibleWidth:h,flexibleMaxHeight:u})),this.regex=this._register(new OF({appendTitle:l,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(f=>{this._onRegexKeyDown.fire(f)})),this.wholeWords=this._register(new RF({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new MF({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(f=>{this._onCaseSensitiveKeyDown.fire(f)}));const g=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,f=>{if(f.equals(15)||f.equals(17)||f.equals(9)){const _=g.indexOf(document.activeElement);if(_>=0){let b=-1;f.equals(17)?b=(_+1)%g.length:f.equals(15)&&(_===0?b=g.length-1:b=_-1),f.equals(9)?(g[_].blur(),this.inputBox.focus()):b>=0&&g[b].focus(),ut.stop(f,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this._showOptionButtons||(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none");for(const f of(s=n==null?void 0:n.additionalToggles)!==null&&s!==void 0?s:[])this._register(f),this.controls.appendChild(f.domNode),this._register(f.onChange(_=>{this._onDidOptionChange.fire(_),!_&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(f);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((f,_)=>f+_.width(),0),this.domNode.appendChild(this.controls),e==null||e.appendChild(this.domNode),this._register(G(this.inputBox.inputElement,"compositionstart",f=>{this.imeSessionInProgress=!0})),this._register(G(this.inputBox.inputElement,"compositionend",f=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,f=>this._onKeyDown.fire(f)),this.onkeyup(this.inputBox.inputElement,f=>this._onKeyUp.fire(f)),this.oninput(this.inputBox.inputElement,f=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,f=>this._onMouseDown.fire(f))}get onDidChange(){return this.inputBox.onDidChange}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);for(const i of this.additionalToggles)i.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.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()}}var gd;(function(o){o[o.Unknown=0]="Unknown",o[o.Twistie=1]="Twistie",o[o.Element=2]="Element",o[o.Filter=3]="Filter"})(gd||(gd={}));class Ws extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class aN{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function lN(o){return typeof o=="object"&&"visibility"in o&&"data"in o}function Lm(o){switch(o){case!0:return 1;case!1:return 0;default:return o}}function GS(o){return typeof o.collapsible=="boolean"}class vX{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new gI,this._onDidChangeCollapseState=new R,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new R,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new R,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new Kr(RP),this.collapseByDefault=typeof n.collapseByDefault>"u"?!1:n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=typeof n.autoExpandSingleChildren>"u"?!1:n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=je.empty(),n={}){if(e.length===0)throw new Ws(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,s,r){var a;n===void 0&&(n=je.empty()),r===void 0&&(r=(a=s.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const c=[...n],d=t[t.length-1],h=new xr({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,d),...c,...l.children.slice(d+i)].map(b=>e.getId(b.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,s);const u=t.slice(0,-1),g=(b,v,C)=>{if(r>0)for(let w=0;wC.originalStart-v.originalStart))g(f,_,f-(b.originalStart+b.originalLength)),f=b.originalStart,_=b.modifiedStart-d,this.spliceSimple([...u,f],b.originalLength,je.slice(c,_,_+b.modifiedLength),s);g(f,_,f)}spliceSimple(e,t,i=je.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),h=[],u=je.map(i,y=>this.createTreeNode(y,a,a.visible?1:0,c,h,n)),g=e[e.length-1],f=a.children.length>0;let _=0;for(let y=g;y>=0&&yr.getId(y.element).toString())):a.lastDiffIds=a.children.map(y=>r.getId(y.element).toString()):a.lastDiffIds=void 0;let S=0;for(const y of w)y.visible&&S++;if(S!==0)for(let y=g+b.length;yD+(I.visible?I.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,C-y),this.list.splice(l,y,h)}if(w.length>0&&s){const y=D=>{s(D),D.children.forEach(y)};w.forEach(y)}this._onDidSplice.fire({insertedNodes:b,deletedNodes:w});const k=a.children.length>0;f!==k&&this.setCollapsible(e.slice(0,-1),k);let x=a;for(;x;){if(x.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}x=x.parent}}rerender(e){if(e.length===0)throw new Ws(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t>"u"&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);typeof t>"u"&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!GS(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(GS(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!GS(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,n&&s.push(a);const c=e.children||je.empty(),d=n&&l!==0&&!a.collapsed,h=je.map(c,f=>this.createTreeNode(f,a,l,d,s,r));let u=0,g=1;for(const f of h)a.children.push(f),g+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=u++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=u,a.visible=l===2?u>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=g):(a.renderNodeCount=0,n&&s.pop()),r==null||r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(s=this._filterNode(e,t),s===0)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||s!==0){let l=0;for(const c of e.children)a=this._updateNodeAfterFilterChange(c,s,i,n&&!e.collapsed)||a,c.visible&&(c.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=s===2?a:s===1,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):lN(i)?(e.filterData=i.data,Lm(i.visibility)):(e.filterData=void 0,Lm(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...n]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new Ws(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:s}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:n,visible:s&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,s=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new Ws(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function ZS(o){return o instanceof w_?new wX(o):o}class SX{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=H.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,ZS(e),t)}onDragOver(e,t,i,n,s=!0){const r=this.dnd.onDragOver(ZS(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t>"u")return r;if(a&&typeof r!="boolean"&&r.autoExpand&&(this.autoExpandDisposable=Ad(()=>{const u=this.modelProvider(),g=u.getNodeLocation(t);u.isCollapsed(g)&&u.setCollapsed(g,!1),this.autoExpandNode=void 0},500)),typeof r=="boolean"||!r.accept||typeof r.bubble>"u"||r.feedback){if(!s){const u=typeof r=="boolean"?r:r.accept,g=typeof r=="boolean"?void 0:r.effect;return{accept:u,effect:g,feedback:[i]}}return r}if(r.bubble===1){const u=this.modelProvider(),g=u.getNodeLocation(t),f=u.getParentNodeLocation(g),_=u.getNode(f),b=f&&u.getListIndex(f);return this.onDragOver(e,_,b,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),h=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:Cn(d,d+h)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ZS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function yX(o,e){return e&&Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new SX(o,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getSetSize(t){const i=o(),n=i.getNodeLocation(t),s=i.getParentNodeLocation(n);return i.getNode(s).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}})})}class cN{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;(n=(i=this.delegate).setDynamicHeight)===null||n===void 0||n.call(i,e.element,t)}}var Dm;(function(o){o.None="none",o.OnHover="onHover",o.Always="always"})(Dm||(Dm={}));class LX{constructor(e,t=[]){this._elements=t,this.disposables=new Q,this.onDidChange=ge.forEach(e,i=>this._elements=i,this.disposables)}get elements(){return this._elements}dispose(){this.disposables.dispose()}}class km{constructor(e,t,i,n,s={}){var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=km.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new CX,this.activeIndentNodes=new Set,this.indentGuidesDisposable=H.None,this.disposables=new Q,this.templateId=e.templateId,this.updateOptions(s),ge.map(i,a=>a.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(r=e.onDidChangeTwistieState)===null||r===void 0||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent<"u"&&(this.indent=Zn(e.indent,0,40)),typeof e.renderIndentGuides<"u"){const t=e.renderIndentGuides!==Dm.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const i=new Q;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof e.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=q(e,J(".monaco-tl-row")),i=q(t,J(".monaco-tl-indent")),n=q(t,J(".monaco-tl-twistie")),s=q(t,J(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:n,indentGuidesDisposable:H.None,templateData:r}}renderElement(e,t,i,n){typeof n=="number"&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));const s=km.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${s}px`,i.indent.style.width=`${s+this.indent-16}px`,this.renderTwistie(e,i),typeof n=="number"&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,r;i.indentGuidesDisposable.dispose(),(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,e,t,i.templateData,n),typeof n=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);!t||this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);!t||(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...m.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...m.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Si(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new Q,n=this.modelProvider();let s=e;for(;;){const r=n.getNodeLocation(s),a=n.getParentNodeLocation(r);if(!a)break;const l=n.getNode(a),c=J(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add(Be(()=>this.renderedIndentGuides.delete(l,c))),s=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(n=>{const s=i.getNodeLocation(n);try{const r=i.getParentNodeLocation(s);n.collapsible&&n.children.length>0&&!n.collapsed?t.add(n):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(n=>{t.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.remove("active"))}),t.forEach(n=>{this.activeIndentNodes.has(n)||this.renderedIndentGuides.forEach(n,s=>s.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),nt(this.disposables)}}km.DefaultIndent=8;class DX{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new Q,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}filter(e,t){let i=1;if(this._filter){const r=this._filter.filter(e,t);if(typeof r=="boolean"?i=r?1:0:lN(r)?i=Lm(r.visibility):i=r,i===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:Zo.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const r of s){const a=r&&r.toString();if(typeof a>"u")return{data:Zo.Default,visibility:i};const l=mg(this._pattern,this._lowercasePattern,0,a,a.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(l)return this._matchCount++,s.length===1?{data:l,visibility:i}:{data:{label:a,score:l},visibility:i}}return this.tree.findMode===Fr.Filter?2:{data:Zo.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){nt(this.disposables)}}var Fr;(function(o){o[o.Highlight=0]="Highlight",o[o.Filter=1]="Filter"})(Fr||(Fr={}));class kX{constructor(e,t,i,n,s){var r;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this._pattern="",this.width=0,this._onDidChangeMode=new R,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangePattern=new R,this._onDidChangeOpenState=new R,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new Q,this.disposables=new Q,this._mode=(r=e.options.defaultFindMode)!==null&&r!==void 0?r:Fr.Highlight,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var e,t;const i=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&i?(e=this.widget)===null||e===void 0||e.showMessage({type:2,content:p("not found","No elements found.")}):(t=this.widget)===null||t===void 0||t.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===Fr.Filter||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!Zo.isDefault(e.filterData)}style(e){var t;this.styles=e,(t=this.widget)===null||t===void 0||t.style(e)}layout(e){var t;this.width=e,(t=this.widget)===null||t===void 0||t.layout(e)}dispose(){this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function FM(o){let e=gd.Unknown;return rS(o.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=gd.Twistie:rS(o.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?e=gd.Element:rS(o.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(e=gd.Filter),{browserEvent:o.browserEvent,element:o.element?o.element.element:null,target:e}}function D0(o,e){e(o),o.children.forEach(t=>D0(t,e))}class YS{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new R,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(t!=null&&t.__forceEvent)&&Ss(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),c=d=>l.delete(d);t.forEach(d=>D0(d,c)),this.set([...l.values()]);return}const i=new Set,n=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>D0(l,n));const s=new Map,r=l=>s.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>D0(l,r));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const h=s.get(c);h&&a.push(h)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class xX extends EF{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(DF(e.browserEvent.target)||jd(e.browserEvent.target)||yu(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let s=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?s=this.tree.expandOnlyOnTwistieClick(t.element):s=!!this.tree.expandOnlyOnTwistieClick,s&&!n&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e);if(t.collapsible){const r=this.tree.model,a=r.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),r.setCollapsed(a,void 0,l),s&&n)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick(e)}}class IX extends rr{constructor(e,t,i,n,s,r,a,l){super(e,t,i,n,l),this.focusTrait=s,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new xX(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const n=[],s=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&n.push(e+l),this.selectionTrait.has(a)&&s.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),n.length>0&&super.setFocus(Qa([...super.getFocus(),...n])),s.length>0&&super.setSelection(Qa([...super.getSelection(),...s])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(n=>this.element(n)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(n=>this.element(n)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class PF{constructor(e,t,i,n,s={}){var r;this._user=e,this._options=s,this.eventBufferer=new gI,this.onDidChangeFindOpenState=ge.None,this.disposables=new Q,this._onWillRefilter=new R,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new R;const a=new cN(i),l=new AT,c=new AT,d=this.disposables.add(new LX(c.event));this.renderers=n.map(g=>new km(g,()=>this.model,l.event,d,s));for(const g of this.renderers)this.disposables.add(g);let h;s.keyboardNavigationLabelProvider&&(h=new DX(this,s.keyboardNavigationLabelProvider,s.filter),s=Object.assign(Object.assign({},s),{filter:h}),this.disposables.add(h)),this.focus=new YS(()=>this.view.getFocusedElements()[0],s.identityProvider),this.selection=new YS(()=>this.view.getSelectedElements()[0],s.identityProvider),this.anchor=new YS(()=>this.view.getAnchorElement(),s.identityProvider),this.view=new IX(e,t,a,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},yX(()=>this.model,s)),{tree:this})),this.model=this.createModel(e,this.view,s),l.input=this.model.onDidChangeCollapseState;const u=ge.forEach(this.model.onDidSplice,g=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(g),this.selection.onDidModelSplice(g)})},this.disposables);if(u(()=>null,null,this.disposables),c.input=ge.chain(ge.any(u,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const g=new Set;for(const f of this.focus.getNodes())g.add(f);for(const f of this.selection.getNodes())g.add(f);return[...g.values()]}).event,s.keyboardSupport!==!1){const g=ge.chain(this.view.onKeyDown).filter(f=>!jd(f.target)).map(f=>new Rt(f));g.filter(f=>f.keyCode===15).on(this.onLeftArrow,this,this.disposables),g.filter(f=>f.keyCode===17).on(this.onRightArrow,this,this.disposables),g.filter(f=>f.keyCode===10).on(this.onSpace,this,this.disposables)}((r=s.findWidgetEnabled)!==null&&r!==void 0?r:!0)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider?(this.findController=new kX(this,this.model,this.view,h,s.contextViewProvider),this.focusNavigationFilter=g=>this.findController.shouldAllowFocus(g),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode):this.onDidChangeFindMode=ge.None,this.styleElement=Qs(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return ge.filter(ge.map(this.view.onMouseDblClick,FM),e=>e.target!==gd.Filter)}get onPointer(){return ge.map(this.view.onPointer,FM)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return ge.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return(t=(e=this.findController)===null||e===void 0?void 0:e.mode)!==null&&t!==void 0?t:Fr.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Dm.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),tc(t)&&((i=this.findController)===null||i===void 0||i.layout(t))}style(e){var t;const i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=n.join(` +`),(t=this.findController)===null||t===void 0||t.style(e),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(s=>this.model.getNode(s));this.selection.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(s=>this.model.getNode(s));this.focus.set(i,t);const n=e.map(s=>this.model.getListIndex(s)).filter(s=>s>-1);this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);i!==-1&&this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const r=this.model.getParentNodeLocation(n);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){nt(this.disposables),this.view.dispose()}}class dN{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new vX(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(n,s){return i.sorter.compare(n.element,s.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=je.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=je.empty(),i){const n=new Set,s=new Set,r=l=>{var c;if(l.element===null)return;const d=l;if(n.add(d.element),this.nodes.set(d.element,d),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.add(h),this.nodesByIdentity.set(h,d)}(c=i.onDidCreateNode)===null||c===void 0||c.call(i,d)},a=l=>{var c;if(l.element===null)return;const d=l;if(n.has(d.element)||this.nodes.delete(d.element),this.identityProvider){const h=this.identityProvider.getId(d.element).toString();s.has(h)||this.nodesByIdentity.delete(h)}(c=i.onDidDeleteNode)===null||c===void 0||c.call(i,d)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:r,onDidDeleteNode:a}))}preserveCollapseState(e=je.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),je.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i)return Object.assign(Object.assign({},t),{children:this.preserveCollapseState(t.children)});const n=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,s=typeof t.collapsed<"u"?t.collapsed:i.collapsed;return Object.assign(Object.assign({},t),{collapsible:n,collapsed:s,children:this.preserveCollapseState(t.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new Ws(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function k0(o){const e=[o.element],t=o.incompressible||!1;return{element:{elements:e,incompressible:t},children:je.map(je.from(o.children),k0),collapsible:o.collapsible,collapsed:o.collapsed}}function x0(o){const e=[o.element],t=o.incompressible||!1;let i,n;for(;[n,i]=je.consume(je.from(o.children),2),!(n.length!==1||n[0].incompressible);)o=n[0],e.push(o.element);return{element:{elements:e,incompressible:t},children:je.map(je.concat(n,i),x0),collapsible:o.collapsible,collapsed:o.collapsed}}function dk(o,e=0){let t;return edk(i,0)),e===0&&o.element.incompressible?{element:o.element.elements[e],children:t,incompressible:!0,collapsible:o.collapsible,collapsed:o.collapsed}:{element:o.element.elements[e],children:t,collapsible:o.collapsible,collapsed:o.collapsed}}function BM(o){return dk(o,0)}function FF(o,e,t){return o.element===e?Object.assign(Object.assign({},o),{children:t}):Object.assign(Object.assign({},o),{children:je.map(je.from(o.children),i=>FF(i,e,t))})}const EX=o=>({getId(e){return e.elements.map(t=>o.getId(t).toString()).join("\0")}});class NX{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new dN(e,t,i),this.enabled=typeof i.compressionEnabled>"u"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=je.empty(),i){const n=i.diffIdentityProvider&&EX(i.diffIdentityProvider);if(e===null){const g=je.map(t,this.enabled?x0:k0);this._setChildren(null,g,{diffIdentityProvider:n,diffDepth:1/0});return}const s=this.nodes.get(e);if(!s)throw new Error("Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),c=BM(r),d=FF(c,e,t),h=(this.enabled?x0:k0)(d),u=l.children.map(g=>g===r?h:g);this._setChildren(l.element,u,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,n=je.map(i,BM),s=je.map(n,e?x0:k0);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set,s=a=>{for(const l of a.element.elements)n.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)n.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:s,onDidDeleteNode:r}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new Ws(this.user,`Tree element not found: ${e}`);return t}}const TX=o=>o[o.length-1];class hN{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new hN(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function AX(o,e){return{splice(t,i,n){e.splice(t,i,n.map(s=>o.map(s)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function MX(o,e){return Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(o(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(o(t),i)}}})}class RX{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||TX;const n=s=>this.elementMapper(s.elements);this.nodeMapper=new aN(s=>new hN(n,s)),this.model=new NX(e,AX(this.nodeMapper,t),MX(n,i))}get onDidSplice(){return ge.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return ge.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return ge.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=je.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var OX=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};class uN extends PF{constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new dN(e,t,i)}}class BF{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){const s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);s.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,r,a,l;i.compressedTreeNode?(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,i.compressedTreeNode,t,i.data,n):(l=(a=this.renderer).disposeElement)===null||l===void 0||l.call(a,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}OX([pi],BF.prototype,"compressedTreeNodeProvider",null);function PX(o,e){return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=o().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}class WF extends uN{constructor(e,t,i,n,s={}){const r=()=>this,a=n.map(l=>new BF(r,l));super(e,t,i,a,PX(r,s))}setChildren(e,t=je.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new RX(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var vl=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function QS(o){return Object.assign(Object.assign({},o),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function hk(o,e){return e.parent?e.parent===o?!0:hk(o,e.parent):!1}function FX(o,e){return o===e||hk(o,e)||hk(e,o)}class gN{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new gN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class BX{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function WM(o){return{browserEvent:o.browserEvent,elements:o.elements.map(e=>e.element)}}function VM(o){return{browserEvent:o.browserEvent,element:o.element&&o.element.element,target:o.target}}class WX extends w_{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function XS(o){return o instanceof w_?new WX(o):o}class VX{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){var i,n;(n=(i=this.dnd).onDragStart)===null||n===void 0||n.call(i,XS(e),t)}onDragOver(e,t,i,n,s=!0){return this.dnd.onDragOver(XS(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(XS(e),t&&t.element,i,n)}onDragEnd(e){var t,i;(i=(t=this.dnd).onDragEnd)===null||i===void 0||i.call(t,e)}}function VF(o){return o&&Object.assign(Object.assign({},o),{collapseByDefault:!0,identityProvider:o.identityProvider&&{getId(e){return o.identityProvider.getId(e.element)}},dnd:o.dnd&&new VX(o.dnd),multipleSelectionController:o.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return o.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return o.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:o.accessibilityProvider&&Object.assign(Object.assign({},o.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:o.accessibilityProvider.getRole?e=>o.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:o.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=o.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return o.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return o.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:o.accessibilityProvider.getWidgetRole?()=>o.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:o.accessibilityProvider.getAriaLevel&&(e=>o.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:o.accessibilityProvider.getActiveDescendantId&&(e=>o.accessibilityProvider.getActiveDescendantId(e.element))}),filter:o.filter&&{filter(e,t){return o.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},o.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return o.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof o.expandOnlyOnTwistieClick>"u"?void 0:typeof o.expandOnlyOnTwistieClick!="function"?o.expandOnlyOnTwistieClick:e=>o.expandOnlyOnTwistieClick(e.element),additionalScrollHeight:o.additionalScrollHeight})}function uk(o,e){e(o),o.children.forEach(t=>uk(t,e))}class HF{constructor(e,t,i,n,s,r={}){this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new R,this._onDidChangeNodeSlowState=new R,this.nodeMapper=new aN(a=>new gN(a)),this.disposables=new Q,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,n,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=QS({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return ge.map(this.tree.onDidChangeFocus,WM)}get onDidChangeSelection(){return ge.map(this.tree.onDidChangeSelection,WM)}get onMouseDblClick(){return ge.map(this.tree.onMouseDblClick,VM)}get onPointer(){return ge.map(this.tree.onPointer,VM)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new BX(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=VF(s)||{};return new uN(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return vl(this,void 0,void 0,function*(){this.refreshPromises.forEach(n=>n.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)})}_updateChildren(e=this.root.element,t=!0,i=!1,n,s){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,n,s),i)try{this.tree.rerender(r)}catch{}})}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return vl(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new Ws(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield ge.toPromise(this._onDidRender.event)),n})}setSelection(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(n=>this.getDataNode(n));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Ws(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return vl(this,void 0,void 0,function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)})}refreshNode(e,t,i){return vl(this,void 0,void 0,function*(){let n;if(this.subTreeRefreshPromises.forEach((s,r)=>{!n&&FX(r,e)&&(n=s.then(()=>this.refreshNode(e,t,i)))}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0;return}return this.doRefreshSubTree(e,t,i)})}doRefreshSubTree(e,t,i){return vl(this,void 0,void 0,function*(){let n;e.refreshPromise=new Promise(s=>n=s),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const s=yield this.doRefreshNode(e,t,i);e.stale=!1,yield KL.settled(s.map(r=>this.doRefreshSubTree(r,t,i)))}finally{n()}})}doRefreshNode(e,t,i){return vl(this,void 0,void 0,function*(){e.hasChildren=!!this.dataSource.hasChildren(e.element);let n;if(!e.hasChildren)n=Promise.resolve(je.empty());else{const s=this.doGetChildren(e);if(ET(s))n=Promise.resolve(s);else{const r=sc(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),n=s.finally(()=>r.cancel())}}try{const s=yield n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),ea(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}})}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return ET(i)?this.processChildren(i):(t=Ri(()=>vl(this,void 0,void 0,function*(){return this.processChildren(yield i)})),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Te))}setChildren(e,t,i,n){const s=[...t];if(e.children.length===0&&s.length===0)return[];const r=new Map,a=new Map;for(const d of e.children)if(r.set(d.element,d),this.identityProvider){const h=this.tree.isCollapsed(d);a.set(d.id,{node:d,collapsed:h})}const l=[],c=s.map(d=>{const h=!!this.dataSource.hasChildren(d);if(!this.identityProvider){const _=QS({element:d,parent:e,hasChildren:h});return h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const u=this.identityProvider.getId(d).toString(),g=a.get(u);if(g){const _=g.node;return r.delete(_.element),this.nodes.delete(_.element),this.nodes.set(d,_),_.element=d,_.hasChildren=h,i?g.collapsed?(_.children.forEach(b=>uk(b,v=>this.nodes.delete(v.element))),_.children.splice(0,_.children.length),_.stale=!0):l.push(_):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const f=QS({element:d,parent:e,id:u,hasChildren:h});return n&&n.viewState.focus&&n.viewState.focus.indexOf(u)>-1&&n.focus.push(f),n&&n.viewState.selection&&n.viewState.selection.indexOf(u)>-1&&n.selection.push(f),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(u)>-1?l.push(f):h&&this.collapseByDefault&&!this.collapseByDefault(d)&&(f.collapsedByDefault=!1,l.push(f)),f});for(const d of r.values())uk(d,h=>this.nodes.delete(h.element));for(const d of c)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].collapsedByDefault=!1,l.push(c[0])),l}render(e,t,i){const n=e.children.map(r=>this.asTreeElement(r,t)),s=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}});this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:i=e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?je.map(e.children,n=>this.asTreeElement(n,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class fN{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new fN(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class HX{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...m.treeItemLoading.classNamesArray),!0):(t.classList.remove(...m.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,n){var s,r;(r=(s=this.renderer).disposeElement)===null||r===void 0||r.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,r;(r=(s=this.renderer).disposeCompressedElements)===null||r===void 0||r.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=nt(this.disposables)}}function zX(o){const e=o&&VF(o);return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return o.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}})})}class UX extends HF{constructor(e,t,i,n,s,r,a={}){super(e,t,i,s,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new aN(l=>new fN(l)),this.filter=a.filter}createTree(e,t,i,n,s){const r=new cN(i),a=n.map(c=>new HX(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=zX(s)||{};return new WF(e,t,r,a,l)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=u=>this.identityProvider.getId(u).toString(),n=u=>{const g=new Set;for(const f of u){const _=this.tree.getCompressedTreeNode(f===this.root?null:f);if(!!_.element)for(const b of _.element.elements)g.add(i(b.element))}return g},s=n(this.tree.getSelection()),r=n(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let l=!1;const c=this.getFocus();let d=!1;const h=u=>{const g=u.element;if(g)for(let f=0;f{const i=this.filter.filter(t,1),n=$X(i);if(n===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return n===1})),super.processChildren(e)}}function $X(o){return typeof o=="boolean"?o?1:0:lN(o)?Lm(o.visibility):Lm(o)}class jX extends PF{constructor(e,t,i,n,s,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=s,this.identityProvider=r.identityProvider}createModel(e,t,i){return new dN(e,t,i)}}new le("isMac",Ge,p("isMac","Whether the operating system is macOS"));new le("isLinux",dn,p("isLinux","Whether the operating system is Linux"));const B1=new le("isWindows",Yi,p("isWindows","Whether the operating system is Windows"));new le("isWeb",Sc,p("isWeb","Whether the platform is a web browser"));new le("isMacNative",Ge&&!Sc,p("isMacNative","Whether the operating system is macOS on a non-browser platform"));new le("isIOS",Ur,p("isIOS","Whether the operating system is iOS"));new le("isDevelopment",!1,!0);new le("productQualityType","",p("productQualityType","Quality type of VS Code"));const zF="inputFocus";new le(zF,!1,p("inputFocus","Whether keyboard focus is inside an input box"));var sa=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},st=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const so=Ye("listService");let gk=class{constructor(e){this._themeService=e,this.disposables=new Q,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const n=new NF(Qs(),"");this.disposables.add(Ud(n,this._themeService))}if(this.lists.some(n=>n.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),qo(e.onDidFocus(()=>this.setLastFocusedList(e)),Be(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(n=>n!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};gk=sa([st(0,Ct)],gk);const UF=new le("listFocus",!0),W1=new le("listSupportsMultiselect",!0),$F=se.and(UF,se.not(zF)),pN=new le("listHasSelectionOrFocus",!1),mN=new le("listDoubleSelection",!1),_N=new le("listMultiSelection",!1),V1=new le("listSelectionNavigation",!1),KX=new le("listSupportsFind",!0),bN=new le("treeElementCanCollapse",!1),qX=new le("treeElementHasParent",!1),vN=new le("treeElementCanExpand",!1),GX=new le("treeElementHasChild",!1),ZX=new le("treeFindOpen",!1),jF="listTypeNavigationMode",KF="listAutomaticKeyboardNavigation";function H1(o,e){const t=o.createScoped(e.getHTMLElement());return UF.bindTo(t),t}const Sh="workbench.list.multiSelectModifier",fk="workbench.list.openMode",Gs="workbench.list.horizontalScrolling",CN="workbench.list.defaultFindMode",wN="workbench.list.keyboardNavigation",xm="workbench.tree.indent",rC="workbench.tree.renderIndentGuides",tr="workbench.list.smoothScrolling",Yr="workbench.list.mouseWheelScrollSensitivity",Qr="workbench.list.fastScrollSensitivity",aC="workbench.tree.expandMode";function Xr(o){return o.getValue(Sh)==="alt"}class YX extends H{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Xr(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Sh)&&(this.useAltAsMultipleSelectionModifier=Xr(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:xF(e)}isSelectionRangeChangeEvent(e){return IF(e)}}function z1(o,e){var t;const i=o.get(ot),n=o.get(_i),s=new Q;return[Object.assign(Object.assign({},e),{keyboardNavigationDelegate:{mightProducePrintableCharacter(a){return n.mightProducePrintableCharacter(a)}},smoothScrolling:Boolean(i.getValue(tr)),mouseWheelScrollSensitivity:i.getValue(Yr),fastScrollSensitivity:i.getValue(Qr),multipleSelectionController:(t=e.multipleSelectionController)!==null&&t!==void 0?t:s.add(new YX(i)),keyboardNavigationEventFilter:JX(n)}),s]}let pk=class extends rr{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const _=this.getSelection(),b=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(_.length>0||b.length>0),this.listMultiSelection.set(_.length>1),this.listDoubleSelection.set(_.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const _=this.getSelection(),b=this.getFocus();this.listHasSelectionOrFocus.set(_.length>0||b.length>0)})),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new qF(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),super.dispose()}};pk=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],pk);let HM=class extends aX{constructor(e,t,i,n,s,r,a,l,c,d){const h=typeof s.horizontalScrolling<"u"?s.horizontalScrolling:Boolean(c.getValue(Gs)),[u,g]=d.invokeFunction(z1,s);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(l.getColorTheme(),A1)),u),{horizontalScrolling:h})),this.disposables=new Q,this.disposables.add(g),this.contextKeyService=H1(r,this),this.themeService=l,this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(s.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this._useAltAsMultipleSelectionModifier=Xr(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),s.overrideStyles&&this.disposables.add(Ud(this,l,s.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(c));let b={};if(_.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const v=Boolean(c.getValue(Gs));b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(tr)){const v=Boolean(c.getValue(tr));b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Yr)){const v=c.getValue(Yr);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Qr)){const v=c.getValue(Qr);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new qF(this,Object.assign({configurationService:c},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};HM=sa([st(5,Ee),st(6,so),st(7,Ct),st(8,ot),st(9,Ae)],HM);let zM=class extends F1{constructor(e,t,i,n,s,r,a,l,c,d,h){const u=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:Boolean(d.getValue(Gs)),[g,f]=h.invokeFunction(z1,r);super(e,t,i,n,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Ao(c.getColorTheme(),A1)),g),{horizontalScrolling:u})),this.disposables.add(f),this.contextKeyService=H1(a,this),this.themeService=c,this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.listDoubleSelection=mN.bindTo(this.contextKeyService),this.listMultiSelection=_N.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Xr(d),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const b=this.getSelection(),v=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(b.length>0||v.length>0),this.listMultiSelection.set(b.length>1),this.listDoubleSelection.set(b.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const b=this.getSelection(),v=this.getFocus();this.listHasSelectionOrFocus.set(b.length>0||v.length>0)})),this.disposables.add(d.onDidChangeConfiguration(b=>{b.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(d));let v={};if(b.affectsConfiguration(Gs)&&this.horizontalScrolling===void 0){const C=Boolean(d.getValue(Gs));v=Object.assign(Object.assign({},v),{horizontalScrolling:C})}if(b.affectsConfiguration(tr)){const C=Boolean(d.getValue(tr));v=Object.assign(Object.assign({},v),{smoothScrolling:C})}if(b.affectsConfiguration(Yr)){const C=d.getValue(Yr);v=Object.assign(Object.assign({},v),{mouseWheelScrollSensitivity:C})}if(b.affectsConfiguration(Qr)){const C=d.getValue(Qr);v=Object.assign(Object.assign({},v),{fastScrollSensitivity:C})}Object.keys(v).length>0&&this.updateOptions(v)})),this.navigator=new QX(this,Object.assign({configurationService:d},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Ud(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};zM=sa([st(6,Ee),st(7,so),st(8,Ct),st(9,ot),st(10,Ae)],zM);class SN extends H{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new R),this.onDidOpen=this._onDidOpen.event,this._register(ge.filter(this.widget.onDidChangeSelection,n=>n.browserEvent instanceof KeyboardEvent)(n=>this.onSelectionFromKeyboard(n))),this._register(this.widget.onPointer(n=>this.onPointer(n.element,n.browserEvent))),this._register(this.widget.onMouseDblClick(n=>this.onMouseDblClick(n.element,n.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t==null?void 0:t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue(fk))!=="doubleClick"}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,n=typeof t.pinned=="boolean"?t.pinned:!i,s=!1;this._open(this.getSelectedElement(),i,n,s,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const n=t.button===1,s=!0,r=n,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,s,r,a,t)}_open(e,t,i,n,s){!e||this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class qF extends SN{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class QX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class XX extends SN{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function JX(o){let e=!1;return t=>{if(t.toKeybinding().isModifierKey())return!1;if(e)return e=!1,!1;const i=o.softDispatch(t,t.target);return i!=null&&i.enterChord?(e=!0,!1):(e=!1,!i)}}let UM=class extends uN{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};UM=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],UM);let $M=class extends WF{constructor(e,t,i,n,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=r.invokeFunction(L_,s);super(e,t,i,n,h),this.disposables.add(g),this.internals=new Kd(this,s,u,s.overrideStyles,a,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};$M=sa([st(5,Ae),st(6,Ee),st(7,so),st(8,Ct),st(9,ot)],$M);let jM=class extends jX{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};jM=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],jM);let mk=class extends HF{constructor(e,t,i,n,s,r,a,l,c,d,h){const{options:u,getTypeNavigationMode:g,disposable:f}=a.invokeFunction(L_,r);super(e,t,i,n,s,u),this.disposables.add(f),this.internals=new Kd(this,r,g,r.overrideStyles,l,c,d,h),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mk=sa([st(6,Ae),st(7,Ee),st(8,so),st(9,Ct),st(10,ot)],mk);let KM=class extends UX{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const{options:g,getTypeNavigationMode:f,disposable:_}=l.invokeFunction(L_,a);super(e,t,i,n,s,r,g),this.disposables.add(_),this.internals=new Kd(this,a,f,a.overrideStyles,c,d,h,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};KM=sa([st(7,Ae),st(8,Ee),st(9,so),st(10,Ct),st(11,ot)],KM);function GF(o){const e=o.getValue(CN);if(e==="highlight")return Fr.Highlight;if(e==="filter")return Fr.Filter;const t=o.getValue(wN);if(t==="simple"||t==="highlight")return Fr.Highlight;if(t==="filter")return Fr.Filter}function L_(o,e){var t;const i=o.get(ot),n=o.get(vh),s=o.get(Ee),r=o.get(Ae),a=()=>{const u=s.getContextKeyValue(jF);if(u==="automatic")return Yl.Automatic;if(u==="trigger"||s.getContextKeyValue(KF)===!1)return Yl.Trigger},l=e.horizontalScrolling!==void 0?e.horizontalScrolling:Boolean(i.getValue(Gs)),[c,d]=r.invokeFunction(z1,e),h=e.additionalScrollHeight;return{getTypeNavigationMode:a,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},c),{indent:typeof i.getValue(xm)=="number"?i.getValue(xm):void 0,renderIndentGuides:i.getValue(rC),smoothScrolling:Boolean(i.getValue(tr)),defaultFindMode:GF(i),horizontalScrolling:l,additionalScrollHeight:h,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(t=e.expandOnlyOnTwistieClick)!==null&&t!==void 0?t:i.getValue(aC)==="doubleClick",contextViewProvider:n})}}let Kd=class{constructor(e,t,i,n,s,r,a,l){var c;this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=H1(s,e),this.listSupportsMultiSelect=W1.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),V1.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=KX.bindTo(this.contextKeyService),this.listSupportFindWidget.set((c=t.findWidgetEnabled)!==null&&c!==void 0?c:!0),this.hasSelectionOrFocus=pN.bindTo(this.contextKeyService),this.hasDoubleSelection=mN.bindTo(this.contextKeyService),this.hasMultiSelection=_N.bindTo(this.contextKeyService),this.treeElementCanCollapse=bN.bindTo(this.contextKeyService),this.treeElementHasParent=qX.bindTo(this.contextKeyService),this.treeElementCanExpand=vN.bindTo(this.contextKeyService),this.treeElementHasChild=GX.bindTo(this.contextKeyService),this.treeFindOpen=ZX.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Xr(l),this.updateStyleOverrides(n);const h=()=>{const g=e.getFocus()[0];if(!g)return;const f=e.getNode(g);this.treeElementCanCollapse.set(f.collapsible&&!f.collapsed),this.treeElementHasParent.set(!!e.getParentElement(g)),this.treeElementCanExpand.set(f.collapsible&&f.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(g))},u=new Set;u.add(jF),u.add(KF),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const g=e.getSelection(),f=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(g.length>0||f.length>0),this.hasMultiSelection.set(g.length>1),this.hasDoubleSelection.set(g.length===2)})}),e.onDidChangeFocus(()=>{const g=e.getSelection(),f=e.getFocus();this.hasSelectionOrFocus.set(g.length>0||f.length>0),h()}),e.onDidChangeCollapseState(h),e.onDidChangeModel(h),e.onDidChangeFindOpenState(g=>this.treeFindOpen.set(g)),l.onDidChangeConfiguration(g=>{let f={};if(g.affectsConfiguration(Sh)&&(this._useAltAsMultipleSelectionModifier=Xr(l)),g.affectsConfiguration(xm)){const _=l.getValue(xm);f=Object.assign(Object.assign({},f),{indent:_})}if(g.affectsConfiguration(rC)){const _=l.getValue(rC);f=Object.assign(Object.assign({},f),{renderIndentGuides:_})}if(g.affectsConfiguration(tr)){const _=Boolean(l.getValue(tr));f=Object.assign(Object.assign({},f),{smoothScrolling:_})}if((g.affectsConfiguration(CN)||g.affectsConfiguration(wN))&&e.updateOptions({defaultFindMode:GF(l)}),g.affectsConfiguration(Gs)&&t.horizontalScrolling===void 0){const _=Boolean(l.getValue(Gs));f=Object.assign(Object.assign({},f),{horizontalScrolling:_})}if(g.affectsConfiguration(aC)&&t.expandOnlyOnTwistieClick===void 0&&(f=Object.assign(Object.assign({},f),{expandOnlyOnTwistieClick:l.getValue(aC)==="doubleClick"})),g.affectsConfiguration(Yr)){const _=l.getValue(Yr);f=Object.assign(Object.assign({},f),{mouseWheelScrollSensitivity:_})}if(g.affectsConfiguration(Qr)){const _=l.getValue(Qr);f=Object.assign(Object.assign({},f),{fastScrollSensitivity:_})}Object.keys(f).length>0&&e.updateOptions(f)}),this.contextKeyService.onDidChangeContext(g=>{g.affectsSome(u)&&e.updateOptions({typeNavigationMode:i()})})),this.navigator=new XX(e,Object.assign({configurationService:l},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){nt(this.styler),this.styler=e?Ud(this.tree,this.themeService,e):H.None}dispose(){this.disposables=nt(this.disposables),nt(this.styler),this.styler=void 0}};Kd=sa([st(4,Ee),st(5,so),st(6,Ct),st(7,ot)],Kd);const eJ=zt.as(rl.Configuration);eJ.registerConfiguration({id:"workbench",order:7,title:p("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Sh]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[p("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:p({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[fk]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Gs]:{type:"boolean",default:!1,description:p("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[xm]:{type:"number",default:8,minimum:4,maximum:40,description:p("tree indent setting","Controls tree indentation in pixels.")},[rC]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:p("render tree indent guides","Controls whether the tree should render indent guides.")},[tr]:{type:"boolean",default:!1,description:p("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Yr]:{type:"number",default:1,markdownDescription:p("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Qr]:{type:"number",default:5,description:p("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[CN]:{type:"string",enum:["highlight","filter"],enumDescriptions:[p("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),p("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:p("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[wN]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[p("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),p("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),p("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:p("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:p("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' instead.")},[aC]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:p("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}});var _k;(function(o){o[o.PRESERVE=0]="PRESERVE",o[o.LAST=1]="LAST"})(_k||(_k={}));const yh={Quickaccess:"workbench.contributions.quickaccess"};class tJ{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Be(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return i_([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}zt.add(yh.Quickaccess,new tJ);const dl=Ye("quickInputService");var iJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let bk=class extends H{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=zt.as(yh.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[s,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let g;if(a&&l&&l!==r){const f=a.value.substr(l.prefix.length);f&&(g=`${r.prefix}${f}`)}if(!g){const f=s==null?void 0:s.defaultFilterValue;f===_k.LAST?g=this.lastAcceptedPickerValues.get(r):typeof f=="string"&&(g=`${r.prefix}${f}`)}typeof g=="string"&&(e=g)}const c=new Q,d=c.add(this.quickInputService.createQuickPick());d.value=e,this.adjustValueSelection(d,r,i),d.placeholder=r==null?void 0:r.placeholder,d.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||(i==null?void 0:i.quickNavigateConfiguration))&&(d.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:To.SECOND),d.contextKey=r==null?void 0:r.contextKey,d.filterValue=g=>g.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(d.ariaLabel=r==null?void 0:r.placeholder);let h;t&&(h=new RI,c.add(Xa(d.onWillAccept)(g=>{g.veto(),d.hide()}))),c.add(this.registerPickerListeners(d,s,r,e));const u=c.add(new Qi);if(s&&c.add(s.provide(d,u.token)),Xa(d.onDidHide)(()=>{d.selectedItems.length===0&&u.cancel(),c.dispose(),h==null||h.complete(d.selectedItems.slice(0))}),d.show(),t)return h==null?void 0:h.p}adjustValueSelection(e,t,i){var n;let s;i!=null&&i.preserveValue?s=[e.value.length,e.value.length]:s=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n){const s=new Q,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return s.add(Be(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),s.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),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]}};bk=iJ([qM(0,dl),qM(1,Ae)],bk);var nJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Nf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vk=class extends GH{constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=s,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(bk))),this._quickAccess}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:s=>this.setContextKey(s),returnFocus:()=>e.focus(),createList:(s,r,a,l,c)=>this.instantiationService.createInstance(pk,s,r,a,l,c),styles:this.computeStyles()},n=this._register(new P1(Object.assign(Object.assign({},i),t)));return n.layout(e.dimension,e.offset.quickPickTop),this._register(e.onDidLayout(s=>n.layout(s,e.offset.quickPickTop))),this._register(n.onShow(()=>this.resetContextKeys())),this._register(n.onHide(()=>this.resetContextKeys())),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new le(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t==null||t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=ze.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Ao(this.theme,{quickInputBackground:M2,quickInputForeground:yz,quickInputTitleBackground:Lz,contrastBorder:We,widgetShadow:Ho})),inputBox:Ao(this.theme,{inputForeground:f1,inputBackground:g1,inputBorder:p1,inputValidationInfoBackground:ZI,inputValidationInfoForeground:YI,inputValidationInfoBorder:QI,inputValidationWarningBackground:XI,inputValidationWarningForeground:JI,inputValidationWarningBorder:eE,inputValidationErrorBackground:tE,inputValidationErrorForeground:iE,inputValidationErrorBorder:nE}),countBadge:Ao(this.theme,{badgeBackground:gu,badgeForeground:fu,badgeBorder:We}),button:Ao(this.theme,{buttonForeground:Uf,buttonBackground:lD,buttonHoverBackground:pz,buttonBorder:We}),progressBar:Ao(this.theme,{progressBarBackground:mz}),keybindingLabel:Ao(this.theme,{keybindingLabelBackground:xz,keybindingLabelForeground:Iz,keybindingLabelBorder:Ez,keybindingLabelBottomBorder:Nz,keybindingLabelShadow:Ho}),list:Ao(this.theme,{listBackground:M2,listInactiveFocusForeground:jf,listInactiveSelectionIconForeground:Kf,listInactiveFocusBackground:qf,listFocusOutline:Ot,listInactiveFocusOutline:Ot,pickerGroupBorder:kz,pickerGroupForeground:Dz})}}};vk=nJ([Nf(0,Ae),Nf(1,Ee),Nf(2,Ct),Nf(3,al),Nf(4,Yg)],vk);var ZF=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},td=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Ck=class extends vk{constructor(e,t,i,n,s,r){super(t,i,n,s,new FD(e.getContainerDomNode(),r)),this.host=void 0;const a=wg.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return l.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus(),offset:{top:0,quickPickTop:0}}}else this.host=void 0}createController(){return super.createController(this.host)}};Ck=ZF([td(1,Ae),td(2,Ee),td(3,Ct),td(4,al),td(5,ct)],Ck);let wk=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}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(Ck,e);this.mapEditorToService.set(e,t),Xa(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=ze.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};wk=ZF([td(0,Ae),td(1,ct)],wk);class wg{constructor(e){this.editor=e,this.widget=new U1(this.editor)}static get(e){return e.getContribution(wg.ID)}dispose(){this.widget.dispose()}}wg.ID="editor.controller.quickInput";class U1{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return U1.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}U1.ID="editor.contrib.quickInputWidget";tt(wg.ID,wg);class sJ{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}function oJ(o){if(!o||!Array.isArray(o))return[];const e=[];let t=0;for(let i=0,n=o.length;i{const u=hJ(d.token,h.token);return u!==0?u:d.index-h.index});let t=0,i="000000",n="ffffff";for(;o.length>=1&&o[0].token==="";){const d=o.shift();d.fontStyle!==-1&&(t=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(n=d.background)}const s=new lJ;for(const d of e)s.getId(d);const r=s.getId(i),a=s.getId(n),l=new yN(t,r,a),c=new LN(l);for(let d=0,h=o.length;d"u"){const n=this._match(t),s=dJ(t);i=(n.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const cJ=/\b(comment|string|regex|regexp)\b/;function dJ(o){const e=o.match(cJ);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function hJ(o,e){return oe?1:0}class yN{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new yN(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class LN{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,n;t===-1?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return typeof s<"u"?s.match(n):this._mainRule}insert(e,t,i,n){if(e===""){this._mainRule.acceptOverwrite(t,i,n);return}const s=e.indexOf(".");let r,a;s===-1?(r=e,a=""):(r=e.substring(0,s),a=e.substring(s+1));let l=this._children.get(r);typeof l>"u"&&(l=new LN(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,n)}}function uJ(o){const e=[];for(let t=1,i=o.length;te.fire()),o==null||o.onDidProductIconThemeChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const i=o?o.getProductIconTheme():new QF,n={},s=a=>{const l=i.getIcon(a);if(!l)return;const c=l.font;return c?(n[c.id]=c.definition,`.codicon-${a.id}:before { content: '${l.fontCharacter}'; font-family: ${x2(c.id)}; }`):`.codicon-${a.id}:before { content: '${l.fontCharacter}'; }`},r=[];for(const a of t.getIcons()){const l=s(a);l&&r.push(l)}for(const a in n){const l=n[a],c=l.weight?`font-weight: ${l.weight};`:"",d=l.style?`font-style: ${l.style};`:"",h=l.src.map(u=>`${Pd(u.location)} format('${u.format}')`).join(", ");r.push(`@font-face { src: ${h}; font-family: ${x2(a)};${c}${d} font-display: block; }`)}return r.join(` +`)}}}class QF{getIcon(e){const t=U5();let i=e.defaults;for(;at.isThemeIcon(i);){const n=t.getIcon(i.id);if(!n)return;i=n.defaults}return i}}const Ra="vs",Ku="vs-dark",Sd="hc-black",yd="hc-light",XF=zt.as(D4.ColorContribution),bJ=zt.as(f4.ThemingContribution);class JF{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(I0(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,W.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=Sk(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,W.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=XF.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case Ra:return Hs.LIGHT;case Sd:return Hs.HIGH_CONTRAST_DARK;case yd:return Hs.HIGH_CONTRAST_LIGHT;default:return Hs.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const s=Sk(this.themeData.base);e=s.rules,s.encodedTokensColors&&(t=s.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const s={token:""};i&&(s.foreground=i),n&&(s.background=n),e.push(s)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=YF.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=qi.getForeground(s),a=qi.getFontStyle(s);return{foreground:r,italic:Boolean(a&1),bold:Boolean(a&2),underline:Boolean(a&4),strikethrough:Boolean(a&8)}}}function I0(o){return o===Ra||o===Ku||o===Sd||o===yd}function Sk(o){switch(o){case Ra:return gJ;case Ku:return fJ;case Sd:return pJ;case yd:return mJ}}function Fb(o){const e=Sk(o);return new JF(o,e)}class vJ extends H{constructor(){super(),this._onColorThemeChange=this._register(new R),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new R),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new QF,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Ra,Fb(Ra)),this._knownThemes.set(Ku,Fb(Ku)),this._knownThemes.set(Sd,Fb(Sd)),this._knownThemes.set(yd,Fb(yd));const e=_J(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(Ra),this._onOSSchemeChanged(),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),DI("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return Gp(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Qs(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),H.None}_registerShadowDomContainer(e){const t=Qs(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(Ra),this._updateActualTheme(t)}_updateActualTheme(e){!e||this._theme===e||(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=window.matchMedia("(forced-colors: active)").matches;if(e!==cn(this._theme.type)){let t;Xp(this._theme.type)?t=e?Sd:Ku:t=e?yd:Ra,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};bJ.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const n=[];for(const r of XF.getColors()){const a=this._theme.getColor(r.id,!0);a&&n.push(`${L4(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor { ${n.join(` `)} }`);const s=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(uJ(s)),this._themeCSS=e.join(` `),this._updateCSS(),Wt.setColorMap(s),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} ${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}const Es=Ye("themeService");var CJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},JS=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let yk=class extends H{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new R,this._onDidChangeReducedMotion=new R,this._accessibilityModeEnabledContext=c_.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(r=>{r.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),r.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),n(),this._register(this.onDidChangeScreenReaderOptimized(()=>n()));const s=window.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(s)}initReducedMotionListeners(e){if(!this._layoutService.hasContainer)return;this._register(G(e,"change",()=>{this._systemMotionReduced=e.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));const t=()=>{const i=this.isMotionReduced();this._layoutService.container.classList.toggle("reduce-motion",i),this._layoutService.container.classList.toggle("enable-motion",!i)};t(),this._register(this.onDidChangeReducedMotion(()=>t()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return e==="on"||e==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return e==="on"||e==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};yk=CJ([JS(0,Ee),JS(1,Yg),JS(2,ot)],yk);var Jf=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Du;(function(o){o[o.None=0]="None",o[o.Initialized=1]="Initialized",o[o.Closed=2]="Closed"})(Du||(Du={}));class qu extends H{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new R),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=Du.None,this.cache=new Map,this.flushDelayer=new EW(qu.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,i;(t=e.changed)===null||t===void 0||t.forEach((n,s)=>this.accept(s,n)),(i=e.deleted)===null||i===void 0||i.forEach(n=>this.accept(n,void 0))}accept(e,t){if(this.state===Du.Closed)return;let i=!1;ms(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}get(e,t){const i=this.cache.get(e);return ms(i)?t:i}getBoolean(e,t){const i=this.get(e);return ms(i)?t:i==="true"}getNumber(e,t){const i=this.get(e);return ms(i)?t:parseInt(i,10)}set(e,t){return Jf(this,void 0,void 0,function*(){if(this.state===Du.Closed)return;if(ms(t))return this.delete(e);const i=String(t);if(this.cache.get(e)!==i)return this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}delete(e){return Jf(this,void 0,void 0,function*(){if(!(this.state===Du.Closed||!this.cache.delete(e)))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return Jf(this,void 0,void 0,function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var t;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(t=this.whenFlushedCallbacks.pop())===null||t===void 0||t()})})}doFlush(e){return Jf(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),e)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}qu.DEFAULT_FLUSH_DELAY=100;class ey{constructor(){this.onDidChangeItemsExternal=ge.None,this.items=new Map}updateItems(e){var t,i;return Jf(this,void 0,void 0,function*(){(t=e.insert)===null||t===void 0||t.forEach((n,s)=>this.items.set(s,n)),(i=e.delete)===null||i===void 0||i.forEach(n=>this.items.delete(n))})}}const Bb="__$__targetStorageMarker",Do=Ye("storageService");var lC;(function(o){o[o.NONE=0]="NONE",o[o.SHUTDOWN=1]="SHUTDOWN"})(lC||(lC={}));class $1 extends H{constructor(e={flushInterval:$1.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new Z0),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new Z0),this._onWillSaveState=this._register(new R),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}emitDidChangeValue(e,t){if(t===Bb){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return(n=this.getStorage(t))===null||n===void 0?void 0:n.getNumber(e,i)}store(e,t,i,n){if(ms(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var s;this.updateKeyTarget(e,i,n),(s=this.getStorage(i))===null||s===void 0||s.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),(i=this.getStorage(t))===null||i===void 0||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,s;const r=this.getKeyTargets(t);typeof i=="number"?r[e]!==i&&(r[e]=i,(n=this.getStorage(t))===null||n===void 0||n.set(Bb,JSON.stringify(r))):typeof r[e]=="number"&&(delete r[e],(s=this.getStorage(t))===null||s===void 0||s.set(Bb,JSON.stringify(r)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.get(Bb,e);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}}$1.DEFAULT_FLUSH_INTERVAL=60*1e3;class wJ extends $1{constructor(){super(),this.applicationStorage=this._register(new qu(new ey)),this.profileStorage=this._register(new qu(new ey)),this.workspaceStorage=this._register(new qu(new ey)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.profileStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e))),this._register(this.applicationStorage.onDidChangeStorage(e=>this.emitDidChangeValue(-1,e)))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}var DN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Lk=class{constructor(e,t){this._commandService=e,this._hiddenStates=new cC(t)}createMenu(e,t,i){return new Dk(e,this._hiddenStates,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};Lk=DN([Gu(0,ci),Gu(1,Do)],Lk);let cC=class ep{constructor(e){this._storageService=e,this._disposables=new Q,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1;try{const t=e.get(ep._key,0,"{}");this._data=JSON.parse(t)}catch{this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(t=>{if(t.key===ep._key){if(!this._ignoreChangeEvent)try{const i=e.get(ep._key,0,"{}");this._data=JSON.parse(i)}catch(i){console.log("FAILED to read storage after UPDATE",i)}this._onDidChange.fire()}}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}isHidden(e,t){var i,n;return(n=(i=this._data[e.id])===null||i===void 0?void 0:i.includes(t))!==null&&n!==void 0?n:!1}updateHidden(e,t,i){const n=this._data[e.id];if(i)n?n.indexOf(t)<0&&n.push(t):this._data[e.id]=[t];else if(n){const s=n.indexOf(t);s>=0&&T8(n,s),n.length===0&&delete this._data[e.id]}this._persist()}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(ep._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};cC._key="menu.hiddenCommands";cC=DN([Gu(0,Do)],cC);let Dk=class iu{constructor(e,t,i,n,s,r){this._id=e,this._hiddenStates=t,this._options=i,this._commandService=n,this._contextKeyService=s,this._menuService=r,this._disposables=new Q,this._menuGroups=[],this._contextKeys=new Set,this._build();const a=new mt(()=>{this._build(),this._onDidChange.fire(this)},i.eventDebounceDelay);this._disposables.add(a),this._disposables.add(qs.onDidChangeMenu(d=>{d.has(e)&&a.schedule()}));const l=this._disposables.add(new Q),c=()=>{const d=new mt(()=>this._onDidChange.fire(this),i.eventDebounceDelay);l.add(d),l.add(s.onDidChangeContext(h=>{h.affectsSome(this._contextKeys)&&d.schedule()})),l.add(t.onDidChange(()=>{d.schedule()}))};this._onDidChange=new R({onFirstListenerAdd:c,onLastListenerRemove:l.clear.bind(l)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const e=qs.getMenuItems(this._id);let t;e.sort(iu._compareMenuItems);for(const i of e){const n=i.group||"";(!t||t[0]!==n)&&(t=[n,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(iu._fillInKbExprKeys(e.when,this._contextKeys),uu(e)){if(e.command.precondition&&iu._fillInKbExprKeys(e.command.precondition,this._contextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;iu._fillInKbExprKeys(t,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&qs.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}getActions(e){const t=[];for(const i of this._menuGroups){const[n,s]=i,r=[],a=[];for(const l of s)if(this._contextKeyService.contextMatchesRules(l.when)){let c;if(uu(l)){const h=SJ(this._id,l.command,this._hiddenStates);c=new ac(l.command,l.alt,e,h,this._contextKeyService,this._commandService)}else c=new GI(l,this._menuService,this._contextKeyService,e),c.actions.length===0&&(c.dispose(),c=void 0);c&&a.push(c)}a.length>0&&t.push([n,a]),r.length>0}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){if(!n)return-1}else return 1;if(i==="navigation")return-1;if(n==="navigation")return 1;const a=i.localeCompare(n);if(a!==0)return a}const s=e.order||0,r=t.order||0;return sr?1:iu._compareTitles(uu(e)?e.command.title:e.title,uu(t)?t.command.title:t.title)}static _compareTitles(e,t){const i=typeof e=="string"?e:e.original,n=typeof t=="string"?t:t.original;return i.localeCompare(n)}};Dk=DN([Gu(3,ci),Gu(4,Ee),Gu(5,ph)],Dk);function SJ(o,e,t){const i=`${o.id}/${e.id}`,n=typeof e.title=="string"?e.title:e.title.value,s=E2({id:i,label:p("hide.label","Hide '{0}'",n),run(){t.updateHidden(o,e.id,!0)}}),r=E2({id:i,label:n,get checked(){return!t.isHidden(o,e.id)},run(){const a=!t.isHidden(o,e.id);t.updateHidden(o,e.id,a)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}var yJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},GM=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Hh=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kk=class extends H{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],(Ja||xI)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){const e=()=>{const t=new RI;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=t,navigator.clipboard.write([new ClipboardItem({"text/plain":t.p})]).catch(i=>Hh(this,void 0,void 0,function*(){(!(i instanceof Error)||i.name!=="NotAllowedError"||!t.isRejected)&&this.logService.error(i)}))};this.layoutService.hasContainer&&(this._register(G(this.layoutService.container,"click",e)),this._register(G(this.layoutService.container,"keydown",e)))}writeText(e,t){return Hh(this,void 0,void 0,function*(){if(t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return yield navigator.clipboard.writeText(e)}catch(s){console.error(s)}const i=document.activeElement,n=document.body.appendChild(J("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(n)})}readText(e){return Hh(this,void 0,void 0,function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(t){return console.error(t),""}})}readFindText(){return Hh(this,void 0,void 0,function*(){return this.findText})}writeFindText(e){return Hh(this,void 0,void 0,function*(){this.findText=e})}readResources(){return Hh(this,void 0,void 0,function*(){return this.resources})}};kk=yJ([GM(0,Yg),GM(1,So)],kk);var LJ=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},DJ=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const kp="data-keybinding-context";class kN{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return Object.assign({},this._value)}setValue(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1}removeValue(e){return e in this._value?(delete this._value[e],!0):!1}getValue(e){const t=this._value[e];return typeof t>"u"&&this._parent?this._parent.getValue(e):t}}class Sg extends kN{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Sg.INSTANCE=new Sg;class Im extends kN{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Uu.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(n=>{if(n.source===7){const s=Array.from(je.map(this._values,([r])=>r));this._values.clear(),i.fire(new YM(s))}else{const s=[];for(const r of n.affectedKeys){const a=`config.${r}`,l=this._values.findSuperstr(a);l!==void 0&&(s.push(...je.map(l,([c])=>c)),this._values.deleteSuperstr(a)),this._values.has(a)&&(s.push(a),this._values.delete(a))}i.fire(new YM(s))}})}dispose(){this._listener.dispose()}getValue(e){if(e.indexOf(Im._keyPrefix)!==0)return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Im._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:Array.isArray(i)?n=JSON.stringify(i):n=i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Im._keyPrefix="config.";class kJ{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class ZM{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class YM{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 xJ{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 IJ(o,e){return o.allKeysContainedIn(new Set(Object.keys(e)))}class e3{constructor(e){this._onDidChangeContext=new Z0({merge:t=>new xJ(t)}),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 kJ(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 EJ(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return e?e.evaluate(t):!0}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 ZM(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new ZM(e))}getContext(e){return this._isDisposed?Sg.INSTANCE:this.getContextValuesContainer(NJ(e))}}let xk=class extends e3{constructor(e){super(0),this._contexts=new Map,this._toDispose=new Q,this._lastContextId=0;const t=new Im(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?Sg.INSTANCE:this._contexts.get(e)||Sg.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 kN(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};xk=LJ([DJ(0,ot)],xk);class EJ extends e3{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new _n,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(kp)){let i="";this._domNode.classList&&(i=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${i?": "+i:""}`)}this._domNode.setAttribute(kp,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{const i=this._parent.getContextValuesContainer(this._myContextId).value;IJ(e,i)||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(kp),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?Sg.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 NJ(o){for(;o;){if(o.hasAttribute(kp)){const e=o.getAttribute(kp);return e?parseInt(e,10):NaN}o=o.parentElement}return 0}function TJ(o,e,t){o.get(Ee).createKey(String(e),AJ(t))}function AJ(o){return qO(o,e=>{if(typeof e=="object"&&e.$mid===1)return _e.revive(e).toString();if(e instanceof _e)return e.toString()})}Xe.registerCommand(KH,TJ);Xe.registerCommand({id:"getContextKeyInfo",handler(){return[...le.all()].sort((o,e)=>o.key.localeCompare(e.key))},description:{description:p("getContextKeyInfo","A command that returns information about context keys"),args:[]}});Xe.registerCommand("_generateContextKeyInfo",function(){const o=[],e=new Set;for(const t of le.all())e.has(t.key)||(e.add(t.key),o.push(t));o.sort((t,i)=>t.key.localeCompare(i.key)),console.log(JSON.stringify(o,void 0,2))});class MJ{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class RJ{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),n),n.incoming.set(this._hashFn(e),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 MJ(e),this._nodes.set(t,i)),i}isEmpty(){return this._nodes.size===0}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}, (incoming)[${[...i.incoming.keys()].join(", ")}], (outgoing)[${[...i.outgoing.keys()].join(",")}]`);return e.join(` @@ -601,34 +601,34 @@ ${e.toString()}`}}class xN{constructor(e=new k1,t=!1,i){this._activeInstantiatio `+e.detail),Promise.resolve(window.confirm(t))}show(e,t,i,n){return Promise.resolve({choice:0})}}class K1{info(e){return this.notify({severity:Bt.Info,message:e})}warn(e){return this.notify({severity:Bt.Warning,message:e})}error(e){return this.notify({severity:Bt.Error,message:e})}notify(e){switch(e.severity){case Bt.Error:console.error(e.message);break;case Bt.Warning:console.warn(e.message);break;default:console.log(e.message);break}return K1.NO_OP}status(e,t){return H.None}}K1.NO_OP=new _G;let Ek=class{constructor(e){this._onWillExecuteCommand=new R,this._onDidExecuteCommand=new R,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=Xe.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)}}};Ek=Ic([pn(0,Ae)],Ek);let yg=class extends rY{constructor(e,t,i,n,s,r){super(e,t,i,n,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=g=>{const f=new Q;f.add(G(g,ae.KEY_DOWN,_=>{const b=new Rt(_);this._dispatch(b,b.target)&&(b.preventDefault(),b.stopPropagation())})),f.add(G(g,ae.KEY_UP,_=>{const b=new Rt(_);this._singleModifierDispatch(b,b.target)&&b.preventDefault()})),this._domNodeListeners.push(new zJ(g,f))},l=g=>{for(let f=0;f{g.getOption(56)||a(g.getContainerDomNode())},d=g=>{g.getOption(56)||l(g.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove(d)),r.listCodeEditors().forEach(c);const h=g=>{a(g.getContainerDomNode())},u=g=>{l(g.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove(u)),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,n){return qo(Xe.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map(i=>{var n,s;const r=eD(i.keybinding,Os);return{keybinding:(n=r==null?void 0:r.parts)!==null&&n!==void 0?n:null,command:(s=i.command)!==null&&s!==void 0?s:null,commandArgs:i.commandArgs,when:i.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),Be(()=>{for(let i=0;ithis._log(i))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const s of e){const r=s.when||void 0,a=s.keybinding;if(!a)i[n++]=new aM(void 0,s.command,s.commandArgs,r,t,null,!1);else{const l=mm.resolveUserBinding(a,Os);for(const c of l)i[n++]=new aM(c,s.command,s.commandArgs,r,t,null,!1)}}return i}resolveKeyboardEvent(e){const t=new Md(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new mm(t,Os)}};yg=Ic([pn(0,Ee),pn(1,ci),pn(2,sr),pn(3,di),pn(4,So),pn(5,ct)],yg);class zJ extends H{constructor(e,t){super(),this.domNode=e,this._register(t)}}function JM(o){return o&&typeof o=="object"&&(!o.overrideIdentifier||typeof o.overrideIdentifier=="string")&&(!o.resource||o.resource instanceof _e)}class s3{constructor(){this._onDidChangeConfiguration=new R,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new N1(new BJ,new Qn,new Qn,new Qn)}getValue(e,t){const i=typeof e=="string"?e:void 0,n=JM(e)?e:JM(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[s,r]=n;this.getValue(s)!==r&&(this._configuration.updateValue(s,r),i.push(s))}if(i.length>0){const n=new sY({keys:i,overrides:[]},t,this._configuration);n.source=8,n.sourceConfig=null,this._onDidChangeConfiguration.fire(n)}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 Nk=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new R,this.configurationService.onDidChangeConfiguration(t=>{this._onDidChangeConfiguration.fire({affectedKeys:t.affectedKeys,affectsConfiguration:(i,n)=>t.affectsConfiguration(n)})})}getValue(e,t,i){const s=(B.isIPosition(t)?t:null)?typeof i=="string"?i:void 0:typeof t=="string"?t:void 0;return typeof s>"u"?this.configurationService.getValue():this.configurationService.getValue(s)}};Nk=Ic([pn(0,ot)],Nk);let Tk=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&typeof i=="string"&&i!=="auto"?i:dn||Ge?` `:`\r -`}};Tk=Ic([pn(0,ot)],Tk);class UJ{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Em{constructor(){const e=_e.from({scheme:Em.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new uY({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Em.SCHEME?this.workspace.folders[0]:null}}Em.SCHEME="inmemory";function dC(o,e,t){if(!e||!(o instanceof s3))return;const i=[];Object.keys(e).forEach(n=>{tY(n)&&i.push([`editor.${n}`,e[n]]),t&&iY(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Ak=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return n3(this,void 0,void 0,function*(){const i=new Map;for(const r of e){if(!(r instanceof Cd))throw new Error("bad edit - only text edits are supported");const a=this._modelService.getModel(r.resource);if(!a)throw new Error("bad edit - model not found");if(typeof r.versionId=="number"&&a.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let l=i.get(a);l||(l=[],i.set(a,l)),l.push(Ft.replaceMove(L.lift(r.textEdit.range),r.textEdit.text))}let n=0,s=0;for(const[r,a]of i)r.pushStackElement(),r.pushEditOperations([],a,()=>[]),r.pushStackElement(),s+=1,n+=a.length;return{ariaSummary:Vs(jD.bulkEditServiceSummary,n,s)}})}};Ak=Ic([pn(0,Ut)],Ak);class $J{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return Js(e)}}let Mk=class extends KD{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};Mk=Ic([pn(0,Yg),pn(1,ct)],Mk);class jJ{constructor(){this._neverEmitter=new R,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class KJ extends Cm{constructor(){super()}}class qJ extends mV{constructor(){super(new pV)}}let Rk=class extends ZD{constructor(e,t,i,n,s){super(e,t,i,n,s),this.configure({blockMouse:!1})}};Rk=Ic([pn(0,sr),pn(1,di),pn(2,vh),pn(3,_i),pn(4,Ct)],Rk);et(ot,s3);et(WI,Nk);et(VP,Tk);et(_m,Em);et(bg,$J);et(sr,UJ);et(b_,HJ);et(di,K1);et(na,kl);et(Ht,KJ);et(Es,vJ);et(So,qJ);et(Ut,iC);et(KI,ek);et(Ee,xk);et(GF,VJ);et(kc,j1);et(Do,wJ);et(to,XL);et(v_,Ak);et(l5,jJ);et(Kn,Ik);et(al,yk);et(so,gk);et(ci,Ek);et(_i,yg);et(dl,wk);et(vh,Mk);et(io,JD);et(cl,kk);et(ll,Rk);et(ph,Lk);var Le;(function(o){const e=new k1;for(const[r,a]of UT())e.set(r,a);const t=new xN(e,!0);e.set(Ae,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof yr?t.invokeFunction(l=>l.get(r)):a}o.get=i;let n=!1;function s(r){if(n)return t;n=!0;for(const[a,l]of UT())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=Ye(a);e.get(l)instanceof yr&&e.set(l,r[a])}return t}o.initialize=s})(Le||(Le={}));var IN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},At=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let GJ=0,eR=!1;function ZJ(o){if(!o){if(eR)return;eR=!0}UH(o||document.body)}let hC=class extends pg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);g.ariaLabel=g.ariaLabel||Zv.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+Zv.accessibilityHelpMessage,super(e,g,{},i,n,s,r,l,c,d,h,u),a instanceof yg?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,ZJ(g.ariaContainerElement)}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_"+ ++GJ,s=se.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")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"),H.None;const t=e.id,i=e.label,n=se.and(se.equals("editorId",this.getId()),se.deserialize(e.precondition)),s=e.keybindings,r=se.and(n,se.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(g,...f)=>Promise.resolve(e.run(this,...f)),d=new Q,h=this.getId()+":"+t;if(d.add(Xe.registerCommand(h,c)),a){const g={command:{id:h,title:i},when:n,group:a,order:l};d.add(qs.appendMenuItem(M.EditorContext,g))}if(Array.isArray(s))for(const g of s)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,g,c,r));const u=new aF(h,i,i,n,c,this._contextKeyService);return this._actions[t]=u,d.add(Be(()=>{delete this._actions[t]})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof Uv)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};hC=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Ct),At(8,di),At(9,al),At(10,si),At(11,de)],hC);let Ok=class extends hC{constructor(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_){const b=Object.assign({},t);dC(d,b,!1);const v=l.registerEditorContainer(e);typeof b.theme=="string"&&l.setTheme(b.theme),typeof b.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(Boolean(b.autoDetectHighContrast));const C=b.model;delete b.model,super(e,b,i,n,s,r,a,l,c,h,f,_),this._configurationService=d,this._standaloneThemeService=l,this._register(v);let w;if(typeof C>"u"){const S=g.getLanguageIdByMimeType(b.language)||b.language||Ks;w=o3(u,g,b.value||"",S,void 0),this._ownsModel=!0}else w=C,this._ownsModel=!1;if(this._attachModel(w),w){const S={oldModelUrl:null,newModelUrl:w.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Ok=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Es),At(8,di),At(9,ot),At(10,al),At(11,Ut),At(12,Ht),At(13,si),At(14,de)],Ok);let Pk=class extends uc{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);dC(c,g,!0);const f=a.registerEditorContainer(e);typeof g.theme=="string"&&a.setTheme(g.theme),typeof g.autoDetectHighContrast<"u"&&a.setAutoDetectHighContrast(Boolean(g.autoDetectHighContrast)),super(e,g,{},u,s,n,i,r,a,l,d,h),this._configurationService=c,this._standaloneThemeService=a,this._register(f)}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(hC,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)}};Pk=IN([At(2,Ae),At(3,Ee),At(4,to),At(5,ct),At(6,Es),At(7,di),At(8,ot),At(9,ll),At(10,kc),At(11,cl)],Pk);function o3(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` +`}};Tk=Ic([pn(0,ot)],Tk);class UJ{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Em{constructor(){const e=_e.from({scheme:Em.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new uY({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Em.SCHEME?this.workspace.folders[0]:null}}Em.SCHEME="inmemory";function dC(o,e,t){if(!e||!(o instanceof s3))return;const i=[];Object.keys(e).forEach(n=>{tY(n)&&i.push([`editor.${n}`,e[n]]),t&&iY(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Ak=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return n3(this,void 0,void 0,function*(){const i=new Map;for(const r of e){if(!(r instanceof Cd))throw new Error("bad edit - only text edits are supported");const a=this._modelService.getModel(r.resource);if(!a)throw new Error("bad edit - model not found");if(typeof r.versionId=="number"&&a.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let l=i.get(a);l||(l=[],i.set(a,l)),l.push(Ft.replaceMove(L.lift(r.textEdit.range),r.textEdit.text))}let n=0,s=0;for(const[r,a]of i)r.pushStackElement(),r.pushEditOperations([],a,()=>[]),r.pushStackElement(),s+=1,n+=a.length;return{ariaSummary:Vs(jD.bulkEditServiceSummary,n,s)}})}};Ak=Ic([pn(0,Ut)],Ak);class $J{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return Js(e)}}let Mk=class extends KD{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};Mk=Ic([pn(0,Yg),pn(1,ct)],Mk);class jJ{constructor(){this._neverEmitter=new R,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class KJ extends Cm{constructor(){super()}}class qJ extends mV{constructor(){super(new pV)}}let Rk=class extends ZD{constructor(e,t,i,n,s){super(e,t,i,n,s),this.configure({blockMouse:!1})}};Rk=Ic([pn(0,sr),pn(1,di),pn(2,vh),pn(3,_i),pn(4,Ct)],Rk);et(ot,s3);et(WI,Nk);et(VP,Tk);et(_m,Em);et(bg,$J);et(sr,UJ);et(b_,HJ);et(di,K1);et(na,kl);et(Ht,KJ);et(Es,vJ);et(So,qJ);et(Ut,iC);et(KI,ek);et(Ee,xk);et(G5,VJ);et(kc,j1);et(Do,wJ);et(to,XL);et(v_,Ak);et(lF,jJ);et(Kn,Ik);et(al,yk);et(so,gk);et(ci,Ek);et(_i,yg);et(dl,wk);et(vh,Mk);et(io,JD);et(cl,kk);et(ll,Rk);et(ph,Lk);var Le;(function(o){const e=new k1;for(const[r,a]of UT())e.set(r,a);const t=new xN(e,!0);e.set(Ae,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof yr?t.invokeFunction(l=>l.get(r)):a}o.get=i;let n=!1;function s(r){if(n)return t;n=!0;for(const[a,l]of UT())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=Ye(a);e.get(l)instanceof yr&&e.set(l,r[a])}return t}o.initialize=s})(Le||(Le={}));var IN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},At=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let GJ=0,eR=!1;function ZJ(o){if(!o){if(eR)return;eR=!0}UH(o||document.body)}let hC=class extends pg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);g.ariaLabel=g.ariaLabel||Zv.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+Zv.accessibilityHelpMessage,super(e,g,{},i,n,s,r,l,c,d,h,u),a instanceof yg?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,ZJ(g.ariaContainerElement)}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_"+ ++GJ,s=se.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")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"),H.None;const t=e.id,i=e.label,n=se.and(se.equals("editorId",this.getId()),se.deserialize(e.precondition)),s=e.keybindings,r=se.and(n,se.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(g,...f)=>Promise.resolve(e.run(this,...f)),d=new Q,h=this.getId()+":"+t;if(d.add(Xe.registerCommand(h,c)),a){const g={command:{id:h,title:i},when:n,group:a,order:l};d.add(qs.appendMenuItem(M.EditorContext,g))}if(Array.isArray(s))for(const g of s)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,g,c,r));const u=new a5(h,i,i,n,c,this._contextKeyService);return this._actions[t]=u,d.add(Be(()=>{delete this._actions[t]})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof Uv)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};hC=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Ct),At(8,di),At(9,al),At(10,si),At(11,de)],hC);let Ok=class extends hC{constructor(e,t,i,n,s,r,a,l,c,d,h,u,g,f,_){const b=Object.assign({},t);dC(d,b,!1);const v=l.registerEditorContainer(e);typeof b.theme=="string"&&l.setTheme(b.theme),typeof b.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(Boolean(b.autoDetectHighContrast));const C=b.model;delete b.model,super(e,b,i,n,s,r,a,l,c,h,f,_),this._configurationService=d,this._standaloneThemeService=l,this._register(v);let w;if(typeof C>"u"){const S=g.getLanguageIdByMimeType(b.language)||b.language||Ks;w=o3(u,g,b.value||"",S,void 0),this._ownsModel=!0}else w=C,this._ownsModel=!1;if(this._attachModel(w),w){const S={oldModelUrl:null,newModelUrl:w.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Ok=IN([At(2,Ae),At(3,ct),At(4,ci),At(5,Ee),At(6,_i),At(7,Es),At(8,di),At(9,ot),At(10,al),At(11,Ut),At(12,Ht),At(13,si),At(14,de)],Ok);let Pk=class extends uc{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);dC(c,g,!0);const f=a.registerEditorContainer(e);typeof g.theme=="string"&&a.setTheme(g.theme),typeof g.autoDetectHighContrast<"u"&&a.setAutoDetectHighContrast(Boolean(g.autoDetectHighContrast)),super(e,g,{},u,s,n,i,r,a,l,d,h),this._configurationService=c,this._standaloneThemeService=a,this._register(f)}dispose(){super.dispose()}updateOptions(e){dC(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(hC,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)}};Pk=IN([At(2,Ae),At(3,Ee),At(4,to),At(5,ct),At(6,Es),At(7,di),At(8,ot),At(9,ll),At(10,kc),At(11,cl)],Pk);function o3(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` `);let r=t;return s!==-1&&(r=t.substring(0,s)),tR(o,t,e.createByFilepathOrFirstLine(n||null,r),n)}return tR(o,t,e.createById(i),n)}function tR(o,e,t,i){return o.createModel(e,t,i)}function YJ(o,e,t){return Le.initialize(t||{}).createInstance(Ok,o,e)}function QJ(o){return Le.get(ct).onCodeEditorAdd(t=>{o(t)})}function XJ(o){return Le.get(ct).onDiffEditorAdd(t=>{o(t)})}function JJ(){return Le.get(ct).listCodeEditors()}function eee(){return Le.get(ct).listDiffEditors()}function tee(o,e,t){return Le.initialize(t||{}).createInstance(Pk,o,e)}function iee(o,e){return new FB(o,e)}function nee(o){if(typeof o.id!="string"||typeof o.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Xe.registerCommand(o.id,o.run)}function see(o){if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=se.deserialize(o.precondition),t=(n,...s)=>xi.runEditorCommand(n,s,e,(r,a,l)=>Promise.resolve(o.run(a,...l))),i=new Q;if(i.add(Xe.registerCommand(o.id,t)),o.contextMenuGroupId){const n={command:{id:o.id,title:o.label},when:e,group:o.contextMenuGroupId,order:o.contextMenuOrder||0};i.add(qs.appendMenuItem(M.EditorContext,n))}if(Array.isArray(o.keybindings)){const n=Le.get(_i);if(!(n instanceof yg))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const s=se.and(e,se.deserialize(o.keybindingContext));i.add(n.addDynamicKeybindings(o.keybindings.map(r=>({keybinding:r,command:o.id,when:s}))))}}return i}function oee(o){return r3([o])}function r3(o){const e=Le.get(_i);return e instanceof yg?e.addDynamicKeybindings(o.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:se.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),H.None)}function ree(o,e,t){const i=Le.get(Ht),n=i.getLanguageIdByMimeType(e)||e;return o3(Le.get(Ut),i,o,n,t)}function aee(o,e){const t=Le.get(Ht);Le.get(Ut).setMode(o,t.createById(e))}function lee(o,e,t){o&&Le.get(na).changeOne(e,o.uri,t)}function cee(o){Le.get(na).changeAll(o,[])}function dee(o){return Le.get(na).read(o)}function hee(o){return Le.get(na).onMarkerChanged(o)}function uee(o){return Le.get(Ut).getModel(o)}function gee(){return Le.get(Ut).getModels()}function fee(o){return Le.get(Ut).onModelAdded(o)}function pee(o){return Le.get(Ut).onModelRemoved(o)}function mee(o){return Le.get(Ut).onModelLanguageChanged(t=>{o({model:t.model,oldLanguage:t.oldLanguageId})})}function _ee(o){return wV(Le.get(Ut),Le.get(si),o)}function bee(o,e){const t=Le.get(Ht),i=Le.get(Es);return i.registerEditorContainer(o),UI.colorizeElement(i,t,o,e)}function vee(o,e,t){const i=Le.get(Ht);return Le.get(Es).registerEditorContainer(document.body),UI.colorize(i,o,e,t)}function Cee(o,e,t=4){return Le.get(Es).registerEditorContainer(document.body),UI.colorizeModelLine(o,e,t)}function wee(o){const e=Wt.get(o);return e||{getInitialState:()=>ng,tokenize:(t,i,n)=>AI(o,n)}}function See(o,e){Wt.getOrCreate(e);const t=wee(e),i=jr(o),n=[];let s=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw Dt(o,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw Dt(o,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!VV(o,Il(o,n,"",[],""))))throw Dt(o,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,o.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,s=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=Fk(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=Bk(e,this.name,t)}}function a3(o,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=o,t.includeLF=Wb(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Wb(e.ignoreCase,!1),t.unicode=Wb(e.unicode,!1),t.tokenPostfix=iR(e.tokenPostfix,"."+t.languageId),t.defaultToken=iR(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=o,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const c of l){let d=c.include;if(d){if(typeof d!="string")throw Dt(t,"an 'include' attribute must be a string at: "+r);if(d[0]==="@"&&(d=d.substr(1)),!e.tokenizer[d])throw Dt(t,"include target '"+d+"' is not defined at: "+r);n(r+"."+d,a,e.tokenizer[d])}else{const h=new Aee(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(h.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")h.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const u=c[1];u.next=c[2],h.setAction(i,u)}else throw Dt(t,"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: "+r);else h.setAction(i,c[1]);else{if(!c.regex)throw Dt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(h.name=c.name),c.matchOnlyAtStart&&(h.matchOnlyAtLineStart=Wb(c.matchOnlyAtLineStart,!1)),h.setRegex(i,c.regex),h.setAction(i,c.action)}a.push(h)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw Dt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw Dt(t,"the 'brackets' attribute must be defined as an array")}else e.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 e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw Dt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:Kl(t,a.open),close:Kl(t,a.close)});else throw Dt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Mee=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function Ree(o){ig.registerLanguage(o)}function Oee(){let o=[];return o=o.concat(ig.getLanguages()),o}function Pee(o){return Le.get(Ht).languageIdCodec.encodeLanguageId(o)}function Fee(o,e){const i=Le.get(Ht).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function Bee(o,e){if(!Le.get(Ht).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return Le.get(si).register(o,e,100)}class Wee{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return Nm.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 BC(n.tokens,n.endState)}}class Nm{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let g=h.startIndex;c===0?g=0:gMee(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Vee(i)?c3(o,i):new Kp(Le.get(Ht),Le.get(Es),o,a3(o,i),Le.get(ot)):null})};return Wt.registerFactory(o,t)}function Uee(o,e){if(!Le.get(Ht).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return l3(e)?EN(o,{create:()=>e}):Wt.register(o,c3(o,e))}function $ee(o,e){const t=i=>new Kp(Le.get(Ht),Le.get(Es),o,a3(o,i),Le.get(ot));return l3(e)?EN(o,{create:()=>e}):Wt.register(o,t(e))}function jee(o,e){return Le.get(de).referenceProvider.register(o,e)}function Kee(o,e){return Le.get(de).renameProvider.register(o,e)}function qee(o,e){return Le.get(de).signatureHelpProvider.register(o,e)}function Gee(o,e){return Le.get(de).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(!!a)return!a.range&&r&&(a.range=new L(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new L(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function Zee(o,e){return Le.get(de).documentSymbolProvider.register(o,e)}function Yee(o,e){return Le.get(de).documentHighlightProvider.register(o,e)}function Qee(o,e){return Le.get(de).linkedEditingRangeProvider.register(o,e)}function Xee(o,e){return Le.get(de).definitionProvider.register(o,e)}function Jee(o,e){return Le.get(de).implementationProvider.register(o,e)}function ete(o,e){return Le.get(de).typeDefinitionProvider.register(o,e)}function tte(o,e){return Le.get(de).codeLensProvider.register(o,e)}function ite(o,e,t){return Le.get(de).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const c=Le.get(na).read({resource:n.uri}).filter(d=>L.areIntersectingOrTouching(d,s));return e.provideCodeActions(n,s,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function nte(o,e){return Le.get(de).documentFormattingEditProvider.register(o,e)}function ste(o,e){return Le.get(de).documentRangeFormattingEditProvider.register(o,e)}function ote(o,e){return Le.get(de).onTypeFormattingEditProvider.register(o,e)}function rte(o,e){return Le.get(de).linkProvider.register(o,e)}function ate(o,e){return Le.get(de).completionProvider.register(o,e)}function lte(o,e){return Le.get(de).colorProvider.register(o,e)}function cte(o,e){return Le.get(de).foldingRangeProvider.register(o,e)}function dte(o,e){return Le.get(de).declarationProvider.register(o,e)}function hte(o,e){return Le.get(de).selectionRangeProvider.register(o,e)}function ute(o,e){return Le.get(de).documentSemanticTokensProvider.register(o,e)}function gte(o,e){return Le.get(de).documentRangeSemanticTokensProvider.register(o,e)}function fte(o,e){return Le.get(de).inlineCompletionsProvider.register(o,e)}function pte(o,e){return Le.get(de).inlayHintsProvider.register(o,e)}function mte(){return{register:Ree,getLanguages:Oee,onLanguage:Fee,getEncodedLanguageId:Pee,setLanguageConfiguration:Bee,setColorMap:zee,registerTokensProviderFactory:EN,setTokensProvider:Uee,setMonarchTokensProvider:$ee,registerReferenceProvider:jee,registerRenameProvider:Kee,registerCompletionItemProvider:ate,registerSignatureHelpProvider:qee,registerHoverProvider:Gee,registerDocumentSymbolProvider:Zee,registerDocumentHighlightProvider:Yee,registerLinkedEditingRangeProvider:Qee,registerDefinitionProvider:Xee,registerImplementationProvider:Jee,registerTypeDefinitionProvider:ete,registerCodeLensProvider:tte,registerCodeActionProvider:ite,registerDocumentFormattingEditProvider:nte,registerDocumentRangeFormattingEditProvider:ste,registerOnTypeFormattingEditProvider:ote,registerLinkProvider:rte,registerColorProvider:lte,registerFoldingRangeProvider:cte,registerDeclarationProvider:dte,registerSelectionRangeProvider:hte,registerDocumentSemanticTokensProvider:ute,registerDocumentRangeSemanticTokensProvider:gte,registerInlineCompletionsProvider:fte,registerInlayHintsProvider:pte,DocumentHighlightKind:lL,CompletionItemKind:iL,CompletionItemTag:nL,CompletionItemInsertTextRule:J0,SymbolKind:TL,SymbolTag:AL,IndentAction:gL,CompletionTriggerKind:sL,SignatureHelpTriggerKind:NL,InlayHintKind:pL,InlineCompletionTriggerKind:mL,CodeActionTriggerType:tL,FoldingRangeKind:Qo}}const NN=Ye("IEditorCancelService"),d3=new le("cancellableOperation",!1,p("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));et(NN,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=d3.bindTo(n.get(Ee)),r=new Dn;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},!0);class _te extends Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(NN).add(e,this))}dispose(){this._unregister(),super.dispose()}}ee(new class extends xi{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:d3})}runEditorCommand(o,e){o.get(NN).cancel(e)}});class Tm{constructor(e,t){if(this.flags=t,(this.flags&1)!==0){const i=e.getModel();this.modelVersionId=i?Vs("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=e.getPosition():this.position=null,(this.flags&2)!==0?this.selection=e.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof Tm))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new Tm(e,this.flags))}}class qd extends _te{constructor(e,t,i,n){super(e,n),this._listener=new Q,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!L.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!L.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class TN extends Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function nl(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===o_.ICodeEditor:!1}function h3(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===o_.IDiffEditor:!1}function u3(o){return nl(o)?o:h3(o)?o.getModifiedEditor():null}class Lg{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Lg._handleEolEdits(e,t);n.length===1&&Lg._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map(s=>Ft.replace(L.lift(s.range),s.text))):e.executeEdits("formatEditsCommand",n.map(s=>Ft.replaceMove(L.lift(s.range),s.text))),i&&e.pushUndoStop()}}class ty{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var ir=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function AN(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&L.areIntersectingOrTouching(l[c-1],f)?l[c-1]=L.fromPositions(l[c-1].getStartPosition(),f.getEndPosition()):c=l.push(f);const d=f=>ir(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,f,r.getFormattingOptions(),a.token))||[]}),h=(f,_)=>{if(!f.length||!_.length)return!1;const b=f.reduce((v,C)=>L.plusRange(v,C.range),f[0].range);if(!_.some(v=>L.intersectRanges(b,v.range)))return!1;for(const v of f)for(const C of _)if(L.intersectRanges(v.range,C.range))return!0;return!1},u=[],g=[];try{for(const f of l){if(a.token.isCancellationRequested)return!0;g.push(yield d(f))}for(let f=0;f({text:b.text,range:L.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:v}of b)if(L.areIntersectingOrTouching(v,_))return[new oe(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn)];return null})}return!0})}function vte(o,e,t,i,n){return ir(this,void 0,void 0,function*(){const s=o.get(Ae),r=o.get(de),a=nl(e)?e.getModel():e,l=g3(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield Gd.select(l,a,t);c&&(i.report(c),yield s.invokeFunction(Cte,c,e,t,n))})}function Cte(o,e,t,i,n){return ir(this,void 0,void 0,function*(){const s=o.get(to);let r,a;nl(t)?(r=t.getModel(),a=new qd(t,5,void 0,n)):(r=t,a=new TN(t,n));let l;try{const c=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,c),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(nl(t))Lg.execute(t,l,i!==2),i!==2&&(AN(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:c}]=l,d=new oe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn);r.pushEditOperations([d],l.map(h=>({text:h.text,range:L.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(L.areIntersectingOrTouching(u,d))return[new oe(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function wte(o,e,t,i,n,s){return ir(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Pi);if(rn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function Ste(o,e,t,i,n){return ir(this,void 0,void 0,function*(){const s=g3(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Pi);if(rn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function p3(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Pi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}Xe.registerCommand("_executeFormatRangeProvider",function(o,...e){return ir(this,void 0,void 0,function*(){const[t,i,n]=e;pt(_e.isUri(t)),pt(L.isIRange(i));const s=o.get(Kn),r=o.get(to),a=o.get(de),l=yield s.createModelReference(t);try{return wte(r,a,l.object.textEditorModel,L.lift(i),n,ze.None)}finally{l.dispose()}})});Xe.registerCommand("_executeFormatDocumentProvider",function(o,...e){return ir(this,void 0,void 0,function*(){const[t,i]=e;pt(_e.isUri(t));const n=o.get(Kn),s=o.get(to),r=o.get(de),a=yield n.createModelReference(t);try{return Ste(s,r,a.object.textEditorModel,i,ze.None)}finally{a.dispose()}})});Xe.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return ir(this,void 0,void 0,function*(){const[t,i,n,s]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string");const r=o.get(Kn),a=o.get(to),l=o.get(de),c=yield r.createModelReference(t);try{return p3(a,l,c.object.textEditorModel,B.lift(i),n,s,ze.None)}finally{c.dispose()}})});var iy;nr.wrappingIndent.defaultValue=0;nr.glyphMargin.defaultValue=!1;nr.autoIndent.defaultValue=3;nr.overviewRulerLanes.defaultValue=2;Gd.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const xn=lP();xn.editor=xee();xn.languages=mte();const yte=xn.CancellationTokenSource,Lte=xn.Emitter,Dte=xn.KeyCode,kte=xn.KeyMod,xte=xn.Position,Ite=xn.Range,Ete=xn.Selection,Nte=xn.SelectionDirection,Tte=xn.MarkerSeverity,Ate=xn.MarkerTag,Mte=xn.Uri,Rte=xn.Token,Ote=xn.editor,Pte=xn.languages;(((iy=ni.MonacoEnvironment)===null||iy===void 0?void 0:iy.globalAPI)||typeof define=="function"&&define.amd)&&(self.monaco=xn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.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"]});const D_=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:yte,Emitter:Lte,KeyCode:Dte,KeyMod:kte,Position:xte,Range:Ite,Selection:Ete,SelectionDirection:Nte,MarkerSeverity:Tte,MarkerTag:Ate,Uri:Mte,Token:Rte,editor:Ote,languages:Pte},Symbol.toStringTag,{value:"Module"}));/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Fte=Object.defineProperty,Bte=Object.getOwnPropertyDescriptor,Wte=Object.getOwnPropertyNames,Vte=Object.prototype.hasOwnProperty,sR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wte(e))!Vte.call(o,n)&&n!==t&&Fte(o,n,{get:()=>e[n],enumerable:!(i=Bte(e,n))||i.enumerable});return o},Hte=(o,e,t)=>(sR(o,e,"default"),t&&sR(t,e,"default")),tp={};Hte(tp,D_);var m3={},ny={},_3=class{constructor(o){qt(this,"_languageId");qt(this,"_loadingTriggered");qt(this,"_lazyLoadPromise");qt(this,"_lazyLoadPromiseResolve");qt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return ny[o]||(ny[o]=new _3(o)),ny[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,m3[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function pe(o){const e=o.id;m3[e]=o,tp.languages.register(o);const t=_3.getOrCreate(e);tp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),tp.languages.onLanguage(e,async()=>{const i=await t.load();tp.languages.setLanguageConfiguration(e,i.conf)})}pe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ue(()=>import("./abap.15cc56c3.js"),[])});pe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ue(()=>import("./apex.3097bfba.js"),[])});pe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ue(()=>import("./azcli.b70fb9b3.js"),[])});pe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ue(()=>import("./bat.4e83862e.js"),[])});pe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ue(()=>import("./bicep.107c4876.js"),[])});pe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ue(()=>import("./cameligo.9b7ef084.js"),[])});pe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ue(()=>import("./clojure.9b9ce362.js"),[])});pe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ue(()=>import("./coffee.3343db4b.js"),[])});pe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ue(()=>import("./csharp.711e6ef5.js"),[])});pe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ue(()=>import("./csp.1454e635.js"),[])});pe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ue(()=>import("./css.0f39058b.js"),[])});pe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ue(()=>import("./cypher.8b877bda.js"),[])});pe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ue(()=>import("./dart.d9ca4827.js"),[])});pe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ue(()=>import("./dockerfile.b12c8d75.js"),[])});pe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ue(()=>import("./ecl.5841a83e.js"),[])});pe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ue(()=>import("./elixir.837d31f3.js"),[])});pe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ue(()=>import("./flow9.02cb4afd.js"),[])});pe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ue(()=>import("./fsharp.c6cc3d99.js"),[])});pe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ue(()=>import("./freemarker2.552a9264.js"),["assets/freemarker2.552a9264.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ue(()=>import("./freemarker2.552a9264.js"),["assets/freemarker2.552a9264.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAngleInterpolationDollar)});pe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ue(()=>import("./freemarker2.552a9264.js"),["assets/freemarker2.552a9264.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"]).then(o=>o.TagBracketInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ue(()=>import("./freemarker2.552a9264.js"),["assets/freemarker2.552a9264.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAngleInterpolationBracket)});pe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ue(()=>import("./freemarker2.552a9264.js"),["assets/freemarker2.552a9264.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"]).then(o=>o.TagBracketInterpolationBracket)});pe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ue(()=>import("./freemarker2.552a9264.js"),["assets/freemarker2.552a9264.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ue(()=>import("./freemarker2.552a9264.js"),["assets/freemarker2.552a9264.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAutoInterpolationBracket)});pe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ue(()=>import("./go.e18cc8fd.js"),[])});pe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ue(()=>import("./graphql.91865f29.js"),[])});pe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ue(()=>import("./handlebars.03515038.js"),["assets/handlebars.03515038.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ue(()=>import("./hcl.89542f1d.js"),[])});pe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ue(()=>import("./html.b6d5cced.js"),["assets/html.b6d5cced.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ue(()=>import("./ini.927d4958.js"),[])});pe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ue(()=>import("./java.cae92986.js"),[])});pe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ue(()=>import("./javascript.43bc8945.js"),["assets/javascript.43bc8945.js","assets/typescript.02db7208.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ue(()=>import("./julia.1ab2c6a6.js"),[])});pe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ue(()=>import("./kotlin.567012b4.js"),[])});pe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ue(()=>import("./less.8ff15de1.js"),[])});pe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ue(()=>import("./lexon.892ac9e8.js"),[])});pe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ue(()=>import("./lua.84919ba3.js"),[])});pe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ue(()=>import("./liquid.d9bc0f35.js"),["assets/liquid.d9bc0f35.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ue(()=>import("./m3.dbd6d890.js"),[])});pe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ue(()=>import("./markdown.0bd269fb.js"),[])});pe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ue(()=>import("./mips.5b57214f.js"),[])});pe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ue(()=>import("./msdax.664f04d4.js"),[])});pe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ue(()=>import("./mysql.b3be80b5.js"),[])});pe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ue(()=>import("./objective-c.f61689b5.js"),[])});pe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ue(()=>import("./pascal.63810ab2.js"),[])});pe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ue(()=>import("./pascaligo.f3c373fd.js"),[])});pe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ue(()=>import("./perl.7a13b920.js"),[])});pe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ue(()=>import("./pgsql.231377e2.js"),[])});pe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ue(()=>import("./php.f75fab85.js"),[])});pe({id:"pla",extensions:[".pla"],loader:()=>ue(()=>import("./pla.53add393.js"),[])});pe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ue(()=>import("./postiats.b78836c4.js"),[])});pe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ue(()=>import("./powerquery.40e0a8e5.js"),[])});pe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ue(()=>import("./powershell.b2dc53b1.js"),[])});pe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ue(()=>import("./protobuf.bce7ad87.js"),[])});pe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ue(()=>import("./pug.e7bd8f2e.js"),[])});pe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ue(()=>import("./python.62432718.js"),["assets/python.62432718.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ue(()=>import("./qsharp.9d22faff.js"),[])});pe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ue(()=>import("./r.77bb7e19.js"),[])});pe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ue(()=>import("./razor.b400414b.js"),["assets/razor.b400414b.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ue(()=>import("./redis.d60fd379.js"),[])});pe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ue(()=>import("./redshift.3c32617e.js"),[])});pe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ue(()=>import("./restructuredtext.6d30740a.js"),[])});pe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ue(()=>import("./ruby.10c929d1.js"),[])});pe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ue(()=>import("./rust.abc56d3e.js"),[])});pe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ue(()=>import("./sb.4973b57f.js"),[])});pe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ue(()=>import("./scala.2026dee1.js"),[])});pe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ue(()=>import("./scheme.fe55144d.js"),[])});pe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ue(()=>import("./scss.4ba8f803.js"),[])});pe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ue(()=>import("./shell.2643570b.js"),[])});pe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ue(()=>import("./solidity.9a85e4e7.js"),[])});pe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ue(()=>import("./sophia.ae3e217e.js"),[])});pe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ue(()=>import("./sparql.6944fd44.js"),[])});pe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ue(()=>import("./sql.4f48b9c1.js"),[])});pe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ue(()=>import("./st.7c961594.js"),[])});pe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ue(()=>import("./swift.23da7225.js"),[])});pe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ue(()=>import("./tcl.236460f4.js"),[])});pe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ue(()=>import("./twig.b70b7ae1.js"),[])});pe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ue(()=>import("./typescript.02db7208.js"),["assets/typescript.02db7208.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ue(()=>import("./vb.5502a104.js"),[])});pe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ue(()=>import("./xml.7444b070.js"),["assets/xml.7444b070.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});pe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ue(()=>import("./yaml.0a28d3df.js"),["assets/yaml.0a28d3df.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Fte=Object.defineProperty,Bte=Object.getOwnPropertyDescriptor,Wte=Object.getOwnPropertyNames,Vte=Object.prototype.hasOwnProperty,sR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wte(e))!Vte.call(o,n)&&n!==t&&Fte(o,n,{get:()=>e[n],enumerable:!(i=Bte(e,n))||i.enumerable});return o},Hte=(o,e,t)=>(sR(o,e,"default"),t&&sR(t,e,"default")),tp={};Hte(tp,D_);var m3={},ny={},_3=class{constructor(o){qt(this,"_languageId");qt(this,"_loadingTriggered");qt(this,"_lazyLoadPromise");qt(this,"_lazyLoadPromiseResolve");qt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return ny[o]||(ny[o]=new _3(o)),ny[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,m3[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function pe(o){const e=o.id;m3[e]=o,tp.languages.register(o);const t=_3.getOrCreate(e);tp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),tp.languages.onLanguage(e,async()=>{const i=await t.load();tp.languages.setLanguageConfiguration(e,i.conf)})}pe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ue(()=>import("./abap.15cc56c3.js"),[])});pe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ue(()=>import("./apex.3097bfba.js"),[])});pe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ue(()=>import("./azcli.b70fb9b3.js"),[])});pe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ue(()=>import("./bat.4e83862e.js"),[])});pe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ue(()=>import("./bicep.107c4876.js"),[])});pe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ue(()=>import("./cameligo.9b7ef084.js"),[])});pe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ue(()=>import("./clojure.9b9ce362.js"),[])});pe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ue(()=>import("./coffee.3343db4b.js"),[])});pe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ue(()=>import("./cpp.5842f29e.js"),[])});pe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ue(()=>import("./csharp.711e6ef5.js"),[])});pe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ue(()=>import("./csp.1454e635.js"),[])});pe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ue(()=>import("./css.0f39058b.js"),[])});pe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ue(()=>import("./cypher.8b877bda.js"),[])});pe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ue(()=>import("./dart.d9ca4827.js"),[])});pe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ue(()=>import("./dockerfile.b12c8d75.js"),[])});pe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ue(()=>import("./ecl.5841a83e.js"),[])});pe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ue(()=>import("./elixir.837d31f3.js"),[])});pe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ue(()=>import("./flow9.02cb4afd.js"),[])});pe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ue(()=>import("./fsharp.c6cc3d99.js"),[])});pe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ue(()=>import("./freemarker2.4de0301e.js"),["assets/freemarker2.4de0301e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ue(()=>import("./freemarker2.4de0301e.js"),["assets/freemarker2.4de0301e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAngleInterpolationDollar)});pe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ue(()=>import("./freemarker2.4de0301e.js"),["assets/freemarker2.4de0301e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"]).then(o=>o.TagBracketInterpolationDollar)});pe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ue(()=>import("./freemarker2.4de0301e.js"),["assets/freemarker2.4de0301e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAngleInterpolationBracket)});pe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ue(()=>import("./freemarker2.4de0301e.js"),["assets/freemarker2.4de0301e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"]).then(o=>o.TagBracketInterpolationBracket)});pe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ue(()=>import("./freemarker2.4de0301e.js"),["assets/freemarker2.4de0301e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAutoInterpolationDollar)});pe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ue(()=>import("./freemarker2.4de0301e.js"),["assets/freemarker2.4de0301e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"]).then(o=>o.TagAutoInterpolationBracket)});pe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ue(()=>import("./go.e18cc8fd.js"),[])});pe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ue(()=>import("./graphql.91865f29.js"),[])});pe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ue(()=>import("./handlebars.44d99850.js"),["assets/handlebars.44d99850.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ue(()=>import("./hcl.89542f1d.js"),[])});pe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ue(()=>import("./html.5beff205.js"),["assets/html.5beff205.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ue(()=>import("./ini.927d4958.js"),[])});pe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ue(()=>import("./java.cae92986.js"),[])});pe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ue(()=>import("./javascript.34d3068d.js"),["assets/javascript.34d3068d.js","assets/typescript.e2f96ca7.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ue(()=>import("./julia.1ab2c6a6.js"),[])});pe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ue(()=>import("./kotlin.567012b4.js"),[])});pe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ue(()=>import("./less.8ff15de1.js"),[])});pe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ue(()=>import("./lexon.892ac9e8.js"),[])});pe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ue(()=>import("./lua.84919ba3.js"),[])});pe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ue(()=>import("./liquid.71878b3b.js"),["assets/liquid.71878b3b.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ue(()=>import("./m3.dbd6d890.js"),[])});pe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ue(()=>import("./markdown.0bd269fb.js"),[])});pe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ue(()=>import("./mips.5b57214f.js"),[])});pe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ue(()=>import("./msdax.664f04d4.js"),[])});pe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ue(()=>import("./mysql.b3be80b5.js"),[])});pe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ue(()=>import("./objective-c.f61689b5.js"),[])});pe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ue(()=>import("./pascal.63810ab2.js"),[])});pe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ue(()=>import("./pascaligo.f3c373fd.js"),[])});pe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ue(()=>import("./perl.7a13b920.js"),[])});pe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ue(()=>import("./pgsql.231377e2.js"),[])});pe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ue(()=>import("./php.f75fab85.js"),[])});pe({id:"pla",extensions:[".pla"],loader:()=>ue(()=>import("./pla.53add393.js"),[])});pe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ue(()=>import("./postiats.b78836c4.js"),[])});pe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ue(()=>import("./powerquery.40e0a8e5.js"),[])});pe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ue(()=>import("./powershell.b2dc53b1.js"),[])});pe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ue(()=>import("./protobuf.bce7ad87.js"),[])});pe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ue(()=>import("./pug.e7bd8f2e.js"),[])});pe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ue(()=>import("./python.fb6e4ff5.js"),["assets/python.fb6e4ff5.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ue(()=>import("./qsharp.9d22faff.js"),[])});pe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ue(()=>import("./r.77bb7e19.js"),[])});pe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ue(()=>import("./razor.6caf29b1.js"),["assets/razor.6caf29b1.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ue(()=>import("./redis.d60fd379.js"),[])});pe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ue(()=>import("./redshift.3c32617e.js"),[])});pe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ue(()=>import("./restructuredtext.6d30740a.js"),[])});pe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ue(()=>import("./ruby.10c929d1.js"),[])});pe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ue(()=>import("./rust.abc56d3e.js"),[])});pe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ue(()=>import("./sb.4973b57f.js"),[])});pe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ue(()=>import("./scala.2026dee1.js"),[])});pe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ue(()=>import("./scheme.fe55144d.js"),[])});pe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ue(()=>import("./scss.4ba8f803.js"),[])});pe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ue(()=>import("./shell.2643570b.js"),[])});pe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ue(()=>import("./solidity.9a85e4e7.js"),[])});pe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ue(()=>import("./sophia.ae3e217e.js"),[])});pe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ue(()=>import("./sparql.6944fd44.js"),[])});pe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ue(()=>import("./sql.4f48b9c1.js"),[])});pe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ue(()=>import("./st.7c961594.js"),[])});pe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ue(()=>import("./swift.23da7225.js"),[])});pe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ue(()=>import("./systemverilog.0eef8e45.js"),[])});pe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ue(()=>import("./tcl.236460f4.js"),[])});pe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ue(()=>import("./twig.b70b7ae1.js"),[])});pe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ue(()=>import("./typescript.e2f96ca7.js"),["assets/typescript.e2f96ca7.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ue(()=>import("./vb.5502a104.js"),[])});pe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ue(()=>import("./xml.91c4c3cb.js"),["assets/xml.91c4c3cb.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});pe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ue(()=>import("./yaml.5a99e5b3.js"),["assets/yaml.5a99e5b3.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var zte=Object.defineProperty,Ute=Object.getOwnPropertyDescriptor,$te=Object.getOwnPropertyNames,jte=Object.prototype.hasOwnProperty,oR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $te(e))!jte.call(o,n)&&n!==t&&zte(o,n,{get:()=>e[n],enumerable:!(i=Ute(e,n))||i.enumerable});return o},Kte=(o,e,t)=>(oR(o,e,"default"),t&&oR(t,e,"default")),Xg={};Kte(Xg,D_);var MN=class{constructor(o,e,t){qt(this,"_onDidChange",new Xg.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}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(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(o){this.setOptions(o)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},RN={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}},ON={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},b3=new MN("css",RN,ON),v3=new MN("scss",RN,ON),C3=new MN("less",RN,ON);Xg.languages.css={cssDefaults:b3,lessDefaults:C3,scssDefaults:v3};function PN(){return ue(()=>import("./cssMode.e0c7ce46.js"),["assets/cssMode.e0c7ce46.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])}Xg.languages.onLanguage("less",()=>{PN().then(o=>o.setupMode(C3))});Xg.languages.onLanguage("scss",()=>{PN().then(o=>o.setupMode(v3))});Xg.languages.onLanguage("css",()=>{PN().then(o=>o.setupMode(b3))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var zte=Object.defineProperty,Ute=Object.getOwnPropertyDescriptor,$te=Object.getOwnPropertyNames,jte=Object.prototype.hasOwnProperty,oR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $te(e))!jte.call(o,n)&&n!==t&&zte(o,n,{get:()=>e[n],enumerable:!(i=Ute(e,n))||i.enumerable});return o},Kte=(o,e,t)=>(oR(o,e,"default"),t&&oR(t,e,"default")),Xg={};Kte(Xg,D_);var MN=class{constructor(o,e,t){qt(this,"_onDidChange",new Xg.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}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(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(o){this.setOptions(o)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},RN={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}},ON={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},b3=new MN("css",RN,ON),v3=new MN("scss",RN,ON),C3=new MN("less",RN,ON);Xg.languages.css={cssDefaults:b3,lessDefaults:C3,scssDefaults:v3};function PN(){return ue(()=>import("./cssMode.15b3a50a.js"),["assets/cssMode.15b3a50a.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])}Xg.languages.onLanguage("less",()=>{PN().then(o=>o.setupMode(C3))});Xg.languages.onLanguage("scss",()=>{PN().then(o=>o.setupMode(v3))});Xg.languages.onLanguage("css",()=>{PN().then(o=>o.setupMode(b3))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var qte=Object.defineProperty,Gte=Object.getOwnPropertyDescriptor,Zte=Object.getOwnPropertyNames,Yte=Object.prototype.hasOwnProperty,rR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zte(e))!Yte.call(o,n)&&n!==t&&qte(o,n,{get:()=>e[n],enumerable:!(i=Gte(e,n))||i.enumerable});return o},Qte=(o,e,t)=>(rR(o,e,"default"),t&&rR(t,e,"default")),q1={};Qte(q1,D_);var Xte=class{constructor(o,e,t){qt(this,"_onDidChange",new q1.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},Jte={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"},G1={format:Jte,suggest:{},data:{useDefaultDataProvider:!0}};function Z1(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xp,documentFormattingEdits:o===xp,documentRangeFormattingEdits:o===xp}}var xp="html",aR="handlebars",lR="razor",w3=Y1(xp,G1,Z1(xp)),eie=w3.defaults,S3=Y1(aR,G1,Z1(aR)),tie=S3.defaults,y3=Y1(lR,G1,Z1(lR)),iie=y3.defaults;q1.languages.html={htmlDefaults:eie,razorDefaults:iie,handlebarDefaults:tie,htmlLanguageService:w3,handlebarLanguageService:S3,razorLanguageService:y3,registerHTMLLanguageService:Y1};function nie(){return ue(()=>import("./htmlMode.fbafd865.js"),["assets/htmlMode.fbafd865.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])}function Y1(o,e=G1,t=Z1(o)){const i=new Xte(o,e,t);let n;const s=q1.languages.onLanguage(o,async()=>{n=(await nie()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var qte=Object.defineProperty,Gte=Object.getOwnPropertyDescriptor,Zte=Object.getOwnPropertyNames,Yte=Object.prototype.hasOwnProperty,rR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zte(e))!Yte.call(o,n)&&n!==t&&qte(o,n,{get:()=>e[n],enumerable:!(i=Gte(e,n))||i.enumerable});return o},Qte=(o,e,t)=>(rR(o,e,"default"),t&&rR(t,e,"default")),q1={};Qte(q1,D_);var Xte=class{constructor(o,e,t){qt(this,"_onDidChange",new q1.Emitter);qt(this,"_options");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(o){this._options=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},Jte={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"},G1={format:Jte,suggest:{},data:{useDefaultDataProvider:!0}};function Z1(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xp,documentFormattingEdits:o===xp,documentRangeFormattingEdits:o===xp}}var xp="html",aR="handlebars",lR="razor",w3=Y1(xp,G1,Z1(xp)),eie=w3.defaults,S3=Y1(aR,G1,Z1(aR)),tie=S3.defaults,y3=Y1(lR,G1,Z1(lR)),iie=y3.defaults;q1.languages.html={htmlDefaults:eie,razorDefaults:iie,handlebarDefaults:tie,htmlLanguageService:w3,handlebarLanguageService:S3,razorLanguageService:y3,registerHTMLLanguageService:Y1};function nie(){return ue(()=>import("./htmlMode.de1c4f49.js"),["assets/htmlMode.de1c4f49.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])}function Y1(o,e=G1,t=Z1(o)){const i=new Xte(o,e,t);let n;const s=q1.languages.onLanguage(o,async()=>{n=(await nie()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var sie=Object.defineProperty,oie=Object.getOwnPropertyDescriptor,rie=Object.getOwnPropertyNames,aie=Object.prototype.hasOwnProperty,cR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rie(e))!aie.call(o,n)&&n!==t&&sie(o,n,{get:()=>e[n],enumerable:!(i=oie(e,n))||i.enumerable});return o},lie=(o,e,t)=>(cR(o,e,"default"),t&&cR(t,e,"default")),k_={};lie(k_,D_);var cie=class{constructor(o,e,t){qt(this,"_onDidChange",new k_.Emitter);qt(this,"_diagnosticsOptions");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},die={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},hie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},L3=new cie("json",die,hie);k_.languages.json={jsonDefaults:L3};function uie(){return ue(()=>import("./jsonMode.46550f6f.js"),["assets/jsonMode.46550f6f.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])}k_.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});k_.languages.onLanguage("json",()=>{uie().then(o=>o.setupMode(L3))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var sie=Object.defineProperty,oie=Object.getOwnPropertyDescriptor,rie=Object.getOwnPropertyNames,aie=Object.prototype.hasOwnProperty,cR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rie(e))!aie.call(o,n)&&n!==t&&sie(o,n,{get:()=>e[n],enumerable:!(i=oie(e,n))||i.enumerable});return o},lie=(o,e,t)=>(cR(o,e,"default"),t&&cR(t,e,"default")),k_={};lie(k_,D_);var cie=class{constructor(o,e,t){qt(this,"_onDidChange",new k_.Emitter);qt(this,"_diagnosticsOptions");qt(this,"_modeConfiguration");qt(this,"_languageId");this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}},die={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},hie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},L3=new cie("json",die,hie);k_.languages.json={jsonDefaults:L3};function uie(){return ue(()=>import("./jsonMode.a8e46bfb.js"),["assets/jsonMode.a8e46bfb.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])}k_.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});k_.languages.onLanguage("json",()=>{uie().then(o=>o.setupMode(L3))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var gie=Object.defineProperty,fie=Object.getOwnPropertyDescriptor,pie=Object.getOwnPropertyNames,mie=Object.prototype.hasOwnProperty,dR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pie(e))!mie.call(o,n)&&n!==t&&gie(o,n,{get:()=>e[n],enumerable:!(i=fie(e,n))||i.enumerable});return o},_ie=(o,e,t)=>(dR(o,e,"default"),t&&dR(t,e,"default")),bie="4.5.5",Dg={};_ie(Dg,D_);var D3=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(D3||{}),k3=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(k3||{}),x3=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(x3||{}),I3=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(I3||{}),E3=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(E3||{}),N3=class{constructor(o,e,t,i){qt(this,"_onDidChange",new Dg.Emitter);qt(this,"_onDidExtraLibsChange",new Dg.Emitter);qt(this,"_extraLibs");qt(this,"_removedExtraLibs");qt(this,"_eagerModelSync");qt(this,"_compilerOptions");qt(this,"_diagnosticsOptions");qt(this,"_workerOptions");qt(this,"_onDidExtraLibsChangeTimeout");qt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}},vie=bie,T3=new N3({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),A3=new N3({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Cie=()=>Q1().then(o=>o.getTypeScriptWorker()),wie=()=>Q1().then(o=>o.getJavaScriptWorker());Dg.languages.typescript={ModuleKind:D3,JsxEmit:k3,NewLineKind:x3,ScriptTarget:I3,ModuleResolutionKind:E3,typescriptVersion:vie,typescriptDefaults:T3,javascriptDefaults:A3,getTypeScriptWorker:Cie,getJavaScriptWorker:wie};function Q1(){return ue(()=>import("./tsMode.9ef80535.js"),["assets/tsMode.9ef80535.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css"])}Dg.languages.onLanguage("typescript",()=>Q1().then(o=>o.setupTypeScript(T3)));Dg.languages.onLanguage("javascript",()=>Q1().then(o=>o.setupJavaScript(A3)));var Sie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},X1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const J1=new le("selectionAnchorSet",!1);let sl=class M3{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=J1.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(M3.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(oe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Fn().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Gi(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Sie([yie(1,Ee)],sl);class Lie extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2080),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Die extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:J1})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class kie extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2089),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class xie extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}tt(sl.ID,sl);ie(Lie);ie(Die);ie(kie);ie(xie);const Iie=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Eie extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Yo.get(t))===null||i===void 0||i.jumpToBracket()}}class Nie extends ce{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Yo.get(t))===null||n===void 0||n.selectToBracket(s)}}class Tie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Yo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Yo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(L.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h{const t=o.getColor(b$);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=o.getColor(z4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qs.appendMenuItem(M.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Aie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new L(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,s,i,s),a)}else{const r=new L(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class R3 extends ce{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new Aie(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Mie extends R3{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:N.writable})}}class Rie extends R3{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:N.writable})}}ie(Mie);ie(Rie);class Oie extends ce{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():lt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=lt.leftPosition(i,d),u=lt.leftPosition(i,h),g=i.getValueInRange(L.fromPositions(u,h)),f=i.getValueInRange(L.fromPositions(h,d)),_=L.fromPositions(u,d);n.push(new zi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Oie);var Pie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Zd="9_cutcopypaste",Fie=jo||document.queryCommandSupported("cut"),O3=jo||document.queryCommandSupported("copy"),Bie=typeof navigator.clipboard>"u"||Ls?document.queryCommandSupported("paste"):!0;function FN(o){return o.register(),o}const Wie=Fie?FN(new Ug({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:jo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Vie=O3?FN(new Ug({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:jo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qs.appendMenuItem(M.MenubarEditMenu,{submenu:M.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:Zd,order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextShare,title:{value:p("share","Share"),original:"Share"},group:"11_share",order:-1});const sy=Bie?FN(new Ug({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:jo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Hie extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(gD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),gD.forceCopyWithSyntaxHighlighting=!1)}}function P3(o,e){!o||(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ct).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}P3(Wie,"cut");P3(Vie,"copy");sy&&(sy.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ct),i=o.get(cl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Sc?(()=>Pie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=im.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),sy.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));O3&&ie(Hie);class Ze{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ze.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ze(this.value+Ze.sep+e)}}Ze.sep=".";Ze.None=new Ze("@@none@@");Ze.Empty=new Ze("");Ze.QuickFix=new Ze("quickfix");Ze.Refactor=new Ze("refactor");Ze.Source=new Ze("source");Ze.SourceOrganizeImports=Ze.Source.append("organizeImports");Ze.SourceFixAll=Ze.Source.append("fixAll");var bn;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(bn||(bn={}));function zie(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>F3(e,t,o.include))||!o.includeSourceActions&&Ze.Source.contains(e))}function Uie(o,e){const t=e.kind?new Ze(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>F3(t,i,o.include))||!o.includeSourceActions&&t&&Ze.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function F3(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Nr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Nr(t.kind,t.apply,!1):new Nr(Nr.getKindFromUser(e,t.kind),Nr.getApplyFromUser(e,t.apply),Nr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ze(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var BN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const B3="editor.action.codeAction",W3="editor.action.refactor",$ie="editor.action.refactor.preview",V3="editor.action.sourceAction",WN="editor.action.organizeImports",VN="editor.action.fixAll";class H3{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return BN(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Pi(n)}i&&(this.action.edit=i.edit)}return this})}}class HN extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(HN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:rn(e.diagnostics)?rn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:rn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ze.QuickFix.contains(new Ze(e.kind))&&!!e.isPreferred)}}const hR={actions:[],documentation:void 0};function zN(o,e,t,i,n,s){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new TN(e,s),d=jie(o,e,a),h=new Q,u=d.map(f=>BN(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return hR;const b=((_==null?void 0:_.actions)||[]).filter(C=>C&&Uie(a,C)),v=Kie(f,b,a.include);return{actions:b.map(C=>new H3(C,f)),documentation:v}}catch(_){if(ea(_))throw _;return Pi(_),hR}})),g=o.onDidChange(()=>{const f=o.all(e);Ss(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(v=>v.actions).flat(),b=i_(f.map(v=>v.documentation));return new HN(_,b,h)}).finally(()=>{g.dispose(),c.dispose()})}function jie(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>zie(t,new Ze(n))):!0)}function Kie(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ze(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const s of i)if(s.kind.contains(new Ze(n.kind)))return s.command}}Xe.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return BN(this,void 0,void 0,function*(){if(!(e instanceof _e))throw Ko();const{codeActionProvider:s}=o.get(de),r=o.get(Ut).getModel(e);if(!r)throw Ko();const a=oe.isISelection(t)?oe.liftSelection(t):L.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ko();const l=typeof i=="string"?new Ze(i):void 0,c=yield zN(s,r,a,{type:1,triggerAction:bn.Default,filter:{includeSourceActions:!0,include:l}},Ch.None,ze.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let os=class Wk{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new Q,this._editor=e,this._visible=Wk.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(Wk.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Gi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new uR(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new xs(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new L(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(uR.fadeOut(this._messageWidget.value))}};os.ID="editor.contrib.messageController";os.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));os=qie([Gie(1,Ee)],os);const Zie=xi.bindToContribution(os.get);ee(new Zie({id:"leaveEditorMessage",precondition:os.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class uR{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}tt(os.ID,os);var z3=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_a=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Yie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Jg={Visible:new le("CodeActionMenuVisible",!1,p("CodeActionMenuVisible","Whether the code action list widget is visible"))};class oy extends is{constructor(e,t){super(e.command?e.command.id:e.title,Qie(e.title),void 0,!e.disabled,t),this.action=e}}function Qie(o){return o.replace(/\r\n|\r|\n/g," ")}const Xie="codeActionWidget",ry=26;let Vk=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return Xie}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,s=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=s,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=nt(e.disposables)}};Vk=z3([_a(1,_i)],Vk);let uC=class Hk extends H{constructor(e,t,i,n,s,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=s,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ew({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=Jg.Visible.bindTo(this._contextKeyService),this.listRenderer=new Vk(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,s;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new Q,s=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("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",n.add(G(this.block,ae.MOUSE_DOWN,u=>u.stopPropagation())),s.id="codeActionMenuWidget",s.classList.add("codeActionMenuWidget"),e.appendChild(s),this.codeActionList.value=new rr("codeActionWidget",s,{getHeight(u){return u.isSeparator?10:ry},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof oy&&(_=u.action.kind===Hk.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*ry+10:t.length*ry;s.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const b=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);s.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Od(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Yie(this,void 0,void 0,function*(){const s=this._editor.getModel();if(!s)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,QO();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(s)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof oy?c(h.action):void 0})})}getMenuActions(e,t,i){var n,s;const r=d=>new oy(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(s=(n=e.filter)===null||n===void 0?void 0:n.include)===null||s===void 0?void 0:s.value},t.map(h=>h.action)));return l.length&&a.push(new ln,...l.map(d=>r(new H3({title:d.title,command:d,kind:Hk.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}};uC.documentationID="_documentation";uC=z3([_a(2,ll),_a(3,_i),_a(4,de),_a(5,sr),_a(6,Ct),_a(7,ot),_a(8,vh),_a(9,Ee)],uC);class ew{constructor(e){this._keybindingProvider=e}getResolver(){const e=new Ju(()=>this._keybindingProvider.getKeybindings().filter(t=>ew.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===WN?i={kind:Ze.SourceOrganizeImports.value}:t.command===VN&&(i={kind:Ze.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Nr.fromUser(i,{kind:Ze.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ze(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}}ew.codeActionCommands=[W3,B3,V3,WN,VN];var Jie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ene=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ip;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(Ip||(Ip={}));let gC=class U3 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new R),this.onClick=this._onClick.event,this._state=Ip.Hidden,this._domNode=document.createElement("div"),this._domNode.className=m.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),ft.ignoreTarget(this._domNode),this._register(IH(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(46),d=s.getLineContent(r),h=S1(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ip.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:U3._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ip.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...m.lightBulb.classNamesArray),this._domNode.classList.add(...m.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...m.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...m.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gC._posPref=[0];gC=Jie([ene(3,_i)],gC);Et((o,e)=>{var t;const i=(t=o.getColor(wi))===null||t===void 0?void 0:t.transparent(.7),n=o.getColor(Uz);n&&e.addRule(` + *-----------------------------------------------------------------------------*/var gie=Object.defineProperty,fie=Object.getOwnPropertyDescriptor,pie=Object.getOwnPropertyNames,mie=Object.prototype.hasOwnProperty,dR=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pie(e))!mie.call(o,n)&&n!==t&&gie(o,n,{get:()=>e[n],enumerable:!(i=fie(e,n))||i.enumerable});return o},_ie=(o,e,t)=>(dR(o,e,"default"),t&&dR(t,e,"default")),bie="4.5.5",Dg={};_ie(Dg,D_);var D3=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(D3||{}),k3=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(k3||{}),x3=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(x3||{}),I3=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(I3||{}),E3=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(E3||{}),N3=class{constructor(o,e,t,i){qt(this,"_onDidChange",new Dg.Emitter);qt(this,"_onDidExtraLibsChange",new Dg.Emitter);qt(this,"_extraLibs");qt(this,"_removedExtraLibs");qt(this,"_eagerModelSync");qt(this,"_compilerOptions");qt(this,"_diagnosticsOptions");qt(this,"_workerOptions");qt(this,"_onDidExtraLibsChangeTimeout");qt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}},vie=bie,T3=new N3({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),A3=new N3({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Cie=()=>Q1().then(o=>o.getTypeScriptWorker()),wie=()=>Q1().then(o=>o.getJavaScriptWorker());Dg.languages.typescript={ModuleKind:D3,JsxEmit:k3,NewLineKind:x3,ScriptTarget:I3,ModuleResolutionKind:E3,typescriptVersion:vie,typescriptDefaults:T3,javascriptDefaults:A3,getTypeScriptWorker:Cie,getJavaScriptWorker:wie};function Q1(){return ue(()=>import("./tsMode.d9a69d11.js"),["assets/tsMode.d9a69d11.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css"])}Dg.languages.onLanguage("typescript",()=>Q1().then(o=>o.setupTypeScript(T3)));Dg.languages.onLanguage("javascript",()=>Q1().then(o=>o.setupJavaScript(A3)));var Sie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},X1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const J1=new le("selectionAnchorSet",!1);let sl=class M3{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=J1.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(M3.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(oe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Fn().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Gi(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Sie([yie(1,Ee)],sl);class Lie extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2080),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Die extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:J1})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class kie extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2089),weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class xie extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:J1,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return X1(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}tt(sl.ID,sl);ie(Lie);ie(Die);ie(kie);ie(xie);const Iie=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Eie extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Yo.get(t))===null||i===void 0||i.jumpToBracket()}}class Nie extends ce{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Yo.get(t))===null||n===void 0||n.selectToBracket(s)}}class Tie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Yo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Yo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(L.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h{const t=o.getColor(b$);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=o.getColor(z4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qs.appendMenuItem(M.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Aie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new L(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,s,i,s),a)}else{const r=new L(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new L(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class R3 extends ce{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new Aie(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Mie extends R3{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:N.writable})}}class Rie extends R3{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:N.writable})}}ie(Mie);ie(Rie);class Oie extends ce{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():lt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=lt.leftPosition(i,d),u=lt.leftPosition(i,h),g=i.getValueInRange(L.fromPositions(u,h)),f=i.getValueInRange(L.fromPositions(h,d)),_=L.fromPositions(u,d);n.push(new zi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Oie);var Pie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Zd="9_cutcopypaste",Fie=jo||document.queryCommandSupported("cut"),O3=jo||document.queryCommandSupported("copy"),Bie=typeof navigator.clipboard>"u"||Ls?document.queryCommandSupported("paste"):!0;function FN(o){return o.register(),o}const Wie=Fie?FN(new Ug({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:jo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Vie=O3?FN(new Ug({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:jo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qs.appendMenuItem(M.MenubarEditMenu,{submenu:M.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:Zd,order:3});qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextShare,title:{value:p("share","Share"),original:"Share"},group:"11_share",order:-1});const sy=Bie?FN(new Ug({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:jo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:M.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:M.EditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:M.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:M.SimpleEditorContext,group:Zd,title:p("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Hie extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(gD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),gD.forceCopyWithSyntaxHighlighting=!1)}}function P3(o,e){!o||(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ct).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}P3(Wie,"cut");P3(Vie,"copy");sy&&(sy.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ct),i=o.get(cl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Sc?(()=>Pie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=im.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),sy.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));O3&&ie(Hie);class Ze{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ze.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ze(this.value+Ze.sep+e)}}Ze.sep=".";Ze.None=new Ze("@@none@@");Ze.Empty=new Ze("");Ze.QuickFix=new Ze("quickfix");Ze.Refactor=new Ze("refactor");Ze.Source=new Ze("source");Ze.SourceOrganizeImports=Ze.Source.append("organizeImports");Ze.SourceFixAll=Ze.Source.append("fixAll");var bn;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(bn||(bn={}));function zie(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>F3(e,t,o.include))||!o.includeSourceActions&&Ze.Source.contains(e))}function Uie(o,e){const t=e.kind?new Ze(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>F3(t,i,o.include))||!o.includeSourceActions&&t&&Ze.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function F3(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Nr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Nr(t.kind,t.apply,!1):new Nr(Nr.getKindFromUser(e,t.kind),Nr.getApplyFromUser(e,t.apply),Nr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ze(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var BN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const B3="editor.action.codeAction",W3="editor.action.refactor",$ie="editor.action.refactor.preview",V3="editor.action.sourceAction",WN="editor.action.organizeImports",VN="editor.action.fixAll";class H3{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return BN(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Pi(n)}i&&(this.action.edit=i.edit)}return this})}}class HN extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(HN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:rn(e.diagnostics)?rn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:rn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ze.QuickFix.contains(new Ze(e.kind))&&!!e.isPreferred)}}const hR={actions:[],documentation:void 0};function zN(o,e,t,i,n,s){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new TN(e,s),d=jie(o,e,a),h=new Q,u=d.map(f=>BN(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return hR;const b=((_==null?void 0:_.actions)||[]).filter(C=>C&&Uie(a,C)),v=Kie(f,b,a.include);return{actions:b.map(C=>new H3(C,f)),documentation:v}}catch(_){if(ea(_))throw _;return Pi(_),hR}})),g=o.onDidChange(()=>{const f=o.all(e);Ss(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(v=>v.actions).flat(),b=i_(f.map(v=>v.documentation));return new HN(_,b,h)}).finally(()=>{g.dispose(),c.dispose()})}function jie(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>zie(t,new Ze(n))):!0)}function Kie(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ze(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const s of i)if(s.kind.contains(new Ze(n.kind)))return s.command}}Xe.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return BN(this,void 0,void 0,function*(){if(!(e instanceof _e))throw Ko();const{codeActionProvider:s}=o.get(de),r=o.get(Ut).getModel(e);if(!r)throw Ko();const a=oe.isISelection(t)?oe.liftSelection(t):L.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ko();const l=typeof i=="string"?new Ze(i):void 0,c=yield zN(s,r,a,{type:1,triggerAction:bn.Default,filter:{includeSourceActions:!0,include:l}},Ch.None,ze.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gie=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let os=class Wk{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new Q,this._editor=e,this._visible=Wk.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(Wk.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Gi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new uR(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new xs(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new L(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(uR.fadeOut(this._messageWidget.value))}};os.ID="editor.contrib.messageController";os.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));os=qie([Gie(1,Ee)],os);const Zie=xi.bindToContribution(os.get);ee(new Zie({id:"leaveEditorMessage",precondition:os.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class uR{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}tt(os.ID,os);var z3=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_a=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Yie=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Jg={Visible:new le("CodeActionMenuVisible",!1,p("CodeActionMenuVisible","Whether the code action list widget is visible"))};class oy extends is{constructor(e,t){super(e.command?e.command.id:e.title,Qie(e.title),void 0,!e.disabled,t),this.action=e}}function Qie(o){return o.replace(/\r\n|\r|\n/g," ")}const Xie="codeActionWidget",ry=26;let Vk=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return Xie}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,s=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=s,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=nt(e.disposables)}};Vk=z3([_a(1,_i)],Vk);let uC=class Hk extends H{constructor(e,t,i,n,s,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=s,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ew({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=Jg.Visible.bindTo(this._contextKeyService),this.listRenderer=new Vk(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,s;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new Q,s=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("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",n.add(G(this.block,ae.MOUSE_DOWN,u=>u.stopPropagation())),s.id="codeActionMenuWidget",s.classList.add("codeActionMenuWidget"),e.appendChild(s),this.codeActionList.value=new rr("codeActionWidget",s,{getHeight(u){return u.isSeparator?10:ry},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof oy&&(_=u.action.kind===Hk.documentationID),f&&(this.hasSeperator=!0);const b={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(b),this.options.push(b)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*ry+10:t.length*ry;s.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const b=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(b))});const c=Math.max(...l);s.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Od(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===ln.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return Yie(this,void 0,void 0,function*(){const s=this._editor.getModel();if(!s)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,QO();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(s)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?bn.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof oy?c(h.action):void 0})})}getMenuActions(e,t,i){var n,s;const r=d=>new oy(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(s=(n=e.filter)===null||n===void 0?void 0:n.include)===null||s===void 0?void 0:s.value},t.map(h=>h.action)));return l.length&&a.push(new ln,...l.map(d=>r(new H3({title:d.title,command:d,kind:Hk.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}};uC.documentationID="_documentation";uC=z3([_a(2,ll),_a(3,_i),_a(4,de),_a(5,sr),_a(6,Ct),_a(7,ot),_a(8,vh),_a(9,Ee)],uC);class ew{constructor(e){this._keybindingProvider=e}getResolver(){const e=new Ju(()=>this._keybindingProvider.getKeybindings().filter(t=>ew.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===WN?i={kind:Ze.SourceOrganizeImports.value}:t.command===VN&&(i={kind:Ze.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Nr.fromUser(i,{kind:Ze.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ze(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}}ew.codeActionCommands=[W3,B3,V3,WN,VN];var Jie=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ene=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ip;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(Ip||(Ip={}));let gC=class U3 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new R),this.onClick=this._onClick.event,this._state=Ip.Hidden,this._domNode=document.createElement("div"),this._domNode.className=m.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),ft.ignoreTarget(this._domNode),this._register(IH(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(46),d=s.getLineContent(r),h=S1(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Ip.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:U3._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ip.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...m.lightBulb.classNamesArray),this._domNode.classList.add(...m.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...m.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...m.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};gC._posPref=[0];gC=Jie([ene(3,_i)],gC);Et((o,e)=>{var t;const i=(t=o.getColor(wi))===null||t===void 0?void 0:t.transparent(.7),n=o.getColor(Uz);n&&e.addRule(` .monaco-editor .contentWidgets ${m.lightBulb.cssSelector} { color: ${n}; background-color: ${i}; @@ -636,11 +636,11 @@ ${e.toString()}`}}class xN{constructor(e=new k1,t=!1,i){this._activeInstantiatio .monaco-editor .contentWidgets ${m.lightbulbAutofix.cssSelector} { color: ${s}; background-color: ${i}; - }`)});var tne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ine=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ay=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},nne=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},sne=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},E0;let zk=class extends H{constructor(e,t,i,n,s){super(),this._editor=e,this.delegate=n,this._activeCodeActions=this._register(new _n),this.previewOn=!1,E0.set(this,!1),this._codeActionWidget=new Ju(()=>this._register(s.createInstance(uC,this._editor,{onSelectCodeAction:(r,a)=>ay(this,void 0,void 0,function*(){this.previewOn?this.delegate.applyCodeAction(r,!0,Boolean(this.previewOn)):this.delegate.applyCodeAction(r,!0,Boolean(a.preview)),this.previewOn=!1})}))),this._lightBulbWidget=new Ju(()=>{const r=this._register(s.createInstance(gC,this._editor,t,i));return this._register(r.onClick(a=>this.showCodeActionList(a.trigger,a.actions,a,{includeDisabledActions:!1,fromLightbulb:!0}))),r})}dispose(){nne(this,E0,!0,"f"),super.dispose()}hideCodeActionWidget(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().hideCodeActionWidget()}onEnter(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().onEnterSet()}onPreviewEnter(){this.previewOn=!0,this.onEnter()}navigateList(e){this._codeActionWidget.hasValue()&&(e?this._codeActionWidget.getValue().navigateListWithKeysUp():this._codeActionWidget.getValue().navigateListWithKeysDown())}update(e){var t,i,n,s,r;return ay(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Te(l);return}if(!sne(this,E0,"f"))if(this._lightBulbWidget.getValue().update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=os.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=os.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this._codeActionWidget.getValue().show(e.trigger,a,e.position,{includeDisabledActions:l,fromLightbulb:!1})}else this._codeActionWidget.getValue().isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(!!t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(!!t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i,n){return ay(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(e,t,i,n)})}};E0=new WeakMap;zk=tne([ine(4,Ae)],zk);var ly=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},one=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},nu;const $3=new le("supportedCodeAction","");class rne extends H{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new xs),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();!t||e.some(i=>_F(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(!!t)for(const i of this._markerService.read({resource:t.uri})){const n=t.validateRange(i);if(L.intersectRanges(n,e))return L.lift(n)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n=this._getRangeOfMarker(t),s=n?n.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:s};return this._signalChange(r),r}}var id;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(ea(a))return ane;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(id||(id={}));const ane={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class lne extends H{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new _n),this._state=id.Empty,this._onDidChangeState=this._register(new R),this.onDidChangeState=this._onDidChangeState.event,nu.set(this,!1),this._supportedCodeActions=$3.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){ly(this,nu,"f")||(one(this,nu,!0,"f"),super.dispose(),this.setState(id.Empty,!0))}_update(){if(ly(this,nu,"f"))return;this._codeActionOracle.value=void 0,this.setState(id.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(83)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new rne(this._editor,this._markerService,i=>{var n;if(!i){this.setState(id.Empty);return}const s=Ri(r=>zN(this._registry,e,i.selection,i.trigger,Ch.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new id.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:bn.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!ly(this,nu,"f")&&this._onDidChangeState.fire(e))}}nu=new WeakMap;var cne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},j3=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function x_(o){return se.regex($3.keys()[0],new RegExp("(\\s|^)"+ys(o.value)+"\\b"))}function K3(o,e,t,i){const n=Nr.fromUser(e,{kind:Ze.Refactor,apply:"never"});return Lh(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?p("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):p("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?p("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):p("editor.action.refactor.noneMessage","No refactorings available"),{include:Ze.Refactor.contains(n.kind)?n.kind:Ze.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const tw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:p("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:p("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[p("args.schema.apply.first","Always apply the first returned code action."),p("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),p("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:p("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let fc=class q3 extends H{constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new lne(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new Ju(()=>this._register(new zk(e,ef.Id,I_.Id,{applyCodeAction:(a,l,c)=>j3(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:bn.QuickFix,filter:{}})}})},this._instantiationService)))}static get(e){return e.getContribution(q3.ID)}update(e){this._ui.getValue().update(e)}hideCodeActionMenu(){this._ui.hasValue()&&this._ui.getValue().hideCodeActionWidget()}navigateCodeActionList(e){this._ui.hasValue()&&this._ui.getValue().navigateList(e)}selectedOption(){this._ui.hasValue()&&this._ui.getValue().onEnter()}selectedOptionWithPreview(){this._ui.hasValue()&&this._ui.getValue().onPreviewEnter()}showCodeActions(e,t,i){return this._ui.getValue().showCodeActionList(e,t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=os.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(dne,e,Uk.FromCodeActions,{preview:t,editor:this._editor})}};fc.ID="editor.contrib.quickFixController";fc=cne([Tf(1,na),Tf(2,Ee),Tf(3,kc),Tf(4,Ae),Tf(5,de)],fc);var Uk;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(Uk||(Uk={}));function dne(o,e,t,i){return j3(this,void 0,void 0,function*(){const n=o.get(v_),s=o.get(ci),r=o.get(sr),a=o.get(di);if(r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(ze.None),e.action.edit&&(yield n.apply(Qg.convert(e.action.edit),{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:!0,showPreview:i==null?void 0:i.preview})),e.action.command)try{yield s.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(l){const c=hne(l);a.error(typeof c=="string"?c:p("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function hne(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}function Lh(o,e,t,i,n=!1,s=bn.Default){if(o.hasModel()){const r=fc.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class ef extends ce{constructor(){super({id:ef.Id,label:p("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return Lh(t,p("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,bn.QuickFix)}}ef.Id="editor.action.quickFix";class une extends xi{constructor(){super({id:B3,precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:tw}]}})}runEditorCommand(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Empty,apply:"ifSingle"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):p("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?p("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):p("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class gne extends ce{constructor(){super({id:W3,label:p("refactor.label","Refactor..."),alias:"Refactor...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:se.and(N.writable,x_(Ze.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!1,bn.Refactor)}}class fne extends ce{constructor(){super({id:$ie,label:p("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!0,bn.RefactorPreview)}}class pne extends ce{constructor(){super({id:V3,label:p("source.label","Source Action..."),alias:"Source Action...",precondition:se.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:se.and(N.writable,x_(Ze.Source))},description:{description:"Source Action...",args:[{name:"args",schema:tw}]}})}run(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Source,apply:"never"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):p("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?p("editor.action.source.noneMessage.preferred","No preferred source actions available"):p("editor.action.source.noneMessage","No source actions available"),{include:Ze.Source.contains(n.kind)?n.kind:Ze.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,bn.SourceAction)}}class mne extends ce{constructor(){super({id:WN,label:p("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:se.and(N.writable,x_(Ze.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return Lh(t,p("editor.action.organize.noneMessage","No organize imports action available"),{include:Ze.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,bn.OrganizeImports)}}class _ne extends ce{constructor(){super({id:VN,label:p("fixAll.label","Fix All"),alias:"Fix All",precondition:se.and(N.writable,x_(Ze.SourceFixAll))})}run(e,t){return Lh(t,p("fixAll.noneMessage","No fix all action available"),{include:Ze.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,bn.FixAll)}}class I_ extends ce{constructor(){super({id:I_.Id,label:p("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:se.and(N.writable,x_(Ze.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return Lh(t,p("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ze.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,bn.AutoFix)}}I_.Id="editor.action.autoFix";const E_=xi.bindToContribution(fc.get),N_=100+90;ee(new E_({id:"hideCodeActionMenuWidget",precondition:Jg.Visible,handler(o){o.hideCodeActionMenu()},kbOpts:{weight:N_,primary:9,secondary:[1033]}}));ee(new E_({id:"focusPreviousCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!0)},kbOpts:{weight:N_+1e5,primary:16,secondary:[2064]}}));ee(new E_({id:"focusNextCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!1)},kbOpts:{weight:N_+1e5,primary:18,secondary:[2066]}}));ee(new E_({id:"onEnterSelectCodeAction",precondition:Jg.Visible,handler(o){o.selectedOption()},kbOpts:{weight:N_+1e5,primary:3,secondary:[1026]}}));ee(new E_({id:"onEnterSelectCodeActionWithPreview",precondition:Jg.Visible,handler(o){o.selectedOptionWithPreview()},kbOpts:{weight:N_+1e5,primary:2051}}));zt.as(rl.Configuration).registerConfiguration(Object.assign(Object.assign({},GE),{properties:{"editor.experimental.useCustomCodeActionMenu":{type:"boolean",tags:["experimental"],scope:5,description:p("codeActionWidget","Enabling this adjusts how the code action menu is rendered."),default:!1}}}));tt(fc.ID,fc);ie(ef);ie(gne);ie(fne);ie(pne);ie(mne);ie(I_);ie(_ne);ee(new une);var gR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class $k{constructor(){this.lenses=[],this._disposables=new Q}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function G3(o,e,t){return gR(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new $k,r=i.map((a,l)=>gR(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Pi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}Xe.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;pt(_e.isUri(t)),pt(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(de),s=o.get(Ut).getModel(t);if(!s)throw Ko();const r=[],a=new Q;return G3(n,s,ze.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||Boolean(d.symbol.command)?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,ze.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var bne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vne=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Z3=Ye("ICodeLensCache");class fR{constructor(e,t){this.lineCount=e,this.data=t}}let jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Dc(20,.75);const t="codelens/cache";Up(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),Xa(e.onWillSaveState)(s=>{s.reason===lC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new $k;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new fR(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new L(a,1,a,11)});const r=new $k;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new fR(n.lineCount,r))}}catch{}}};jk=bne([vne(0,Do)],jk);et(Z3,jk);class Cne{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class iw{constructor(e,t,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${iw._idPool++}`,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&c.push(d.symbol),n.addDecoration({range:d.symbol.range,options:Ne.EMPTY},u=>this._decorationIds[h]=u),l?l=L.plusRange(l,d.symbol.range):l=L.lift(d.symbol.range)}),this._viewZone=new Cne(l.startLineNumber-1,r,a),this._viewZoneId=s.addZone(this._viewZone),c.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(c,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new iw(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&L.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:Ne.EMPTY},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Af=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Sne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kg=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Q,this._localToDispose=new Q,this._lenses=[],this._oldCodeLensModels=new Q,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new mt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(46)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+OI(this._editor.getId()).toString(16),this._styleElement=Qs(Gp(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(61)/this._editor.getOption(48));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(48)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(46),s=`--codelens-font-family${this._styleClassName}`,r=`--codelens-font-features${this._styleClassName}`;let a=` + }`)});var tne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ine=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ay=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},nne=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},sne=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},E0;let zk=class extends H{constructor(e,t,i,n,s){super(),this._editor=e,this.delegate=n,this._activeCodeActions=this._register(new _n),this.previewOn=!1,E0.set(this,!1),this._codeActionWidget=new Ju(()=>this._register(s.createInstance(uC,this._editor,{onSelectCodeAction:(r,a)=>ay(this,void 0,void 0,function*(){this.previewOn?this.delegate.applyCodeAction(r,!0,Boolean(this.previewOn)):this.delegate.applyCodeAction(r,!0,Boolean(a.preview)),this.previewOn=!1})}))),this._lightBulbWidget=new Ju(()=>{const r=this._register(s.createInstance(gC,this._editor,t,i));return this._register(r.onClick(a=>this.showCodeActionList(a.trigger,a.actions,a,{includeDisabledActions:!1,fromLightbulb:!0}))),r})}dispose(){nne(this,E0,!0,"f"),super.dispose()}hideCodeActionWidget(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().hideCodeActionWidget()}onEnter(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().onEnterSet()}onPreviewEnter(){this.previewOn=!0,this.onEnter()}navigateList(e){this._codeActionWidget.hasValue()&&(e?this._codeActionWidget.getValue().navigateListWithKeysUp():this._codeActionWidget.getValue().navigateListWithKeysDown())}update(e){var t,i,n,s,r;return ay(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Te(l);return}if(!sne(this,E0,"f"))if(this._lightBulbWidget.getValue().update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=os.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=os.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this._codeActionWidget.getValue().show(e.trigger,a,e.position,{includeDisabledActions:l,fromLightbulb:!1})}else this._codeActionWidget.getValue().isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(!!t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(!!t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i,n){return ay(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(e,t,i,n)})}};E0=new WeakMap;zk=tne([ine(4,Ae)],zk);var ly=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},one=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},nu;const $3=new le("supportedCodeAction","");class rne extends H{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new xs),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();!t||e.some(i=>_5(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:bn.Default})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(!!t)for(const i of this._markerService.read({resource:t.uri})){const n=t.validateRange(i);if(L.intersectRanges(n,e))return L.lift(n)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n=this._getRangeOfMarker(t),s=n?n.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:s};return this._signalChange(r),r}}var id;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(ea(a))return ane;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(id||(id={}));const ane={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class lne extends H{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new _n),this._state=id.Empty,this._onDidChangeState=this._register(new R),this.onDidChangeState=this._onDidChangeState.event,nu.set(this,!1),this._supportedCodeActions=$3.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){ly(this,nu,"f")||(one(this,nu,!0,"f"),super.dispose(),this.setState(id.Empty,!0))}_update(){if(ly(this,nu,"f"))return;this._codeActionOracle.value=void 0,this.setState(id.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(83)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new rne(this._editor,this._markerService,i=>{var n;if(!i){this.setState(id.Empty);return}const s=Ri(r=>zN(this._registry,e,i.selection,i.trigger,Ch.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new id.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:bn.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!ly(this,nu,"f")&&this._onDidChangeState.fire(e))}}nu=new WeakMap;var cne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},j3=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function x_(o){return se.regex($3.keys()[0],new RegExp("(\\s|^)"+ys(o.value)+"\\b"))}function K3(o,e,t,i){const n=Nr.fromUser(e,{kind:Ze.Refactor,apply:"never"});return Lh(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?p("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):p("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?p("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):p("editor.action.refactor.noneMessage","No refactorings available"),{include:Ze.Refactor.contains(n.kind)?n.kind:Ze.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const tw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:p("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:p("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[p("args.schema.apply.first","Always apply the first returned code action."),p("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),p("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:p("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let fc=class q3 extends H{constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new lne(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new Ju(()=>this._register(new zk(e,ef.Id,I_.Id,{applyCodeAction:(a,l,c)=>j3(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:bn.QuickFix,filter:{}})}})},this._instantiationService)))}static get(e){return e.getContribution(q3.ID)}update(e){this._ui.getValue().update(e)}hideCodeActionMenu(){this._ui.hasValue()&&this._ui.getValue().hideCodeActionWidget()}navigateCodeActionList(e){this._ui.hasValue()&&this._ui.getValue().navigateList(e)}selectedOption(){this._ui.hasValue()&&this._ui.getValue().onEnter()}selectedOptionWithPreview(){this._ui.hasValue()&&this._ui.getValue().onPreviewEnter()}showCodeActions(e,t,i){return this._ui.getValue().showCodeActionList(e,t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=os.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(dne,e,Uk.FromCodeActions,{preview:t,editor:this._editor})}};fc.ID="editor.contrib.quickFixController";fc=cne([Tf(1,na),Tf(2,Ee),Tf(3,kc),Tf(4,Ae),Tf(5,de)],fc);var Uk;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(Uk||(Uk={}));function dne(o,e,t,i){return j3(this,void 0,void 0,function*(){const n=o.get(v_),s=o.get(ci),r=o.get(sr),a=o.get(di);if(r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(ze.None),e.action.edit&&(yield n.apply(Qg.convert(e.action.edit),{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:!0,showPreview:i==null?void 0:i.preview})),e.action.command)try{yield s.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(l){const c=hne(l);a.error(typeof c=="string"?c:p("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function hne(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}function Lh(o,e,t,i,n=!1,s=bn.Default){if(o.hasModel()){const r=fc.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class ef extends ce{constructor(){super({id:ef.Id,label:p("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return Lh(t,p("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,bn.QuickFix)}}ef.Id="editor.action.quickFix";class une extends xi{constructor(){super({id:B3,precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:tw}]}})}runEditorCommand(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Empty,apply:"ifSingle"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):p("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?p("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):p("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class gne extends ce{constructor(){super({id:W3,label:p("refactor.label","Refactor..."),alias:"Refactor...",precondition:se.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:se.and(N.writable,x_(Ze.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!1,bn.Refactor)}}class fne extends ce{constructor(){super({id:$ie,label:p("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:se.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:tw}]}})}run(e,t,i){return K3(t,i,!0,bn.RefactorPreview)}}class pne extends ce{constructor(){super({id:V3,label:p("source.label","Source Action..."),alias:"Source Action...",precondition:se.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:se.and(N.writable,x_(Ze.Source))},description:{description:"Source Action...",args:[{name:"args",schema:tw}]}})}run(e,t,i){const n=Nr.fromUser(i,{kind:Ze.Source,apply:"never"});return Lh(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?p("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):p("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?p("editor.action.source.noneMessage.preferred","No preferred source actions available"):p("editor.action.source.noneMessage","No source actions available"),{include:Ze.Source.contains(n.kind)?n.kind:Ze.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,bn.SourceAction)}}class mne extends ce{constructor(){super({id:WN,label:p("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:se.and(N.writable,x_(Ze.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return Lh(t,p("editor.action.organize.noneMessage","No organize imports action available"),{include:Ze.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,bn.OrganizeImports)}}class _ne extends ce{constructor(){super({id:VN,label:p("fixAll.label","Fix All"),alias:"Fix All",precondition:se.and(N.writable,x_(Ze.SourceFixAll))})}run(e,t){return Lh(t,p("fixAll.noneMessage","No fix all action available"),{include:Ze.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,bn.FixAll)}}class I_ extends ce{constructor(){super({id:I_.Id,label:p("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:se.and(N.writable,x_(Ze.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return Lh(t,p("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ze.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,bn.AutoFix)}}I_.Id="editor.action.autoFix";const E_=xi.bindToContribution(fc.get),N_=100+90;ee(new E_({id:"hideCodeActionMenuWidget",precondition:Jg.Visible,handler(o){o.hideCodeActionMenu()},kbOpts:{weight:N_,primary:9,secondary:[1033]}}));ee(new E_({id:"focusPreviousCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!0)},kbOpts:{weight:N_+1e5,primary:16,secondary:[2064]}}));ee(new E_({id:"focusNextCodeAction",precondition:Jg.Visible,handler(o){o.navigateCodeActionList(!1)},kbOpts:{weight:N_+1e5,primary:18,secondary:[2066]}}));ee(new E_({id:"onEnterSelectCodeAction",precondition:Jg.Visible,handler(o){o.selectedOption()},kbOpts:{weight:N_+1e5,primary:3,secondary:[1026]}}));ee(new E_({id:"onEnterSelectCodeActionWithPreview",precondition:Jg.Visible,handler(o){o.selectedOptionWithPreview()},kbOpts:{weight:N_+1e5,primary:2051}}));zt.as(rl.Configuration).registerConfiguration(Object.assign(Object.assign({},GE),{properties:{"editor.experimental.useCustomCodeActionMenu":{type:"boolean",tags:["experimental"],scope:5,description:p("codeActionWidget","Enabling this adjusts how the code action menu is rendered."),default:!1}}}));tt(fc.ID,fc);ie(ef);ie(gne);ie(fne);ie(pne);ie(mne);ie(I_);ie(_ne);ee(new une);var gR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class $k{constructor(){this.lenses=[],this._disposables=new Q}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function G3(o,e,t){return gR(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new $k,r=i.map((a,l)=>gR(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Pi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}Xe.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;pt(_e.isUri(t)),pt(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(de),s=o.get(Ut).getModel(t);if(!s)throw Ko();const r=[],a=new Q;return G3(n,s,ze.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||Boolean(d.symbol.command)?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,ze.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var bne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vne=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Z3=Ye("ICodeLensCache");class fR{constructor(e,t){this.lineCount=e,this.data=t}}let jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Dc(20,.75);const t="codelens/cache";Up(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),Xa(e.onWillSaveState)(s=>{s.reason===lC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new $k;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new fR(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new L(a,1,a,11)});const r=new $k;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new fR(n.lineCount,r))}}catch{}}};jk=bne([vne(0,Do)],jk);et(Z3,jk);class Cne{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class iw{constructor(e,t,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${iw._idPool++}`,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&c.push(d.symbol),n.addDecoration({range:d.symbol.range,options:Ne.EMPTY},u=>this._decorationIds[h]=u),l?l=L.plusRange(l,d.symbol.range):l=L.lift(d.symbol.range)}),this._viewZone=new Cne(l.startLineNumber-1,r,a),this._viewZoneId=s.addZone(this._viewZone),c.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(c,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new iw(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&L.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:Ne.EMPTY},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Af=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Sne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let kg=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Q,this._localToDispose=new Q,this._lenses=[],this._oldCodeLensModels=new Q,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new mt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(46)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+OI(this._editor.getId()).toString(16),this._styleElement=Qs(Gp(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(61)/this._editor.getOption(48));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(48)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(46),s=`--codelens-font-family${this._styleClassName}`,r=`--codelens-font-features${this._styleClassName}`;let a=` .monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${e}px; font-size: ${t}px; padding-right: ${Math.round(t*.5)}px; font-feature-settings: var(${r}) } .monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${e}px; font-size: ${t}px; } `;i&&(a+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${s}), ${ts.fontFamily}}`),this._styleElement.textContent=a,this._editor.getContainerDomNode().style.setProperty(s,i!=null?i:"inherit"),this._editor.getContainerDomNode().style.setProperty(r,n.fontFeatureSettings),this._editor.changeViewZones(l=>{for(const c of this._lenses)c.updateHeight(e,l)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(Ad(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new mt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Ri(r=>G3(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Te)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Be(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new cy;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Be(()=>{if(this._editor.getModel()){const n=hc.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new cy;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}const s=hc.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new cy;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Ri(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,f)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(_=>{h[f]=_},Pi):(h[f]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Te(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};kg.ID="css.editor.codeLens";kg=wne([Af(1,de),Af(2,no),Af(3,ci),Af(4,di),Af(5,Z3)],kg);tt(kg.ID,kg);ie(class extends ce{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:p("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Sne(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(dl),n=e.get(ci),s=e.get(di),r=t.getSelection().positionLineNumber,a=t.getContribution(kg.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(!!d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function yne(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function mR(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}Xe.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof _e))throw Ko();const{colorProvider:i}=o.get(de),n=o.get(Ut).getModel(t);if(!n)throw Ko();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,ze.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});Xe.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof _e)||!Array.isArray(t)||t.length!==4||!L.isIRange(s))throw Ko();const[r,a,l,c]=t,{colorProvider:d}=o.get(de),h=o.get(Ut).getModel(n);if(!h)throw Ko();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],_=d.ordered(h).reverse().map(b=>Promise.resolve(b.provideColorPresentations(h,u,ze.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(_).then(()=>g)});var Lne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Dne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Y3=Object.create({}),kne=500;let Yd=class Q3 extends H{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Q),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d_(this._editor),this._colorDecorationClassRefs=this._register(new Q),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:Q3.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(()=>{const s=this._isEnabled;this._isEnabled=this.isEnabled(),s!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new xs,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Ri(e=>Dne(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new $n(!1),n=yield yne(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Te)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Ne.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Yd.ID="editor.contrib.colorDetector";Yd.RECOMPUTE_TIME=1e3;Yd=Lne([dy(1,ot),dy(2,de),dy(3,no)],Yd);tt(Yd.ID,Yd);class xne{constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new R,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new R,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new R,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let i=0;i{this.backgroundColor=r.getColor(Bd)||W.white})),this._register(G(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(G(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=W.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=W.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(Uo(".codicon.codicon-color-mode"))}}class Ene extends H{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=Uo(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nne(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Tne(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Ane(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new W(new Rr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new W(new Rr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new W(new Rr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nne extends H{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new R,this.onColorFlushed=this._onColorFlushed.event,this.domNode=Uo(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=Uo(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(G(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new jg);const t=on(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=G(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new W(new Rr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=W.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class X3 extends H{constructor(e,t){super(),this.model=t,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new R,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,Uo(".strip")),this.overlay=q(this.domNode,Uo(".overlay")),this.slider=q(this.domNode,Uo(".slider")),this.slider.style.top="0px",this._register(G(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new jg),i=on(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=G(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Tne extends X3{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new W(new qe(t,i,n,1)),r=new W(new qe(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Ane extends X3{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Mne extends yo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(tg.onDidChange(()=>this.layout()));const s=Uo(".colorpicker-widget");e.appendChild(s);const r=new Ine(s,this.model,n);this.body=new Ene(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Rne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},One=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},_R=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Pne{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Kk=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return ri.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return _R(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Yd.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return _R(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new qe(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new W(c),h=yield mR(e,t,i,ze.None),u=new xne(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Pne(this,L.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return H.None;const i=new Q,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Mne(e.fragment,r,this._editor.getOption(131),this._themeService));e.setColorPicker(a);let l=new L(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new L(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>mR(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,ze.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};Kk=Rne([One(1,Ct)],Kk);function qk(o,e){return!!o[e]}class hy{constructor(e,t){this.target=e.target,this.hasTriggerModifier=qk(e.event,t.triggerModifier),this.hasSideBySideModifier=qk(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class bR{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=qk(e,t.triggerModifier)}}class Vb{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function vR(o){return o==="altKey"?Ge?new Vb(57,"metaKey",6,"altKey"):new Vb(5,"ctrlKey",6,"altKey"):Ge?new Vb(6,"altKey",57,"metaKey"):new Vb(6,"altKey",5,"ctrlKey")}class UN extends H{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new R),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new R),this.onExecute=this._onExecute.event,this._onCancel=this._register(new R),this.onCancel=this._onCancel.event,this._editor=e,this._opts=vR(this._editor.getOption(72)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(t=>{if(t.hasChanged(72)){const i=vR(this._editor.getOption(72));if(this._opts.equals(i))return;this._opts=i,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(t=>this._onEditorMouseMove(new hy(t,this._opts)))),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(new hy(t,this._opts)))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(new hy(t,this._opts)))),this._register(this._editor.onKeyDown(t=>this._onEditorKeyDown(new bR(t,this._opts)))),this._register(this._editor.onKeyUp(t=>this._onEditorKeyUp(new bR(t,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(t=>this._onDidChangeCursorSelection(t))),this._register(this._editor.onDidChangeModel(t=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(t=>{(t.scrollTopChanged||t.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Fne=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},fa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Qd=class extends pg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){Jr(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Qd=Fne([fa(3,Ae),fa(4,ct),fa(5,ci),fa(6,Ee),fa(7,Ct),fa(8,di),fa(9,al),fa(10,si),fa(11,de)],Qd);const CR=new W(new qe(0,122,204)),Bne={showArrow:!0,showFrame:!0,className:"",frameColor:CR,arrowColor:CR,keepEditorSelection:!1},Wne="vs.editor.contrib.zoneWidget";class Vne{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Hne{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class nw{constructor(e){this._editor=e,this._ruleName=nw._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),D2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){D2(this._ruleName),nD(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:L.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}nw._IdGenerator=new nN(".arrow-decoration-");class zne{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Q,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=La(t),Jr(this.options,Bne,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new nw(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash&&this._resizeSash.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(!!e)return e.getStartPosition()}show(e,t){const i=L.isIRange(e)?L.lift(e):L.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Ne.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(61);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(61),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Vne(r,i.lineNumber,i.column,t,f=>this._onViewZoneTop(f),f=>this._onViewZoneHeight(f)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new Hne(Wne+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=e.endLineNumber+1;g<=u.getLineCount()?this.revealLine(g,!1):this.revealLine(u.getLineCount(),!0)}}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}setCssClass(e,t){!this.container||(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new tn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(61),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}class Une extends og{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new R),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=q(e,J(".monaco-dropdown")),this._label=q(this._element,J(".dropdown-label"));let i=t.labelRenderer;i||(i=s=>(s.textContent=t.label||"",null));for(const s of[ae.CLICK,ae.MOUSE_DOWN,xt.Tap])this._register(G(this.element,s,r=>ut.stop(r,!0)));for(const s of[ae.MOUSE_DOWN,xt.Tap])this._register(G(this._label,s,r=>{r instanceof MouseEvent&&(r.detail>1||r.button!==0)||(this.visible?this.hide():this.show())}));this._register(G(this._label,ae.KEY_UP,s=>{const r=new Rt(s);(r.equals(3)||r.equals(10))&&(ut.stop(s,!0),this.visible?this.hide():this.show())}));const n=i(this._label);n&&this._register(n),this._register(ft.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 $ne extends Une{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class J3 extends Dr{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new R),this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=s=>{this.element=q(s,J("a.action-label"));let r=[];return typeof this.options.classNames=="string"?r=this.options.classNames.split(/\s+/g).filter(a=>!!a):this.options.classNames&&(r=this.options.classNames),r.find(a=>a==="icon")||r.push("codicon"),this.element.classList.add(...r),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",this.element.ariaLabel=this._action.label||"",null},i=Array.isArray(this.menuActionsOrProvider),n={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:i?this.menuActionsOrProvider:void 0,actionProvider:i?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new $ne(e,n)),this._register(this.dropdownMenu.onDidChangeVisibility(s=>{var r;(r=this.element)===null||r===void 0||r.setAttribute("aria-expanded",`${s}`),this._onDidChangeVisibility.fire(s)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const s=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return s.options.anchorAlignmentProvider()}})}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.getAction().tooltip?e=this.getAction().tooltip:this.getAction().label&&(e=this.getAction().label),e!=null?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}updateEnabled(){var e,t;const i=!this.getAction().enabled;(e=this.actionItem)===null||e===void 0||e.classList.toggle("disabled",i),(t=this.element)===null||t===void 0||t.classList.toggle("disabled",i)}}var $N=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rs=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},e7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function jne(o,e,t,i,n,s,r){const a=o.getActions(e);return qne(a,t,!1,typeof i=="string"?c=>c===i:i,n,s,r),Kne(a)}function Kne(o){const e=new Q;for(const[,t]of o)for(const i of t)e.add(i);return e}function qne(o,e,t,i=a=>a==="navigation",n=Number.MAX_SAFE_INTEGER,s=()=>!1,r=!1){let a,l;Array.isArray(e)?(a=e,l=e):(a=e.primary,l=e.secondary);const c=new Set;for(const[d,h]of o){let u;i(d)?(u=a,u.length>0&&r&&u.push(new ln)):(u=l,u.length>0&&u.push(new ln));for(let g of h){t&&(g=g instanceof ac&&g.alt?g.alt:g);const f=u.push(g);g instanceof Qp&&c.add({group:d,action:g,index:f-1})}}for(const{group:d,action:h,index:u}of c){const g=i(d)?a:l,f=h.actions;(f.length<=1||g.length+f.length-2<=n)&&s(h,d,g.length)&&g.splice(u,1,...f)}if(a!==l&&a.length>n){const d=a.splice(n,a.length-n);l.unshift(...d,new ln)}}let xg=class extends fm{constructor(e,t,i,n,s,r,a){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:t==null?void 0:t.draggable,keybinding:t==null?void 0:t.keybinding,hoverDelegate:t==null?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new _n),this._altKey=Ol.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return e7(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(Yi||dn)&&this._altKey.keyStatus.shiftKey;const n=()=>{var s;const r=t&&i&&!!(!((s=this._commandAction.alt)===null||s===void 0)&&s.enabled);r!==this._wantsAltCommand&&(this._wantsAltCommand=r,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(s=>{i=s.altKey||(Yi||dn)&&s.shiftKey,n()})),this._register(G(e,"mouseleave",s=>{t=!1,n()})),this._register(G(e,"mouseenter",s=>{t=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let s=i?p("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&((e=this._menuItemAction.alt)===null||e===void 0?void 0:e.enabled)){const r=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,a=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),l=a&&a.getLabel(),c=l?p("titleAndKb","{0} ({1})",r,l):r;s=p("titleAndKbAndAlt",`{0} -[{1}] {2}`,s,ZE.modifierLabels[Os].altKey,c)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;const{element:i,label:n}=this;if(!i||!n)return;const s=this._commandAction.checked&&((t=e.toggled)===null||t===void 0?void 0:t.icon)?e.toggled.icon:e.icon;if(!!s)if(at.isThemeIcon(s)){const r=at.asClassNameArray(s);n.classList.add(...r),this._itemClassDispose.value=Be(()=>{n.classList.remove(...r)})}else n.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(s.dark):Pd(s.light),n.classList.add("icon"),this._itemClassDispose.value=qo(Be(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};xg=$N([Rs(2,_i),Rs(3,di),Rs(4,Ee),Rs(5,Ct),Rs(6,ll)],xg);let Gk=class extends J3{constructor(e,t,i,n){var s,r;const a=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(s=t==null?void 0:t.menuAsChild)!==null&&s!==void 0?s:!1,classNames:(r=t==null?void 0:t.classNames)!==null&&r!==void 0?r:at.isThemeIcon(e.item.icon)?at.asClassName(e.item.icon):void 0});super(e,{getActions:()=>e.actions},i,a),this._contextMenuService=i,this._themeService=n}render(e){super.render(e),pt(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!at.isThemeIcon(i)){this.element.classList.add("icon");const n=()=>{this.element&&(this.element.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(i.dark):Pd(i.light))};n(),this._register(this._themeService.onDidColorThemeChange(()=>{n()}))}}};Gk=$N([Rs(2,ll),Rs(3,Ct)],Gk);let Zk=class extends Dr{constructor(e,t,i,n,s,r,a,l){var c,d,h;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=r,this._instaService=a,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let u;const g=l.get(this._storageKey,1);g&&(u=e.actions.find(_=>g===_.id)),u||(u=e.actions[0]),this._defaultAction=this._instaService.createInstance(xg,u,{keybinding:this._getDefaultActionKeybindingLabel(u)});const f=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(c=t==null?void 0:t.menuAsChild)!==null&&c!==void 0?c:!0,classNames:(d=t==null?void 0:t.classNames)!==null&&d!==void 0?d:["codicon","codicon-chevron-down"],actionRunner:(h=t==null?void 0:t.actionRunner)!==null&&h!==void 0?h:new og});this._dropdown=new J3(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(_=>{_.action instanceof ac&&this.update(_.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(xg,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends og{runAction(t,i){return e7(this,void 0,void 0,function*(){yield t.run(void 0)})}},this._container&&this._defaultAction.render(FH(this._container,J(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(!((t=this._options)===null||t===void 0)&&t.renderKeybindingWithDefaultActionLabel){const n=this._keybindingService.lookupKeybinding(e.id);n&&(i=`(${n.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=J(".action-container");this._defaultAction.render(q(this._container,t)),this._register(G(t,ae.KEY_DOWN,n=>{const s=new Rt(n);s.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),s.stopPropagation())}));const i=J(".dropdown-action-container");this._dropdown.render(q(this._container,i)),this._register(G(i,ae.KEY_DOWN,n=>{var s;const r=new Rt(n);r.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(s=this._defaultAction.element)===null||s===void 0||s.focus(),r.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};Zk=$N([Rs(2,_i),Rs(3,di),Rs(4,ll),Rs(5,ph),Rs(6,Ae),Rs(7,Do)],Zk);function Gne(o,e,t){return e instanceof ac?o.createInstance(xg,e,t):e instanceof GI?e.item.rememberDefaultAction?o.createInstance(Zk,e,t):o.createInstance(Gk,e,t):void 0}var t7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},i7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const n7=Ye("IPeekViewService");et(n7,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}});var jn;(function(o){o.inPeekEditor=new le("inReferenceSearchEditor",!0,p("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(jn||(jn={}));let Am=class{constructor(e,t){e instanceof Qd&&jn.inPeekEditor.bindTo(t)}dispose(){}};Am.ID="editor.contrib.referenceController";Am=t7([i7(1,Ee)],Am);tt(Am.ID,Am);function Zne(o){const e=o.get(ct).getFocusedCodeEditor();return e instanceof Qd?e.getParentEditor():e}const Yne={headerBackgroundColor:W.white,primaryHeadingColor:W.fromHex("#333333"),secondaryHeadingColor:W.fromHex("#6c6c6cb3")};let fC=class extends zne{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new R,this.onDidClose=this._onDidClose.event,Jr(this.options,Yne,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=J(".head"),this._bodyElement=J(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=J(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),ki(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=J("span.filename"),this._secondaryHeading=J("span.dirname"),this._metaHeading=J("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=J(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new Zr(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new is("peekview.close",p("label.close","Close"),m.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Gne.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:Si(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,bs(this._metaHeading)):Pn(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(61)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};fC=t7([i7(2,Ae)],fC);const Qne=T("peekViewTitle.background",{dark:fe(zn,.1),light:fe(zn,.1),hcDark:null,hcLight:null},p("peekViewTitleBackground","Background color of the peek view title area.")),s7=T("peekViewTitleLabel.foreground",{dark:W.white,light:W.black,hcDark:W.white,hcLight:Cs},p("peekViewTitleForeground","Color of the peek view title.")),o7=T("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},p("peekViewTitleInfoForeground","Color of the peek view title info.")),Xne=T("peekView.border",{dark:zn,light:zn,hcDark:We,hcLight:We},p("peekViewBorder","Color of the peek view borders and arrow.")),Jne=T("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:W.black,hcLight:W.white},p("peekViewResultsBackground","Background color of the peek view result list."));T("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:W.white,hcLight:Cs},p("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));T("peekViewResult.fileForeground",{dark:W.white,light:"#1E1E1E",hcDark:W.white,hcLight:Cs},p("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));T("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},p("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));T("peekViewResult.selectionForeground",{dark:W.white,light:"#6C6C6C",hcDark:W.white,hcLight:Cs},p("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const Hb=T("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:W.black,hcLight:W.white},p("peekViewEditorBackground","Background color of the peek view editor."));T("peekViewEditorGutter.background",{dark:Hb,light:Hb,hcDark:Hb,hcLight:Hb},p("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));T("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},p("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));T("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},p("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));T("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Ot,hcLight:Ot},p("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var ese=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class pc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v5.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?p({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",Js(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):p("aria.oneReference","symbol in {0} on line {1} at column {2}",Js(this.uri),this.range.startLineNumber,this.range.startColumn)}}class tse{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new L(n,l.startColumn,n,s),d=new L(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class Mm{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new mn}dispose(){nt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?p("aria.fileReferences.1","1 symbol in {0}, full path {1}",Js(this.uri),this.uri.fsPath):p("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Js(this.uri),this.uri.fsPath)}resolve(e){return ese(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new tse(i))}catch(i){Te(i)}return this})}}class ns{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new R,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(ns._compareReferences);let n;for(const s of e)if((!n||!It.isEqual(n.uri,s.uri,!0))&&(n=new Mm(this,s.uri),this.groups.push(n)),n.children.length===0||ns._compareReferences(s,n.children[n.children.length-1])!==0){const r=new pc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){nt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new ns(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?p("aria.result.0","No results found"):this.references.length===1?p("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?p("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):p("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:Nd(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&L.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return It.compare(e.uri,t.uri)||L.compareRangesUsingStarts(e.range,t.range)}}var sw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rm=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Yk=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof ns||e instanceof Mm}getChildren(e){if(e instanceof ns)return e.groups;if(e instanceof Mm)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};Yk=sw([Rm(0,Kn)],Yk);class ise{getHeight(){return 23}getTemplateId(e){return e instanceof Mm?Om.id:T_.id}}let Qk=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof pc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return Js(e.uri)}};Qk=sw([Rm(0,_i)],Qk);class nse{getId(e){return e instanceof pc?e.id:e.uri}}let Xk=class extends H{constructor(e,t,i){super(),this._labelService=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new nC(n,{supportHighlights:!0})),this.badge=new sk(q(n,J(".count"))),this._register(VY(this.badge,i)),e.appendChild(n)}set(e,t){const i=L1(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(p("referencesCount","{0} references",n)):this.badge.setTitleFormat(p("referenceCount","{0} reference",n))}};Xk=sw([Rm(1,bg),Rm(2,Ct)],Xk);let Om=class r7{constructor(e){this._instantiationService=e,this.templateId=r7.id}renderTemplate(e){return this._instantiationService.createInstance(Xk,e)}renderElement(e,t,i){i.set(e.element,E1(e.filterData))}disposeTemplate(e){e.dispose()}};Om.id="FileReferencesRenderer";Om=sw([Rm(0,Ae)],Om);class sse{constructor(e){this.label=new $d(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${Js(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!Zo.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,E1(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class T_{constructor(){this.templateId=T_.id}renderTemplate(e){return new sse(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}T_.id="OneReferenceRenderer";class ose{getWidgetAriaLabel(){return p("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var rse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},wR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class ow{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Q,this._callOnModelChange=new Q,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(!!e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(lse,"ReferencesWidget",this._treeContainer,new ise,[this._instantiationService.createInstance(Om),this._instantiationService.createInstance(T_)],this._instantiationService.createInstance(Yk),i),this._splitView.addView({onDidChange:ge.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},oC.Distribute),this._splitView.addView({onDidChange:ge.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},oC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof pc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),Pn(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new vt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{!this._model||(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=p("noResults","No results"),bs(this._messageContainer),Promise.resolve(void 0)):(Pn(this._messageContainer),this._decorationsManager=new ow(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();!n||this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),bs(this._treeContainer),bs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof pc)return e;if(e instanceof Mm&&e.children.length>0)return e.children[0]}revealReference(e){return wR(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return wR(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Me.inMemory?this.setTitle(hq(e.uri),this._uriLabel.getUriLabel(L1(e.uri))):this.setTitle(p("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}nt(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=L.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};Jk=rse([pa(3,Ct),pa(4,Kn),pa(5,Ae),pa(6,n7),pa(7,bg),pa(8,D1),pa(9,_i),pa(10,Ht),pa(11,si)],Jk);var cse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},SR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Dh=new le("referenceSearchVisible",!1,p("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let mc=class ex{constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Q,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Dh.bindTo(i)}static get(e){return e.getContribution(ex.ID)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),!!n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=ase.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(Jk,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(p("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(!!c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(p("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new B(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(79)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){!this._widget||(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return SR(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return SR(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const t=L.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:t,selectionSource:"code.jump"}},this._editor).then(i=>{var n;if(this._ignoreModelChangeEvent=!1,!i||!this._widget){this.closeWidget();return}if(this._editor===i)this._widget.show(t),this._widget.focusOnReferenceTree();else{const s=ex.get(i),r=this._model.clone();this.closeWidget(),i.focus(),s==null||s.toggleWidget(t,Ri(a=>Promise.resolve(r)),(n=this._peekMode)!==null&&n!==void 0?n:!1)}},i=>{this._ignoreModelChangeEvent=!1,Te(i)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};mc.ID="editor.contrib.referencesController";mc=cse([zh(2,Ee),zh(3,ct),zh(4,di),zh(5,Ae),zh(6,Do),zh(7,ot)],mc);function kh(o,e){const t=Zne(o);if(!t)return;const i=mc.get(t);i&&e(i)}as.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:yi(2089,60),when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});as.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!0)})}});as.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!1)})}});Xe.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Xe.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Xe.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Xe.registerCommand("closeReferenceSearch",o=>kh(o,e=>e.closeWidget()));as.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:se.and(jn.inPeekEditor,se.not("config.editor.stablePeek"))});as.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:se.and(Dh,se.not("config.editor.stablePeek"))});as.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:se.and(Dh,$5,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.revealReference(i[0]))}});as.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:se.and(Dh,$5,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!0,!0))}});Xe.registerCommand("openReference",o=>{var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!1,!0))});var a7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ip=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const jN=new le("hasSymbols",!1,p("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),rw=Ye("ISymbolNavigationService");let tx=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=jN.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new ix(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(_F(h.uri,a.uri))c=!0,d=d||L.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=qo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:L.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?p("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):p("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};tx=a7([ip(0,Ee),ip(1,ct),ip(2,di),ip(3,_i)],tx);et(rw,tx,!0);ee(new class extends xi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:jN,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(rw).revealNext(e)}});as.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:jN,primary:9,handler(o){o.get(rw).reset()}});let ix=class{constructor(e){this._listener=new Map,this._disposables=new Q,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),nt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,qo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};ix=a7([ip(0,ct)],ix);var l7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function A_(o,e,t,i){const s=t.ordered(o).map(r=>Promise.resolve(i(r,o,e)).then(void 0,a=>{Pi(a)}));return Promise.all(s).then(r=>{const a=[];for(const l of r)Array.isArray(l)?a.push(...l):l&&a.push(l);return a})}function KN(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function c7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function d7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function h7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function aw(o,e,t,i,n){return A_(e,t,o,(s,r,a)=>l7(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function M_(o){return l7(this,void 0,void 0,function*(){const e=yield o(),t=new ns(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}ia("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=KN(i.definitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=h7(i.typeDefinitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(de),n=c7(i.declarationProvider,e,t,ze.None);return M_(()=>n)});ia("_executeReferenceProvider",(o,e,t)=>{const i=o.get(de),n=aw(i.referenceProvider,e,t,!1,ze.None);return M_(()=>n)});ia("_executeImplementationProvider",(o,e,t)=>{const i=o.get(de),n=d7(i.implementationProvider,e,t,ze.None);return M_(()=>n)});var bo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},uy,gy,fy,py,my,_y,by,vy;qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextPeek,title:p("peek.submenu","Peek"),group:"navigation",order:100});const u7=new Set;function ar(o){const e=new o;return C4(e),u7.add(e.id),e}class Pm{constructor(e,t){this.model=e,this.position=t}static is(e){return!e||typeof e!="object"?!1:!!(e instanceof Pm||B.isIPosition(e.position)&&e.model)}}class vo extends ce{constructor(e,t){super(t),this.configuration=e}run(e,t,i){if(!t.hasModel())return Promise.resolve(void 0);const n=e.get(di),s=e.get(ct),r=e.get(kc),a=e.get(rw),l=e.get(de),c=t.getModel(),d=t.getPosition(),h=Pm.is(i)?i:new Pm(c,d),u=new qd(t,5),g=MI(this._getLocationModel(l,h.model,h.position,u.token),u.token).then(f=>bo(this,void 0,void 0,function*(){var _;if(!f||u.token.isCancellationRequested)return;Gi(f.ariaMessage);let b;if(f.referenceAt(c.uri,d)){const C=this._getAlternativeCommand(t);!vo._activeAlternativeCommands.has(C)&&u7.has(C)&&(b=t.getAction(C))}const v=f.references.length;if(v===0){if(!this.configuration.muteMessage){const C=c.getWordAtPosition(d);(_=os.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(C),d)}}else if(v===1&&b)vo._activeAlternativeCommands.add(this.id),b.run().finally(()=>{vo._activeAlternativeCommands.delete(this.id)});else return this._onResult(s,a,t,f)}),f=>{n.error(f)}).finally(()=>{u.dispose()});return r.showWhile(g,250),g}_onResult(e,t,i,n){return bo(this,void 0,void 0,function*(){const s=this._getGoToPreference(i);if(!(i instanceof Qd)&&(this.configuration.openInPeek||s==="peek"&&n.references.length>1))this._openInPeek(i,n);else{const r=n.firstReference(),a=n.references.length>1&&s==="gotoAndPeek",l=yield this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n):n.dispose(),s==="goto"&&t.put(r)}})}_openReference(e,t,i,n,s){return bo(this,void 0,void 0,function*(){let r;if(aB(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:L.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(!!a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t){const i=mc.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),Ri(n=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}vo._activeAlternativeCommands=new Set;class R_ extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield KN(e.definitionProvider,t,i,n),p("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("noResultWord","No definition found for '{0}'",e.word):p("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleDefinitions}}const g7=Sc&&!II()?2118:70;ar((uy=class nx extends R_{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:nx.id,label:p("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:g7,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),Xe.registerCommandAlias("editor.action.goToDeclaration",nx.id)}},uy.id="editor.action.revealDefinition",uy));ar((gy=class sx extends R_{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:sx.id,label:p("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,g7),weight:100}}),Xe.registerCommandAlias("editor.action.openDeclarationToTheSide",sx.id)}},gy.id="editor.action.revealDefinitionAside",gy));ar((fy=class ox extends R_{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:ox.id,label:p("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:se.and(N.hasDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:2}}),Xe.registerCommandAlias("editor.action.previewDeclaration",ox.id)}},fy.id="editor.action.peekDefinition",fy));class f7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield c7(e.declarationProvider,t,i,n),p("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(53).multipleDeclarations}}ar((py=class p7 extends f7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:p7.id,label:p("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:se.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}},py.id="editor.action.revealDeclaration",py));ar(class extends f7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:p("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:se.and(N.hasDeclarationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:3}})}});class m7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield h7(e.typeDefinitionProvider,t,i,n),p("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):p("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleTypeDefinitions}}ar((my=class _7 extends m7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:_7.ID,label:p("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}},my.ID="editor.action.goToTypeDefinition",my));ar((_y=class b7 extends m7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:b7.ID,label:p("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:4}})}},_y.ID="editor.action.peekTypeDefinition",_y));class v7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield d7(e.implementationProvider,t,i,n),p("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):p("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(53).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(53).multipleImplementations}}ar((by=class C7 extends v7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:C7.ID,label:p("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:se.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}},by.ID="editor.action.goToImplementation",by));ar((vy=class w7 extends v7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:w7.ID,label:p("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:se.and(N.hasImplementationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:5}})}},vy.ID="editor.action.peekImplementation",vy));class S7 extends vo{_getNoResultFoundMessage(e){return e?p("references.no","No references found for '{0}'",e.word):p("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(53).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(53).multipleReferences}}ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:p("goToReferences.label","Go to References"),alias:"Go to References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!0,n),p("ref.title","References"))})}});ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:p("references.action.label","Peek References"),alias:"Peek References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!1,n),p("ref.title","References"))})}});class dse extends vo{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:p("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:se.and(jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(this._references,p("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&p("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(53).multipleReferences}_getAlternativeCommand(){return""}}Xe.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>bo(void 0,void 0,void 0,function*(){pt(_e.isUri(e)),pt(B.isIPosition(t)),pt(Array.isArray(i)),pt(typeof n>"u"||typeof n=="string"),pt(typeof r>"u"||typeof r=="boolean");const a=o.get(ct),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(nl(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends dse{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!Boolean(s),openInPeek:Boolean(r),openToSide:!1},i,n);c.get(Ae).invokeFunction(d.run.bind(d),l)})})});Xe.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>bo(void 0,void 0,void 0,function*(){o.get(ci).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});Xe.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{pt(_e.isUri(e)),pt(B.isIPosition(t));const i=o.get(de),n=o.get(ct);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!nl(s)||!s.hasModel())return;const r=mc.get(s);if(!r)return;const a=Ri(c=>aw(i.referenceProvider,s.getModel(),B.lift(t),!1,c).then(d=>new ns(d,p("ref.title","References")))),l=new L(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});Xe.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");qs.appendMenuItems([{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:p({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:p({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:p({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:p({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:p({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}]);var hse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Cy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xd=class N0{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Q,this.toUnhookForKeyboard=new Q,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new UN(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,Wn(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},a=>{this.removeLinkDecorations(),Te(a)})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(N0.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;const n=new Tm(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Ri(s=>this.findDefinition(e,s)),this.previousPromise.then(s=>{if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}if(s.length>1)this.addDecoration(new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),new Fn().appendText(p("multipleResults","Click to show {0} definitions.",s.length)));else{const r=s[0];if(!r.uri)return;this.textModelResolverService.createModelReference(r.uri).then(a=>{if(!a.object||!a.object.textEditorModel){a.dispose();return}const{object:{textEditorModel:l}}=a,{startLineNumber:c}=r.range;if(c<1||c>l.getLineCount()){a.dispose();return}const d=this.getPreviewValue(l,c,r);let h;r.originSelectionRange?h=L.lift(r.originSelectionRange):h=new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const u=this.languageService.guessLanguageIdByFilepathOrFirstLine(l.uri);this.addDecoration(h,new Fn().appendCodeblock(u||"",d)),a.dispose()})}}).then(void 0,Te)}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=N0.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(80)&&!this.isInPeekEditor(i);return new R_({openToSide:t,openInPeek:n,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(i,this.editor)})}isInPeekEditor(e){const t=e.get(Ee);return jn.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};Xd.ID="editor.contrib.gotodefinitionatposition";Xd.MAX_SOURCE_PREVIEW_LINES=8;Xd=hse([Cy(1,Kn),Cy(2,Ht),Cy(3,de)],Xd);tt(Xd.ID,Xd);Et((o,e)=>{const t=o.getColor(lE);t&&e.addRule(`.monaco-editor .goto-definition-link { color: ${t} !important; }`)});const zb=J;class y7 extends H{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 p_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class qN extends H{constructor(e,t,i){super(),this.actionContainer=q(e,zb("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,zb("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,zb(`span.icon.${t.iconClass}`));const n=q(this.action,zb("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(G(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(G(this.actionContainer,ae.KEY_UP,s=>{new Rt(s).equals(3)&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}static render(e,t,i){return new qN(e,t,i)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var use=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},gse=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class fse{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class L7 extends H{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new R),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new mt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new mt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new mt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(55).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=TW(e=>this._computer.computeAsync(e)),use(this,void 0,void 0,function*(){var e,t;try{try{for(var i=gse(this._asyncIterable),n;n=yield i.next(),!n.done;){const s=n.value;s&&(this._result.push(s),this._fireResult())}}catch(s){e={error:s}}finally{try{n&&!n.done&&(t=i.return)&&(yield t.call(i))}finally{if(e)throw e.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(s){Te(s)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new fse(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class wy{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class T0{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const xh=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ho{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ho._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ho.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ho.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ho.isVariableCharacter(i)||ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ho._table[i]>"u"&&!ho.isDigitCharacter(i)&&!ho.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ho._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13};class tf{constructor(){this._children=[]}appendChild(e){return e instanceof Bn&&this._children[this._children.length-1]instanceof Bn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof O_)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Bn extends tf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Bn(this.value)}}class D7 extends tf{}class go extends D7{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof nf?this._children[0]:void 0}clone(){const e=new go(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class nf extends tf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Bn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new nf;return this.options.forEach(e.appendChild,e),e}}class GN extends tf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Mo&&Boolean(s.elseValue))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Mo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new GN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Mo extends tf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(e)&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Mo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Fm extends D7{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Bn(t)],!0):!1}clone(){const e=new Fm(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function yR(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class O_ extends tf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof go&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return yR([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof go&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Fm&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new O_;return this._children=this.children.map(t=>t.clone()),e}walk(e){yR(this.children,e)}}class _c{constructor(){this._scanner=new ho,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new O_;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i!=null?i:!1,t!=null?t:!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(r=>(r instanceof go&&(r.isFinalTabstop?n.set(0,void 0):!n.has(r.index)&&r.children.length>0?n.set(r.index,r.children):s.push(r)),!0));for(const r of s){const a=n.get(r.index);if(a){const l=new go(r.index);l.transform=r.transform;for(const c of a)l.appendChild(c.clone());t.replace(r,[l])}}return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new go(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Bn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new go(Number(t)):new Fm(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new go(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new nf;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Bn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new Fm(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new GN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Bn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Mo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Mo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Mo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Mo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Bn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const pse=p("defaultLabel","input"),mse=p("label.preserveCaseToggle","Preserve Case");class _se extends y_{constructor(e){super({icon:m.preserveCase,title:mse+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class bse extends yo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onPreserveCaseKeyDown=this._register(new R),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||pse,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new y5(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c})),this.preserveCase=this._register(new _se({appendTitle:s,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let f=-1;u.equals(17)?f=(g+1)%d.length:u.equals(15)&&(g===0?f=d.length-1:f=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):f>=0&&d[f].focus(),ut.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var k7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},x7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ZN=new le("suggestWidgetVisible",!1,p("suggestWidgetVisible","Whether suggestion are visible")),YN="historyNavigationWidgetFocus",I7="historyNavigationForwardsEnabled",E7="historyNavigationBackwardsEnabled";let Ld;const Ub=[];function N7(o,e){if(Ub.includes(e))throw new Error("Cannot register the same widget multiple times");Ub.push(e);const t=new Q,i=t.add(o.createScoped(e.element)),n=new le(YN,!1).bindTo(i),s=new le(I7,!0).bindTo(i),r=new le(E7,!0).bindTo(i),a=()=>{n.set(!0),Ld=e},l=()=>{n.set(!1),Ld===e&&(Ld=void 0)};return e.element===document.activeElement&&a(),t.add(e.onDidFocus(()=>a())),t.add(e.onDidBlur(()=>l())),t.add(Be(()=>{Ub.splice(Ub.indexOf(e),1),l()})),{scopedContextKeyService:i,historyNavigationForwardsEnablement:s,historyNavigationBackwardsEnablement:r,dispose(){t.dispose()}}}let rx=class extends bX{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};rx=k7([x7(3,Ee)],rx);let ax=class extends bse{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};ax=k7([x7(3,Ee)],ax);as.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:se.and(se.has(YN),se.equals(E7,!0),ZN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{Ld&&Ld.showPreviousValue()}});as.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:se.and(se.has(YN),se.equals(I7,!0),ZN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{Ld&&Ld.showNextValue()}});var Ep=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ke={Visible:ZN,HasFocusedSuggestion:new le("suggestWidgetHasFocusedSuggestion",!1,p("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new le("suggestWidgetDetailsVisible",!1,p("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new le("suggestWidgetMultipleSuggestions",!1,p("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new le("suggestionMakesTextEdit",!0,p("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new le("acceptSuggestionOnEnter",!0,p("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new le("suggestionHasInsertAndReplaceRange",!1,p("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new le("suggestionInsertMode",void 0,{type:"string",description:p("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new le("suggestionCanResolve",!1,p("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Ql=new M("suggestWidgetStatusBar");class vse{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=Zo.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,L.isIRange(t.range)?(this.editStart=new B(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new B(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new B(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new B(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new B(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new B(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range.insert)||L.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return Ep(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{ea(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class Bm{constructor(e=2,t=new Set,i=new Set,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=n}}Bm.default=new Bm;let Cse;function wse(){return Cse}class Sse{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function QN(o,e,t,i=Bm.default,n={triggerKind:0},s=ze.None){return Ep(this,void 0,void 0,function*(){const r=new $n(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new L(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):L.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Q,u=[];let g=!1;const f=(b,v,C)=>{var w,S,k;let x=!1;if(!v)return x;for(const y of v.suggestions)if(!i.kindFilter.has(y.kind)){if(!i.showDeprecated&&((w=y==null?void 0:y.tags)===null||w===void 0?void 0:w.includes(1)))continue;y.range||(y.range=c),y.sortText||(y.sortText=typeof y.label=="string"?y.label:y.label.label),!g&&y.insertTextRules&&y.insertTextRules&4&&(g=_c.guessNeedsClipboard(y.insertText)),d.push(new vse(t,y,v,b)),x=!0}return hI(v)&&h.add(v),u.push({providerName:(S=b._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(k=v.duration)!==null&&k!==void 0?k:-1,elapsedOverall:C.elapsed()}),x},_=(()=>Ep(this,void 0,void 0,function*(){}))();for(const b of o.orderedGroups(e)){let v=!1;if(yield Promise.all(b.map(C=>Ep(this,void 0,void 0,function*(){if(!(i.providerFilter.size>0&&!i.providerFilter.has(C)))try{const w=new $n(!0),S=yield C.provideCompletionItems(e,t,n,s);v=f(C,S,w)||v}catch(w){Pi(w)}}))),v||s.isCancellationRequested)break}return yield _,s.isCancellationRequested?(h.dispose(),Promise.reject(new yc)):new Sse(d.sort(T7(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function XN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function yse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return XN(o,e)}function Lse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return XN(o,e)}const lw=new Map;lw.set(0,yse);lw.set(2,Lse);lw.set(1,XN);function T7(o){return lw.get(o)}Xe.registerCommand("_executeCompletionItemProvider",(o,...e)=>Ep(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string"||!n),pt(typeof s=="number"||!s);const{completionProvider:r}=o.get(de),a=yield o.get(Kn).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield QN(r,a.object.textEditorModel,B.lift(i),void 0,{triggerCharacter:n,triggerKind:n?1:0});for(const h of d.items)c.length<(s!=null?s:0)&&c.push(h.resolve(ze.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function Dse(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class ku{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var JN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const LR=J;let mC=class lx extends H{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(Dd,this._editor)),this._isChangingDecorations=!1,this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const n of xh.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new _C(this._editor,this._participants),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value,n.isComplete,n.hasLoadingMessage)})),this._register(this._editor.onDidChangeModelDecorations(()=>{this._isChangingDecorations||this._onModelDecorationsChanged()})),this._register(ki(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Wt.onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new wy(0,i.range)),i.type===7){const n=this._editor.getOption(46).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingAt(t[0],0,!1),!0)}startShowingAtRange(e,t,i){this._startShowingAt(new wy(0,e),t,i)}_startShowingAt(e,t,i){if(!(this._computer.anchor&&this._computer.anchor.equals(e))){if(this._hoverOperation.cancel(),this._widget.position)if(!this._computer.anchor||!e.canAdoptVisibleHover(this._computer.anchor,this._widget.position))this.hide();else{const n=this._messages.filter(s=>s.isValidForHoverAnchor(e));if(n.length===0)this.hide();else{if(n.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,n)}}this._computer.anchor=e,this._computer.shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e,t,i){this._messages=i?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}_renderMessages(e,t){const{showAtPosition:i,showAtRange:n,highlightRange:s}=lx.computeHoverRanges(e.range,t),r=new Q,a=r.add(new cx(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const h of this._participants){const u=t.filter(g=>g.owner===h);u.length>0&&r.add(h.renderHoverParts(d,u))}if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const h=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,h.set([{range:s,options:lx._DECORATION_OPTIONS}])}finally{this._isChangingDecorations=!1}r.add(Be(()=>{try{this._isChangingDecorations=!0,h.clear()}finally{this._isChangingDecorations=!1}}))}this._widget.showAt(l,new kse(c,i,n,this._editor.getOption(55).above,this._computer.shouldFocus,r))}else r.dispose()}static computeHoverRanges(e,t){const i=e.startLineNumber;let n=e.startColumn,s=e.endColumn,r=t[0].range,a=null;for(const l of t)r=L.plusRange(r,l.range),l.range.startLineNumber===i&&l.range.endLineNumber===i&&(n=Math.min(n,l.range.startColumn),s=Math.max(s,l.range.endColumn)),l.forceShowAtRange&&(a=l.range);return{showAtPosition:a?a.getStartPosition():new B(e.startLineNumber,n),showAtRange:a||new L(i,n,i,s),highlightRange:r}}};mC._DECORATION_OPTIONS=Ne.register({description:"content-hover-highlight",className:"hoverHighlight"});mC=JN([pC(1,Ae),pC(2,_i)],mC);class kse{constructor(e,t,i,n,s,r){this.colorPicker=e,this.showAtPosition=t,this.showAtRange=i,this.preferAbove=n,this.stoleFocus=s,this.disposables=r}}let Dd=class A7 extends H{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new y7),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(46)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return Boolean((e=this._visibleData)===null||e===void 0?void 0:e.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return A7.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(Ke.Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(46);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};Dd.ID="editor.contrib.contentHoverWidget";Dd=JN([pC(1,Ee)],Dd);let cx=class extends H{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=LR("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,LR("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(qN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};cx=JN([pC(0,_i)],cx);class _C{constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}static _getLineDecorations(e,t){if(t.type!==1)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return ri.EMPTY;const i=_C._getLineDecorations(this._editor,t);return ri.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):ri.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=_C._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return i_(t)}}let M7={};(function(){function o(e,t){t(M7)}o.amd=!0,function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof o=="function"&&o.amd?o(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.marked={}))}(this,function(e){function t(Z,U){for(var $=0;$Z.length)&&(U=Z.length);for(var $=0,E=new Array(U);$=Z.length?{done:!0}:{done:!1,value:Z[E++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +[{1}] {2}`,s,ZE.modifierLabels[Os].altKey,c)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;const{element:i,label:n}=this;if(!i||!n)return;const s=this._commandAction.checked&&((t=e.toggled)===null||t===void 0?void 0:t.icon)?e.toggled.icon:e.icon;if(!!s)if(at.isThemeIcon(s)){const r=at.asClassNameArray(s);n.classList.add(...r),this._itemClassDispose.value=Be(()=>{n.classList.remove(...r)})}else n.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(s.dark):Pd(s.light),n.classList.add("icon"),this._itemClassDispose.value=qo(Be(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};xg=$N([Rs(2,_i),Rs(3,di),Rs(4,Ee),Rs(5,Ct),Rs(6,ll)],xg);let Gk=class extends J3{constructor(e,t,i,n){var s,r;const a=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(s=t==null?void 0:t.menuAsChild)!==null&&s!==void 0?s:!1,classNames:(r=t==null?void 0:t.classNames)!==null&&r!==void 0?r:at.isThemeIcon(e.item.icon)?at.asClassName(e.item.icon):void 0});super(e,{getActions:()=>e.actions},i,a),this._contextMenuService=i,this._themeService=n}render(e){super.render(e),pt(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!at.isThemeIcon(i)){this.element.classList.add("icon");const n=()=>{this.element&&(this.element.style.backgroundImage=Xp(this._themeService.getColorTheme().type)?Pd(i.dark):Pd(i.light))};n(),this._register(this._themeService.onDidColorThemeChange(()=>{n()}))}}};Gk=$N([Rs(2,ll),Rs(3,Ct)],Gk);let Zk=class extends Dr{constructor(e,t,i,n,s,r,a,l){var c,d,h;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=r,this._instaService=a,this._storageService=l,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let u;const g=l.get(this._storageKey,1);g&&(u=e.actions.find(_=>g===_.id)),u||(u=e.actions[0]),this._defaultAction=this._instaService.createInstance(xg,u,{keybinding:this._getDefaultActionKeybindingLabel(u)});const f=Object.assign({},t!=null?t:Object.create(null),{menuAsChild:(c=t==null?void 0:t.menuAsChild)!==null&&c!==void 0?c:!0,classNames:(d=t==null?void 0:t.classNames)!==null&&d!==void 0?d:["codicon","codicon-chevron-down"],actionRunner:(h=t==null?void 0:t.actionRunner)!==null&&h!==void 0?h:new og});this._dropdown=new J3(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(_=>{_.action instanceof ac&&this.update(_.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(xg,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends og{runAction(t,i){return e7(this,void 0,void 0,function*(){yield t.run(void 0)})}},this._container&&this._defaultAction.render(FH(this._container,J(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(!((t=this._options)===null||t===void 0)&&t.renderKeybindingWithDefaultActionLabel){const n=this._keybindingService.lookupKeybinding(e.id);n&&(i=`(${n.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=J(".action-container");this._defaultAction.render(q(this._container,t)),this._register(G(t,ae.KEY_DOWN,n=>{const s=new Rt(n);s.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),s.stopPropagation())}));const i=J(".dropdown-action-container");this._dropdown.render(q(this._container,i)),this._register(G(i,ae.KEY_DOWN,n=>{var s;const r=new Rt(n);r.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(s=this._defaultAction.element)===null||s===void 0||s.focus(),r.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};Zk=$N([Rs(2,_i),Rs(3,di),Rs(4,ll),Rs(5,ph),Rs(6,Ae),Rs(7,Do)],Zk);function Gne(o,e,t){return e instanceof ac?o.createInstance(xg,e,t):e instanceof GI?e.item.rememberDefaultAction?o.createInstance(Zk,e,t):o.createInstance(Gk,e,t):void 0}var t7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},i7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const n7=Ye("IPeekViewService");et(n7,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}});var jn;(function(o){o.inPeekEditor=new le("inReferenceSearchEditor",!0,p("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(jn||(jn={}));let Am=class{constructor(e,t){e instanceof Qd&&jn.inPeekEditor.bindTo(t)}dispose(){}};Am.ID="editor.contrib.referenceController";Am=t7([i7(1,Ee)],Am);tt(Am.ID,Am);function Zne(o){const e=o.get(ct).getFocusedCodeEditor();return e instanceof Qd?e.getParentEditor():e}const Yne={headerBackgroundColor:W.white,primaryHeadingColor:W.fromHex("#333333"),secondaryHeadingColor:W.fromHex("#6c6c6cb3")};let fC=class extends zne{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new R,this.onDidClose=this._onDidClose.event,Jr(this.options,Yne,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=J(".head"),this._bodyElement=J(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=J(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),ki(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=J("span.filename"),this._secondaryHeading=J("span.dirname"),this._metaHeading=J("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=J(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new Zr(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new is("peekview.close",p("label.close","Close"),m.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Gne.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:Si(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,bs(this._metaHeading)):Pn(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(61)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};fC=t7([i7(2,Ae)],fC);const Qne=T("peekViewTitle.background",{dark:fe(zn,.1),light:fe(zn,.1),hcDark:null,hcLight:null},p("peekViewTitleBackground","Background color of the peek view title area.")),s7=T("peekViewTitleLabel.foreground",{dark:W.white,light:W.black,hcDark:W.white,hcLight:Cs},p("peekViewTitleForeground","Color of the peek view title.")),o7=T("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},p("peekViewTitleInfoForeground","Color of the peek view title info.")),Xne=T("peekView.border",{dark:zn,light:zn,hcDark:We,hcLight:We},p("peekViewBorder","Color of the peek view borders and arrow.")),Jne=T("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:W.black,hcLight:W.white},p("peekViewResultsBackground","Background color of the peek view result list."));T("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:W.white,hcLight:Cs},p("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));T("peekViewResult.fileForeground",{dark:W.white,light:"#1E1E1E",hcDark:W.white,hcLight:Cs},p("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));T("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},p("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));T("peekViewResult.selectionForeground",{dark:W.white,light:"#6C6C6C",hcDark:W.white,hcLight:Cs},p("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const Hb=T("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:W.black,hcLight:W.white},p("peekViewEditorBackground","Background color of the peek view editor."));T("peekViewEditorGutter.background",{dark:Hb,light:Hb,hcDark:Hb,hcLight:Hb},p("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));T("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},p("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));T("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},p("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));T("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Ot,hcLight:Ot},p("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var ese=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class pc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=vF.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?p({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",Js(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):p("aria.oneReference","symbol in {0} on line {1} at column {2}",Js(this.uri),this.range.startLineNumber,this.range.startColumn)}}class tse{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new L(n,l.startColumn,n,s),d=new L(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class Mm{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new mn}dispose(){nt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?p("aria.fileReferences.1","1 symbol in {0}, full path {1}",Js(this.uri),this.uri.fsPath):p("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Js(this.uri),this.uri.fsPath)}resolve(e){return ese(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new tse(i))}catch(i){Te(i)}return this})}}class ns{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new R,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(ns._compareReferences);let n;for(const s of e)if((!n||!It.isEqual(n.uri,s.uri,!0))&&(n=new Mm(this,s.uri),this.groups.push(n)),n.children.length===0||ns._compareReferences(s,n.children[n.children.length-1])!==0){const r=new pc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){nt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new ns(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?p("aria.result.0","No results found"):this.references.length===1?p("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?p("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):p("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:Nd(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&L.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return It.compare(e.uri,t.uri)||L.compareRangesUsingStarts(e.range,t.range)}}var sw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rm=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Yk=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof ns||e instanceof Mm}getChildren(e){if(e instanceof ns)return e.groups;if(e instanceof Mm)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};Yk=sw([Rm(0,Kn)],Yk);class ise{getHeight(){return 23}getTemplateId(e){return e instanceof Mm?Om.id:T_.id}}let Qk=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof pc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return Js(e.uri)}};Qk=sw([Rm(0,_i)],Qk);class nse{getId(e){return e instanceof pc?e.id:e.uri}}let Xk=class extends H{constructor(e,t,i){super(),this._labelService=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new nC(n,{supportHighlights:!0})),this.badge=new sk(q(n,J(".count"))),this._register(VY(this.badge,i)),e.appendChild(n)}set(e,t){const i=L1(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(p("referencesCount","{0} references",n)):this.badge.setTitleFormat(p("referenceCount","{0} reference",n))}};Xk=sw([Rm(1,bg),Rm(2,Ct)],Xk);let Om=class r7{constructor(e){this._instantiationService=e,this.templateId=r7.id}renderTemplate(e){return this._instantiationService.createInstance(Xk,e)}renderElement(e,t,i){i.set(e.element,E1(e.filterData))}disposeTemplate(e){e.dispose()}};Om.id="FileReferencesRenderer";Om=sw([Rm(0,Ae)],Om);class sse{constructor(e){this.label=new $d(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${Js(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!Zo.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,E1(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class T_{constructor(){this.templateId=T_.id}renderTemplate(e){return new sse(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}T_.id="OneReferenceRenderer";class ose{getWidgetAriaLabel(){return p("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var rse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},wR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class ow{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Q,this._callOnModelChange=new Q,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(!!e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(lse,"ReferencesWidget",this._treeContainer,new ise,[this._instantiationService.createInstance(Om),this._instantiationService.createInstance(T_)],this._instantiationService.createInstance(Yk),i),this._splitView.addView({onDidChange:ge.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},oC.Distribute),this._splitView.addView({onDidChange:ge.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},oC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof pc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),Pn(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new vt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{!this._model||(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=p("noResults","No results"),bs(this._messageContainer),Promise.resolve(void 0)):(Pn(this._messageContainer),this._decorationsManager=new ow(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();!n||this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),bs(this._treeContainer),bs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof pc)return e;if(e instanceof Mm&&e.children.length>0)return e.children[0]}revealReference(e){return wR(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return wR(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Me.inMemory?this.setTitle(hq(e.uri),this._uriLabel.getUriLabel(L1(e.uri))):this.setTitle(p("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}nt(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=L.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};Jk=rse([pa(3,Ct),pa(4,Kn),pa(5,Ae),pa(6,n7),pa(7,bg),pa(8,D1),pa(9,_i),pa(10,Ht),pa(11,si)],Jk);var cse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},SR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Dh=new le("referenceSearchVisible",!1,p("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let mc=class ex{constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Q,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Dh.bindTo(i)}static get(e){return e.getContribution(ex.ID)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),!!n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=ase.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(Jk,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(p("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(!!c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(p("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new B(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(79)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){!this._widget||(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return SR(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return SR(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const t=L.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:t,selectionSource:"code.jump"}},this._editor).then(i=>{var n;if(this._ignoreModelChangeEvent=!1,!i||!this._widget){this.closeWidget();return}if(this._editor===i)this._widget.show(t),this._widget.focusOnReferenceTree();else{const s=ex.get(i),r=this._model.clone();this.closeWidget(),i.focus(),s==null||s.toggleWidget(t,Ri(a=>Promise.resolve(r)),(n=this._peekMode)!==null&&n!==void 0?n:!1)}},i=>{this._ignoreModelChangeEvent=!1,Te(i)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};mc.ID="editor.contrib.referencesController";mc=cse([zh(2,Ee),zh(3,ct),zh(4,di),zh(5,Ae),zh(6,Do),zh(7,ot)],mc);function kh(o,e){const t=Zne(o);if(!t)return;const i=mc.get(t);i&&e(i)}as.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:yi(2089,60),when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});as.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!0)})}});as.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:se.or(Dh,jn.inPeekEditor),handler(o){kh(o,e=>{e.goToNextOrPreviousReference(!1)})}});Xe.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Xe.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Xe.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Xe.registerCommand("closeReferenceSearch",o=>kh(o,e=>e.closeWidget()));as.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:se.and(jn.inPeekEditor,se.not("config.editor.stablePeek"))});as.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:se.and(Dh,se.not("config.editor.stablePeek"))});as.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:se.and(Dh,$F,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.revealReference(i[0]))}});as.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:se.and(Dh,$F,bN.negate(),vN.negate()),handler(o){var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!0,!0))}});Xe.registerCommand("openReference",o=>{var e;const i=(e=o.get(so).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof pc&&kh(o,n=>n.openReference(i[0],!1,!0))});var a7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ip=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const jN=new le("hasSymbols",!1,p("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),rw=Ye("ISymbolNavigationService");let tx=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=jN.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new ix(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(_5(h.uri,a.uri))c=!0,d=d||L.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=qo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:L.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?p("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):p("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};tx=a7([ip(0,Ee),ip(1,ct),ip(2,di),ip(3,_i)],tx);et(rw,tx,!0);ee(new class extends xi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:jN,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(rw).revealNext(e)}});as.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:jN,primary:9,handler(o){o.get(rw).reset()}});let ix=class{constructor(e){this._listener=new Map,this._disposables=new Q,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),nt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,qo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};ix=a7([ip(0,ct)],ix);var l7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function A_(o,e,t,i){const s=t.ordered(o).map(r=>Promise.resolve(i(r,o,e)).then(void 0,a=>{Pi(a)}));return Promise.all(s).then(r=>{const a=[];for(const l of r)Array.isArray(l)?a.push(...l):l&&a.push(l);return a})}function KN(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function c7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function d7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function h7(o,e,t,i){return A_(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function aw(o,e,t,i,n){return A_(e,t,o,(s,r,a)=>l7(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function M_(o){return l7(this,void 0,void 0,function*(){const e=yield o(),t=new ns(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}ia("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=KN(i.definitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(de),n=h7(i.typeDefinitionProvider,e,t,ze.None);return M_(()=>n)});ia("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(de),n=c7(i.declarationProvider,e,t,ze.None);return M_(()=>n)});ia("_executeReferenceProvider",(o,e,t)=>{const i=o.get(de),n=aw(i.referenceProvider,e,t,!1,ze.None);return M_(()=>n)});ia("_executeImplementationProvider",(o,e,t)=>{const i=o.get(de),n=d7(i.implementationProvider,e,t,ze.None);return M_(()=>n)});var bo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},uy,gy,fy,py,my,_y,by,vy;qs.appendMenuItem(M.EditorContext,{submenu:M.EditorContextPeek,title:p("peek.submenu","Peek"),group:"navigation",order:100});const u7=new Set;function ar(o){const e=new o;return C4(e),u7.add(e.id),e}class Pm{constructor(e,t){this.model=e,this.position=t}static is(e){return!e||typeof e!="object"?!1:!!(e instanceof Pm||B.isIPosition(e.position)&&e.model)}}class vo extends ce{constructor(e,t){super(t),this.configuration=e}run(e,t,i){if(!t.hasModel())return Promise.resolve(void 0);const n=e.get(di),s=e.get(ct),r=e.get(kc),a=e.get(rw),l=e.get(de),c=t.getModel(),d=t.getPosition(),h=Pm.is(i)?i:new Pm(c,d),u=new qd(t,5),g=MI(this._getLocationModel(l,h.model,h.position,u.token),u.token).then(f=>bo(this,void 0,void 0,function*(){var _;if(!f||u.token.isCancellationRequested)return;Gi(f.ariaMessage);let b;if(f.referenceAt(c.uri,d)){const C=this._getAlternativeCommand(t);!vo._activeAlternativeCommands.has(C)&&u7.has(C)&&(b=t.getAction(C))}const v=f.references.length;if(v===0){if(!this.configuration.muteMessage){const C=c.getWordAtPosition(d);(_=os.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(C),d)}}else if(v===1&&b)vo._activeAlternativeCommands.add(this.id),b.run().finally(()=>{vo._activeAlternativeCommands.delete(this.id)});else return this._onResult(s,a,t,f)}),f=>{n.error(f)}).finally(()=>{u.dispose()});return r.showWhile(g,250),g}_onResult(e,t,i,n){return bo(this,void 0,void 0,function*(){const s=this._getGoToPreference(i);if(!(i instanceof Qd)&&(this.configuration.openInPeek||s==="peek"&&n.references.length>1))this._openInPeek(i,n);else{const r=n.firstReference(),a=n.references.length>1&&s==="gotoAndPeek",l=yield this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n):n.dispose(),s==="goto"&&t.put(r)}})}_openReference(e,t,i,n,s){return bo(this,void 0,void 0,function*(){let r;if(aB(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:L.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(!!a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t){const i=mc.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),Ri(n=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}vo._activeAlternativeCommands=new Set;class R_ extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield KN(e.definitionProvider,t,i,n),p("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("noResultWord","No definition found for '{0}'",e.word):p("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleDefinitions}}const g7=Sc&&!II()?2118:70;ar((uy=class nx extends R_{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:nx.id,label:p("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:g7,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),Xe.registerCommandAlias("editor.action.goToDeclaration",nx.id)}},uy.id="editor.action.revealDefinition",uy));ar((gy=class sx extends R_{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:sx.id,label:p("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:se.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,g7),weight:100}}),Xe.registerCommandAlias("editor.action.openDeclarationToTheSide",sx.id)}},gy.id="editor.action.revealDefinitionAside",gy));ar((fy=class ox extends R_{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:ox.id,label:p("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:se.and(N.hasDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:2}}),Xe.registerCommandAlias("editor.action.previewDeclaration",ox.id)}},fy.id="editor.action.peekDefinition",fy));class f7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield c7(e.declarationProvider,t,i,n),p("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(53).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(53).multipleDeclarations}}ar((py=class p7 extends f7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:p7.id,label:p("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:se.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?p("decl.noResultWord","No declaration found for '{0}'",e.word):p("decl.generic.noResults","No declaration found")}},py.id="editor.action.revealDeclaration",py));ar(class extends f7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:p("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:se.and(N.hasDeclarationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:3}})}});class m7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield h7(e.typeDefinitionProvider,t,i,n),p("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):p("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(53).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(53).multipleTypeDefinitions}}ar((my=class _7 extends m7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:_7.ID,label:p("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}},my.ID="editor.action.goToTypeDefinition",my));ar((_y=class b7 extends m7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:b7.ID,label:p("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:se.and(N.hasTypeDefinitionProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:4}})}},_y.ID="editor.action.peekTypeDefinition",_y));class v7 extends vo{_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield d7(e.implementationProvider,t,i,n),p("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?p("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):p("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(53).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(53).multipleImplementations}}ar((by=class C7 extends v7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:C7.ID,label:p("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:se.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}},by.ID="editor.action.goToImplementation",by));ar((vy=class w7 extends v7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:w7.ID,label:p("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:se.and(N.hasImplementationProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:5}})}},vy.ID="editor.action.peekImplementation",vy));class S7 extends vo{_getNoResultFoundMessage(e){return e?p("references.no","No references found for '{0}'",e.word):p("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(53).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(53).multipleReferences}}ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:p("goToReferences.label","Go to References"),alias:"Go to References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:N.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!0,n),p("ref.title","References"))})}});ar(class extends S7{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:p("references.action.label","Peek References"),alias:"Peek References",precondition:se.and(N.hasReferenceProvider,jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:M.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(yield aw(e.referenceProvider,t,i,!1,n),p("ref.title","References"))})}});class dse extends vo{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:p("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:se.and(jn.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return bo(this,void 0,void 0,function*(){return new ns(this._references,p("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&p("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(53).multipleReferences}_getAlternativeCommand(){return""}}Xe.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>bo(void 0,void 0,void 0,function*(){pt(_e.isUri(e)),pt(B.isIPosition(t)),pt(Array.isArray(i)),pt(typeof n>"u"||typeof n=="string"),pt(typeof r>"u"||typeof r=="boolean");const a=o.get(ct),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(nl(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends dse{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!Boolean(s),openInPeek:Boolean(r),openToSide:!1},i,n);c.get(Ae).invokeFunction(d.run.bind(d),l)})})});Xe.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_e},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>bo(void 0,void 0,void 0,function*(){o.get(ci).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});Xe.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{pt(_e.isUri(e)),pt(B.isIPosition(t));const i=o.get(de),n=o.get(ct);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!nl(s)||!s.hasModel())return;const r=mc.get(s);if(!r)return;const a=Ri(c=>aw(i.referenceProvider,s.getModel(),B.lift(t),!1,c).then(d=>new ns(d,p("ref.title","References")))),l=new L(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});Xe.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");qs.appendMenuItems([{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:p({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:p({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:p({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:p({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:M.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:p({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}]);var hse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Cy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xd=class N0{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Q,this.toUnhookForKeyboard=new Q,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new UN(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,Wn(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},a=>{this.removeLinkDecorations(),Te(a)})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(N0.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;const n=new Tm(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Ri(s=>this.findDefinition(e,s)),this.previousPromise.then(s=>{if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}if(s.length>1)this.addDecoration(new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),new Fn().appendText(p("multipleResults","Click to show {0} definitions.",s.length)));else{const r=s[0];if(!r.uri)return;this.textModelResolverService.createModelReference(r.uri).then(a=>{if(!a.object||!a.object.textEditorModel){a.dispose();return}const{object:{textEditorModel:l}}=a,{startLineNumber:c}=r.range;if(c<1||c>l.getLineCount()){a.dispose();return}const d=this.getPreviewValue(l,c,r);let h;r.originSelectionRange?h=L.lift(r.originSelectionRange):h=new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const u=this.languageService.guessLanguageIdByFilepathOrFirstLine(l.uri);this.addDecoration(h,new Fn().appendCodeblock(u||"",d)),a.dispose()})}}).then(void 0,Te)}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=N0.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(80)&&!this.isInPeekEditor(i);return new R_({openToSide:t,openInPeek:n,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(i,this.editor)})}isInPeekEditor(e){const t=e.get(Ee);return jn.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};Xd.ID="editor.contrib.gotodefinitionatposition";Xd.MAX_SOURCE_PREVIEW_LINES=8;Xd=hse([Cy(1,Kn),Cy(2,Ht),Cy(3,de)],Xd);tt(Xd.ID,Xd);Et((o,e)=>{const t=o.getColor(lE);t&&e.addRule(`.monaco-editor .goto-definition-link { color: ${t} !important; }`)});const zb=J;class y7 extends H{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 p_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class qN extends H{constructor(e,t,i){super(),this.actionContainer=q(e,zb("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,zb("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,zb(`span.icon.${t.iconClass}`));const n=q(this.action,zb("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(G(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(G(this.actionContainer,ae.KEY_UP,s=>{new Rt(s).equals(3)&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}static render(e,t,i){return new qN(e,t,i)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var use=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},gse=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class fse{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class L7 extends H{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new R),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new mt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new mt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new mt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(55).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=TW(e=>this._computer.computeAsync(e)),use(this,void 0,void 0,function*(){var e,t;try{try{for(var i=gse(this._asyncIterable),n;n=yield i.next(),!n.done;){const s=n.value;s&&(this._result.push(s),this._fireResult())}}catch(s){e={error:s}}finally{try{n&&!n.done&&(t=i.return)&&(yield t.call(i))}finally{if(e)throw e.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(s){Te(s)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new fse(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class wy{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class T0{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const xh=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ho{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ho._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ho.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ho.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ho.isVariableCharacter(i)||ho.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ho._table[i]>"u"&&!ho.isDigitCharacter(i)&&!ho.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ho._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13};class tf{constructor(){this._children=[]}appendChild(e){return e instanceof Bn&&this._children[this._children.length-1]instanceof Bn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof O_)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Bn extends tf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Bn(this.value)}}class D7 extends tf{}class go extends D7{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof nf?this._children[0]:void 0}clone(){const e=new go(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class nf extends tf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Bn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new nf;return this.options.forEach(e.appendChild,e),e}}class GN extends tf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Mo&&Boolean(s.elseValue))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Mo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new GN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Mo extends tf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":Boolean(e)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(e)&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Mo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Fm extends D7{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Bn(t)],!0):!1}clone(){const e=new Fm(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function yR(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class O_ extends tf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof go&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return yR([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof go&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Fm&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new O_;return this._children=this.children.map(t=>t.clone()),e}walk(e){yR(this.children,e)}}class _c{constructor(){this._scanner=new ho,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new O_;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i!=null?i:!1,t!=null?t:!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(r=>(r instanceof go&&(r.isFinalTabstop?n.set(0,void 0):!n.has(r.index)&&r.children.length>0?n.set(r.index,r.children):s.push(r)),!0));for(const r of s){const a=n.get(r.index);if(a){const l=new go(r.index);l.transform=r.transform;for(const c of a)l.appendChild(c.clone());t.replace(r,[l])}}return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new go(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Bn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new go(Number(t)):new Fm(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new go(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new nf;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Bn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new Fm(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Bn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new GN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Bn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Mo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Mo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Mo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Mo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Mo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Bn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const pse=p("defaultLabel","input"),mse=p("label.preserveCaseToggle","Preserve Case");class _se extends y_{constructor(e){super({icon:m.preserveCase,title:mse+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class bse extends yo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new R),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new R),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new R),this._onInput=this._register(new R),this._onKeyUp=this._register(new R),this._onPreserveCaseKeyDown=this._register(new R),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||pse,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new yF(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c})),this.preserveCase=this._register(new _se({appendTitle:s,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let f=-1;u.equals(17)?f=(g+1)%d.length:u.equals(15)&&(g===0?f=d.length-1:f=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):f>=0&&d[f].focus(),ut.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var k7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},x7=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ZN=new le("suggestWidgetVisible",!1,p("suggestWidgetVisible","Whether suggestion are visible")),YN="historyNavigationWidgetFocus",I7="historyNavigationForwardsEnabled",E7="historyNavigationBackwardsEnabled";let Ld;const Ub=[];function N7(o,e){if(Ub.includes(e))throw new Error("Cannot register the same widget multiple times");Ub.push(e);const t=new Q,i=t.add(o.createScoped(e.element)),n=new le(YN,!1).bindTo(i),s=new le(I7,!0).bindTo(i),r=new le(E7,!0).bindTo(i),a=()=>{n.set(!0),Ld=e},l=()=>{n.set(!1),Ld===e&&(Ld=void 0)};return e.element===document.activeElement&&a(),t.add(e.onDidFocus(()=>a())),t.add(e.onDidBlur(()=>l())),t.add(Be(()=>{Ub.splice(Ub.indexOf(e),1),l()})),{scopedContextKeyService:i,historyNavigationForwardsEnablement:s,historyNavigationBackwardsEnablement:r,dispose(){t.dispose()}}}let rx=class extends bX{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};rx=k7([x7(3,Ee)],rx);let ax=class extends bse{constructor(e,t,i,n,s=!1){super(e,t,s,i),this._register(N7(n,this.inputBox))}};ax=k7([x7(3,Ee)],ax);as.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:se.and(se.has(YN),se.equals(E7,!0),ZN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{Ld&&Ld.showPreviousValue()}});as.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:se.and(se.has(YN),se.equals(I7,!0),ZN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{Ld&&Ld.showNextValue()}});var Ep=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ke={Visible:ZN,HasFocusedSuggestion:new le("suggestWidgetHasFocusedSuggestion",!1,p("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new le("suggestWidgetDetailsVisible",!1,p("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new le("suggestWidgetMultipleSuggestions",!1,p("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new le("suggestionMakesTextEdit",!0,p("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new le("acceptSuggestionOnEnter",!0,p("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new le("suggestionHasInsertAndReplaceRange",!1,p("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new le("suggestionInsertMode",void 0,{type:"string",description:p("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new le("suggestionCanResolve",!1,p("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Ql=new M("suggestWidgetStatusBar");class vse{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=Zo.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,L.isIRange(t.range)?(this.editStart=new B(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new B(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new B(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new B(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new B(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new B(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||L.spansMultipleLines(t.range.insert)||L.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return Ep(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{ea(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class Bm{constructor(e=2,t=new Set,i=new Set,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=n}}Bm.default=new Bm;let Cse;function wse(){return Cse}class Sse{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function QN(o,e,t,i=Bm.default,n={triggerKind:0},s=ze.None){return Ep(this,void 0,void 0,function*(){const r=new $n(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new L(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):L.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Q,u=[];let g=!1;const f=(b,v,C)=>{var w,S,k;let x=!1;if(!v)return x;for(const y of v.suggestions)if(!i.kindFilter.has(y.kind)){if(!i.showDeprecated&&((w=y==null?void 0:y.tags)===null||w===void 0?void 0:w.includes(1)))continue;y.range||(y.range=c),y.sortText||(y.sortText=typeof y.label=="string"?y.label:y.label.label),!g&&y.insertTextRules&&y.insertTextRules&4&&(g=_c.guessNeedsClipboard(y.insertText)),d.push(new vse(t,y,v,b)),x=!0}return hI(v)&&h.add(v),u.push({providerName:(S=b._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(k=v.duration)!==null&&k!==void 0?k:-1,elapsedOverall:C.elapsed()}),x},_=(()=>Ep(this,void 0,void 0,function*(){}))();for(const b of o.orderedGroups(e)){let v=!1;if(yield Promise.all(b.map(C=>Ep(this,void 0,void 0,function*(){if(!(i.providerFilter.size>0&&!i.providerFilter.has(C)))try{const w=new $n(!0),S=yield C.provideCompletionItems(e,t,n,s);v=f(C,S,w)||v}catch(w){Pi(w)}}))),v||s.isCancellationRequested)break}return yield _,s.isCancellationRequested?(h.dispose(),Promise.reject(new yc)):new Sse(d.sort(T7(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function XN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function yse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return XN(o,e)}function Lse(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return XN(o,e)}const lw=new Map;lw.set(0,yse);lw.set(2,Lse);lw.set(1,XN);function T7(o){return lw.get(o)}Xe.registerCommand("_executeCompletionItemProvider",(o,...e)=>Ep(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string"||!n),pt(typeof s=="number"||!s);const{completionProvider:r}=o.get(de),a=yield o.get(Kn).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield QN(r,a.object.textEditorModel,B.lift(i),void 0,{triggerCharacter:n,triggerKind:n?1:0});for(const h of d.items)c.length<(s!=null?s:0)&&c.push(h.resolve(ze.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function Dse(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class ku{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var JN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const LR=J;let mC=class lx extends H{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(Dd,this._editor)),this._isChangingDecorations=!1,this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const n of xh.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new _C(this._editor,this._participants),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value,n.isComplete,n.hasLoadingMessage)})),this._register(this._editor.onDidChangeModelDecorations(()=>{this._isChangingDecorations||this._onModelDecorationsChanged()})),this._register(ki(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Wt.onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new wy(0,i.range)),i.type===7){const n=this._editor.getOption(46).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingAt(t[0],0,!1),!0)}startShowingAtRange(e,t,i){this._startShowingAt(new wy(0,e),t,i)}_startShowingAt(e,t,i){if(!(this._computer.anchor&&this._computer.anchor.equals(e))){if(this._hoverOperation.cancel(),this._widget.position)if(!this._computer.anchor||!e.canAdoptVisibleHover(this._computer.anchor,this._widget.position))this.hide();else{const n=this._messages.filter(s=>s.isValidForHoverAnchor(e));if(n.length===0)this.hide();else{if(n.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,n)}}this._computer.anchor=e,this._computer.shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e,t,i){this._messages=i?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}_renderMessages(e,t){const{showAtPosition:i,showAtRange:n,highlightRange:s}=lx.computeHoverRanges(e.range,t),r=new Q,a=r.add(new cx(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const h of this._participants){const u=t.filter(g=>g.owner===h);u.length>0&&r.add(h.renderHoverParts(d,u))}if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const h=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,h.set([{range:s,options:lx._DECORATION_OPTIONS}])}finally{this._isChangingDecorations=!1}r.add(Be(()=>{try{this._isChangingDecorations=!0,h.clear()}finally{this._isChangingDecorations=!1}}))}this._widget.showAt(l,new kse(c,i,n,this._editor.getOption(55).above,this._computer.shouldFocus,r))}else r.dispose()}static computeHoverRanges(e,t){const i=e.startLineNumber;let n=e.startColumn,s=e.endColumn,r=t[0].range,a=null;for(const l of t)r=L.plusRange(r,l.range),l.range.startLineNumber===i&&l.range.endLineNumber===i&&(n=Math.min(n,l.range.startColumn),s=Math.max(s,l.range.endColumn)),l.forceShowAtRange&&(a=l.range);return{showAtPosition:a?a.getStartPosition():new B(e.startLineNumber,n),showAtRange:a||new L(i,n,i,s),highlightRange:r}}};mC._DECORATION_OPTIONS=Ne.register({description:"content-hover-highlight",className:"hoverHighlight"});mC=JN([pC(1,Ae),pC(2,_i)],mC);class kse{constructor(e,t,i,n,s,r){this.colorPicker=e,this.showAtPosition=t,this.showAtRange=i,this.preferAbove=n,this.stoleFocus=s,this.disposables=r}}let Dd=class A7 extends H{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new y7),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(46)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return Boolean((e=this._visibleData)===null||e===void 0?void 0:e.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return A7.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(Ke.Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(46);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};Dd.ID="editor.contrib.contentHoverWidget";Dd=JN([pC(1,Ee)],Dd);let cx=class extends H{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=LR("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,LR("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(qN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};cx=JN([pC(0,_i)],cx);class _C{constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}static _getLineDecorations(e,t){if(t.type!==1)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return ri.EMPTY;const i=_C._getLineDecorations(this._editor,t);return ri.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):ri.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=_C._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return i_(t)}}let M7={};(function(){function o(e,t){t(M7)}o.amd=!0,function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof o=="function"&&o.amd?o(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.marked={}))}(this,function(e){function t(Z,U){for(var $=0;$Z.length)&&(U=Z.length);for(var $=0,E=new Array(U);$=Z.length?{done:!0}:{done:!1,value:Z[E++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(){return{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}}e.defaults=a();function l(Z){e.defaults=Z}var c=/[&<>"']/,d=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,g={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(U){return g[U]};function _(Z,U){if(U){if(c.test(Z))return Z.replace(d,f)}else if(h.test(Z))return Z.replace(u,f);return Z}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(Z){return Z.replace(b,function(U,$){return $=$.toLowerCase(),$==="colon"?":":$.charAt(0)==="#"?$.charAt(1)==="x"?String.fromCharCode(parseInt($.substring(2),16)):String.fromCharCode(+$.substring(1)):""})}var C=/(^|[^\[])\^/g;function w(Z,U){Z=typeof Z=="string"?Z:Z.source,U=U||"";var $={replace:function(A,V){return V=V.source||V,V=V.replace(C,"$1"),Z=Z.replace(A,V),$},getRegex:function(){return new RegExp(Z,U)}};return $}var S=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(Z,U,$){if(Z){var E;try{E=decodeURIComponent(v($)).replace(S,"").toLowerCase()}catch{return null}if(E.indexOf("javascript:")===0||E.indexOf("vbscript:")===0||E.indexOf("data:")===0)return null}U&&!k.test($)&&($=F(U,$));try{$=encodeURI($).replace(/%25/g,"%")}catch{return null}return $}var y={},D=/^[^:]+:\/*[^/]*$/,I=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function F(Z,U){y[" "+Z]||(D.test(Z)?y[" "+Z]=Z+"/":y[" "+Z]=he(Z,"/",!0)),Z=y[" "+Z];var $=Z.indexOf(":")===-1;return U.substring(0,2)==="//"?$?U:Z.replace(I,"$1")+U:U.charAt(0)==="/"?$?U:Z.replace(O,"$1")+U:Z+U}var z={exec:function(){}};function j(Z){for(var U=1,$,E;U=0&&Y[De]==="\\";)ne=!ne;return ne?"|":" |"}),E=$.split(/ \|/),A=0;if(E[0].trim()||E.shift(),E.length>0&&!E[E.length-1].trim()&&E.pop(),E.length>U)E.splice(U);else for(;E.length1;)U&1&&($+=Z),U>>=1,Z+=Z;return $+Z}function He(Z,U,$,E){var A=U.href,V=U.title?_(U.title):null,P=Z[1].replace(/\\([\[\]])/g,"$1");if(Z[0].charAt(0)!=="!"){E.state.inLink=!0;var Y={type:"link",raw:$,href:A,title:V,text:P,tokens:E.inlineTokens(P,[])};return E.state.inLink=!1,Y}return{type:"image",raw:$,href:A,title:V,text:_(P)}}function Mt(Z,U){var $=Z.match(/^(\s+)(?:```)/);if($===null)return U;var E=$[1];return U.split(` `).map(function(A){var V=A.match(/^\s+/);if(V===null)return A;var P=V[0];return P.length>=E.length?A.slice(E.length):A}).join(` `)}var yt=function(){function Z($){this.options=$||e.defaults}var U=Z.prototype;return U.space=function(E){var A=this.rules.block.newline.exec(E);if(A&&A[0].length>0)return{type:"space",raw:A[0]}},U.code=function(E){var A=this.rules.block.code.exec(E);if(A){var V=A[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:A[0],codeBlockStyle:"indented",text:this.options.pedantic?V:he(V,` @@ -688,7 +688,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)},U.strong=function(E){return""+E+""},U.em=function(E){return""+E+""},U.codespan=function(E){return""+E+""},U.br=function(){return this.options.xhtml?"
":"
"},U.del=function(E){return""+E+""},U.link=function(E,A,V){if(E=x(this.options.sanitize,this.options.baseUrl,E),E===null)return V;var P='",P},U.image=function(E,A,V){if(E=x(this.options.sanitize,this.options.baseUrl,E),E===null)return V;var P=''+V+'":">",P},U.text=function(E){return E},Z}(),oa=function(){function Z(){}var U=Z.prototype;return U.strong=function(E){return E},U.em=function(E){return E},U.codespan=function(E){return E},U.del=function(E){return E},U.html=function(E){return E},U.text=function(E){return E},U.link=function(E,A,V){return""+V},U.image=function(E,A,V){return""+V},U.br=function(){return""},Z}(),xo=function(){function Z(){this.seen={}}var U=Z.prototype;return U.serialize=function(E){return E.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},U.getNextSafeSlug=function(E,A){var V=E,P=0;if(this.seen.hasOwnProperty(V)){P=this.seen[E];do P++,V=E+"-"+P;while(this.seen.hasOwnProperty(V))}return A||(this.seen[E]=P,this.seen[V]=0),V},U.slug=function(E,A){A===void 0&&(A={});var V=this.serialize(E);return this.getNextSafeSlug(V,A.dryrun)},Z}(),cr=function(){function Z($){this.options=$||e.defaults,this.options.renderer=this.options.renderer||new ko,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new oa,this.slugger=new xo}Z.parse=function(E,A){var V=new Z(A);return V.parse(E)},Z.parseInline=function(E,A){var V=new Z(A);return V.parseInline(E)};var U=Z.prototype;return U.parse=function(E,A){A===void 0&&(A=!0);var V="",P,Y,ne,De,Ce,Ve,Fe,wt,dt,ke,bi,Jt,Ns,jt,Bi,Rc,cs,dr,ra,Oc=E.length;for(P=0;P0&&Bi.tokens[0].type==="paragraph"?(Bi.tokens[0].text=dr+" "+Bi.tokens[0].text,Bi.tokens[0].tokens&&Bi.tokens[0].tokens.length>0&&Bi.tokens[0].tokens[0].type==="text"&&(Bi.tokens[0].tokens[0].text=dr+" "+Bi.tokens[0].tokens[0].text)):Bi.tokens.unshift({type:"text",text:dr}):jt+=dr),jt+=this.parse(Bi.tokens,Ns),dt+=this.renderer.listitem(jt,cs,Rc);V+=this.renderer.list(dt,bi,Jt);continue}case"html":{V+=this.renderer.html(ke.text);continue}case"paragraph":{V+=this.renderer.paragraph(this.parseInline(ke.tokens));continue}case"text":{for(dt=ke.tokens?this.parseInline(ke.tokens):ke.text;P+1"u"||Z===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Z!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Z)+", string expected");if(typeof U=="function"&&($=U,U=null),U=j({},Pe.defaults,U||{}),ye(U),$){var E=U.highlight,A;try{A=In.lex(Z,U)}catch(ne){return $(ne)}var V=function(De){var Ce;if(!De)try{U.walkTokens&&Pe.walkTokens(A,U.walkTokens),Ce=cr.parse(A,U)}catch(Ve){De=Ve}return U.highlight=E,De?$(De):$(null,Ce)};if(!E||E.length<3||(delete U.highlight,!A.length))return V();var P=0;Pe.walkTokens(A,function(ne){ne.type==="code"&&(P++,setTimeout(function(){E(ne.text,ne.lang,function(De,Ce){if(De)return V(De);Ce!=null&&Ce!==ne.text&&(ne.text=Ce,ne.escaped=!0),P--,P===0&&V()})},0))}),P===0&&V();return}try{var Y=In.lex(Z,U);return U.walkTokens&&Pe.walkTokens(Y,U.walkTokens),cr.parse(Y,U)}catch(ne){if(ne.message+=` Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An error occurred:

"+_(ne.message+"",!0)+"
";throw ne}}Pe.options=Pe.setOptions=function(Z){return j(Pe.defaults,Z),l(Pe.defaults),Pe},Pe.getDefaults=a,Pe.defaults=e.defaults,Pe.use=function(){for(var Z=arguments.length,U=new Array(Z),$=0;$"u"||Z===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Z!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Z)+", string expected");U=j({},Pe.defaults,U||{}),ye(U);try{var $=In.lexInline(Z,U);return U.walkTokens&&Pe.walkTokens($,U.walkTokens),cr.parseInline($,U)}catch(E){if(E.message+=` -Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An error occurred:

"+_(E.message+"",!0)+"
";throw E}},Pe.Parser=cr,Pe.parser=cr.parse,Pe.Renderer=ko,Pe.TextRenderer=oa,Pe.Lexer=In,Pe.lexer=In.lex,Pe.Tokenizer=yt,Pe.Slugger=xo,Pe.parse=Pe;var hl=Pe.options,df=Pe.setOptions,hf=Pe.use,ul=Pe.walkTokens,Ih=Pe.parseInline,U_=Pe,Eh=cr.parse,$_=In.lex;e.Lexer=In,e.Parser=cr,e.Renderer=ko,e.Slugger=xo,e.TextRenderer=oa,e.Tokenizer=yt,e.getDefaults=a,e.lexer=$_,e.marked=Pe,e.options=hl,e.parse=U_,e.parseInline=Ih,e.parser=Eh,e.setOptions=df,e.use=hf,e.walkTokens=ul,Object.defineProperty(e,"__esModule",{value:!0})})})();var DR=M7||exports;function xse(o,e={},t={}){var i;const n=new Q;let s=!1;const r=sN(e),a=function(_){let b;try{b=Qv(decodeURIComponent(_))}catch{}return b?(b=qO(b,v=>{if(o.uris&&o.uris[v])return _e.revive(o.uris[v])}),encodeURIComponent(JSON.stringify(b))):_},l=function(_,b){const v=o.uris&&o.uris[_];let C=_e.revive(v);return b?_.startsWith(Me.data+":")?_:(C||(C=_e.parse(_)),e4.asBrowserUri(C).toString(!0)):!C||_e.parse(_).toString()===C.toString()?_:(C.query&&(C=C.with({query:a(C.query)})),C.toString())},c=new DR.Renderer;c.image=(_,b,v)=>{let C=[],w=[];return _&&({href:_,dimensions:C}=_Z(_),w.push(`src="${kb(_)}"`)),v&&w.push(`alt="${kb(v)}"`),b&&w.push(`title="${kb(b)}"`),C.length&&(w=w.concat(C)),""},c.link=(_,b,v)=>typeof _!="string"?"":(_===v&&(v=MS(v)),b=typeof b=="string"?kb(MS(b)):"",_=MS(_),_=_.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
${v}`),c.paragraph=_=>`

${_}

`;const d=[];if(e.codeBlockRenderer&&(c.code=(_,b)=>{const v=v5.nextId(),C=e.codeBlockRenderer(b!=null?b:"",_);return d.push(C.then(w=>[v,w])),`
${_I(_)}
`}),e.actionHandler){const _=e.actionHandler.disposables.add(new bt(r,"click")),b=e.actionHandler.disposables.add(new bt(r,"auxclick"));e.actionHandler.disposables.add(ge.any(_.event,b.event)(v=>{const C=new Mr(v);if(!C.leftButton&&!C.middleButton)return;let w=C.target;if(!(w.tagName!=="A"&&(w=w.parentElement,!w||w.tagName!=="A")))try{let S=w.dataset.href;S&&(o.baseUri&&(S=Sy(_e.from(o.baseUri),S)),e.actionHandler.callback(S,C))}catch(S){Te(S)}finally{C.preventDefault()}}))}o.supportHtml||(t.sanitizer=_=>(o.isTrusted?_.match(/^(]+>)|(<\/\s*span>)$/):void 0)?_:"",t.sanitize=!0,t.silent=!0),t.renderer=c;let h=(i=o.value)!==null&&i!==void 0?i:"";h.length>1e5&&(h=`${h.substr(0,1e5)}\u2026`),o.supportThemeIcons&&(h=gZ(h));let u=DR.parse(h,t);o.supportThemeIcons&&(u=wd(u).map(b=>typeof b=="string"?b:b.outerHTML).join(""));const f=new DOMParser().parseFromString(kR(o,u),"text/html");if(f.body.querySelectorAll("img").forEach(_=>{const b=_.getAttribute("src");if(b){let v=b;try{o.baseUri&&(v=Sy(_e.from(o.baseUri),v))}catch{}_.src=l(v,!0)}}),f.body.querySelectorAll("a").forEach(_=>{const b=_.getAttribute("href");if(_.setAttribute("href",""),!b||/^data:|javascript:/i.test(b)||/^command:/i.test(b)&&!o.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(b))_.replaceWith(..._.childNodes);else{let v=l(b,!1);o.baseUri&&(v=Sy(_e.from(o.baseUri),b)),_.dataset.href=v}}),r.innerHTML=kR(o,f.body.innerHTML),d.length>0&&Promise.all(d).then(_=>{var b,v;if(s)return;const C=new Map(_),w=r.querySelectorAll("div[data-code]");for(const S of w){const k=C.get((b=S.dataset.code)!==null&&b!==void 0?b:"");k&&oc(S,k)}(v=e.asyncRenderCallback)===null||v===void 0||v.call(e)}),e.asyncRenderCallback)for(const _ of r.getElementsByTagName("img")){const b=n.add(G(_,"load",()=>{b.dispose(),e.asyncRenderCallback()}))}return{element:r,dispose:()=>{s=!0,n.dispose()}}}function Sy(o,e){return/^\w[\w\d+.-]*:/.test(e)?e:o.path.endsWith("/")?fA(o,e).toString():fA(L1(o),e).toString()}function kR(o,e){const{config:t,allowedSchemes:i}=Ise(o);QP("uponSanitizeAttribute",(s,r)=>{if(r.attrName==="style"||r.attrName==="class"){if(s.tagName==="SPAN"){if(r.attrName==="style"){r.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(r.attrValue);return}else if(r.attrName==="class"){r.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(r.attrValue);return}}r.keepAttr=!1;return}});const n=HH(i);try{return LH(e,Object.assign(Object.assign({},t),{RETURN_TRUSTED_TYPE:!0}))}finally{XP("uponSanitizeAttribute"),n.dispose()}}function Ise(o){const e=[Me.http,Me.https,Me.mailto,Me.data,Me.file,Me.vscodeFileResource,Me.vscodeRemote,Me.vscodeRemoteResource];return o.isTrusted&&e.push(Me.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:e}}var Ese=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xR=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Nse=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},yy;let ol=class R7{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new R,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Q;return{element:n.add(xse(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>Nse(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Ks);const c=yield eG(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=R7._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(46);an(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>this._openerService.open(i,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:e.isTrusted}).catch(Te),disposables:t}}}};ol._ttpTokenizer=(yy=window.trustedTypes)===null||yy===void 0?void 0:yy.createPolicy("tokenizeToString",{createHTML(o){return o}});ol=Ese([xR(1,Ht),xR(2,io)],ol);const IR=J;class Zu extends H{constructor(e,t,i=YZ){super(),this._renderDisposeables=this._register(new Q),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new y7),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new ol({editor:this._editor},t,i)),this._computer=new Tse(this._editor),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(46)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Zu.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=IR("div.hover-row.markdown-hover"),r=q(s,IR("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(61),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}Zu.ID="editor.contrib.modesGlyphHoverWidget";class Tse{constructor(e){this._editor=e,this._lineNumber=-1}get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||_g(s)||i.push(...lI(s).map(e))}return i}}var Ase=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Mse{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Rse(o,e,t,i,n){return Ase(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Pse(s))return new Mse(o,s,e)}catch(s){Pi(s)}})}function eT(o,e,t,i){const s=o.ordered(e).map((r,a)=>Rse(r,a,e,t,i));return ri.fromPromises(s).coalesce()}function Ose(o,e,t,i){return eT(o,e,t,i).map(n=>n.hover).toPromise()}ia("_executeHoverProvider",(o,e,t)=>{const i=o.get(de);return Ose(i.hoverProvider,e,t,ze.None)});function Pse(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Fse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$b=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ER=J;class Tr{constructor(e,t,i,n){this.owner=e,this.range=t,this.contents=i,this.ordinal=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let bC=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new Tr(this,e.range,[new Fn().appendText(p("modesContentHover.loading","Loading..."))],2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});typeof d=="number"&&l>=d&&r.push(new Tr(this,e.range,[{value:p("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],a++));for(const h of t){const u=h.range.startLineNumber===n?h.range.startColumn:1,g=h.range.endLineNumber===n?h.range.endColumn:s,f=h.options.hoverMessage;if(!f||_g(f))continue;const _=new L(e.range.startLineNumber,u,e.range.startLineNumber,g);r.push(new Tr(this,_,lI(f),a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return ri.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return ri.EMPTY;const s=new B(e.range.startLineNumber,e.range.startColumn);return eT(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!_g(r.hover.contents)).map(r=>{const a=r.hover.range?L.lift(r.hover.range):e.range;return new Tr(this,a,r.hover.contents,r.ordinal)})}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};bC=Fse([$b(1,Ht),$b(2,io),$b(3,ot),$b(4,de)],bC);function O7(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Q;for(const r of e)for(const a of r.contents){if(_g(a))continue;const l=ER("div.hover-row.markdown-hover"),c=q(l,ER("div.hover-contents")),d=s.add(new ol({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var P7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class NR{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let dx=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._dispoables=new Q,this._markers=[],this._nextIdx=-1,_e.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Bp(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=L.compareRangesUsingStarts(a,l)||Vt.compare(a.severity,l.severity):c=Vt.compare(a.severity,l.severity)||L.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:_e.isUri(e)?e:void 0,severities:Vt.Error|Vt.Warning|Vt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new NR(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=aI(this._markers,{resource:e.uri},(r,a)=>Bp(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i{const t=o.getColor(RU);if(t){const s=m.error.cssSelector;e.addRule(` +Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An error occurred:

"+_(E.message+"",!0)+"
";throw E}},Pe.Parser=cr,Pe.parser=cr.parse,Pe.Renderer=ko,Pe.TextRenderer=oa,Pe.Lexer=In,Pe.lexer=In.lex,Pe.Tokenizer=yt,Pe.Slugger=xo,Pe.parse=Pe;var hl=Pe.options,df=Pe.setOptions,hf=Pe.use,ul=Pe.walkTokens,Ih=Pe.parseInline,U_=Pe,Eh=cr.parse,$_=In.lex;e.Lexer=In,e.Parser=cr,e.Renderer=ko,e.Slugger=xo,e.TextRenderer=oa,e.Tokenizer=yt,e.getDefaults=a,e.lexer=$_,e.marked=Pe,e.options=hl,e.parse=U_,e.parseInline=Ih,e.parser=Eh,e.setOptions=df,e.use=hf,e.walkTokens=ul,Object.defineProperty(e,"__esModule",{value:!0})})})();var DR=M7||exports;function xse(o,e={},t={}){var i;const n=new Q;let s=!1;const r=sN(e),a=function(_){let b;try{b=Qv(decodeURIComponent(_))}catch{}return b?(b=qO(b,v=>{if(o.uris&&o.uris[v])return _e.revive(o.uris[v])}),encodeURIComponent(JSON.stringify(b))):_},l=function(_,b){const v=o.uris&&o.uris[_];let C=_e.revive(v);return b?_.startsWith(Me.data+":")?_:(C||(C=_e.parse(_)),e4.asBrowserUri(C).toString(!0)):!C||_e.parse(_).toString()===C.toString()?_:(C.query&&(C=C.with({query:a(C.query)})),C.toString())},c=new DR.Renderer;c.image=(_,b,v)=>{let C=[],w=[];return _&&({href:_,dimensions:C}=_Z(_),w.push(`src="${kb(_)}"`)),v&&w.push(`alt="${kb(v)}"`),b&&w.push(`title="${kb(b)}"`),C.length&&(w=w.concat(C)),""},c.link=(_,b,v)=>typeof _!="string"?"":(_===v&&(v=MS(v)),b=typeof b=="string"?kb(MS(b)):"",_=MS(_),_=_.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`${v}`),c.paragraph=_=>`

${_}

`;const d=[];if(e.codeBlockRenderer&&(c.code=(_,b)=>{const v=vF.nextId(),C=e.codeBlockRenderer(b!=null?b:"",_);return d.push(C.then(w=>[v,w])),`
${_I(_)}
`}),e.actionHandler){const _=e.actionHandler.disposables.add(new bt(r,"click")),b=e.actionHandler.disposables.add(new bt(r,"auxclick"));e.actionHandler.disposables.add(ge.any(_.event,b.event)(v=>{const C=new Mr(v);if(!C.leftButton&&!C.middleButton)return;let w=C.target;if(!(w.tagName!=="A"&&(w=w.parentElement,!w||w.tagName!=="A")))try{let S=w.dataset.href;S&&(o.baseUri&&(S=Sy(_e.from(o.baseUri),S)),e.actionHandler.callback(S,C))}catch(S){Te(S)}finally{C.preventDefault()}}))}o.supportHtml||(t.sanitizer=_=>(o.isTrusted?_.match(/^(]+>)|(<\/\s*span>)$/):void 0)?_:"",t.sanitize=!0,t.silent=!0),t.renderer=c;let h=(i=o.value)!==null&&i!==void 0?i:"";h.length>1e5&&(h=`${h.substr(0,1e5)}\u2026`),o.supportThemeIcons&&(h=gZ(h));let u=DR.parse(h,t);o.supportThemeIcons&&(u=wd(u).map(b=>typeof b=="string"?b:b.outerHTML).join(""));const f=new DOMParser().parseFromString(kR(o,u),"text/html");if(f.body.querySelectorAll("img").forEach(_=>{const b=_.getAttribute("src");if(b){let v=b;try{o.baseUri&&(v=Sy(_e.from(o.baseUri),v))}catch{}_.src=l(v,!0)}}),f.body.querySelectorAll("a").forEach(_=>{const b=_.getAttribute("href");if(_.setAttribute("href",""),!b||/^data:|javascript:/i.test(b)||/^command:/i.test(b)&&!o.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(b))_.replaceWith(..._.childNodes);else{let v=l(b,!1);o.baseUri&&(v=Sy(_e.from(o.baseUri),b)),_.dataset.href=v}}),r.innerHTML=kR(o,f.body.innerHTML),d.length>0&&Promise.all(d).then(_=>{var b,v;if(s)return;const C=new Map(_),w=r.querySelectorAll("div[data-code]");for(const S of w){const k=C.get((b=S.dataset.code)!==null&&b!==void 0?b:"");k&&oc(S,k)}(v=e.asyncRenderCallback)===null||v===void 0||v.call(e)}),e.asyncRenderCallback)for(const _ of r.getElementsByTagName("img")){const b=n.add(G(_,"load",()=>{b.dispose(),e.asyncRenderCallback()}))}return{element:r,dispose:()=>{s=!0,n.dispose()}}}function Sy(o,e){return/^\w[\w\d+.-]*:/.test(e)?e:o.path.endsWith("/")?fA(o,e).toString():fA(L1(o),e).toString()}function kR(o,e){const{config:t,allowedSchemes:i}=Ise(o);QP("uponSanitizeAttribute",(s,r)=>{if(r.attrName==="style"||r.attrName==="class"){if(s.tagName==="SPAN"){if(r.attrName==="style"){r.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(r.attrValue);return}else if(r.attrName==="class"){r.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(r.attrValue);return}}r.keepAttr=!1;return}});const n=HH(i);try{return LH(e,Object.assign(Object.assign({},t),{RETURN_TRUSTED_TYPE:!0}))}finally{XP("uponSanitizeAttribute"),n.dispose()}}function Ise(o){const e=[Me.http,Me.https,Me.mailto,Me.data,Me.file,Me.vscodeFileResource,Me.vscodeRemote,Me.vscodeRemoteResource];return o.isTrusted&&e.push(Me.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:e}}var Ese=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xR=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Nse=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},yy;let ol=class R7{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new R,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Q;return{element:n.add(xse(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>Nse(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Ks);const c=yield eG(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=R7._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(46);an(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>this._openerService.open(i,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:e.isTrusted}).catch(Te),disposables:t}}}};ol._ttpTokenizer=(yy=window.trustedTypes)===null||yy===void 0?void 0:yy.createPolicy("tokenizeToString",{createHTML(o){return o}});ol=Ese([xR(1,Ht),xR(2,io)],ol);const IR=J;class Zu extends H{constructor(e,t,i=YZ){super(),this._renderDisposeables=this._register(new Q),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new y7),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new ol({editor:this._editor},t,i)),this._computer=new Tse(this._editor),this._hoverOperation=this._register(new L7(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(46)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Zu.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=IR("div.hover-row.markdown-hover"),r=q(s,IR("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(61),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}Zu.ID="editor.contrib.modesGlyphHoverWidget";class Tse{constructor(e){this._editor=e,this._lineNumber=-1}get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||_g(s)||i.push(...lI(s).map(e))}return i}}var Ase=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Mse{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Rse(o,e,t,i,n){return Ase(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Pse(s))return new Mse(o,s,e)}catch(s){Pi(s)}})}function eT(o,e,t,i){const s=o.ordered(e).map((r,a)=>Rse(r,a,e,t,i));return ri.fromPromises(s).coalesce()}function Ose(o,e,t,i){return eT(o,e,t,i).map(n=>n.hover).toPromise()}ia("_executeHoverProvider",(o,e,t)=>{const i=o.get(de);return Ose(i.hoverProvider,e,t,ze.None)});function Pse(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Fse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$b=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ER=J;class Tr{constructor(e,t,i,n){this.owner=e,this.range=t,this.contents=i,this.ordinal=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let bC=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new Tr(this,e.range,[new Fn().appendText(p("modesContentHover.loading","Loading..."))],2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});typeof d=="number"&&l>=d&&r.push(new Tr(this,e.range,[{value:p("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],a++));for(const h of t){const u=h.range.startLineNumber===n?h.range.startColumn:1,g=h.range.endLineNumber===n?h.range.endColumn:s,f=h.options.hoverMessage;if(!f||_g(f))continue;const _=new L(e.range.startLineNumber,u,e.range.startLineNumber,g);r.push(new Tr(this,_,lI(f),a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return ri.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return ri.EMPTY;const s=new B(e.range.startLineNumber,e.range.startColumn);return eT(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!_g(r.hover.contents)).map(r=>{const a=r.hover.range?L.lift(r.hover.range):e.range;return new Tr(this,a,r.hover.contents,r.ordinal)})}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};bC=Fse([$b(1,Ht),$b(2,io),$b(3,ot),$b(4,de)],bC);function O7(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Q;for(const r of e)for(const a of r.contents){if(_g(a))continue;const l=ER("div.hover-row.markdown-hover"),c=q(l,ER("div.hover-contents")),d=s.add(new ol({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var P7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},vC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class NR{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let dx=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._dispoables=new Q,this._markers=[],this._nextIdx=-1,_e.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Bp(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=L.compareRangesUsingStarts(a,l)||Vt.compare(a.severity,l.severity):c=Vt.compare(a.severity,l.severity)||L.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:_e.isUri(e)?e:void 0,severities:Vt.Error|Vt.Warning|Vt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new NR(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=aI(this._markers,{resource:e.uri},(r,a)=>Bp(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i{const t=o.getColor(RU);if(t){const s=m.error.cssSelector;e.addRule(` .monaco-editor .zone-widget ${s}, .markers-panel .marker-icon${s}, .text-search-provider-messages .providerMessage ${s}, @@ -712,13 +712,13 @@ Please report this to https://github.com/markedjs/marked.`,U.silent)return"

An .extension-editor ${s} { color: ${n}; } - `)}});var Bse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Uh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Wse{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Q,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(ki(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new iF(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){nt(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=jr(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);Si(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=J("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=f=>{this._openerService.open(s.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()};const g=q(this._codeLink,J("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(Si(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),rn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(61)*.66)}px`,this._lines+=1;for(const g of n){const f=document.createElement("div"),_=document.createElement("a");_.classList.add("filename"),_.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,_.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(_,g);const b=document.createElement("span");b.innerText=g.message,f.appendChild(_),f.appendChild(b),this._lines+=1,u.appendChild(f)}}const c=this._editor.getOption(46),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Vt.Error:t=p("Error","Error");break;case Vt.Warning:t=p("Warning","Warning");break;case Vt.Info:t=p("Info","Info");break;case Vt.Hint:t=p("Hint","Hint");break}let i=p("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let Ig=class B7 extends fC{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Q,this._onDidSelectRelatedInformation=new R,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Vt.Warning,this._backgroundColor=W.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Use);let t=gx,i=Vse;this._severity===Vt.Warning?(t=A0,i=Hse):this._severity===Vt.Info&&(t=fx,i=zse);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(s7),secondaryHeadingColor:e.getColor(o7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(B7.TitleMenu,this._contextKeyService);jne(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,J(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Wse(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=L.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?p("problems","{0} of {1} problems",t,i):p("change","{0} of {1} problem",t,i);this.setTitle(Js(a.uri),l)}this._icon.className=`codicon ${ux.className(Vt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};Ig.TitleMenu=new M("gotoErrorTitleMenu");Ig=Bse([Uh(1,Ct),Uh(2,io),Uh(3,ph),Uh(4,Ae),Uh(5,Ee),Uh(6,bg)],Ig);const TR=em(Or,x4),AR=em(vs,ag),MR=em(zn,Cv),gx=T("editorMarkerNavigationError.background",{dark:TR,light:TR,hcDark:We,hcLight:We},p("editorMarkerNavigationError","Editor marker navigation widget error color.")),Vse=T("editorMarkerNavigationError.headerBackground",{dark:fe(gx,.1),light:fe(gx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),A0=T("editorMarkerNavigationWarning.background",{dark:AR,light:AR,hcDark:We,hcLight:We},p("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Hse=T("editorMarkerNavigationWarning.headerBackground",{dark:fe(A0,.1),light:fe(A0,.1),hcDark:"#0C141F",hcLight:fe(A0,.2)},p("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),fx=T("editorMarkerNavigationInfo.background",{dark:MR,light:MR,hcDark:We,hcLight:We},p("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),zse=T("editorMarkerNavigationInfo.headerBackground",{dark:fe(fx,.1),light:fe(fx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Use=T("editorMarkerNavigation.background",{dark:wi,light:wi,hcDark:wi,hcLight:wi},p("editorMarkerNavigationBackground","Editor marker navigation widget background."));var $se=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},W7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let bc=class M0{constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Q,this._editor=e,this._widgetVisible=V7.bindTo(this._contextKeyService)}static get(e){return e.getContribution(M0.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(Ig,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!L.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:L.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new B(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return W7(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=M0.get(r))===null||i===void 0||i.close(),(n=M0.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};bc.ID="editor.contrib.markerController";bc=$se([jb(1,F7),jb(2,Ee),jb(3,ct),jb(4,Ae)],bc);class cw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return W7(this,void 0,void 0,function*(){t.hasModel()&&((i=bc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Xl extends cw{constructor(){super(!0,!1,{id:Xl.ID,label:Xl.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:Xl.LABEL,icon:mi("marker-navigation-next",m.arrowDown,p("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Xl.ID="editor.action.marker.next";Xl.LABEL=p("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class kd extends cw{constructor(){super(!1,!1,{id:kd.ID,label:kd.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:kd.LABEL,icon:mi("marker-navigation-previous",m.arrowUp,p("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}kd.ID="editor.action.marker.prev";kd.LABEL=p("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class jse extends cw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:p("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Kse extends cw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:p("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}tt(bc.ID,bc);ie(Xl);ie(kd);ie(jse);ie(Kse);const V7=new le("markersNavigationVisible",!1),qse=xi.bindToContribution(bc.get);ee(new qse({id:"closeMarkersNavigation",precondition:V7,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var Gse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ly=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ao=J;class Zse{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const RR={type:1,filter:{include:Ze.QuickFix},triggerAction:bn.QuickFixHover};let px=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new L(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new Zse(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return H.None;const i=new Q;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>Vt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=ao("div.hover-row"),n=q(i,ao("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,ao("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=ao("span");if(s){const f=q(d,ao("span"));f.innerText=s}const h=q(d,ao("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(G(h,"click",f=>{this._openerService.open(a.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()}));const u=q(h,ao("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,ao("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(rn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const f=q(n,ao("div"));f.style.marginTop="8px";const _=q(f,ao("a"));_.innerText=`${Js(h)}(${u}, ${g}): `,_.style.cursor="pointer",t.add(G(_,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Te)}));const b=q(f,ao("span"));b.innerText=d,this._editor.applyFontInfo(b)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===Vt.Error||t.marker.severity===Vt.Warning||t.marker.severity===Vt.Info)&&e.statusBar.addAction({label:p("view problem","View Problem"),commandId:Xl.ID,run:()=>{var n;e.hide(),(n=bc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(83)){const n=e.statusBar.append(ao("div"));this.recentMarkerCodeActionsInfo&&(eC.makeKey(this.recentMarkerCodeActionsInfo.marker)===eC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=p("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?H.None:i.add(Ad(()=>n.textContent=p("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Be(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=p("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Be(()=>{l||a.dispose()})),e.statusBar.addAction({label:p("quick fixes","Quick Fix..."),commandId:ef.Id,run:c=>{l=!0;const d=fc.get(this._editor),h=on(c);e.hide(),d==null||d.showCodeActions(RR,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Te)}}getCodeActions(e){return Ri(t=>zN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),RR,Ch.None,t))}};px=Gse([Ly(1,KI),Ly(2,io),Ly(3,de)],px);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${i}; }`)});var Yse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vc=class H7{constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Q,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(55)&&(this._unhookEvents(),this._hookEvents())})}static get(e){return e.getContribution(H7.ID)}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(55);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===Dd.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===Zu.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r;const a=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&a.type===9&&a.detail===Dd.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&a.type===9&&a.detail===Dd.ID&&((n=this._contentWidget)===null||n===void 0?void 0:n.isColorPickerVisible())||this._isHoverSticky&&a.type===12&&a.detail===Zu.ID)return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(s=this._glyphWidget)===null||s===void 0||s.hide();return}if(a.type===2&&a.position){(r=this._contentWidget)===null||r===void 0||r.hide(),this._glyphWidget||(this._glyphWidget=new Zu(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(a.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(mC,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i){this._getOrCreateContentWidget().startShowingAtRange(e,t,i)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};vc.ID="editor.contrib.hover";vc=Yse([Kb(1,Ae),Kb(2,io),Kb(3,Ht),Kb(4,Ee)],vc);class Qse extends ce{constructor(){super({id:"editor.action.showHover",label:p({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=vc.get(t);if(!i)return;const n=t.getPosition(),s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,r)}}class Xse extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:p({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=vc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=Xd.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,!0)})}}tt(vc.ID,vc);ie(Qse);ie(Xse);xh.register(bC);xh.register(px);Et((o,e)=>{const t=o.getColor(Fz);t&&e.addRule(`.monaco-editor .hoverHighlight { background-color: ${t}; }`);const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .monaco-hover { background-color: ${i}; }`);const n=o.getColor(aE);n&&(e.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${n.transparent(.5)}; }`));const s=o.getColor(h1);s&&e.addRule(`.monaco-editor .monaco-hover a { color: ${s}; }`);const r=o.getColor(u1);r&&e.addRule(`.monaco-editor .monaco-hover a:hover { color: ${r}; }`);const a=o.getColor(rE);a&&e.addRule(`.monaco-editor .monaco-hover { color: ${a}; }`);const l=o.getColor(Bz);l&&e.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${l}; }`);const c=o.getColor(k4);c&&e.addRule(`.monaco-editor .monaco-hover code { background-color: ${c}; }`)});class mx extends H{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==Y3||!t.range)return;const i=this._editor.getContribution(vc.ID);if(!!i&&!i.isColorPickerVisible()){const n=new L(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,!1)}}}mx.ID="editor.contrib.colorContribution";tt(mx.ID,mx);xh.register(Kk);var z7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function tT(o){return{asString:()=>z7(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function Jse(o,e,t){return{asString:()=>z7(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class U7{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?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))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const $7=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n0){const i=o.dataTransfer.getData(CC.EDITORS);if(i)try{t.push(...Qv(i))}catch{}else try{const r=o.dataTransfer.getData(__.RESOURCES);t.push(...toe(r))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let r=0;r0){const{selection:n,uri:s}=r5(_e.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class ioe{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const j7={DragAndDropContribution:"workbench.contributions.dragAndDrop"};zt.add(j7.DragAndDropContribution,new ioe);var noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function _x(o){const e=new U7;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,tT(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,soe(n))}}return e}function soe(o){const e=o.path?_e.parse(o.path):void 0;return Jse(o.name,e,()=>noe(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const ooe=Object.freeze([CC.EDITORS,CC.FILES,__.RESOURCES]);function roe(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Vn.uriList))){const n=eoe(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?_e.file(r.path).toString():r.name)}n.length&&o.replace(Vn.uriList,tT(iT.create(n)))}for(const n of ooe)o.delete(n)}const iT=Object.freeze({create:o=>Qa(o.map(e=>e.toString())).join(`\r + `)}});var Bse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Uh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Wse{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Q,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(ki(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new i5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){nt(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=jr(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);Si(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=J("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=f=>{this._openerService.open(s.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()};const g=q(this._codeLink,J("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(Si(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),rn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(61)*.66)}px`,this._lines+=1;for(const g of n){const f=document.createElement("div"),_=document.createElement("a");_.classList.add("filename"),_.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,_.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(_,g);const b=document.createElement("span");b.innerText=g.message,f.appendChild(_),f.appendChild(b),this._lines+=1,u.appendChild(f)}}const c=this._editor.getOption(46),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Vt.Error:t=p("Error","Error");break;case Vt.Warning:t=p("Warning","Warning");break;case Vt.Info:t=p("Info","Info");break;case Vt.Hint:t=p("Hint","Hint");break}let i=p("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let Ig=class B7 extends fC{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Q,this._onDidSelectRelatedInformation=new R,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Vt.Warning,this._backgroundColor=W.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Use);let t=gx,i=Vse;this._severity===Vt.Warning?(t=A0,i=Hse):this._severity===Vt.Info&&(t=fx,i=zse);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(s7),secondaryHeadingColor:e.getColor(o7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(B7.TitleMenu,this._contextKeyService);jne(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,J(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Wse(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=L.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?p("problems","{0} of {1} problems",t,i):p("change","{0} of {1} problem",t,i);this.setTitle(Js(a.uri),l)}this._icon.className=`codicon ${ux.className(Vt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};Ig.TitleMenu=new M("gotoErrorTitleMenu");Ig=Bse([Uh(1,Ct),Uh(2,io),Uh(3,ph),Uh(4,Ae),Uh(5,Ee),Uh(6,bg)],Ig);const TR=em(Or,x4),AR=em(vs,ag),MR=em(zn,Cv),gx=T("editorMarkerNavigationError.background",{dark:TR,light:TR,hcDark:We,hcLight:We},p("editorMarkerNavigationError","Editor marker navigation widget error color.")),Vse=T("editorMarkerNavigationError.headerBackground",{dark:fe(gx,.1),light:fe(gx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),A0=T("editorMarkerNavigationWarning.background",{dark:AR,light:AR,hcDark:We,hcLight:We},p("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Hse=T("editorMarkerNavigationWarning.headerBackground",{dark:fe(A0,.1),light:fe(A0,.1),hcDark:"#0C141F",hcLight:fe(A0,.2)},p("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),fx=T("editorMarkerNavigationInfo.background",{dark:MR,light:MR,hcDark:We,hcLight:We},p("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),zse=T("editorMarkerNavigationInfo.headerBackground",{dark:fe(fx,.1),light:fe(fx,.1),hcDark:null,hcLight:null},p("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Use=T("editorMarkerNavigation.background",{dark:wi,light:wi,hcDark:wi,hcLight:wi},p("editorMarkerNavigationBackground","Editor marker navigation widget background."));var $se=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},jb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},W7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let bc=class M0{constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Q,this._editor=e,this._widgetVisible=V7.bindTo(this._contextKeyService)}static get(e){return e.getContribution(M0.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(Ig,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!L.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:L.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new B(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return W7(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=M0.get(r))===null||i===void 0||i.close(),(n=M0.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};bc.ID="editor.contrib.markerController";bc=$se([jb(1,F7),jb(2,Ee),jb(3,ct),jb(4,Ae)],bc);class cw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return W7(this,void 0,void 0,function*(){t.hasModel()&&((i=bc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Xl extends cw{constructor(){super(!0,!1,{id:Xl.ID,label:Xl.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:Xl.LABEL,icon:mi("marker-navigation-next",m.arrowDown,p("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Xl.ID="editor.action.marker.next";Xl.LABEL=p("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class kd extends cw{constructor(){super(!1,!1,{id:kd.ID,label:kd.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:Ig.TitleMenu,title:kd.LABEL,icon:mi("marker-navigation-previous",m.arrowUp,p("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}kd.ID="editor.action.marker.prev";kd.LABEL=p("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class jse extends cw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:p("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Kse extends cw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:p("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:M.MenubarGoMenu,title:p({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}tt(bc.ID,bc);ie(Xl);ie(kd);ie(jse);ie(Kse);const V7=new le("markersNavigationVisible",!1),qse=xi.bindToContribution(bc.get);ee(new qse({id:"closeMarkersNavigation",precondition:V7,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var Gse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ly=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const ao=J;class Zse{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const RR={type:1,filter:{include:Ze.QuickFix},triggerAction:bn.QuickFixHover};let px=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new L(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new Zse(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return H.None;const i=new Q;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>Vt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=ao("div.hover-row"),n=q(i,ao("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,ao("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=ao("span");if(s){const f=q(d,ao("span"));f.innerText=s}const h=q(d,ao("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(G(h,"click",f=>{this._openerService.open(a.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()}));const u=q(h,ao("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,ao("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(rn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const f=q(n,ao("div"));f.style.marginTop="8px";const _=q(f,ao("a"));_.innerText=`${Js(h)}(${u}, ${g}): `,_.style.cursor="pointer",t.add(G(_,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Te)}));const b=q(f,ao("span"));b.innerText=d,this._editor.applyFontInfo(b)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===Vt.Error||t.marker.severity===Vt.Warning||t.marker.severity===Vt.Info)&&e.statusBar.addAction({label:p("view problem","View Problem"),commandId:Xl.ID,run:()=>{var n;e.hide(),(n=bc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(83)){const n=e.statusBar.append(ao("div"));this.recentMarkerCodeActionsInfo&&(eC.makeKey(this.recentMarkerCodeActionsInfo.marker)===eC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=p("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?H.None:i.add(Ad(()=>n.textContent=p("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Be(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=p("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Be(()=>{l||a.dispose()})),e.statusBar.addAction({label:p("quick fixes","Quick Fix..."),commandId:ef.Id,run:c=>{l=!0;const d=fc.get(this._editor),h=on(c);e.hide(),d==null||d.showCodeActions(RR,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Te)}}getCodeActions(e){return Ri(t=>zN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),RR,Ch.None,t))}};px=Gse([Ly(1,KI),Ly(2,io),Ly(3,de)],px);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${i}; }`)});var Yse=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let vc=class H7{constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Q,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(55)&&(this._unhookEvents(),this._hookEvents())})}static get(e){return e.getContribution(H7.ID)}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(55);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===Dd.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===Zu.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r;const a=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&a.type===9&&a.detail===Dd.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&a.type===9&&a.detail===Dd.ID&&((n=this._contentWidget)===null||n===void 0?void 0:n.isColorPickerVisible())||this._isHoverSticky&&a.type===12&&a.detail===Zu.ID)return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(s=this._glyphWidget)===null||s===void 0||s.hide();return}if(a.type===2&&a.position){(r=this._contentWidget)===null||r===void 0||r.hide(),this._glyphWidget||(this._glyphWidget=new Zu(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(a.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(mC,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i){this._getOrCreateContentWidget().startShowingAtRange(e,t,i)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};vc.ID="editor.contrib.hover";vc=Yse([Kb(1,Ae),Kb(2,io),Kb(3,Ht),Kb(4,Ee)],vc);class Qse extends ce{constructor(){super({id:"editor.action.showHover",label:p({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=vc.get(t);if(!i)return;const n=t.getPosition(),s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,r)}}class Xse extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:p({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=vc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new L(n.lineNumber,n.column,n.lineNumber,n.column),r=Xd.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,!0)})}}tt(vc.ID,vc);ie(Qse);ie(Xse);xh.register(bC);xh.register(px);Et((o,e)=>{const t=o.getColor(Fz);t&&e.addRule(`.monaco-editor .hoverHighlight { background-color: ${t}; }`);const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .monaco-hover { background-color: ${i}; }`);const n=o.getColor(aE);n&&(e.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${n.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${n.transparent(.5)}; }`));const s=o.getColor(h1);s&&e.addRule(`.monaco-editor .monaco-hover a { color: ${s}; }`);const r=o.getColor(u1);r&&e.addRule(`.monaco-editor .monaco-hover a:hover { color: ${r}; }`);const a=o.getColor(rE);a&&e.addRule(`.monaco-editor .monaco-hover { color: ${a}; }`);const l=o.getColor(Bz);l&&e.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${l}; }`);const c=o.getColor(k4);c&&e.addRule(`.monaco-editor .monaco-hover code { background-color: ${c}; }`)});class mx extends H{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==Y3||!t.range)return;const i=this._editor.getContribution(vc.ID);if(!!i&&!i.isColorPickerVisible()){const n=new L(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,!1)}}}mx.ID="editor.contrib.colorContribution";tt(mx.ID,mx);xh.register(Kk);var z7=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function tT(o){return{asString:()=>z7(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function Jse(o,e,t){return{asString:()=>z7(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class U7{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?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))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const $7=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n0){const i=o.dataTransfer.getData(CC.EDITORS);if(i)try{t.push(...Qv(i))}catch{}else try{const r=o.dataTransfer.getData(__.RESOURCES);t.push(...toe(r))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let r=0;r0){const{selection:n,uri:s}=rF(_e.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class ioe{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const j7={DragAndDropContribution:"workbench.contributions.dragAndDrop"};zt.add(j7.DragAndDropContribution,new ioe);var noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function _x(o){const e=new U7;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,tT(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,soe(n))}}return e}function soe(o){const e=o.path?_e.parse(o.path):void 0;return Jse(o.name,e,()=>noe(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const ooe=Object.freeze([CC.EDITORS,CC.FILES,__.RESOURCES]);function roe(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Vn.uriList))){const n=eoe(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?_e.file(r.path).toString():r.name)}n.length&&o.replace(Vn.uriList,tT(iT.create(n)))}for(const n of ooe)o.delete(n)}const iT=Object.freeze({create:o=>Qa(o.map(e=>e.toString())).join(`\r `),parse:o=>o.split(`\r `).filter(e=>!e.startsWith("#"))});function OR(o,e=Yi){return dq(o,e)?o.charAt(0).toUpperCase()+o.slice(1):o}var aoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},loe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class PR{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(i!==void 0)return i}}}class FR{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let i=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!i&&this._overtypingCapturer){const s=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);s&&(i=s.value,n=s.multiline)}if(i&&n&&e.snippet){const s=this._model.getLineContent(this._selection.startLineNumber),r=_t(s,0,this._selection.startColumn-1);let a=r;e.snippet.walk(c=>c===e?!1:(c instanceof Bn&&(a=_t(jr(c.value).pop())),!0));const l=Nd(a,r);i=i.replace(/(\r\n|\r|\n)(.*)/g,(c,d,h)=>`${d}${a.substr(l)}${h}`)}return i}else{if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){const i=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return i&&i.word||void 0}else{if(t==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(t==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(t==="CURSOR_INDEX")return String(this._selectionIdx);if(t==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}}class BR{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if(t==="TM_FILENAME")return fd(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){const i=fd(this._model.uri.fsPath),n=i.lastIndexOf(".");return n<=0?i:i.slice(0,n)}else{if(t==="TM_DIRECTORY")return sP(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(L1(this._model.uri));if(t==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(t==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}}class WR{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if(e.name!=="CLIPBOARD")return;const t=this._readClipboardText();if(!!t){if(this._spread){const i=t.split(/\r\n|\n|\r/).filter(n=>!dP(n));if(i.length===this._selectionCount)return i[this._selectionIdx]}return t}}}let wC=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(!!n){if(t==="LINE_COMMENT")return n.lineCommentToken||void 0;if(t==="BLOCK_COMMENT_START")return n.blockCommentStartToken||void 0;if(t==="BLOCK_COMMENT_END")return n.blockCommentEndToken||void 0}}};wC=aoe([loe(2,si)],wC);class $o{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if(t==="CURRENT_YEAR")return String(this._date.getFullYear());if(t==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(t==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(t==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(t==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(t==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(t==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(t==="CURRENT_DAY_NAME")return $o.dayNames[this._date.getDay()];if(t==="CURRENT_DAY_NAME_SHORT")return $o.dayNamesShort[this._date.getDay()];if(t==="CURRENT_MONTH_NAME")return $o.monthNames[this._date.getMonth()];if(t==="CURRENT_MONTH_NAME_SHORT")return $o.monthNamesShort[this._date.getMonth()];if(t==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3))}}$o.dayNames=[p("Sunday","Sunday"),p("Monday","Monday"),p("Tuesday","Tuesday"),p("Wednesday","Wednesday"),p("Thursday","Thursday"),p("Friday","Friday"),p("Saturday","Saturday")];$o.dayNamesShort=[p("SundayShort","Sun"),p("MondayShort","Mon"),p("TuesdayShort","Tue"),p("WednesdayShort","Wed"),p("ThursdayShort","Thu"),p("FridayShort","Fri"),p("SaturdayShort","Sat")];$o.monthNames=[p("January","January"),p("February","February"),p("March","March"),p("April","April"),p("May","May"),p("June","June"),p("July","July"),p("August","August"),p("September","September"),p("October","October"),p("November","November"),p("December","December")];$o.monthNamesShort=[p("JanuaryShort","Jan"),p("FebruaryShort","Feb"),p("MarchShort","Mar"),p("AprilShort","Apr"),p("MayShort","May"),p("JuneShort","Jun"),p("JulyShort","Jul"),p("AugustShort","Aug"),p("SeptemberShort","Sep"),p("OctoberShort","Oct"),p("NovemberShort","Nov"),p("DecemberShort","Dec")];class VR{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=hY(this._workspaceService.getWorkspace());if(!!t){if(e.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(t);if(e.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(t)}}_resolveWorkspaceName(e){if(lM(e))return fd(e.uri.path);let t=fd(e.configPath.path);return t.endsWith(HD)&&(t=t.substr(0,t.length-HD.length-1)),t}_resoveWorkspacePath(e){if(lM(e))return OR(e.uri.fsPath);const t=fd(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?OR(i):"/"}}class HR{resolve(e){const{name:t}=e;if(t==="RANDOM")return Math.random().toString().slice(-6);if(t==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(t==="UUID")return $7()}}var coe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},doe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Ms{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=DT(t.placeholders,go.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations(t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),s=this._snippet.fullLen(i),r=L.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+s)),a=i.isFinalTabstop?Ms._decor.inactiveFinal:Ms._decor.inactive,l=t.addDecoration(r,a);this._placeholderDecorations.set(i,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const n=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx])if(s.transform){const r=this._placeholderDecorations.get(s),a=this._editor.getModel().getDecorationRange(r),l=this._editor.getModel().getValueInRange(a),c=s.transform.resolve(l).split(/\r\n|\r|\n/);for(let d=1;d0&&this._editor.executeEdits("snippet.placeholderTransform",n)}let t=!1;e===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations(n=>{const s=new Set,r=[];for(const a of this._placeholderGroups[this._placeholderGroupsIdx]){const l=this._placeholderDecorations.get(a),c=this._editor.getModel().getDecorationRange(l);r.push(new oe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(a),n.changeDecorationOptions(l,a.isFinalTabstop?Ms._decor.activeFinal:Ms._decor.active),s.add(a);for(const d of this._snippet.enclosingPlaceholders(a)){const h=this._placeholderDecorations.get(d);n.changeDecorationOptions(h,d.isFinalTabstop?Ms._decor.activeFinal:Ms._decor.active),s.add(d)}}for(const[a,l]of this._placeholderDecorations)s.has(a)||n.changeDecorationOptions(l,a.isFinalTabstop?Ms._decor.inactiveFinal:Ms._decor.inactive);return r});return t?this.move(e):i!=null?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof go){const i=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(i).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){return this._snippet.placeholders.length===0||this._snippet.placeholders.length===1&&this._snippet.placeholders[0].isFinalTabstop}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const s=this._placeholderDecorations.get(n),r=this._editor.getModel().getDecorationRange(s);if(!r){e.delete(n.index);break}i.push(r)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(e!=null&&e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);if(!!i)return{range:i,choice:e.choice}}get hasChoice(){let e=!1;return this._snippet.walk(t=>(e=t instanceof nf,!e)),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const s=e.shift();console.assert(s._offset!==-1),console.assert(!s._placeholderDecorations);const r=s._snippet.placeholderInfo.last.index;for(const l of s._snippet.placeholderInfo.all)l.isFinalTabstop?l.index=n.index+(r+1)/this._nestingLevel:l.index=n.index+l.index/this._nestingLevel;this._snippet.replace(n,s._snippet.children);const a=this._placeholderDecorations.get(n);i.removeDecoration(a),this._placeholderDecorations.delete(n);for(const l of s._snippet.placeholders){const c=s._snippet.offset(l),d=s._snippet.fullLen(l),h=L.fromPositions(t.getPositionAt(s._offset+c),t.getPositionAt(s._offset+c+d)),u=i.addDecoration(h,Ms._decor.inactive);this._placeholderDecorations.set(l,u)}}this._placeholderGroups=DT(this._snippet.placeholders,go.compareByIndex)})}}Ms._decor={active:Ne.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:Ne.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:Ne.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:Ne.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const zR={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let SC=class ba{constructor(e,t,i=zR,n){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}static adjustWhitespace(e,t,i,n,s){const r=e.getLineContent(t.lineNumber),a=_t(r,0,t.column-1);let l;return i.walk(c=>{if(!(c instanceof Bn)||c.parent instanceof nf)return!0;const d=c.value.split(/\r\n|\r|\n/);if(n){const u=i.offset(c);if(u===0)d[0]=e.normalizeIndentation(d[0]);else{l=l!=null?l:i.toString();const g=l.charCodeAt(u-1);(g===10||g===13)&&(d[0]=e.normalizeIndentation(a+d[0]))}for(let g=1;gS.get(_m)),f=e.invokeWithinContext(S=>new BR(S.get(bg),u)),_=()=>a,b=u.getValueInRange(ba.adjustSelection(u,e.getSelection(),i,0)),v=u.getValueInRange(ba.adjustSelection(u,e.getSelection(),0,n)),C=u.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),w=e.getSelections().map((S,k)=>({selection:S,idx:k})).sort((S,k)=>L.compareRangesUsingStarts(S.selection,k.selection));for(const{selection:S,idx:k}of w){let x=ba.adjustSelection(u,S,i,0),y=ba.adjustSelection(u,S,0,n);b!==u.getValueInRange(x)&&(x=S),v!==u.getValueInRange(y)&&(y=S);const D=S.setStartPosition(x.startLineNumber,x.startColumn).setEndPosition(y.endLineNumber,y.endColumn),I=new _c().parse(t,!0,s),O=D.getStartPosition(),F=ba.adjustWhitespace(u,O,I,r||k>0&&C!==u.getLineFirstNonWhitespaceColumn(S.positionLineNumber),!0);I.resolveVariables(new PR([f,new WR(_,k,w.length,e.getOption(73)==="spread"),new FR(u,S,k,l),new wC(u,S,c),new $o,new VR(g),new HR])),d[k]=Ft.replace(D,I.toString()),d[k].identifier={major:k,minor:0},d[k]._isTracked=!0,h[k]=new Ms(e,I,F)}return{edits:d,snippets:h}}static createEditsAndSnippetsFromEdits(e,t,i,n,s,r,a){if(!e.hasModel()||t.length===0)return{edits:[],snippets:[]};const l=[],c=e.getModel(),d=new _c,h=new O_,u=new PR([e.invokeWithinContext(f=>new BR(f.get(bg),c)),new WR(()=>s,0,e.getSelections().length,e.getOption(73)==="spread"),new FR(c,e.getSelection(),0,r),new wC(c,e.getSelection(),a),new $o,new VR(e.invokeWithinContext(f=>f.get(_m))),new HR]);t=t.sort((f,_)=>L.compareRangesUsingStarts(f.range,_.range));let g=0;for(let f=0;f0){const S=t[f-1].range,k=L.fromPositions(S.getEndPosition(),_.getStartPosition()),x=new Bn(c.getValueInRange(k));h.appendChild(x),g+=x.value.length}d.parseFragment(b,h),h.resolveVariables(u);const v=h.toString(),C=v.slice(g);g=v.length;const w=Ft.replace(_,C);w.identifier={major:f,minor:0},w._isTracked=!0,l.push(w)}return d.ensureFinalTabstop(h,i,!0),{edits:l,snippets:[new Ms(e,h,"")]}}dispose(){nt(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}=typeof this._template=="string"?ba.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):ba.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,i=>{const n=i.filter(s=>!!s.identifier);for(let s=0;soe.fromPositions(s.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=zR){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=ba.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,s=>{const r=s.filter(l=>!!l.identifier);for(let l=0;loe.fromPositions(l.range.getEndPosition()))})}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length{s.push(...n.get(r))})}e.sort(L.compareRangesUsingStarts);for(const[i,n]of t){if(n.length!==e.length){t.delete(i);continue}n.sort(L.compareRangesUsingStarts);for(let s=0;s0}};SC=coe([doe(3,si)],SC);var hoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Gb={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let Oi=class np{constructor(e,t,i,n,s){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=s,this._snippetListener=new Q,this._modelVersionId=-1,this._inSnippet=np.InSnippetMode.bindTo(n),this._hasNextTabstop=np.HasNextTabstop.bindTo(n),this._hasPrevTabstop=np.HasPrevTabstop.bindTo(n)}static get(e){return e.getContribution(np.ID)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),(e=this._session)===null||e===void 0||e.dispose(),this._snippetListener.dispose()}apply(e,t){try{this._doInsert(e,typeof t>"u"?Gb:Object.assign(Object.assign({},Gb),t))}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_edits=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}insert(e,t){try{this._doInsert(e,typeof t>"u"?Gb:Object.assign(Object.assign({},Gb),t))}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var i;if(!!this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof e!="string"&&this.cancel(),this._session?(pt(typeof e=="string"),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new SC(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),!((i=this._session)===null||i===void 0)&&i.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:(s,r)=>{if(!this._session||s!==this._editor.getModel()||!B.equals(this._editor.getPosition(),r))return;const{activeChoice:a}=this._session;if(!a||a.choice.options.length===0)return;const l=s.getValueInRange(a.range),c=Boolean(a.choice.options.find(h=>h.value===l)),d=[];for(let h=0;hn.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}const{activeChoice:e}=this._session;if(!e||!this._choiceCompletionItemProvider){this._currentChoice=void 0;return}this._currentChoice!==e.choice&&(this._currentChoice=e.choice,queueMicrotask(()=>{Dse(this._editor,this._choiceCompletionItemProvider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,(t=this._session)===null||t===void 0||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};Oi.ID="snippetController2";Oi.InSnippetMode=new le("inSnippetMode",!1,p("inSnippetMode","Whether the editor in current in snippet mode"));Oi.HasNextTabstop=new le("hasNextTabstop",!1,p("hasNextTabstop","Whether there is a next tab stop when in snippet mode"));Oi.HasPrevTabstop=new le("hasPrevTabstop",!1,p("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"));Oi=hoe([qb(1,So),qb(2,de),qb(3,Ee),qb(4,si)],Oi);tt(Oi.ID,Oi);const dw=xi.bindToContribution(Oi.get);ee(new dw({id:"jumpToNextSnippetPlaceholder",precondition:se.and(Oi.InSnippetMode,Oi.HasNextTabstop),handler:o=>o.next(),kbOpts:{weight:100+30,kbExpr:N.editorTextFocus,primary:2}}));ee(new dw({id:"jumpToPrevSnippetPlaceholder",precondition:se.and(Oi.InSnippetMode,Oi.HasPrevTabstop),handler:o=>o.prev(),kbOpts:{weight:100+30,kbExpr:N.editorTextFocus,primary:1026}}));ee(new dw({id:"leaveSnippet",precondition:Oi.InSnippetMode,handler:o=>o.cancel(!0),kbOpts:{weight:100+30,kbExpr:N.editorTextFocus,primary:9,secondary:[1033]}}));ee(new dw({id:"acceptSnippet",precondition:Oi.InSnippetMode,handler:o=>o.finish()}));function K7(o,e,t){const i=Oi.get(o);return i?(o.focus(),i.apply(t.map(n=>({range:oe.liftSelection(n),template:e}))),i.isInSnippet()):!1}var uoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zb=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},UR=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Dy="application/vnd.code.copyMetadata";let Wm=class extends H{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._clipboardService=i,this._configurationService=n,this._languageFeaturesService=s,this._editor=e;const r=e.getContainerDomNode();this._register(G(r,"copy",a=>this.handleCopy(a))),this._register(G(r,"cut",a=>this.handleCopy(a))),this._register(G(r,"paste",a=>this.handlePaste(a),!0))}arePasteActionsEnabled(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const i=this._editor.getModel(),n=this._editor.getSelections();if(!i||!(n!=null&&n.length)||!this.arePasteActionsEnabled(i))return;const s=[...n],r=n[0],a=r.isEmpty();if(a){if(!this._editor.getOption(33))return;s[0]=new L(r.startLineNumber,0,r.startLineNumber,i.getLineLength(r.startLineNumber))}const l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(u=>!!u.prepareDocumentPaste);if(!l.length){this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:a});return}const c=_x(e.clipboardData),d=$7();this.setCopyMetadata(e.clipboardData,{id:d,wasFromEmptySelection:a});const h=Ri(u=>UR(this,void 0,void 0,function*(){const g=yield Promise.all(l.map(f=>f.prepareDocumentPaste(i,s,c,u)));for(const f of g)f==null||f.forEach((_,b)=>{c.replace(b,_)});return c}));(t=this._currentClipboardItem)===null||t===void 0||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:d,dataTransferPromise:h}}setCopyMetadata(e,t){e.setData(Dy,JSON.stringify(t))}handlePaste(e){var t,i,n;return UR(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const s=this._editor.getSelections();if(!(s!=null&&s.length)||!this._editor.hasModel())return;const r=this._editor.getModel();if(!this.arePasteActionsEnabled(r))return;let a;const l=(t=e.clipboardData)===null||t===void 0?void 0:t.getData(Dy);l&&typeof l=="string"&&(a=JSON.parse(l));const c=this._languageFeaturesService.documentPasteEditProvider.ordered(r);if(!c.length)return;e.preventDefault(),e.stopImmediatePropagation();const d=r.getVersionId(),h=new qd(this._editor,3);try{const u=_x(e.clipboardData);if((a==null?void 0:a.id)&&((i=this._currentClipboardItem)===null||i===void 0?void 0:i.handle)===a.id&&(yield this._currentClipboardItem.dataTransferPromise).forEach((b,v)=>{u.replace(v,b)}),!u.has(Vn.uriList)){const _=yield this._clipboardService.readResources();_.length&&u.append(Vn.uriList,tT(iT.create(_)))}u.delete(Dy);for(const _ of c){if(!_.pasteMimeTypes.some(v=>v.toLowerCase()===__.FILES.toLowerCase()?[...u.values()].some(C=>C.asFile()):u.has(v)))continue;const b=yield _.provideDocumentPasteEdits(r,s,u,h.token);if(d!==r.getVersionId())return;if(b){K7(this._editor,typeof b.insertText=="string"?_c.escape(b.insertText):b.insertText.snippet,s),b.additionalEdit&&(yield this._bulkEditService.apply(Qg.convert(b.additionalEdit),{editor:this._editor}));return}}const g=(n=u.get(Vn.text))!==null&&n!==void 0?n:u.get("text");if(!g)return;const f=yield g.asString();if(d!==r.getVersionId())return;this._editor.trigger("keyboard","paste",{text:f,pasteOnNewLine:a==null?void 0:a.wasFromEmptySelection,multicursorText:null})}finally{h.dispose()}})}};Wm.ID="editor.contrib.copyPasteActionController";Wm=uoe([Zb(1,v_),Zb(2,cl),Zb(3,ot),Zb(4,de)],Wm);tt(Wm.ID,Wm);zt.as(rl.Configuration).registerConfiguration(Object.assign(Object.assign({},GE),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:p("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}));class Vl{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(c);let g=h.lastIndexOf(t,l-1+t.length),f=u.indexOf(i,d-1-i.length);if(g!==-1&&f!==-1)if(a===c)h.substring(g+t.length,f).indexOf(i)>=0&&(g=-1,f=-1);else{const b=h.substring(g+t.length),v=u.substring(0,f);(b.indexOf(i)>=0||v.indexOf(i)>=0)&&(g=-1,f=-1)}let _;g!==-1&&f!==-1?(n&&g+t.length0&&u.charCodeAt(f-1)===32&&(i=" "+i,f-=1),_=Vl._createRemoveBlockCommentOperations(new L(a,g+t.length+1,c,f+1),t,i)):(_=Vl._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=_.length===1?i:null);for(const b of _)r.addTrackedEditOperation(b.range,b.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return L.isEmpty(e)?n.push(Ft.delete(new L(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(Ft.delete(new L(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(Ft.delete(new L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return L.isEmpty(e)?s.push(Ft.replace(new L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(Ft.insert(new B(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(Ft.insert(new B(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new oe(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new oe(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class ya{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let c=0,d=i-t+1;cs?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class nT extends ce{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(si);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(19),l=t.getSelections().map((d,h)=>({selection:d,index:h,ignoreFirstLine:!1}));l.sort((d,h)=>L.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$h=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Eg=class q7{constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Q,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&Rd(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{!this._editor.getOption(20)||l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}static get(e){return e.getContribution(q7.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(20)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(20)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?M.SimpleEditorContext:M.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const c of a)if(c instanceof GI){const d=this._getMenuActions(e,c.item.submenu);d.length>0&&(i.push(new Qp(c.id,c.label,d)),l++)}else i.push(c),l++;l&&i.push(new ln)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(55);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=on(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new fm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new fm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(67);let i=0;const n=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run,dispose:()=>null}),s=(c,d)=>new Qp(`menu-action-${++i}`,c,d,void 0),r=(c,d,h,u,g)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});const f=b=>()=>{this._configurationService.updateValue(h,b)},_=[];for(const b of g)_.push(n({label:b.label,checked:u===b.value,run:f(b.value)}));return s(c,_)},a=[];a.push(n({label:p("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new ln),a.push(n({label:p("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(p("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:p("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:p("context.minimap.size.fill","Fill"),value:"fill"},{label:p("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(p("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:p("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:p("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Eg.ID="editor.contrib.contextmenu";Eg=_oe([$h(1,ll),$h(2,vh),$h(3,Ee),$h(4,_i),$h(5,ph),$h(6,ot)],Eg);class boe extends ce{constructor(){super({id:"editor.action.showContextMenu",label:p("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=Eg.get(t))===null||i===void 0||i.showContextMenu()}}tt(Eg.ID,Eg);ie(boe);class ky{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new ky(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new xy(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(Jd.ID)}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Jd.ID="editor.contrib.cursorUndoRedoController";class voe extends ce{constructor(){super({id:"cursorUndo",label:p("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorUndo()}}class Coe extends ce{constructor(){super({id:"cursorRedo",label:p("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorRedo()}}tt(Jd.ID,Jd);ie(voe);ie(Coe);class woe{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new oe(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new oe(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!0),this._mouseDown&&jh(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===Za.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}jh(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new B(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new oe(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new oe(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(jh(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(Za.ID,new woe(this._dragSelection,t,jh(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:Za._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}Za.ID="editor.contrib.dragAndDrop";Za.TRIGGER_KEY_VALUE=Ge?6:5;Za._DECORATION_OPTIONS=Ne.register({description:"dnd-target",className:"dnd-target"});tt(Za.ID,Za);var G7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},R0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Vm=class extends H{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new bx(s))}onDropIntoEditor(e,t,i){return R0(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const n=e.getModel(),s=n.getVersionId(),r=yield this.extractDataTransferData(i);if(r.size===0||e.getModel().getVersionId()!==s)return;const a=new qd(e,1);try{const l=this._languageFeaturesService.documentOnDropEditProvider.ordered(n),c=yield this._progressService.withProgress({location:15,delay:750,title:p("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>MI((()=>R0(this,void 0,void 0,function*(){for(const d of l){const h=yield d.provideDocumentOnDropEdits(n,t,r,a.token);if(a.token.isCancellationRequested)return;if(h)return h}}))(),a.token),()=>{a.cancel()});if(a.token.isCancellationRequested||e.getModel().getVersionId()!==s)return;if(c){const d=new L(t.lineNumber,t.column,t.lineNumber,t.column);K7(e,typeof c.insertText=="string"?_c.escape(c.insertText):c.insertText.snippet,[oe.fromRange(d,0)]),c.additionalEdit&&(yield this._bulkEditService.apply(Qg.convert(c.additionalEdit),{editor:e}));return}}finally{a.dispose()}})}extractDataTransferData(e){return R0(this,void 0,void 0,function*(){if(!e.dataTransfer)return new U7;const t=_x(e.dataTransfer);return roe(t,e),t})}};Vm.ID="editor.contrib.dropIntoEditorController";Vm=G7([sp(1,v_),sp(2,de),sp(3,GF),sp(4,_m)],Vm);let bx=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return R0(this,void 0,void 0,function*(){const r=i.get(Vn.uriList);if(r){const l=yield r.asString(),c=this.getUriListInsertText(l);if(c)return{insertText:c}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Vn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of iT.parse(e))try{t.push(_e.parse(i))}catch{}if(!!t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=pq(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};bx=G7([sp(0,_m)],bx);tt(Vm.ID,Vm);class fn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const n=i.options;if(n===fn._FIND_MATCH_DECORATION||n===fn._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,s=this._decorations.length;n{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,fn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,fn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new L(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,fn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=fn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=fn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,f=e.length;g=_.startLineNumber?_.endLineNumber>u&&(u=_.endLineNumber):(s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=_.startLineNumber,u=_.endLineNumber)}s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,fn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;rL.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function $R(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function jR(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=Z7([n[a]],r)+t}),s.slice(0,-1)}class KR{constructor(e){this.staticValue=e,this.kind=0}}class yoe{constructor(e){this.pieces=e,this.kind=1}}class Ng{constructor(e){!e||e.length===0?this._state=new KR(""):e.length===1&&e[0].staticValue!==null?this._state=new KR(e[0].staticValue):this._state=new yoe(e)}static fromStaticValue(e){return new Ng([xd.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Z7(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],c=r.caseOps.length;let d=0;for(let h=0,u=a.length;h=c){l.push(a.slice(h));break}switch(r.caseOps[d]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),d++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),d++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` -`,i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(i-1),t.emitStatic("",i+1),e.push(String.fromCharCode(r));break}continue}if(s===36){if(i++,i>=n)break;const r=o.charCodeAt(i);if(r===36){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(r===48||r===38){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1,e),e.length=0;continue}if(49<=r&&r<=57){let a=r-48;if(i+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,nt(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||!this._editor.hasModel()||(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},koe)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;typeof t<"u"?t!==null&&(Array.isArray(t)?i=t:i=[t]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new L(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));const n=this._findMatches(i,!1,Hl);this._decorations.set(n,i);const s=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(s);if(r===0&&n.length>0){const a=BO(n.map(l=>l.range),l=>L.compareRangesUsingStarts(l,s)>=0);r=a>0?a-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===1?(i===1?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new B(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new B(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()Np._getSearchRange(this._editor.getModel(),s));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Hl?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const t=new $c(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let h="mu";i.ignoreCase&&(h+="i"),i.global&&(h+="g"),i=new RegExp(i.source,h)}const n=this._editor.getModel(),s=n.getValue(1),r=n.getFullModelRange(),a=this._getReplacePattern();let l;const c=this._state.preserveCase;a.hasReplacementPatterns||c?l=s.replace(i,function(){return a.buildReplaceString(arguments,c)}):l=s.replace(i,a.buildReplaceString(null,c));const d=new gE(r,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let r=0,a=i.length;rr.range),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let i=this._findMatches(e,!1,1073741824).map(s=>new oe(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn));const n=this._editor.getSelection();for(let s=0,r=i.length;sthis._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s=n.getColorTheme().getColor(_v),r=n.getColorTheme().getColor(vv),a=n.getColorTheme().getColor(bv);this.caseSensitive=this._register(new M5({appendTitle:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new R5({appendTitle:this._keybindingLabelFor(kt.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new O5({appendTitle:this._keybindingLabelFor(kt.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(l=>{let c=!1;l.isRegex&&(this.regex.checked=this._state.isRegex,c=!0),l.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,c=!0),l.matchCase&&(this.caseSensitive.checked=this._state.matchCase,c=!0),!this._state.isRevealed&&c&&this._revealTemporarily()})),this._register(G(this._domNode,ae.MOUSE_LEAVE,l=>this._onMouseLeave())),this._register(G(this._domNode,"mouseover",l=>this._onMouseOver())),this._applyTheme(n.getColorTheme()),this._register(n.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return uw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionForeground:e.getColor(vv),inputActiveOptionBackground:e.getColor(bv)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}uw.ID="editor.contrib.findOptionsWidget";Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)});function t0(o,e){return o===1?!0:o===2?!1:e}class xoe extends H{constructor(){super(),this._onFindReplaceStateChange=this._register(new R),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return t0(this._isRegexOverride,this._isRegex)}get wholeWord(){return t0(this._wholeWordOverride,this._wholeWord)}get matchCase(){return t0(this._matchCaseOverride,this._matchCase)}get preserveCase(){return t0(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),typeof i<"u"&&(L.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let r=!1;const a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString<"u"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,r=!0),typeof e.replaceString<"u"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,r=!0),typeof e.isRevealed<"u"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,r=!0),typeof e.isReplaceRevealed<"u"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,r=!0),typeof e.isRegex<"u"&&(this._isRegex=e.isRegex),typeof e.wholeWord<"u"&&(this._wholeWord=e.wholeWord),typeof e.matchCase<"u"&&(this._matchCase=e.matchCase),typeof e.preserveCase<"u"&&(this._preserveCase=e.preserveCase),typeof e.searchScope<"u"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(h=>{var u;return(u=this._searchScope)===null||u===void 0?void 0:u.some(g=>!L.equalsRange(g,h))})||(this._searchScope=e.searchScope,s.searchScope=!0,r=!0)),typeof e.loop<"u"&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,r=!0),typeof e.isSearching<"u"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,r=!0),typeof e.filters<"u"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride<"u"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride<"u"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride<"u"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride<"u"?e.preserveCaseOverride:0,a!==this.isRegex&&(r=!0,s.isRegex=!0),l!==this.wholeWord&&(r=!0,s.wholeWord=!0),c!==this.matchCase&&(r=!0,s.matchCase=!0),d!==this.preserveCase&&(r=!0,s.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Hl}}function qR(o){var e,t;return((e=o.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=o.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var Ioe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Eoe=mi("find-selection",m.selection,p("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),GR=mi("find-collapsed",m.chevronRight,p("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),ZR=mi("find-expanded",m.chevronDown,p("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Noe=mi("find-replace",m.replace,p("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Toe=mi("find-replace-all",m.replaceAll,p("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Aoe=mi("find-previous-match",m.arrowUp,p("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Moe=mi("find-next-match",m.arrowDown,p("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Roe=p("label.find","Find"),Ooe=p("placeholder.find","Find"),Poe=p("label.previousMatchButton","Previous Match"),Foe=p("label.nextMatchButton","Next Match"),Boe=p("label.toggleSelectionFind","Find in Selection"),Woe=p("label.closeButton","Close"),Voe=p("label.replace","Replace"),Hoe=p("placeholder.replace","Replace"),zoe=p("label.replaceButton","Replace"),Uoe=p("label.replaceAllButton","Replace All"),$oe=p("label.toggleReplaceButton","Toggle Replace"),joe=p("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Hl),Koe=p("label.matchesLocation","{0} of {1}"),YR=p("label.noResults","No results"),fr=419,qoe=275,Goe=qoe-54;let Mf=69;const Zoe=33,QR="ctrlEnterReplaceAll.windows.donotask",XR=Ge?256:2048;class Iy{constructor(e){this.afterLineNumber=e,this.heightInPx=Zoe,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function JR(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionStart>0){o.stopPropagation();return}}function eO(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(83)&&(this._codeEditor.getOption(83)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(133)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(37)){const h=this._codeEditor.getOption(37).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new Iy(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Ioe(this,void 0,void 0,function*(){if(this._isVisible){const d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=hw.bindTo(r),this._findFocusTracker=this._register(Od(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=sT.bindTo(r),this._replaceFocusTracker=this._register(Od(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(37).addExtraSpaceOnTop&&(this._viewZone=new Iy(0)),this._applyTheme(a.getColorTheme()),this._register(a.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{!this._isVisible||(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return gw.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(83)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=co(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Te)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=Mf+"px",this._state.matchesCount>=Hl?this._matchesCount.title=joe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=Hl&&(t+="+");let i=String(this._state.matchesPosition);i==="0"&&(i="?"),e=Vs(Koe,i,t)}else e=YR;this._matchesCount.appendChild(document.createTextNode(e)),Gi(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Mf=Math.max(Mf,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===YR)return i===""?p("ariaSearchNoResultEmpty","{0} found",e):p("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=p("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();return s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1?`${s.getLineContent(t.startLineNumber)}, ${n}`:n}return p("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(83);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(37).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const i=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=i;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(37).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=on(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(s?s.left:0),a=s?s.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);const l=s4(this._domNode).left;r>l&&(t=!1);const c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(37).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const i=this._viewZone;this._viewZoneId!==void 0||!i||this._codeEditor.changeViewZones(n=>{i.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(i),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+i.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(37).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Iy(0));const i=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){const s=this._getHeight();if(s===i.heightInPx)return;const r=s-i.heightInPx;i.heightInPx=s,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r);return}else{let s=this._getHeight();if(s-=this._codeEditor.getOption(77).top,s<=0)return;i.heightInPx=s,this._viewZoneId=n.addZone(i),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionBackground:e.getColor(bv),inputActiveOptionForeground:e.getColor(vv),inputBackground:e.getColor(g1),inputForeground:e.getColor(f1),inputBorder:e.getColor(p1),inputValidationInfoBackground:e.getColor(ZI),inputValidationInfoForeground:e.getColor(YI),inputValidationInfoBorder:e.getColor(QI),inputValidationWarningBackground:e.getColor(XI),inputValidationWarningForeground:e.getColor(JI),inputValidationWarningBorder:e.getColor(eE),inputValidationErrorBackground:e.getColor(tE),inputValidationErrorForeground:e.getColor(iE),inputValidationErrorBorder:e.getColor(nE)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!jI(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const i=e.width,n=e.minimap.minimapWidth;let s=!1,r=!1,a=!1;if(this._resized&&co(this._domNode)>fr){this._domNode.style.maxWidth=`${i-28-n-15}px`,this._replaceInput.width=co(this._findInput.domNode);return}if(fr+28+n>=i&&(r=!0),fr+28+n-Mf>=i&&(a=!0),fr+28+n-Mf>=i+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",r),!a&&!s&&(this._domNode.style.maxWidth=`${i-28-n-15}px`),this._resized){this._findInput.inputBox.layout();const l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(!!this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));const i=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!L.equalsRange(t,i)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(XR|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` +`),this._selectionId=t.trackSelection(i);return}i.startLineNumbers?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class nT extends ce{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(si);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(19),l=t.getSelections().map((d,h)=>({selection:d,index:h,ignoreFirstLine:!1}));l.sort((d,h)=>L.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$h=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Eg=class q7{constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Q,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&Rd(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{!this._editor.getOption(20)||l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}static get(e){return e.getContribution(q7.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(20)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(20)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?M.SimpleEditorContext:M.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const c of a)if(c instanceof GI){const d=this._getMenuActions(e,c.item.submenu);d.length>0&&(i.push(new Qp(c.id,c.label,d)),l++)}else i.push(c),l++;l&&i.push(new ln)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(55);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=on(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new fm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new fm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(67);let i=0;const n=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run,dispose:()=>null}),s=(c,d)=>new Qp(`menu-action-${++i}`,c,d,void 0),r=(c,d,h,u,g)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});const f=b=>()=>{this._configurationService.updateValue(h,b)},_=[];for(const b of g)_.push(n({label:b.label,checked:u===b.value,run:f(b.value)}));return s(c,_)},a=[];a.push(n({label:p("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new ln),a.push(n({label:p("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(p("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:p("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:p("context.minimap.size.fill","Fill"),value:"fill"},{label:p("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(p("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:p("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:p("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(117)&&!Ur;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Eg.ID="editor.contrib.contextmenu";Eg=_oe([$h(1,ll),$h(2,vh),$h(3,Ee),$h(4,_i),$h(5,ph),$h(6,ot)],Eg);class boe extends ce{constructor(){super({id:"editor.action.showContextMenu",label:p("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=Eg.get(t))===null||i===void 0||i.showContextMenu()}}tt(Eg.ID,Eg);ie(boe);class ky{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new ky(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new xy(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(Jd.ID)}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new xy(new ky(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Jd.ID="editor.contrib.cursorUndoRedoController";class voe extends ce{constructor(){super({id:"cursorUndo",label:p("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorUndo()}}class Coe extends ce{constructor(){super({id:"cursorRedo",label:p("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Jd.get(t))===null||n===void 0||n.cursorRedo()}}tt(Jd.ID,Jd);ie(voe);ie(Coe);class woe{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new oe(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new oe(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!0),this._mouseDown&&jh(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(31)||this._editor.getOption(18)||(jh(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===Za.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}jh(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new B(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new oe(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new oe(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(jh(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(Za.ID,new woe(this._dragSelection,t,jh(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new L(e.lineNumber,e.column,e.lineNumber,e.column),options:Za._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}Za.ID="editor.contrib.dragAndDrop";Za.TRIGGER_KEY_VALUE=Ge?6:5;Za._DECORATION_OPTIONS=Ne.register({description:"dnd-target",className:"dnd-target"});tt(Za.ID,Za);var G7=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},R0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Vm=class extends H{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new bx(s))}onDropIntoEditor(e,t,i){return R0(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const n=e.getModel(),s=n.getVersionId(),r=yield this.extractDataTransferData(i);if(r.size===0||e.getModel().getVersionId()!==s)return;const a=new qd(e,1);try{const l=this._languageFeaturesService.documentOnDropEditProvider.ordered(n),c=yield this._progressService.withProgress({location:15,delay:750,title:p("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>MI((()=>R0(this,void 0,void 0,function*(){for(const d of l){const h=yield d.provideDocumentOnDropEdits(n,t,r,a.token);if(a.token.isCancellationRequested)return;if(h)return h}}))(),a.token),()=>{a.cancel()});if(a.token.isCancellationRequested||e.getModel().getVersionId()!==s)return;if(c){const d=new L(t.lineNumber,t.column,t.lineNumber,t.column);K7(e,typeof c.insertText=="string"?_c.escape(c.insertText):c.insertText.snippet,[oe.fromRange(d,0)]),c.additionalEdit&&(yield this._bulkEditService.apply(Qg.convert(c.additionalEdit),{editor:e}));return}}finally{a.dispose()}})}extractDataTransferData(e){return R0(this,void 0,void 0,function*(){if(!e.dataTransfer)return new U7;const t=_x(e.dataTransfer);return roe(t,e),t})}};Vm.ID="editor.contrib.dropIntoEditorController";Vm=G7([sp(1,v_),sp(2,de),sp(3,G5),sp(4,_m)],Vm);let bx=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return R0(this,void 0,void 0,function*(){const r=i.get(Vn.uriList);if(r){const l=yield r.asString(),c=this.getUriListInsertText(l);if(c)return{insertText:c}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Vn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of iT.parse(e))try{t.push(_e.parse(i))}catch{}if(!!t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=pq(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};bx=G7([sp(0,_m)],bx);tt(Vm.ID,Vm);class fn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const n=i.options;if(n===fn._FIND_MATCH_DECORATION||n===fn._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,s=this._decorations.length;n{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,fn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,fn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new L(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,fn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=fn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=fn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,f=e.length;g=_.startLineNumber?_.endLineNumber>u&&(u=_.endLineNumber):(s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=_.startLineNumber,u=_.endLineNumber)}s.push({range:new L(h,1,u,1),options:fn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,fn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;rL.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function $R(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function jR(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=Z7([n[a]],r)+t}),s.slice(0,-1)}class KR{constructor(e){this.staticValue=e,this.kind=0}}class yoe{constructor(e){this.pieces=e,this.kind=1}}class Ng{constructor(e){!e||e.length===0?this._state=new KR(""):e.length===1&&e[0].staticValue!==null?this._state=new KR(e[0].staticValue):this._state=new yoe(e)}static fromStaticValue(e){return new Ng([xd.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(e,t){if(this._state.kind===0)return t?Z7(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],c=r.caseOps.length;let d=0;for(let h=0,u=a.length;h=c){l.push(a.slice(h));break}switch(r.caseOps[d]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),d++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),d++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` +`,i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(i-1),t.emitStatic("",i+1),e.push(String.fromCharCode(r));break}continue}if(s===36){if(i++,i>=n)break;const r=o.charCodeAt(i);if(r===36){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(r===48||r===38){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1,e),e.length=0;continue}if(49<=r&&r<=57){let a=r-48;if(i+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(i=>{(i.reason===3||i.reason===5||i.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(i=>{this._ignoreModelContentChanged||(i.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(i=>this._onStateChanged(i))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,nt(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||!this._editor.hasModel()||(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},koe)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;typeof t<"u"?t!==null&&(Array.isArray(t)?i=t:i=[t]):i=this._decorations.getFindScopes(),i!==null&&(i=i.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new L(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));const n=this._findMatches(i,!1,Hl);this._decorations.set(n,i);const s=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(s);if(r===0&&n.length>0){const a=BO(n.map(l=>l.range),l=>L.compareRangesUsingStarts(l,s)>=0);r=a>0?a-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===1?(i===1?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new B(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new B(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const i=this._decorations.matchBeforePosition(e);i&&this._setCurrentFindMatch(i);return}if(this._decorations.getCount()Np._getSearchRange(this._editor.getModel(),s));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Hl?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const t=new $c(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let h="mu";i.ignoreCase&&(h+="i"),i.global&&(h+="g"),i=new RegExp(i.source,h)}const n=this._editor.getModel(),s=n.getValue(1),r=n.getFullModelRange(),a=this._getReplacePattern();let l;const c=this._state.preserveCase;a.hasReplacementPatterns||c?l=s.replace(i,function(){return a.buildReplaceString(arguments,c)}):l=s.replace(i,a.buildReplaceString(null,c));const d=new gE(r,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let r=0,a=i.length;rr.range),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let i=this._findMatches(e,!1,1073741824).map(s=>new oe(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn));const n=this._editor.getSelection();for(let s=0,r=i.length;sthis._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s=n.getColorTheme().getColor(_v),r=n.getColorTheme().getColor(vv),a=n.getColorTheme().getColor(bv);this.caseSensitive=this._register(new MF({appendTitle:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new RF({appendTitle:this._keybindingLabelFor(kt.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new OF({appendTitle:this._keybindingLabelFor(kt.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(l=>{let c=!1;l.isRegex&&(this.regex.checked=this._state.isRegex,c=!0),l.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,c=!0),l.matchCase&&(this.caseSensitive.checked=this._state.matchCase,c=!0),!this._state.isRevealed&&c&&this._revealTemporarily()})),this._register(G(this._domNode,ae.MOUSE_LEAVE,l=>this._onMouseLeave())),this._register(G(this._domNode,"mouseover",l=>this._onMouseOver())),this._applyTheme(n.getColorTheme()),this._register(n.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return uw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionForeground:e.getColor(vv),inputActiveOptionBackground:e.getColor(bv)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}uw.ID="editor.contrib.findOptionsWidget";Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .findOptionsWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)});function t0(o,e){return o===1?!0:o===2?!1:e}class xoe extends H{constructor(){super(),this._onFindReplaceStateChange=this._register(new R),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return t0(this._isRegexOverride,this._isRegex)}get wholeWord(){return t0(this._wholeWordOverride,this._wholeWord)}get matchCase(){return t0(this._matchCaseOverride,this._matchCase)}get preserveCase(){return t0(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),typeof i<"u"&&(L.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let r=!1;const a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString<"u"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,r=!0),typeof e.replaceString<"u"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,r=!0),typeof e.isRevealed<"u"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,r=!0),typeof e.isReplaceRevealed<"u"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,r=!0),typeof e.isRegex<"u"&&(this._isRegex=e.isRegex),typeof e.wholeWord<"u"&&(this._wholeWord=e.wholeWord),typeof e.matchCase<"u"&&(this._matchCase=e.matchCase),typeof e.preserveCase<"u"&&(this._preserveCase=e.preserveCase),typeof e.searchScope<"u"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(h=>{var u;return(u=this._searchScope)===null||u===void 0?void 0:u.some(g=>!L.equalsRange(g,h))})||(this._searchScope=e.searchScope,s.searchScope=!0,r=!0)),typeof e.loop<"u"&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,r=!0),typeof e.isSearching<"u"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,r=!0),typeof e.filters<"u"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,r=!0),this._isRegexOverride=typeof e.isRegexOverride<"u"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride<"u"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride<"u"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride<"u"?e.preserveCaseOverride:0,a!==this.isRegex&&(r=!0,s.isRegex=!0),l!==this.wholeWord&&(r=!0,s.wholeWord=!0),c!==this.matchCase&&(r=!0,s.matchCase=!0),d!==this.preserveCase&&(r=!0,s.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Hl}}function qR(o){var e,t;return((e=o.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=o.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var Ioe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Eoe=mi("find-selection",m.selection,p("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),GR=mi("find-collapsed",m.chevronRight,p("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),ZR=mi("find-expanded",m.chevronDown,p("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Noe=mi("find-replace",m.replace,p("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Toe=mi("find-replace-all",m.replaceAll,p("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Aoe=mi("find-previous-match",m.arrowUp,p("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Moe=mi("find-next-match",m.arrowDown,p("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Roe=p("label.find","Find"),Ooe=p("placeholder.find","Find"),Poe=p("label.previousMatchButton","Previous Match"),Foe=p("label.nextMatchButton","Next Match"),Boe=p("label.toggleSelectionFind","Find in Selection"),Woe=p("label.closeButton","Close"),Voe=p("label.replace","Replace"),Hoe=p("placeholder.replace","Replace"),zoe=p("label.replaceButton","Replace"),Uoe=p("label.replaceAllButton","Replace All"),$oe=p("label.toggleReplaceButton","Toggle Replace"),joe=p("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Hl),Koe=p("label.matchesLocation","{0} of {1}"),YR=p("label.noResults","No results"),fr=419,qoe=275,Goe=qoe-54;let Mf=69;const Zoe=33,QR="ctrlEnterReplaceAll.windows.donotask",XR=Ge?256:2048;class Iy{constructor(e){this.afterLineNumber=e,this.heightInPx=Zoe,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function JR(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionStart>0){o.stopPropagation();return}}function eO(o,e,t){const i=!!e.match(/\n/);if(t&&i&&t.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(83)&&(this._codeEditor.getOption(83)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(133)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(37)){const h=this._codeEditor.getOption(37).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new Iy(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Ioe(this,void 0,void 0,function*(){if(this._isVisible){const d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=hw.bindTo(r),this._findFocusTracker=this._register(Od(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=sT.bindTo(r),this._replaceFocusTracker=this._register(Od(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(37).addExtraSpaceOnTop&&(this._viewZone=new Iy(0)),this._applyTheme(a.getColorTheme()),this._register(a.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{!this._isVisible||(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return gw.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(83)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=co(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Te)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=Mf+"px",this._state.matchesCount>=Hl?this._matchesCount.title=joe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=Hl&&(t+="+");let i=String(this._state.matchesPosition);i==="0"&&(i="?"),e=Vs(Koe,i,t)}else e=YR;this._matchesCount.appendChild(document.createTextNode(e)),Gi(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Mf=Math.max(Mf,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===YR)return i===""?p("ariaSearchNoResultEmpty","{0} found",e):p("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=p("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();return s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1?`${s.getLineContent(t.startLineNumber)}, ${n}`:n}return p("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(83);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(37).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const i=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=i;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(37).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=on(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(s?s.left:0),a=s?s.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);const l=s4(this._domNode).left;r>l&&(t=!1);const c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(37).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const i=this._viewZone;this._viewZoneId!==void 0||!i||this._codeEditor.changeViewZones(n=>{i.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(i),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+i.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(37).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new Iy(0));const i=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){const s=this._getHeight();if(s===i.heightInPx)return;const r=s-i.heightInPx;i.heightInPx=s,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r);return}else{let s=this._getHeight();if(s-=this._codeEditor.getOption(77).top,s<=0)return;i.heightInPx=s,this._viewZoneId=n.addZone(i),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(_v),inputActiveOptionBackground:e.getColor(bv),inputActiveOptionForeground:e.getColor(vv),inputBackground:e.getColor(g1),inputForeground:e.getColor(f1),inputBorder:e.getColor(p1),inputValidationInfoBackground:e.getColor(ZI),inputValidationInfoForeground:e.getColor(YI),inputValidationInfoBorder:e.getColor(QI),inputValidationWarningBackground:e.getColor(XI),inputValidationWarningForeground:e.getColor(JI),inputValidationWarningBorder:e.getColor(eE),inputValidationErrorBackground:e.getColor(tE),inputValidationErrorForeground:e.getColor(iE),inputValidationErrorBorder:e.getColor(nE)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!jI(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const i=e.width,n=e.minimap.minimapWidth;let s=!1,r=!1,a=!1;if(this._resized&&co(this._domNode)>fr){this._domNode.style.maxWidth=`${i-28-n-15}px`,this._replaceInput.width=co(this._findInput.domNode);return}if(fr+28+n>=i&&(r=!0),fr+28+n-Mf>=i&&(a=!0),fr+28+n-Mf>=i+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",r),!a&&!s&&(this._domNode.style.maxWidth=`${i-28-n-15}px`),this._resized){this._findInput.inputBox.layout();const l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(!!this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));const i=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!L.equalsRange(t,i)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(XR|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` `),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return JR(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(e.equals(18))return eO(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(e){if(e.equals(XR|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{Yi&&jo&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(p("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(QR,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` -`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return JR(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return eO(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new rx(null,this._contextViewProvider,{width:Goe,label:Roe,placeholder:Ooe,appendCaseSensitiveLabel:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(kt.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(kt.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),dn&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Kh({label:Poe+this._keybindingLabelFor(kt.PreviousMatchFindAction),icon:Aoe,onTrigger:()=>{this._codeEditor.getAction(kt.PreviousMatchFindAction).run().then(void 0,Te)}})),this._nextBtn=this._register(new Kh({label:Foe+this._keybindingLabelFor(kt.NextMatchFindAction),icon:Moe,onTrigger:()=>{this._codeEditor.getAction(kt.NextMatchFindAction).run().then(void 0,Te)}}));const i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",i.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new y_({icon:Eoe,title:Boe+this._keybindingLabelFor(kt.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Kh({label:Woe+this._keybindingLabelFor(kt.CloseFindWidgetCommand),icon:KF,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ax(null,void 0,{label:Voe,placeholder:Hoe,appendPreserveCaseLabel:this._keybindingLabelFor(kt.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new Kh({label:zoe+this._keybindingLabelFor(kt.ReplaceOneAction),icon:Noe,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new Kh({label:Uoe+this._keybindingLabelFor(kt.ReplaceAllAction),icon:Toe,onTrigger:()=>{this._controller.replaceAll()}}));const s=document.createElement("div");s.className="replace-part",s.appendChild(this._replaceInput.domNode);const r=document.createElement("div");r.className="replace-actions",s.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Kh({label:$oe,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${fr}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(s),this._resizeSash=new tn(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=fr;this._register(this._resizeSash.onDidStart(()=>{a=co(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;const c=a+l.startX-l.currentX;if(cd||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const l=co(this._domNode);if(l{this._opts.onTrigger(),i.preventDefault()}),this.onkeydown(this._domNode,i=>{var n,s;if(i.equals(10)||i.equals(3)){this._opts.onTrigger(),i.preventDefault();return}(s=(n=this._opts).onKeyDown)===null||s===void 0||s.call(n,i)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...at.asClassNameArray(GR)),this._domNode.classList.add(...at.asClassNameArray(ZR))):(this._domNode.classList.remove(...at.asClassNameArray(ZR)),this._domNode.classList.add(...at.asClassNameArray(GR)))}}Et((o,e)=>{const t=(f,_)=>{_&&e.addRule(`.monaco-editor ${f} { background-color: ${_}; }`)};t(".findMatch",o.getColor(Va)),t(".currentFindMatch",o.getColor(Mz)),t(".findScope",o.getColor(Rz));const i=o.getColor(li);t(".find-widget",i);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(cd);s&&e.addRule(`.monaco-editor .findMatch { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(Oz);r&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r}; padding: 1px; box-sizing: border-box; }`);const a=o.getColor(Pz);a&&e.addRule(`.monaco-editor .findScope { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; }`);const l=o.getColor(We);l&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=o.getColor(zo);c&&e.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const d=o.getColor(fz);d&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${d}; }`);const h=o.getColor(Sz);if(h)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{const f=o.getColor(Ba);f&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${f}; }`)}const u=o.getColor(hD);u&&e.addRule(` +`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return JR(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return eO(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new rx(null,this._contextViewProvider,{width:Goe,label:Roe,placeholder:Ooe,appendCaseSensitiveLabel:this._keybindingLabelFor(kt.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(kt.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(kt.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),dn&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Kh({label:Poe+this._keybindingLabelFor(kt.PreviousMatchFindAction),icon:Aoe,onTrigger:()=>{this._codeEditor.getAction(kt.PreviousMatchFindAction).run().then(void 0,Te)}})),this._nextBtn=this._register(new Kh({label:Foe+this._keybindingLabelFor(kt.NextMatchFindAction),icon:Moe,onTrigger:()=>{this._codeEditor.getAction(kt.NextMatchFindAction).run().then(void 0,Te)}}));const i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",i.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new y_({icon:Eoe,title:Boe+this._keybindingLabelFor(kt.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Kh({label:Woe+this._keybindingLabelFor(kt.CloseFindWidgetCommand),icon:K5,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ax(null,void 0,{label:Voe,placeholder:Hoe,appendPreserveCaseLabel:this._keybindingLabelFor(kt.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>qR(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new Kh({label:zoe+this._keybindingLabelFor(kt.ReplaceOneAction),icon:Noe,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new Kh({label:Uoe+this._keybindingLabelFor(kt.ReplaceAllAction),icon:Toe,onTrigger:()=>{this._controller.replaceAll()}}));const s=document.createElement("div");s.className="replace-part",s.appendChild(this._replaceInput.domNode);const r=document.createElement("div");r.className="replace-actions",s.appendChild(r),r.appendChild(this._replaceBtn.domNode),r.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Kh({label:$oe,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${fr}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(s),this._resizeSash=new tn(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=fr;this._register(this._resizeSash.onDidStart(()=>{a=co(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;const c=a+l.startX-l.currentX;if(cd||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=co(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const l=co(this._domNode);if(l{this._opts.onTrigger(),i.preventDefault()}),this.onkeydown(this._domNode,i=>{var n,s;if(i.equals(10)||i.equals(3)){this._opts.onTrigger(),i.preventDefault();return}(s=(n=this._opts).onKeyDown)===null||s===void 0||s.call(n,i)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...at.asClassNameArray(GR)),this._domNode.classList.add(...at.asClassNameArray(ZR))):(this._domNode.classList.remove(...at.asClassNameArray(ZR)),this._domNode.classList.add(...at.asClassNameArray(GR)))}}Et((o,e)=>{const t=(f,_)=>{_&&e.addRule(`.monaco-editor ${f} { background-color: ${_}; }`)};t(".findMatch",o.getColor(Va)),t(".currentFindMatch",o.getColor(Mz)),t(".findScope",o.getColor(Rz));const i=o.getColor(li);t(".find-widget",i);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);const s=o.getColor(cd);s&&e.addRule(`.monaco-editor .findMatch { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(Oz);r&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r}; padding: 1px; box-sizing: border-box; }`);const a=o.getColor(Pz);a&&e.addRule(`.monaco-editor .findScope { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; }`);const l=o.getColor(We);l&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=o.getColor(zo);c&&e.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const d=o.getColor(fz);d&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${d}; }`);const h=o.getColor(Sz);if(h)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{const f=o.getColor(Ba);f&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${f}; }`)}const u=o.getColor(hD);u&&e.addRule(` .monaco-editor .find-widget .button:not(.disabled):hover, .monaco-editor .find-widget .codicon-find-selection:hover { background-color: ${u} !important; @@ -758,7 +758,7 @@ The flag will not be saved for the future. `)});class qre extends ce{constructor(){super({id:"editor.action.fontZoomIn",label:p("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){el.setZoomLevel(el.getZoomLevel()+1)}}class Gre extends ce{constructor(){super({id:"editor.action.fontZoomOut",label:p("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){el.setZoomLevel(el.getZoomLevel()-1)}}class Zre extends ce{constructor(){super({id:"editor.action.fontZoomReset",label:p("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){el.setZoomLevel(0)}}ie(qre);ie(Gre);ie(Zre);var o9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yC=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},lT=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Hm=class{constructor(e,t,i){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._disposables=new Q,this._sessionDisposables=new Q,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(n=>{n.hasChanged(51)&&this._update()}))}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(51)||!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new cu;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(n=>{const s=n.charCodeAt(n.length-1);i.has(s)&&this._trigger(String.fromCharCode(s))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),n=new Qi,s=this._editor.onDidChangeModelContent(r=>{if(r.isFlush){n.cancel(),s.dispose();return}for(let a=0,l=r.changes.length;a{n.token.isCancellationRequested||rn(r)&&(Lg.execute(this._editor,r,!0),AN(r))}).finally(()=>{s.dispose()})}};Hm.ID="editor.contrib.autoFormat";Hm=o9([yC(1,de),yC(2,to)],Hm);let zm=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new Q,this._callOnModel=new Q,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(50)&&(!this.editor.hasModel()||!this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())||this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e))))}_trigger(e){!this.editor.hasModel()||this.editor.getSelections().length>1||this._instantiationService.invokeFunction(f3,this.editor,e,2,Ch.None,ze.None).catch(Te)}};zm.ID="editor.contrib.formatOnPaste";zm=o9([yC(1,de),yC(2,Ae)],zm);class Yre extends ce{constructor(){super({id:"editor.action.formatDocument",label:p("formatDocument.label","Format Document"),alias:"Format Document",precondition:se.and(N.notInCompositeEditor,N.writable,N.hasDocumentFormattingProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return lT(this,void 0,void 0,function*(){if(t.hasModel()){const i=e.get(Ae);yield e.get(kc).showWhile(i.invokeFunction(vte,t,1,Ch.None,ze.None),250)}})}}class Qre extends ce{constructor(){super({id:"editor.action.formatSelection",label:p("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:se.and(N.writable,N.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:yi(2089,2084),weight:100},contextMenuOpts:{when:N.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return lT(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ae),n=t.getModel(),s=t.getSelections().map(a=>a.isEmpty()?new L(a.startLineNumber,1,a.startLineNumber,n.getLineMaxColumn(a.startLineNumber)):a);yield e.get(kc).showWhile(i.invokeFunction(f3,t,s,1,Ch.None,ze.None),250)})}}tt(Hm.ID,Hm);tt(zm.ID,zm);ie(Yre);ie(Qre);Xe.registerCommand("editor.action.format",o=>lT(void 0,void 0,void 0,function*(){const e=o.get(ct).getFocusedCodeEditor();if(!e||!e.hasModel())return;const t=o.get(ci);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}));var Xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ny=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Jre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class xu{remove(){var e;(e=this.parent)===null||e===void 0||e.children.delete(this.id)}static findId(e,t){let i;typeof e=="string"?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,t.children.get(i)!==void 0&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let s=0;t.children.get(n)!==void 0;s++)n=`${i}_${s}`;return n}static empty(e){return e.children.size===0}}class LC extends xu{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class eae extends xu{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class Ea extends xu{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(e,t,i){const n=new Qi(i),s=new Ea(t.uri),r=e.ordered(t),a=r.map((c,d)=>{var h;const u=xu.findId(`provider_${d}`,s),g=new eae(u,s,(h=c.displayName)!==null&&h!==void 0?h:"Unknown Outline Provider",d);return Promise.resolve(c.provideDocumentSymbols(t,n.token)).then(f=>{for(const _ of f||[])Ea._makeOutlineElement(_,g);return g},f=>(Pi(f),g)).then(f=>{xu.empty(f)?f.remove():s._groups.set(u,f)})}),l=e.onDidChange(()=>{const c=e.ordered(t);Ss(c,r)||n.cancel()});return Promise.all(a).then(()=>n.token.isCancellationRequested&&!i.isCancellationRequested?Ea.create(e,t,i):s._compact()).finally(()=>{l.dispose()})}static _makeOutlineElement(e,t){const i=xu.findId(e,t),n=new LC(i,t,e);if(e.children)for(const s of e.children)Ea._makeOutlineElement(s,n);t.children.set(n.id,n)}_compact(){let e=0;for(const[t,i]of this._groups)i.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{const t=je.first(this._groups.values());for(const[,i]of t.children)i.parent=this,this.children.set(i.id,i)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof LC?e.push(t.symbol):e.push(...je.map(t.children.values(),i=>i.symbol));return e.sort((t,i)=>L.compareRangesUsingStarts(t.range,i.range))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return Ea._flattenDocumentSymbols(t,e,""),t.sort((i,n)=>B.compare(L.getStartPosition(i.range),L.getStartPosition(n.range))||B.compare(L.getEndPosition(n.range),L.getEndPosition(i.range)))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&Ea._flattenDocumentSymbols(e,n.children,n.name)}}const pw=Ye("IOutlineModelService");let wx=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new Q,this._cache=new Dc(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved(n=>{this._cache.delete(n.id)}))}dispose(){this._disposables.dispose()}getOrCreate(e,t){return Jre(this,void 0,void 0,function*(){const i=this._languageFeaturesService.documentSymbolProvider,n=i.ordered(e);let s=this._cache.get(e.id);if(!s||s.versionId!==e.getVersionId()||!Ss(s.provider,n)){const a=new Qi;s={versionId:e.getVersionId(),provider:n,promiseCnt:0,source:a,promise:Ea.create(i,e,a.token),model:void 0},this._cache.set(e.id,s);const l=Date.now();s.promise.then(c=>{s.model=c,this._debounceInformation.update(e,Date.now()-l)}).catch(c=>{this._cache.delete(e.id)})}if(s.model)return s.model;s.promiseCnt+=1;const r=t.onCancellationRequested(()=>{--s.promiseCnt===0&&(s.source.cancel(),this._cache.delete(e.id))});try{return yield s.promise}finally{r.dispose()}})}};wx=Xre([Ny(0,de),Ny(1,no),Ny(2,Ut)],wx);et(pw,wx,!0);var tae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};Xe.registerCommand("_executeDocumentSymbolProvider",function(o,...e){return tae(this,void 0,void 0,function*(){const[t]=e;pt(_e.isUri(t));const i=o.get(pw),s=yield o.get(Kn).createModelReference(t);try{return(yield i.getOrCreate(s.object.textEditorModel,ze.None)).getTopLevelSymbols()}finally{s.dispose()}})});const DC="editor.action.inlineSuggest.commit";function iae(o,e){return{object:o,dispose:()=>e==null?void 0:e.dispose()}}function nae(o,e){const t=new sae(o),i=e.map(n=>{const s=L.lift(n.range);return{startOffset:t.getOffset(s.getStartPosition()),endOffset:t.getOffset(s.getEndPosition()),text:n.text}});i.sort((n,s)=>s.startOffset-n.startOffset);for(const n of i)o=o.substring(0,n.startOffset)+n.text+o.substring(n.endOffset);return o}class sae{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t({range:{startLineNumber:1,endLineNumber:1,startColumn:s.column,endColumn:s.column},text:s.lines.join(` `)}))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(e=>e.lines.length===0)}}class Sx{constructor(e,t,i){this.column=e,this.lines=t,this.preview=i}}class a9{constructor(e,t,i,n,s=0){this.lineNumber=e,this.columnStart=t,this.length=i,this.newLines=n,this.additionalReservedLineCount=s,this.parts=[new Sx(this.columnStart+this.length,this.newLines,!1)]}renderForScreenReader(e){return this.newLines.join(` -`)}}class l9 extends H{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(108)&&this._expanded===void 0&&this.onDidChangeEmitter.fire()}))}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}function kC(o,e){if(!e)return e;const t=o.getValueInRange(e.range),i=Nd(t,e.insertText),n=o.getOffsetAt(e.range.getStartPosition())+i,s=o.getPositionAt(n),r=t.substr(i),a=Wp(r,e.insertText),l=o.getPositionAt(Math.max(n,o.getOffsetAt(e.range.getEndPosition())-a));return{range:L.fromPositions(s,l),insertText:e.insertText.substr(i,e.insertText.length-i-a),snippetInfo:e.snippetInfo,filterText:e.filterText,additionalTextEdits:e.additionalTextEdits}}function aae(o,e){return o===e?!0:!o||!e?!1:o.range.equalsRange(e.range)&&o.insertText===e.insertText&&o.command===e.command}function c9(o,e,t,i,n=0){if(o.range.startLineNumber!==o.range.endLineNumber)return;const s=e.getLineContent(o.range.startLineNumber),r=_t(s).length;if(o.range.startColumn-1<=r){const g=_t(o.insertText).length,f=s.substring(o.range.startColumn-1,r),_=L.fromPositions(o.range.getStartPosition().delta(0,f.length),o.range.getEndPosition()),b=o.insertText.startsWith(f)?o.insertText.substring(f.length):o.insertText.substring(g);o={range:_,insertText:b,command:o.command,snippetInfo:void 0,filterText:o.filterText,additionalTextEdits:o.additionalTextEdits}}const l=e.getValueInRange(o.range),c=lae(l,o.insertText);if(!c)return;const d=o.range.startLineNumber,h=new Array;if(t==="prefix"){const g=c.filter(f=>f.originalLength===0);if(g.length>1||g.length===1&&g[0].originalStart!==l.length)return}const u=o.insertText.length-n;for(const g of c){const f=o.range.startColumn+g.originalStart+g.originalLength;if(t==="subwordSmart"&&i&&i.lineNumber===o.range.startLineNumber&&f0)return;if(g.modifiedLength===0)continue;const _=g.modifiedStart+g.modifiedLength,b=Math.max(g.modifiedStart,Math.min(_,u)),v=o.insertText.substring(g.modifiedStart,b),C=o.insertText.substring(b,Math.max(g.modifiedStart,_));if(v.length>0){const w=jr(v);h.push(new Sx(f,w,!1))}if(C.length>0){const w=jr(C);h.push(new Sx(f,w,!0))}}return new r9(d,h,0)}let pr;function lae(o,e){if((pr==null?void 0:pr.originalValue)===o&&(pr==null?void 0:pr.newValue)===e)return pr==null?void 0:pr.changes;{let t=oO(o,e,!0);if(t){const i=sO(t);if(i>0){const n=oO(o,e,!1);n&&sO(n)5e3||e.length>5e3)return;function i(c){let d=0;for(let h=0,u=c.length;hd&&(d=g)}return d}const n=Math.max(i(o),i(e));function s(c){if(c<0)throw new Error("unexpected");return n+c+1}function r(c){let d=0,h=0;const u=new Int32Array(c.length);for(let g=0,f=c.length;ga},{getElements:()=>l}).ComputeDiff(!1).changes}function cae(o,e){const t=new lF,i=new dF(t,c=>e.getLanguageConfiguration(c)),n=new cF(new dae([o]),i),s=CD(n,[],void 0,!0);let r="";const a=o.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=Xt(d,c.openingBracket.length),c.child&&(l(c.child,d),d=Xt(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=Xt(d,c.closingBracket.length);else{const u=i.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);r+=u}else if(c.kind!==3){if(c.kind===0||c.kind===1)r+=a.substring(d,Xt(d,c.length));else if(c.kind===4)for(const h of c.children)l(h,d),d=Xt(d,h.length)}}return l(s,mo),r}class dae{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var hae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Of=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Na=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let yx=class extends H{constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.cache=t,this.commandService=i,this.languageConfigurationService=n,this.languageFeaturesService=s,this.debounceService=r,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new _n),this.active=!1,this.disposed=!1,this.debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(i.onDidExecuteCommand(l=>{new Set([Wu.Tab.id,Wu.DeleteLeft.id,Wu.DeleteRight.id,DC,"acceptSelectedSuggestion"]).has(l.commandId)&&e.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(l=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(l=>{(l.reason===3||this.session&&!this.session.isValid)&&this.hide()})),this._register(Be(()=>{this.disposed=!0})),this._register(this.editor.onDidBlurEditorWidget(()=>{a.getValue("editor.inlineSuggest.hideOnBlur")||this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.disposed||this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var e;return(e=this.session)===null||e===void 0?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}setExpanded(e){var t;(t=this.session)===null||t===void 0||t.setExpanded(e)}setActive(e){var t;this.active=e,e&&((t=this.session)===null||t===void 0||t.scheduleAutomaticUpdate())}startSessionIfTriggered(){!this.editor.getOption(57).enabled||this.session&&this.session.isValid||this.trigger(Ps.Automatic)}trigger(e){if(this.completionSession.value){e===Ps.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext();return}this.completionSession.value=new uae(this.editor,this.editor.getPosition(),()=>this.active,this.commandService,this.cache,e,this.languageConfigurationService,this.languageFeaturesService.inlineCompletionsProvider,this.debounceValue),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()}))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;(e=this.session)===null||e===void 0||e.commitCurrentCompletion()}showNext(){var e;(e=this.session)===null||e===void 0||e.showNextInlineCompletion()}showPrevious(){var e;(e=this.session)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){const t=yield(e=this.session)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};yx=hae([Of(2,ci),Of(3,si),Of(4,de),Of(5,no),Of(6,ot)],yx);class uae extends l9{constructor(e,t,i,n,s,r,a,l,c){super(e),this.triggerPosition=t,this.shouldUpdate=i,this.commandService=n,this.cache=s,this.initialTriggerKind=r,this.languageConfigurationService=a,this.registry=l,this.debounce=c,this.minReservedLineCount=0,this.updateOperation=this._register(new _n),this.updateSoon=this._register(new mt(()=>{const h=this.initialTriggerKind;return this.initialTriggerKind=Ps.Automatic,this.update(h)},50)),this.filteredCompletions=[],this.currentlySelectedCompletionId=void 0;let d;this._register(this.onDidChange(()=>{var h;const u=this.currentCompletion;if(u&&u.sourceInlineCompletion!==d){d=u.sourceInlineCompletion;const g=u.sourceProvider;(h=g.handleItemDidShow)===null||h===void 0||h.call(g,u.sourceInlineCompletions,d)}})),this._register(Be(()=>{this.cache.clear()})),this._register(this.editor.onDidChangeCursorPosition(h=>{var u;h.reason!==3&&((u=this.cache.value)===null||u===void 0||u.updateRanges(),this.cache.value&&(this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire()))})),this._register(this.editor.onDidChangeModelContent(h=>{var u;(u=this.cache.value)===null||u===void 0||u.updateRanges(),this.updateFilteredInlineCompletions(),this.scheduleAutomaticUpdate()})),this._register(this.registry.onDidChange(()=>{this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))})),this.scheduleAutomaticUpdate()}updateFilteredInlineCompletions(){if(!this.cache.value){this.filteredCompletions=[];return}const e=this.editor.getModel(),t=e.validatePosition(this.editor.getPosition());this.filteredCompletions=this.cache.value.completions.filter(i=>{const n=e.getValueInRange(i.synchronizedRange).toLowerCase(),s=i.inlineCompletion.filterText.toLowerCase(),r=e.getLineIndentColumn(i.synchronizedRange.startLineNumber),a=Math.max(0,t.column-i.synchronizedRange.startColumn);let l=s.substring(0,a),c=s.substring(a),d=n.substring(0,a),h=n.substring(a);return i.synchronizedRange.startColumn<=r&&(d=d.trimStart(),d.length===0&&(h=h.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&AF(h,c)})}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value||this.cache.value.completions.length===0)return 0;const e=this.filteredCompletions.findIndex(t=>t.semanticId===this.currentlySelectedCompletionId);return e===-1?(this.currentlySelectedCompletionId=void 0,0):e}get currentCachedCompletion(){if(!!this.cache.value)return this.filteredCompletions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}showPreviousInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+e.length-1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}ensureUpdateWithExplicitContext(){var e;return Na(this,void 0,void 0,function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===Ps.Explicit?yield this.updateOperation.value.promise:yield this.update(Ps.Explicit):((e=this.cache.value)===null||e===void 0?void 0:e.triggerKind)!==Ps.Explicit&&(yield this.update(Ps.Explicit))})}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){return yield this.ensureUpdateWithExplicitContext(),(((e=this.cache.value)===null||e===void 0?void 0:e.completions.length)||0)>1})}get ghostText(){const e=this.currentCompletion;if(!e)return;const t=this.editor.getPosition();if(e.range.getEndPosition().isBefore(t))return;const i=this.editor.getOptions().get(57).mode,n=c9(e,this.editor.getModel(),i,t);return n?n.isEmpty()?void 0:n:new a9(e.range.startLineNumber,e.range.startColumn,e.range.endColumn-e.range.startColumn,e.insertText.split(` +`)}}class l9 extends H{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(108)&&this._expanded===void 0&&this.onDidChangeEmitter.fire()}))}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}function kC(o,e){if(!e)return e;const t=o.getValueInRange(e.range),i=Nd(t,e.insertText),n=o.getOffsetAt(e.range.getStartPosition())+i,s=o.getPositionAt(n),r=t.substr(i),a=Wp(r,e.insertText),l=o.getPositionAt(Math.max(n,o.getOffsetAt(e.range.getEndPosition())-a));return{range:L.fromPositions(s,l),insertText:e.insertText.substr(i,e.insertText.length-i-a),snippetInfo:e.snippetInfo,filterText:e.filterText,additionalTextEdits:e.additionalTextEdits}}function aae(o,e){return o===e?!0:!o||!e?!1:o.range.equalsRange(e.range)&&o.insertText===e.insertText&&o.command===e.command}function c9(o,e,t,i,n=0){if(o.range.startLineNumber!==o.range.endLineNumber)return;const s=e.getLineContent(o.range.startLineNumber),r=_t(s).length;if(o.range.startColumn-1<=r){const g=_t(o.insertText).length,f=s.substring(o.range.startColumn-1,r),_=L.fromPositions(o.range.getStartPosition().delta(0,f.length),o.range.getEndPosition()),b=o.insertText.startsWith(f)?o.insertText.substring(f.length):o.insertText.substring(g);o={range:_,insertText:b,command:o.command,snippetInfo:void 0,filterText:o.filterText,additionalTextEdits:o.additionalTextEdits}}const l=e.getValueInRange(o.range),c=lae(l,o.insertText);if(!c)return;const d=o.range.startLineNumber,h=new Array;if(t==="prefix"){const g=c.filter(f=>f.originalLength===0);if(g.length>1||g.length===1&&g[0].originalStart!==l.length)return}const u=o.insertText.length-n;for(const g of c){const f=o.range.startColumn+g.originalStart+g.originalLength;if(t==="subwordSmart"&&i&&i.lineNumber===o.range.startLineNumber&&f0)return;if(g.modifiedLength===0)continue;const _=g.modifiedStart+g.modifiedLength,b=Math.max(g.modifiedStart,Math.min(_,u)),v=o.insertText.substring(g.modifiedStart,b),C=o.insertText.substring(b,Math.max(g.modifiedStart,_));if(v.length>0){const w=jr(v);h.push(new Sx(f,w,!1))}if(C.length>0){const w=jr(C);h.push(new Sx(f,w,!0))}}return new r9(d,h,0)}let pr;function lae(o,e){if((pr==null?void 0:pr.originalValue)===o&&(pr==null?void 0:pr.newValue)===e)return pr==null?void 0:pr.changes;{let t=oO(o,e,!0);if(t){const i=sO(t);if(i>0){const n=oO(o,e,!1);n&&sO(n)5e3||e.length>5e3)return;function i(c){let d=0;for(let h=0,u=c.length;hd&&(d=g)}return d}const n=Math.max(i(o),i(e));function s(c){if(c<0)throw new Error("unexpected");return n+c+1}function r(c){let d=0,h=0;const u=new Int32Array(c.length);for(let g=0,f=c.length;ga},{getElements:()=>l}).ComputeDiff(!1).changes}function cae(o,e){const t=new l5,i=new d5(t,c=>e.getLanguageConfiguration(c)),n=new c5(new dae([o]),i),s=CD(n,[],void 0,!0);let r="";const a=o.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=Xt(d,c.openingBracket.length),c.child&&(l(c.child,d),d=Xt(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=Xt(d,c.closingBracket.length);else{const u=i.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);r+=u}else if(c.kind!==3){if(c.kind===0||c.kind===1)r+=a.substring(d,Xt(d,c.length));else if(c.kind===4)for(const h of c.children)l(h,d),d=Xt(d,h.length)}}return l(s,mo),r}class dae{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var hae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Of=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Na=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let yx=class extends H{constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.cache=t,this.commandService=i,this.languageConfigurationService=n,this.languageFeaturesService=s,this.debounceService=r,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new _n),this.active=!1,this.disposed=!1,this.debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(i.onDidExecuteCommand(l=>{new Set([Wu.Tab.id,Wu.DeleteLeft.id,Wu.DeleteRight.id,DC,"acceptSelectedSuggestion"]).has(l.commandId)&&e.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(l=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(l=>{(l.reason===3||this.session&&!this.session.isValid)&&this.hide()})),this._register(Be(()=>{this.disposed=!0})),this._register(this.editor.onDidBlurEditorWidget(()=>{a.getValue("editor.inlineSuggest.hideOnBlur")||this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.disposed||this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var e;return(e=this.session)===null||e===void 0?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}setExpanded(e){var t;(t=this.session)===null||t===void 0||t.setExpanded(e)}setActive(e){var t;this.active=e,e&&((t=this.session)===null||t===void 0||t.scheduleAutomaticUpdate())}startSessionIfTriggered(){!this.editor.getOption(57).enabled||this.session&&this.session.isValid||this.trigger(Ps.Automatic)}trigger(e){if(this.completionSession.value){e===Ps.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext();return}this.completionSession.value=new uae(this.editor,this.editor.getPosition(),()=>this.active,this.commandService,this.cache,e,this.languageConfigurationService,this.languageFeaturesService.inlineCompletionsProvider,this.debounceValue),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()}))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;(e=this.session)===null||e===void 0||e.commitCurrentCompletion()}showNext(){var e;(e=this.session)===null||e===void 0||e.showNextInlineCompletion()}showPrevious(){var e;(e=this.session)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){const t=yield(e=this.session)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};yx=hae([Of(2,ci),Of(3,si),Of(4,de),Of(5,no),Of(6,ot)],yx);class uae extends l9{constructor(e,t,i,n,s,r,a,l,c){super(e),this.triggerPosition=t,this.shouldUpdate=i,this.commandService=n,this.cache=s,this.initialTriggerKind=r,this.languageConfigurationService=a,this.registry=l,this.debounce=c,this.minReservedLineCount=0,this.updateOperation=this._register(new _n),this.updateSoon=this._register(new mt(()=>{const h=this.initialTriggerKind;return this.initialTriggerKind=Ps.Automatic,this.update(h)},50)),this.filteredCompletions=[],this.currentlySelectedCompletionId=void 0;let d;this._register(this.onDidChange(()=>{var h;const u=this.currentCompletion;if(u&&u.sourceInlineCompletion!==d){d=u.sourceInlineCompletion;const g=u.sourceProvider;(h=g.handleItemDidShow)===null||h===void 0||h.call(g,u.sourceInlineCompletions,d)}})),this._register(Be(()=>{this.cache.clear()})),this._register(this.editor.onDidChangeCursorPosition(h=>{var u;h.reason!==3&&((u=this.cache.value)===null||u===void 0||u.updateRanges(),this.cache.value&&(this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire()))})),this._register(this.editor.onDidChangeModelContent(h=>{var u;(u=this.cache.value)===null||u===void 0||u.updateRanges(),this.updateFilteredInlineCompletions(),this.scheduleAutomaticUpdate()})),this._register(this.registry.onDidChange(()=>{this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))})),this.scheduleAutomaticUpdate()}updateFilteredInlineCompletions(){if(!this.cache.value){this.filteredCompletions=[];return}const e=this.editor.getModel(),t=e.validatePosition(this.editor.getPosition());this.filteredCompletions=this.cache.value.completions.filter(i=>{const n=e.getValueInRange(i.synchronizedRange).toLowerCase(),s=i.inlineCompletion.filterText.toLowerCase(),r=e.getLineIndentColumn(i.synchronizedRange.startLineNumber),a=Math.max(0,t.column-i.synchronizedRange.startColumn);let l=s.substring(0,a),c=s.substring(a),d=n.substring(0,a),h=n.substring(a);return i.synchronizedRange.startColumn<=r&&(d=d.trimStart(),d.length===0&&(h=h.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&A5(h,c)})}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value||this.cache.value.completions.length===0)return 0;const e=this.filteredCompletions.findIndex(t=>t.semanticId===this.currentlySelectedCompletionId);return e===-1?(this.currentlySelectedCompletionId=void 0,0):e}get currentCachedCompletion(){if(!!this.cache.value)return this.filteredCompletions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}showPreviousInlineCompletion(){return Na(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+e.length-1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}ensureUpdateWithExplicitContext(){var e;return Na(this,void 0,void 0,function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===Ps.Explicit?yield this.updateOperation.value.promise:yield this.update(Ps.Explicit):((e=this.cache.value)===null||e===void 0?void 0:e.triggerKind)!==Ps.Explicit&&(yield this.update(Ps.Explicit))})}hasMultipleInlineCompletions(){var e;return Na(this,void 0,void 0,function*(){return yield this.ensureUpdateWithExplicitContext(),(((e=this.cache.value)===null||e===void 0?void 0:e.completions.length)||0)>1})}get ghostText(){const e=this.currentCompletion;if(!e)return;const t=this.editor.getPosition();if(e.range.getEndPosition().isBefore(t))return;const i=this.editor.getOptions().get(57).mode,n=c9(e,this.editor.getModel(),i,t);return n?n.isEmpty()?void 0:n:new a9(e.range.startLineNumber,e.range.startColumn,e.range.endColumn-e.range.startColumn,e.insertText.split(` `),0)}get currentCompletion(){const e=this.currentCachedCompletion;if(!!e)return e.toLiveInlineCompletion()}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))}update(e){return Na(this,void 0,void 0,function*(){if(!this.shouldUpdate())return;const t=this.editor.getPosition(),i=new Date,n=Ri(r=>Na(this,void 0,void 0,function*(){let a;try{a=yield h9(this.registry,t,this.editor.getModel(),{triggerKind:e,selectedSuggestionInfo:void 0},r,this.languageConfigurationService);const l=new Date;this.debounce.update(this.editor.getModel(),l.getTime()-i.getTime())}catch(l){Te(l);return}r.isCancellationRequested||(this.cache.setValue(this.editor,a,e),this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire())})),s=new d9(n,e);this.updateOperation.value=s,yield n,this.updateOperation.value===s&&this.updateOperation.clear()})}takeOwnership(e){this._register(e)}commitCurrentCompletion(){if(!this.ghostText)return;const t=this.currentCompletion;t&&this.commit(t)}commit(e){var t;const i=this.cache.clearAndLeak();e.snippetInfo?(this.editor.executeEdits("inlineSuggestion.accept",[Ft.replaceMove(e.range,""),...e.additionalTextEdits]),this.editor.setPosition(e.snippetInfo.range.getStartPosition()),(t=Oi.get(this.editor))===null||t===void 0||t.insert(e.snippetInfo.snippet)):this.editor.executeEdits("inlineSuggestion.accept",[Ft.replaceMove(e.range,e.insertText),...e.additionalTextEdits]),e.command?this.commandService.executeCommand(e.command.id,...e.command.arguments||[]).finally(()=>{i==null||i.dispose()}).then(void 0,Pi):i==null||i.dispose(),this.onDidChangeEmitter.fire()}get commands(){var e;return[...new Set(((e=this.cache.value)===null||e===void 0?void 0:e.completions.map(i=>i.inlineCompletion.sourceInlineCompletions))||[])].flatMap(i=>i.commands||[])}}class d9{constructor(e,t){this.promise=e,this.triggerKind=t}dispose(){this.promise.cancel()}}class gae extends H{constructor(e,t,i,n){super(),this.editor=t,this.onChange=i,this.triggerKind=n,this.isDisposing=!1;const s=t.changeDecorations(r=>r.deltaDecorations([],e.items.map(a=>({range:a.range,options:{description:"inline-completion-tracking-range"}}))));this._register(Be(()=>{this.isDisposing=!0,t.removeDecorations(s)})),this.completions=e.items.map((r,a)=>new fae(r,s[a])),this._register(t.onDidChangeModelContent(()=>{this.updateRanges()})),this._register(e)}updateRanges(){if(this.isDisposing)return;let e=!1;const t=this.editor.getModel();for(const i of this.completions){const n=t.getDecorationRange(i.decorationId);if(!n){Te(new Error("Decoration has no range"));continue}i.synchronizedRange.equalsRange(n)||(e=!0,i.synchronizedRange=n)}e&&this.onChange()}}class fae{constructor(e,t){this.inlineCompletion=e,this.decorationId=t,this.semanticId=JSON.stringify({text:this.inlineCompletion.insertText,abbreviation:this.inlineCompletion.filterText,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=e.range}toLiveInlineCompletion(){return{insertText:this.inlineCompletion.insertText,range:this.synchronizedRange,command:this.inlineCompletion.command,sourceProvider:this.inlineCompletion.sourceProvider,sourceInlineCompletions:this.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:this.inlineCompletion.sourceInlineCompletion,snippetInfo:this.inlineCompletion.snippetInfo,filterText:this.inlineCompletion.filterText,additionalTextEdits:this.inlineCompletion.additionalTextEdits}}}function h9(o,e,t,i,n=ze.None,s){return Na(this,void 0,void 0,function*(){const r=pae(e,t),a=o.all(t),l=yield Promise.all(a.map(d=>Na(this,void 0,void 0,function*(){const h=yield Promise.resolve(d.provideInlineCompletions(t,e,i,n)).catch(Pi);return{completions:h,provider:d,dispose:()=>{h&&d.freeInlineCompletions(h)}}}))),c=new Map;for(const d of l){const h=d.completions;if(!!h)for(const u of h.items){let g=u.range?L.lift(u.range):r;if(g.startLineNumber!==g.endLineNumber)continue;let f,_;if(typeof u.insertText=="string"){if(f=u.insertText,s&&u.completeBracketPairs){f=mae(f,g.getStartPosition(),t,s);const v=f.length-u.insertText.length;v!==0&&(g=new L(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn+v))}_=void 0}else"snippet"in u.insertText?(f=new _c().parse(u.insertText.snippet).toString(),_={snippet:u.insertText.snippet,range:g}):OC(u.insertText);const b={insertText:f,snippetInfo:_,range:g,command:u.command,sourceProvider:d.provider,sourceInlineCompletions:h,sourceInlineCompletion:u,filterText:u.filterText||f,additionalTextEdits:u.additionalTextEdits||rae()};c.set(JSON.stringify({insertText:f,range:u.range}),b)}}return{items:[...c.values()],dispose:()=>{for(const d of l)d.dispose()}}})}function pae(o,e){const t=e.getWordAtPosition(o),i=e.getLineMaxColumn(o.lineNumber);return t?new L(o.lineNumber,t.startColumn,o.lineNumber,i):L.fromPositions(o,o.with(void 0,i))}function mae(o,e,t,i){const s=t.getLineContent(e.lineNumber).substring(0,e.column-1)+o,r=t.tokenization.tokenizeLineWithEdit(e,s.length-(e.column-1),o),a=r==null?void 0:r.sliceAndInflate(e.column-1,s.length,0);return a?cae(a,i):o}var _ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class cT{constructor(e){this.name=e}select(e,t,i){if(i.length===0)return 0;const n=i[0].score[0];for(let s=0;sl&&h.type===i[c].completion.kind&&h.insertText===i[c].completion.insertText&&(l=h.touch,a=c),i[c].completion.preselect&&r===-1)return r=c}return a!==-1?a:r!==-1?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();const t=0;for(const[i,n]of e)n.touch=t,n.type=typeof n.type=="number"?n.type:Pp.fromString(n.type),this._cache.set(i,n);this._seq=this._cache.size}}class vae extends cT{constructor(){super("recentlyUsedByPrefix"),this._trie=Uu.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),s=`${e.getLanguageId()}/${n}`;this._trie.set(s,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const s=`${e.getLanguageId()}/${n}`;let r=this._trie.get(s);if(r||(r=this._trie.findSubstr(s)),r)for(let a=0;ae.push([i,t])),e.sort((t,i)=>-(t[1].touch-i[1].touch)).forEach((t,i)=>t[1].touch=i),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type=typeof i.type=="number"?i.type:Pp.fromString(i.type),this._trie.set(t,i)}}}let Um=class O0{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new Q,this._persistSoon=new mt(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(i=>{i.reason===lC.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(((i=this._strategy)===null||i===void 0?void 0:i.name)!==n){this._saveState();const s=O0._strategyCtors.get(n)||u9;this._strategy=new s;try{const a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${O0._storagePrefix}/${n}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch{}}return this._strategy}_saveState(){if(this._strategy){const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=JSON.stringify(this._strategy);this._storageService.store(`${O0._storagePrefix}/${this._strategy.name}`,i,t,1)}}};Um._strategyCtors=new Map([["recentlyUsedByPrefix",vae],["recentlyUsed",bae],["first",u9]]);Um._storagePrefix="suggest/memories";Um=_ae([rO(0,Do),rO(1,ot)],Um);const mw=Ye("ISuggestMemories");et(mw,Um,!0);var Cae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wae=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let $m=class g9{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=g9.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(i=>i.hasChanged(113)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),(e=this._selectionListener)===null||e===void 0||e.dispose(),this._ckAtEnd.reset()}_update(){const e=this._editor.getOption(113)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){const t=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const i=this._editor.getModel(),n=this._editor.getSelection(),s=i.getWordAtPosition(n.getStartPosition());if(!s){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(s.endColumn===n.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};$m.AtEnd=new le("atEndOfWord",!1);$m=Cae([wae(1,Ee)],$m);var Sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yae=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ih=class P0{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=P0.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),(e=this._listener)===null||e===void 0||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(e.items.length===0){this.reset();return}if(P0._moveIndex(!0,e,t)===t){this.reset();return}this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(e,t,i){let n=i;for(;n=(n+t.items.length+(e?1:-1))%t.items.length,!(n===i||!t.items[n].completion.additionalTextEdits););return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(!!this._model)try{this._ignore=!0,this._index=P0._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};ih.OtherSuggestions=new le("hasOtherSuggestions",!1);ih=Sae([yae(1,Ee)],ih);class Lae{constructor(e,t,i){this._disposables=new Q,this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(n=>{if(this._active&&!t.isFrozen()){const s=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(s)&&e.getOption(0)&&i(this._active.item)}}))}_onItem(e){if(!e||!rn(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;const t=new cu;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var Dae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class fs{provideSelectionRanges(e,t){return Dae(this,void 0,void 0,function*(){const i=[];for(const n of t){const s=[];i.push(s);const r=new Map;yield new Promise(a=>fs._bracketsRightYield(a,0,e,n,r)),yield new Promise(a=>fs._bracketsLeftYield(a,0,e,n,r,s))}return i})}static _bracketsRightYield(e,t,i,n,s){const r=new Map,a=Date.now();for(;;){if(t>=fs._maxRounds){e();break}if(!n){e();break}const l=i.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-a>fs._maxDuration){setTimeout(()=>fs._bracketsRightYield(e,t+1,i,n,s));break}if(l.bracketInfo.isOpeningBracket){const d=l.bracketInfo.bracketText,h=r.has(d)?r.get(d):0;r.set(d,h+1)}else{const d=l.bracketInfo.getClosedBrackets()[0].bracketText;let h=r.has(d)?r.get(d):0;if(h-=1,r.set(d,Math.max(0,h)),h<0){let u=s.get(d);u||(u=new Dn,s.set(d,u)),u.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,s,r){const a=new Map,l=Date.now();for(;;){if(t>=fs._maxRounds&&s.size===0){e();break}if(!n){e();break}const c=i.bracketPairs.findPrevBracket(n);if(!c){e();break}if(Date.now()-l>fs._maxDuration){setTimeout(()=>fs._bracketsLeftYield(e,t+1,i,n,s,r));break}if(c.bracketInfo.isOpeningBracket){const h=c.bracketInfo.bracketText;let u=a.has(h)?a.get(h):0;if(u-=1,a.set(h,Math.max(0,u)),u<0){const g=s.get(h);if(g){const f=g.shift();g.size===0&&s.delete(h);const _=L.fromPositions(c.range.getEndPosition(),f.getStartPosition()),b=L.fromPositions(c.range.getStartPosition(),f.getEndPosition());r.push({range:_}),r.push({range:b}),fs._addBracketLeading(i,b,r)}}}else{const h=c.bracketInfo.getClosedBrackets()[0].bracketText,u=a.has(h)?a.get(h):0;a.set(h,u+1)}n=c.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(n);s!==0&&s!==t.startColumn&&(i.push({range:L.fromPositions(new B(n,s),t.getEndPosition())}),i.push({range:L.fromPositions(new B(n,1),t.getEndPosition())}));const r=n-1;if(r>0){const a=e.getLineFirstNonWhitespaceColumn(r);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(r)&&(i.push({range:L.fromPositions(new B(r,a),t.getEndPosition())}),i.push({range:L.fromPositions(new B(r,1),t.getEndPosition())}))}}}fs._maxDuration=30;fs._maxRounds=2;var kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fo{static create(e,t){return kae(this,void 0,void 0,function*(){if(!t.getOption(108).localityBonus||!t.hasModel())return Fo.None;const i=t.getModel(),n=t.getPosition();if(!e.canComputeWordRanges(i.uri))return Fo.None;const[s]=yield new fs().provideSelectionRanges(i,[n]);if(s.length===0)return Fo.None;const r=yield e.computeWordRanges(i.uri,s[0].range);if(!r)return Fo.None;const a=i.getWordUntilPosition(n);return delete r[a.word],new class extends Fo{distance(l,c){if(!n.equals(t.getPosition()))return 0;if(c.kind===17)return 2<<20;const d=typeof c.label=="string"?c.label:c.label.label,h=r[d];if(WO(h))return 2<<20;const u=aI(h,L.fromPositions(l),L.compareRangesUsingStarts),g=u>=0?h[u]:h[Math.max(0,~u-1)];let f=s.length;for(const _ of s){if(!L.containsRange(_.range,g))break;f-=1}return f}}})}}Fo.None=new class extends Fo{distance(){return 0}};class aO{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class Al{constructor(e,t,i,n,s,r,a=$E.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=Al._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=s,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=a,r==="top"?this._snippetCompareFn=Al._compareCompletionItemsSnippetsUp:r==="bottom"&&(this._snippetCompareFn=Al._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){(this._lineContext.leadingLineContent!==e.leadingLineContent||this._lineContext.characterCountDelta!==e.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta2e3?mg:rZ;for(let c=0;c=u)d.score=Zo.Default;else if(typeof d.completion.filterText=="string"){const f=l(n,s,g,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!f)continue;FL(d.completion.filterText,d.textLabel)===0?d.score=f:(d.score=iZ(n,s,g,d.textLabel,d.labelLow,0),d.score[0]=f[0])}else{const f=l(n,s,g,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!f)continue;d.score=f}}d.idx=c,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),e.push(d.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?Uy(e.length-.85,e,(c,d)=>c-d):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return Al._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return Al._compareCompletionItems(e,t)}}var xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zc=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qh{constructor(e,t,i,n,s){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=i,this.shy=n,this.noSelect=s}static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!(!n||n.endColumn!==i.column||!isNaN(Number(n.word)))}}function Eae(o,e,t){if(!Boolean(e.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getValue("editor.inlineSuggest.allowQuickSuggestions");return i!==void 0?Boolean(i):!1}function Nae(o,e,t){if(!Boolean(e.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters");return i!==void 0?Boolean(i):!1}let Lx=class f9{constructor(e,t,i,n,s,r,a,l){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=s,this._contextKeyService=r,this._configurationService=a,this._languageFeaturesService=l,this._toDispose=new Q,this._triggerCharacterListener=new Q,this._triggerQuickSuggest=new xs,this._state=0,this._completionDisposables=new Q,this._onDidCancel=new R,this._onDidTrigger=new R,this._onDidSuggest=new R,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new oe(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let c=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{c=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{c=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(d=>{c||this._onCursorChange(d)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{c||this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){nt(this._triggerCharacterListener),nt([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(83)||!this._editor.hasModel()||!this._editor.getOption(111))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const n of i.triggerCharacters||[]){let s=e.get(n);s||(s=new Set,s.add(wse()),e.set(n,s)),s.add(i)}const t=i=>{if(!Nae(this._editor,this._contextKeyService,this._configurationService)||qh.shouldAutoTrigger(this._editor))return;if(!i){const r=this._editor.getPosition();i=this._editor.getModel().getLineContent(r.lineNumber).substr(0,r.column-1)}let n="";Td(i.charCodeAt(i.length-1))?Li(i.charCodeAt(i.length-2))&&(n=i.substr(i.length-2)):n=i.charAt(i.length-1);const s=e.get(n);if(s){const r=this._completionModel?{items:this._completionModel.adopt(s),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,noSelect:!1,triggerCharacter:n},Boolean(this._completionModel),s,r)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>t()))}get state(){return this._state}cancel(e=!1){var t;this._state!==0&&(this._triggerQuickSuggest.cancel(),(t=this._requestToken)===null||t===void 0||t.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._state!==0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1,noSelect:!1},!0))}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||e.reason!==0&&e.reason!==3||e.source!=="keyboard"&&e.source!=="deleteLeft"){this.cancel();return}this._state===0&&e.reason===0?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._state!==0&&e.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._state===0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;ku.isAllOff(this._editor.getOption(81))||this._editor.getOption(108).snippetsPreventQuickSuggestions&&((e=Oi.get(this._editor))===null||e===void 0?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._state!==0||!qh.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const t=this._editor.getModel(),i=this._editor.getPosition(),n=this._editor.getOption(81);if(!ku.isAllOff(n)){if(!ku.isAllOn(n)){t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.tokenization.getLineTokens(i.lineNumber),r=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(i.column-1-1,0)));if(ku.valueFor(n,r)!=="on")return}!Eae(this._editor,this._contextKeyService,this._configurationService)||!this._languageFeaturesService.completionProvider.has(t)||this.trigger({auto:!0,shy:!1,noSelect:!1})}},this._editor.getOption(82)))}_refilterCompletionItems(){Promise.resolve().then(()=>{if(this._state===0||!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=new qh(e,t,this._state===2,!1,!1);this._onNewContext(i)})}trigger(e,t=!1,i,n,s){var r;if(!this._editor.hasModel())return;const a=this._editor.getModel(),l=e.auto,c=new qh(a,this._editor.getPosition(),l,e.shy,e.noSelect);this.cancel(t),this._state=l?2:1,this._onDidTrigger.fire({auto:l,shy:e.shy,position:this._editor.getPosition()}),this._context=c;let d={triggerKind:(r=e.triggerKind)!==null&&r!==void 0?r:0};e.triggerCharacter&&(d={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new Qi;const h=this._editor.getOption(103);let u=1;switch(h){case"top":u=0;break;case"bottom":u=2;break}const{itemKind:g,showDeprecated:f}=f9._createSuggestFilter(this._editor),_=new Bm(u,s?new Set:g,i,f),b=Fo.create(this._editorWorkerService,this._editor),v=QN(this._languageFeaturesService.completionProvider,a,this._editor.getPosition(),_,d,this._requestToken.token);Promise.all([v,b]).then(([C,w])=>Iae(this,void 0,void 0,function*(){var S;if((S=this._requestToken)===null||S===void 0||S.dispose(),!this._editor.hasModel())return;let k=n==null?void 0:n.clipboardText;if(!k&&C.needsClipboard&&(k=yield this._clipboardService.readText()),this._state===0)return;const x=this._editor.getModel();let y=C.items;if(n){const I=T7(u);y=y.concat(n.items).sort(I)}const D=new qh(x,this._editor.getPosition(),l,e.shy,e.noSelect);this._completionModel=new Al(y,this._context.column,{leadingLineContent:D.leadingLineContent,characterCountDelta:D.column-this._context.column},w,this._editor.getOption(108),this._editor.getOption(103),void 0,k),this._completionDisposables.add(C.disposable),this._onNewContext(D),this._reportDurationsTelemetry(C.durations)})).catch(Te)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static _createSuggestFilter(e){const t=new Set;e.getOption(103)==="none"&&t.add(27);const n=e.getOption(108);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),{itemKind:t,showDeprecated:n.showDeprecated}}_onNewContext(e){if(!!this._context){if(e.lineNumber!==this._context.lineNumber){this.cancel();return}if(_t(e.leadingLineContent)!==_t(this._context.leadingLineContent)){this.cancel();return}if(e.columnthis._context.leadingWord.startColumn){const t=new Set(this._languageFeaturesService.completionProvider.all(this._editor.getModel()));for(const n of this._completionModel.allProvider)t.delete(n);const i=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0,t,{items:i,clipboardText:this._completionModel.clipboardText});return}if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&e.leadingWord.word.length!==0){const{incomplete:t}=this._completionModel,i=this._completionModel.adopt(t);this.trigger({auto:this._state===2,shy:!1,noSelect:!1,triggerKind:2},!0,t,{items:i,clipboardText:this._completionModel.clipboardText})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){if(qh.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0,i&&e.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,noSelect:this._context.noSelect,isFrozen:i})}}}}};Lx=xae([zc(1,to),zc(2,cl),zc(3,sr),zc(4,So),zc(5,Ee),zc(6,ot),zc(7,de)],Lx);class _w{constructor(e,t){this._disposables=new Q,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(!this._empty||!e.hasModel())return;const i=e.getSelections(),n=i.length;let s=!1;for(let a=0;a_w._maxSelectionLength)return;this._lastOvertyped[a]={value:r.getValueInRange(l),multiline:l.startLineNumber!==l.endLineNumber}}this._empty=!1})),this._disposables.add(t.onDidCancel(i=>{!this._empty&&!i.retrigger&&(this._empty=!0)}))}getLastOvertypedInfo(e){if(!this._empty&&e>=0&&e=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ty=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class dT extends xg{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=p("ddd","{0} ({1})",this._action.label,dT.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return(t=e.getLabel())===null||t===void 0?void 0:t.replace(/\benter\b/gi,"\u23CE")}}let Dx=class{constructor(e,t,i,n){this._menuService=i,this._contextKeyService=n,this._menuDisposables=new Q,this.element=q(e,J(".suggest-status-bar"));const s=r=>r instanceof ac?t.createInstance(dT,r,void 0):void 0;this._leftActions=new Zr(this.element,{actionViewItemProvider:s}),this._rightActions=new Zr(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(Ql,this._contextKeyService),t=()=>{const i=[],n=[];for(const[s,r]of e.getActions())s==="left"?i.push(...r):n.push(...r);this._leftActions.clear(),this._leftActions.push(i),this._rightActions.clear(),this._rightActions.push(n)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};Dx=Tae([Ty(1,Ae),Ty(2,ph),Ty(3,Ee)],Dx);const Aae=T("symbolIcon.arrayForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mae=T("symbolIcon.booleanForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rae=T("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},p("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Oae=T("symbolIcon.colorForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pae=T("symbolIcon.constantForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Fae=T("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},p("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Bae=T("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},p("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Wae=T("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vae=T("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},p("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Hae=T("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zae=T("symbolIcon.fileForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Uae=T("symbolIcon.folderForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$ae=T("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},p("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),jae=T("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kae=T("symbolIcon.keyForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),qae=T("symbolIcon.keywordForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gae=T("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},p("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Zae=T("symbolIcon.moduleForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Yae=T("symbolIcon.namespaceForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qae=T("symbolIcon.nullForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Xae=T("symbolIcon.numberForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jae=T("symbolIcon.objectForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ele=T("symbolIcon.operatorForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tle=T("symbolIcon.packageForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ile=T("symbolIcon.propertyForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nle=T("symbolIcon.referenceForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sle=T("symbolIcon.snippetForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ole=T("symbolIcon.stringForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rle=T("symbolIcon.structForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ale=T("symbolIcon.textForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),lle=T("symbolIcon.typeParameterForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),cle=T("symbolIcon.unitForeground",{dark:X,light:X,hcDark:X,hcLight:X},p("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),dle=T("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},p("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Et((o,e)=>{const t=o.getColor(Aae);t&&e.addRule(`${m.symbolArray.cssSelector} { color: ${t}; }`);const i=o.getColor(Mae);i&&e.addRule(`${m.symbolBoolean.cssSelector} { color: ${i}; }`);const n=o.getColor(Rae);n&&e.addRule(`${m.symbolClass.cssSelector} { color: ${n}; }`);const s=o.getColor(Gae);s&&e.addRule(`${m.symbolMethod.cssSelector} { color: ${s}; }`);const r=o.getColor(Oae);r&&e.addRule(`${m.symbolColor.cssSelector} { color: ${r}; }`);const a=o.getColor(Pae);a&&e.addRule(`${m.symbolConstant.cssSelector} { color: ${a}; }`);const l=o.getColor(Fae);l&&e.addRule(`${m.symbolConstructor.cssSelector} { color: ${l}; }`);const c=o.getColor(Bae);c&&e.addRule(` ${m.symbolValue.cssSelector},${m.symbolEnum.cssSelector} { color: ${c}; }`);const d=o.getColor(Wae);d&&e.addRule(`${m.symbolEnumMember.cssSelector} { color: ${d}; }`);const h=o.getColor(Vae);h&&e.addRule(`${m.symbolEvent.cssSelector} { color: ${h}; }`);const u=o.getColor(Hae);u&&e.addRule(`${m.symbolField.cssSelector} { color: ${u}; }`);const g=o.getColor(zae);g&&e.addRule(`${m.symbolFile.cssSelector} { color: ${g}; }`);const f=o.getColor(Uae);f&&e.addRule(`${m.symbolFolder.cssSelector} { color: ${f}; }`);const _=o.getColor($ae);_&&e.addRule(`${m.symbolFunction.cssSelector} { color: ${_}; }`);const b=o.getColor(jae);b&&e.addRule(`${m.symbolInterface.cssSelector} { color: ${b}; }`);const v=o.getColor(Kae);v&&e.addRule(`${m.symbolKey.cssSelector} { color: ${v}; }`);const C=o.getColor(qae);C&&e.addRule(`${m.symbolKeyword.cssSelector} { color: ${C}; }`);const w=o.getColor(Zae);w&&e.addRule(`${m.symbolModule.cssSelector} { color: ${w}; }`);const S=o.getColor(Yae);S&&e.addRule(`${m.symbolNamespace.cssSelector} { color: ${S}; }`);const k=o.getColor(Qae);k&&e.addRule(`${m.symbolNull.cssSelector} { color: ${k}; }`);const x=o.getColor(Xae);x&&e.addRule(`${m.symbolNumber.cssSelector} { color: ${x}; }`);const y=o.getColor(Jae);y&&e.addRule(`${m.symbolObject.cssSelector} { color: ${y}; }`);const D=o.getColor(ele);D&&e.addRule(`${m.symbolOperator.cssSelector} { color: ${D}; }`);const I=o.getColor(tle);I&&e.addRule(`${m.symbolPackage.cssSelector} { color: ${I}; }`);const O=o.getColor(ile);O&&e.addRule(`${m.symbolProperty.cssSelector} { color: ${O}; }`);const F=o.getColor(nle);F&&e.addRule(`${m.symbolReference.cssSelector} { color: ${F}; }`);const z=o.getColor(sle);z&&e.addRule(`${m.symbolSnippet.cssSelector} { color: ${z}; }`);const j=o.getColor(ole);j&&e.addRule(`${m.symbolString.cssSelector} { color: ${j}; }`);const re=o.getColor(rle);re&&e.addRule(`${m.symbolStruct.cssSelector} { color: ${re}; }`);const he=o.getColor(ale);he&&e.addRule(`${m.symbolText.cssSelector} { color: ${he}; }`);const Se=o.getColor(lle);Se&&e.addRule(`${m.symbolTypeParameter.cssSelector} { color: ${Se}; }`);const ye=o.getColor(cle);ye&&e.addRule(`${m.symbolUnit.cssSelector} { color: ${ye}; }`);const xe=o.getColor(dle);xe&&e.addRule(`${m.symbolVariable.cssSelector} { color: ${xe}; }`)});class p9{constructor(){this._onDidWillResize=new R,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new R,this.onDidResize=this._onDidResize.event,this._sashListener=new Q,this._size=new vt(0,0),this._minSize=new vt(0,0),this._maxSize=new vt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new tn(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new tn(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new tn(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:Fv.North}),this._southSash=new tn(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:Fv.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,i=0;this._sashListener.add(ge.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(ge.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(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(ge.any(this._eastSash.onDidReset,this._westSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(ge.any(this._northSash.onDidReset,this._southSash.onDidReset)(n=>{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:n}=this._minSize,{height:s,width:r}=this._maxSize;e=Math.max(i,Math.min(s,e)),t=Math.max(n,Math.min(r,t));const a=new vt(t,e);vt.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}}var hle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ule=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function hT(o){return!!o&&Boolean(o.completion.documentation||o.completion.detail&&o.completion.detail!==o.completion.label)}let kx=class{constructor(e,t){this._editor=e,this._onDidClose=new R,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new R,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new Q,this._renderDisposeable=new Q,this._borderWidth=1,this._size=new vt(330,0),this.domNode=J(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(ol,{editor:e}),this._body=J(".body"),this._scrollbar=new p_(this._body,{alwaysConsumeMouseWheel:!0}),q(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=q(this._body,J(".header")),this._close=q(this._header,J("span"+m.close.cssSelector)),this._close.title=p("details.close","Close"),this._type=q(this._header,J("p.type")),this._docs=q(this._body,J("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(46)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(46),i=t.getMassagedFontFamily(),n=e.get(109)||t.fontSize,s=e.get(110)||t.lineHeight,r=t.fontWeight,a=`${n}px`,l=`${s}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${s/n}`,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){const e=this._editor.getOption(110)||this._editor.getOption(46).lineHeight,t=this._borderWidth,i=t*2;return{lineHeight:e,borderWidth:t,borderHeight:i,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=p("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:r}=e.completion;if(t){let a="";a+=`score: ${e.score[0]} `,a+=`prefix: ${(i=e.word)!==null&&i!==void 0?i:"(no prefix)"} @@ -766,7 +766,7 @@ The flag will not be saved for the future. `,a+=`distance: ${e.distance} (localityBonus-setting) `,a+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"} `,a+=`commit_chars: ${(n=e.completion.commitCharacters)===null||n===void 0?void 0:n.join("")} -`,r=new Fn().appendCodeblock("empty",a),s=`Provider: ${e.provider._debugDisplayName}`}if(!t&&!hT(e)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),s){const a=s.length>1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=a,this._type.title=a,bs(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else Si(this._type),this._type.title="",Pn(this._type),this.domNode.classList.add("no-type");if(Si(this._docs),typeof r=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=r;else if(r){this._docs.classList.add("markdown-docs"),Si(this._docs);const a=this._markdownRenderer.render(r);this._docs.appendChild(a.element),this._renderDisposeable.add(a),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=a=>{a.preventDefault(),a.stopPropagation()},this._close.onclick=a=>{a.preventDefault(),a.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){const i=new vt(e,t);vt.equals(i,this._size)||(this._size=i,TH(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};kx=hle([ule(1,Ae)],kx);class gle{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new Q,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new p9,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let i,n,s=0,r=0;this._disposables.add(this._resizable.onDidWillResize(()=>{i=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(i&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(r=n.width-a.dimension.width,l=!0),a.north&&(s=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:i.top+s,left:i.left+r})}a.done&&(i=void 0,n=void 0,s=0,r=0,this._userSize=a.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var a;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(i=this._userSize)!==null&&i!==void 0?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=JC(document.body),r=this.widget.getLayoutInfo(),a=new vt(220,2*r.lineHeight),l=e.top,c=function(){const w=s.width-(e.left+e.width+r.borderWidth+r.horizontalPadding),S=-r.borderWidth+e.left+e.width,k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),d=function(){const w=e.left-r.borderWidth-r.horizontalPadding,S=Math.max(r.horizontalPadding,e.left-t.width-r.borderWidth),k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),h=function(){const w=e.left,S=-r.borderWidth+e.top+e.height,k=new vt(e.width-r.borderHeight,s.height-e.top-e.height-r.verticalPadding);return{top:S,left:w,fit:k.height-t.height,maxSizeBottom:k,maxSizeTop:k,minSize:a.with(k.width)}}(),u=[c,d,h],g=(n=u.find(w=>w.fit>=0))!==null&&n!==void 0?n:u.sort((w,S)=>S.fit-w.fit)[0],f=e.top+e.height-r.borderHeight;let _,b=t.height;const v=Math.max(g.maxSizeTop.height,g.maxSizeBottom.height);b>v&&(b=v);let C;i?b<=g.maxSizeTop.height?(_=!0,C=g.maxSizeTop):(_=!1,C=g.maxSizeBottom):b<=g.maxSizeBottom.height?(_=!1,C=g.maxSizeBottom):(_=!0,C=g.maxSizeTop),this._applyTopLeft({left:g.left,top:_?g.top:f-b}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!_,g===c,_,g!==c),this._resizable.minSize=g.minSize,this._resizable.maxSize=C,this._resizable.layout(b,Math.min(C.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}var Ka;(function(o){o[o.FILE=0]="FILE",o[o.FOLDER=1]="FOLDER",o[o.ROOT_FOLDER=2]="ROOT_FOLDER"})(Ka||(Ka={}));const fle=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function i0(o,e,t,i){const n=i===Ka.ROOT_FOLDER?["rootfolder-icon"]:i===Ka.FOLDER?["folder-icon"]:["file-icon"];if(t){let s;if(t.scheme===Me.data)s=cc.parseMetaData(t).get(cc.META_DATA_LABEL);else{const r=t.path.match(fle);r?(s=n0(r[2].toLowerCase()),r[1]&&n.push(`${n0(r[1].toLowerCase())}-name-dir-icon`)):s=n0(t.authority.toLowerCase())}if(i===Ka.FOLDER)n.push(`${s}-name-folder-icon`);else{if(s){if(n.push(`${s}-name-file-icon`),n.push("name-file-icon"),s.length<=255){const a=s.split(".");for(let l=1;l=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ay=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Pf;function m9(o){return`suggest-aria-id:${o}`}const _le=mi("suggest-more-info",m.chevronRight,p("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),ble=new(Pf=class F0{extract(e,t){if(e.textLabel.match(F0._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(F0._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){const i=F0._regexRelaxed.exec(e.completion.documentation);if(i&&(i.index===0||i.index+i[0].length===e.completion.documentation.length))return t[0]=i[0],!0}return!1}},Pf._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Pf._regexStrict=new RegExp(`^${Pf._regexRelaxed.source}$`,"i"),Pf);let xx=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new R,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=Object.create(null);t.disposables=new Q,t.root=e,t.root.classList.add("show-file-icons"),t.icon=q(e,J(".icon")),t.colorspan=q(t.icon,J("span.colorspan"));const i=q(e,J(".contents")),n=q(i,J(".main"));t.iconContainer=q(n,J(".icon-label.codicon")),t.left=q(n,J("span.left")),t.right=q(n,J("span.right")),t.iconLabel=new nC(t.left,{supportHighlights:!0,supportIcons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=q(t.left,J("span.signature-label")),t.qualifierLabel=q(t.left,J("span.qualifier-label")),t.detailsLabel=q(t.right,J("span.details-label")),t.readMore=q(t.right,J("span.readMore"+at.asCSSSelector(_le))),t.readMore.title=p("readMore","Read More");const s=()=>{const r=this._editor.getOptions(),a=r.get(46),l=a.getMassagedFontFamily(),c=a.fontFeatureSettings,d=r.get(109)||a.fontSize,h=r.get(110)||a.lineHeight,u=a.fontWeight,g=a.letterSpacing,f=`${d}px`,_=`${h}px`,b=`${g}px`;t.root.style.fontSize=f,t.root.style.fontWeight=u,t.root.style.letterSpacing=b,n.style.fontFamily=l,n.style.fontFeatureSettings=c,n.style.lineHeight=_,t.icon.style.height=_,t.icon.style.width=_,t.readMore.style.height=_,t.readMore.style.width=_};return s(),t.disposables.add(this._editor.onDidChangeConfiguration(r=>{(r.hasChanged(46)||r.hasChanged(109)||r.hasChanged(110))&&s()})),t}renderElement(e,t,i){const{completion:n}=e;i.root.id=m9(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:E1(e.score)},r=[];if(n.kind===19&&ble.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const a=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FILE),l=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FILE);s.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FOLDER),i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...Ln.asClassNameArray(Pp.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),typeof n.label=="string"?(i.parametersLabel.textContent="",i.detailsLabel.textContent=My(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=My(n.label.detail||""),i.detailsLabel.textContent=My(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(108).showInlineDetails?bs(i.detailsLabel):Pn(i.detailsLabel),hT(e)?(i.right.classList.add("can-expand-details"),bs(i.readMore),i.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},i.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),Pn(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};xx=mle([Ay(1,Ut),Ay(2,Ht),Ay(3,Ct)],xx);function My(o){return o.replace(/\r\n|\r|\n/g,"")}var vle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},s0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Cle=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};T("editorSuggestWidget.background",{dark:li,light:li,hcDark:li,hcLight:li},p("editorSuggestWidgetBackground","Background color of the suggest widget."));T("editorSuggestWidget.border",{dark:Ba,light:Ba,hcDark:Ba,hcLight:Ba},p("editorSuggestWidgetBorder","Border color of the suggest widget."));const o0=T("editorSuggestWidget.foreground",{dark:Cs,light:Cs,hcDark:Cs,hcLight:Cs},p("editorSuggestWidgetForeground","Foreground color of the suggest widget."));T("editorSuggestWidget.selectedForeground",{dark:jf,light:jf,hcDark:jf,hcLight:jf},p("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));T("editorSuggestWidget.selectedIconForeground",{dark:Kf,light:Kf,hcDark:Kf,hcLight:Kf},p("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const wle=T("editorSuggestWidget.selectedBackground",{dark:qf,light:qf,hcDark:qf,hcLight:qf},p("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));T("editorSuggestWidget.highlightForeground",{dark:fo,light:fo,hcDark:fo,hcLight:fo},p("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));T("editorSuggestWidget.focusHighlightForeground",{dark:ob,light:ob,hcDark:ob,hcLight:ob},p("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));T("editorSuggestWidgetStatus.foreground",{dark:fe(o0,.5),light:fe(o0,.5),hcDark:fe(o0,.5),hcLight:fe(o0,.5)},p("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class Sle{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Qd}`}restore(){var e;const t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{const i=JSON.parse(t);if(vt.is(i))return vt.lift(i)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let jm=class Ix{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new xs,this._disposables=new Q,this._onDidSelect=new R,this._onDidFocus=new R,this._onDidHide=new R,this._onDidShow=new R,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new R,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new p9,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new yle(this,e),this._persistedSize=new Sle(t,e);class r{constructor(g,f,_=!1,b=!1){this.persistedSize=g,this.currentSize=f,this.persistHeight=_,this.persistWidth=b}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new r(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(u=>{var g,f,_,b;if(this._resize(u.dimension.width,u.dimension.height),a&&(a.persistHeight=a.persistHeight||!!u.north||!!u.south,a.persistWidth=a.persistWidth||!!u.east||!!u.west),!!u.done){if(a){const{itemHeight:v,defaultSize:C}=this.getLayoutInfo(),w=Math.round(v/2);let{width:S,height:k}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-k)<=w)&&(k=(f=(g=a.persistedSize)===null||g===void 0?void 0:g.height)!==null&&f!==void 0?f:C.height),(!a.persistWidth||Math.abs(a.currentSize.width-S)<=w)&&(S=(b=(_=a.persistedSize)===null||_===void 0?void 0:_.width)!==null&&b!==void 0?b:C.width),this._persistedSize.store(new vt(S,k))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=q(this.element.domNode,J(".message")),this._listElement=q(this.element.domNode,J(".tree"));const l=s.createInstance(kx,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new gle(l,this.editor);const c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(108).showIcons);c();const d=s.createInstance(xx,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new rr("SuggestWidget",this._listElement,{getHeight:u=>this.getLayoutInfo().itemHeight,getTemplateId:u=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>p("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:u=>{let g=u.textLabel;if(typeof u.completion.label!="string"){const{detail:v,description:C}=u.completion.label;v&&C?g=p("label.full","{0}{1}, {2}",g,v,C):v?g=p("label.detail","{0}{1}",g,v):C&&(g=p("label.desc","{0}, {1}",g,C))}if(!u.isResolved||!this._isDetailsVisible())return g;const{documentation:f,detail:_}=u.completion,b=Vs("{0}{1}",_||"",f?typeof f=="string"?f:f.value:"");return p("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",g,b)}}}),this._status=s.createInstance(Dx,this.element.domNode);const h=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(108).showStatusBar);h(),this._disposables.add(Ud(this._list,n,{listInactiveFocusBackground:wle,listInactiveFocusOutline:Ot})),this._disposables.add(n.onDidColorThemeChange(u=>this._onThemeChange(u))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onTap(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onDidChangeSelection(u=>this._onListSelection(u))),this._disposables.add(this._list.onDidChangeFocus(u=>this._onListFocus(u))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(u=>{u.hasChanged(108)&&(h(),c())})),this._ctxSuggestWidgetVisible=Ke.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=Ke.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=Ke.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=Ke.HasFocusedSuggestion.bindTo(i),this._disposables.add(ki(this._details.widget.domNode,"keydown",u=>{this._onDetailsKeydown.fire(u)})),this._disposables.add(this.editor.onMouseDown(u=>this._onEditorMouseDown(u)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(e){typeof e.element>"u"||typeof e.index>"u"||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=cn(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=Ri(s=>Cle(this,void 0,void 0,function*(){const r=Ad(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=s.onCancellationRequested(()=>r.dispose()),l=yield i.resolve(s);return r.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:m9(n)}))}).catch(Te)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",e===4),this.element.domNode.classList.remove("message"),e){case 0:Pn(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.LOADING_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.NO_SUGGESTIONS_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 4:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 5:Pn(this._messageElement),bs(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=Ad(()=>this._setState(1),t)))}showSuggestions(e,t,i,n){var s,r;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(r=this._currentSuggestionDetails)===null||r===void 0||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&this._state!==2&&this._state!==0){this._setState(4);return}const a=this._completionModel.items.length,l=a===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l){this._setState(n?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),t>=0&&(this._list.reveal(t,0),this._list.setFocus([t])),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(hT(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);const d=this._completionModel?this._completionModel.stats.pLabelLen*r.typicalHalfwidthCharacterWidth:l,h=r.statusBarHeight+this._list.contentHeight+r.borderHeight,u=r.itemHeight+r.statusBarHeight,g=on(this.editor.getDomNode()),f=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),_=g.top+f.top+f.height,b=Math.min(s.height-_-r.verticalPadding,h),v=g.top+f.top-r.verticalPadding,C=Math.min(v,h);let w=Math.min(Math.max(C,b)+r.borderHeight,h);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aw&&(a=w);const S=150;a>b||this._forceRenderingAbove&&v>S?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),w=C):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),w=b),this.element.preferredSize=new vt(d,r.defaultSize.height),this.element.maxSize=new vt(c,w),this.element.minSize=new vt(220,u),this._cappedHeight=a===h?{wanted:(n=(i=this._cappedHeight)===null||i===void 0?void 0:i.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=`${t-s}px`,this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((e=this._contentWidget.getPosition())===null||e===void 0?void 0:e.preference[0])===2)}getLayoutInfo(){const e=this.editor.getOption(46),t=Zn(this.editor.getOption(110)||e.lineHeight,8,1e3),i=!this.editor.getOption(108).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new vt(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};jm.LOADING_MESSAGE=p("suggestWidget.loading","Loading...");jm.NO_SUGGESTIONS_MESSAGE=p("suggestWidget.noSuggestions","No suggestions.");jm=vle([s0(1,Do),s0(2,Ee),s0(3,Ct),s0(4,Ae)],jm);class yle{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new vt(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Lle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Dle{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){const n=e.getOffsetAt(t),s=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:L.fromPositions(t,s),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let _o=class _9{constructor(e,t,i,n,s,r,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=r,this._telemetryService=a,this._lineSuffix=new _n,this._toDispose=new Q,this._selectors=new kle(h=>h.priority),this._telemetryGate=0,this.editor=e,this.model=s.createInstance(Lx,this.editor);const l=Ke.InsertMode.bindTo(n);l.set(e.getOption(108).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(108).insertMode)),this.widget=this._toDispose.add(new $l(()=>{const h=this._instantiationService.createInstance(jm,this.editor);this._toDispose.add(h),this._toDispose.add(h.onDidSelect(b=>this._insertSuggestion(b,0),this));const u=new Lae(this.editor,h,b=>this._insertSuggestion(b,2));this._toDispose.add(u),this._toDispose.add(this.model.onDidSuggest(b=>{b.completionModel.items.length===0&&u.reset()}));const g=Ke.MakesTextEdit.bindTo(this._contextKeyService),f=Ke.HasInsertAndReplaceRange.bindTo(this._contextKeyService),_=Ke.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Be(()=>{g.reset(),f.reset(),_.reset()})),this._toDispose.add(h.onDidFocus(({item:b})=>{const v=this.editor.getPosition(),C=b.editStart.column,w=v.column;let S=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!b.completion.additionalTextEdits&&!(b.completion.insertTextRules&4)&&w-C===b.completion.insertText.length&&(S=this.editor.getModel().getValueInRange({startLineNumber:v.lineNumber,startColumn:C,endLineNumber:v.lineNumber,endColumn:w})!==b.completion.insertText),g.set(S),f.set(!B.equals(b.editInsertEnd,b.editReplaceEnd)),_.set(Boolean(b.provider.resolveCompletionItem)||Boolean(b.completion.documentation)||b.completion.detail!==b.completion.label)})),this._toDispose.add(h.onDetailsKeyDown(b=>{if(b.toKeybinding().equals(new Md(!0,!1,!1,!1,33))||Ge&&b.toKeybinding().equals(new Md(!1,!1,!1,!0,33))){b.stopPropagation();return}b.toKeybinding().isModifierKey()||this.editor.focus()})),h})),this._overtypingCapturer=this._toDispose.add(new $l(()=>this._toDispose.add(new _w(this.editor,this.model)))),this._alternatives=this._toDispose.add(new $l(()=>this._toDispose.add(new ih(this.editor,this._contextKeyService)))),this._toDispose.add(s.createInstance($m,e)),this._toDispose.add(this.model.onDidTrigger(h=>{this.widget.value.showTriggered(h.auto,h.shy?250:50),this._lineSuffix.value=new Dle(this.editor.getModel(),h.position)})),this._toDispose.add(this.model.onDidSuggest(h=>{if(h.shy)return;let u=-1;if(!h.noSelect){for(const g of this._selectors.itemsOrderedByPriorityDesc)if(u=g.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items),u!==-1)break;u===-1&&(u=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items))}this.widget.value.showSuggestions(h.completionModel,u,h.isFrozen,h.auto)})),this._toDispose.add(this.model.onDidCancel(h=>{h.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));const c=Ke.AcceptSuggestionsOnEnter.bindTo(n),d=()=>{const h=this.editor.getOption(1);c.set(h==="on"||h==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}static get(e){return e.getContribution(_9.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const i=Oi.get(this.editor);if(!i)return;const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:r}=e,a=[],l=new Qi;t&1||this.editor.pushUndoStop();const c=this.getOverwriteInfo(r,Boolean(t&8));if(this._memoryService.memorize(n,this.editor.getPosition(),r),Array.isArray(r.completion.additionalTextEdits)){const h=hc.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map(u=>Ft.replaceMove(L.lift(u.range),u.text))),h.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!r.isResolved){const h=new $n(!0);let u;const g=n.onDidChangeContent(v=>{if(v.isFlush){l.cancel(),g.dispose();return}for(const C of v.changes){const w=L.getEndPosition(C.range);(!u||B.isBefore(w,u))&&(u=w)}}),f=t;t|=2;let _=!1;const b=this.editor.onWillType(()=>{b.dispose(),_=!0,f&2||this.editor.pushUndoStop()});a.push(r.resolve(l.token).then(()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested||u&&r.completion.additionalTextEdits.some(C=>B.isBefore(u,L.getStartPosition(C.range))))return!1;_&&this.editor.pushUndoStop();const v=hc.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map(C=>Ft.replaceMove(L.lift(C.range),C.text))),v.restoreRelativeVerticalPositionOfCursor(this.editor),(_||!(f&2))&&this.editor.pushUndoStop(),!0}).then(v=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",h.elapsed(),v),g.dispose(),b.dispose()}))}let{insertText:d}=r.completion;r.completion.insertTextRules&4||(d=_c.escape(d)),i.insert(d,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(r.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),r.completion.command?r.completion.command.id===F_.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(a.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch(Te)),this.model.cancel()):this.model.cancel(),t&4&&this._alternatives.value.set(e,h=>{for(l.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(h,3|(t&8?8:0));break}}),this._alertCompletionItem(r),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(r,n,e),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i){var n;if(this._telemetryGate++%100!==0)return;const s=e.extensionId?e.extensionId.value:((n=i.item.provider._debugDisplayName)!==null&&n!==void 0?n:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:s,kind:e.completion.kind,basenameHash:OI(Js(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:uq(t.uri)})}getOverwriteInfo(e,t){pt(this.editor.hasModel());let i=this.editor.getOption(108).insertMode==="replace";t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,r=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+r,overwriteAfter:s+a}}_alertCompletionItem(e){if(rn(e.completion.additionalTextEdits)){const t=p("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);Gi(t)}}triggerSuggest(e,t,i,n){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,shy:!1,noSelect:n!=null?n:!1},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=s=>{if(s.completion.insertTextRules&4||s.completion.additionalTextEdits)return!0;const r=this.editor.getPosition(),a=s.editStart.column,l=r.column;return l-a!==s.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:r.lineNumber,startColumn:a,endLineNumber:r.lineNumber,endColumn:l})!==s.completion.insertText};ge.once(this.model.onDidTrigger)(s=>{const r=[];ge.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{nt(r),i()},void 0,r),this.model.onDidSuggest(({completionModel:a})=>{if(nt(r),a.items.length===0){i();return}const l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!n(c)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,r)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){!this.widget.isInitialized||this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};_o.ID="editor.contrib.suggestController";_o=Lle([Gh(1,mw),Gh(2,ci),Gh(3,Ee),Gh(4,Ae),Gh(5,So),Gh(6,sr)],_o);class kle{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(this._items.indexOf(e)!==-1)throw new Error("Value is already registered");return this._items.push(e),this._items.sort((t,i)=>this.prioritySelector(i)-this.prioritySelector(t)),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class F_ extends ce{constructor(){super({id:F_.id,label:p("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:se.and(N.writable,N.hasCompletionItemProvider),kbOpts:{kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=_o.get(t);if(!n)return;let s,r;i&&typeof i=="object"&&(i.auto===!0&&(s=!0),i.noSelection===!0&&(r=!0)),n.triggerSuggest(void 0,s,void 0,r)}}F_.id="editor.action.triggerSuggest";tt(_o.ID,_o);ie(F_);const eo=100+90,ls=xi.bindToContribution(_o.get);ee(new ls({id:"acceptSelectedSuggestion",precondition:se.and(Ke.Visible,Ke.HasFocusedSuggestion),handler(o){o.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:se.and(Ke.Visible,N.textInputFocus),weight:eo},{primary:3,kbExpr:se.and(Ke.Visible,N.textInputFocus,Ke.AcceptSuggestionsOnEnter,Ke.MakesTextEdit),weight:eo}],menuOpts:[{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:Ke.HasInsertAndReplaceRange.toNegated()},{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert"))},{menuId:Ql,title:p("accept.replace","Replace"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace"))}]}));ee(new ls({id:"acceptAlternativeSelectedSuggestion",precondition:se.and(Ke.Visible,N.textInputFocus,Ke.HasFocusedSuggestion),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1027,secondary:[1026]},handler(o){o.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert")),title:p("accept.replace","Replace")},{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace")),title:p("accept.insert","Insert")}]}));Xe.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");ee(new ls({id:"hideSuggestWidget",precondition:Ke.Visible,handler:o=>o.cancelSuggestWidget(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:9,secondary:[1033]}}));ee(new ls({id:"selectNextSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));ee(new ls({id:"selectNextPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:12,secondary:[2060]}}));ee(new ls({id:"selectLastSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectLastSuggestion()}));ee(new ls({id:"selectPrevSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));ee(new ls({id:"selectPrevPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:11,secondary:[2059]}}));ee(new ls({id:"selectFirstSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectFirstSuggestion()}));ee(new ls({id:"toggleSuggestionDetails",precondition:Ke.Visible,handler:o=>o.toggleSuggestionDetails(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible,Ke.CanResolve),title:p("detail.more","show less")},{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible.toNegated(),Ke.CanResolve),title:p("detail.less","show more")}]}));ee(new ls({id:"toggleExplainMode",precondition:Ke.Visible,handler:o=>o.toggleExplainMode(),kbOpts:{weight:100,primary:2133}}));ee(new ls({id:"toggleSuggestionFocus",precondition:Ke.Visible,handler:o=>o.toggleSuggestionFocus(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2570,mac:{primary:778}}}));ee(new ls({id:"insertBestCompletion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),$m.AtEnd,Ke.Visible.toNegated(),ih.OtherSuggestions.toNegated(),Oi.InSnippetMode.toNegated()),handler:(o,e)=>{o.triggerSuggestAndAcceptBest(Hn(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:eo,primary:2}}));ee(new ls({id:"insertNextSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2}}));ee(new ls({id:"insertPrevSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1026}}));ie(class extends ce{constructor(){super({id:"editor.action.resetSuggestSize",label:p("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(o,e){var t;(t=_o.get(e))===null||t===void 0||t.resetWidgetSize()}});class xle extends H{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new mt(()=>{this.isSuggestWidgetVisible||this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(n=>{n.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(n=>{n.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const i=_o.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(r,a,l)=>{const c=this.editor.getModel(),d=kC(c,this.suggestControllerPreselector());if(!d)return-1;const h=B.lift(a),u=l.map((f,_)=>{const b=lO(i,h,f,this.isShiftKeyPressed),v=kC(c,b==null?void 0:b.normalizedInlineCompletion);if(!v)return;const C=Ile(d.range,v.range)&&d.insertText.startsWith(v.insertText);return{index:_,valid:C,prefixLength:v.insertText.length,suggestItem:f}}).filter(f=>f&&f.valid),g=zO(u,op(f=>f.prefixLength,O8));return g?g.index:-1}}));let n=!1;const s=()=>{n||(n=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ge.once(i.model.onDidTrigger)(r=>{s()}))}this.update(this._isActive)}get state(){if(!!this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){const t=this.getSuggestItemInfo();let i=!1;Ele(this._currentSuggestItemInfo,t)||(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){const e=_o.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem();if(!!t)return lO(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const e=_o.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){const e=_o.get(this.editor);e&&e.forceRenderingAbove()}}function Ile(o,e){return e.startLineNumber===o.startLineNumber&&e.startColumn===o.startColumn&&(e.endLineNumber0)return{completionItemKind:t.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:L.fromPositions(e,e),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:n}=t.completion,s=!1;if(t.completion.insertTextRules&4){const a=new _c().parse(n),l=o.editor.getModel();if(a.children.length>100)return;SC.adjustWhitespace(l,e,a,!0,!0),n=a.toString(),s=!0}const r=o.getOverwriteInfo(t,i);return{isSnippetText:s,completionItemKind:t.completion.kind,normalizedInlineCompletion:{insertText:n,filterText:n,range:L.fromPositions(e.delta(0,-r.overwriteBefore),e.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}var Nle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},cO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Ex=class extends l9{constructor(e,t,i){super(e),this.cache=t,this.languageFeaturesService=i,this.suggestionInlineCompletionSource=this._register(new xle(this.editor,()=>{var n,s;return(s=(n=this.cache.value)===null||n===void 0?void 0:n.completions[0])===null||s===void 0?void 0:s.toLiveInlineCompletion()})),this.updateOperation=this._register(new _n),this.updateCacheSoon=this._register(new mt(()=>this.updateCache(),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange(()=>{if(!this.editor.hasModel())return;this.updateCacheSoon.schedule(),this.suggestionInlineCompletionSource.state||(this.minReservedLineCount=0);const s=this.ghostText;s&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,Ale(s.parts.map(r=>r.lines.length-1)))),this.minReservedLineCount>=1?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()})),this._register(this.cache.onDidChange(()=>{this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeCursorPosition(n=>{this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire()})),this._register(Be(()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove()))}get isActive(){return this.suggestionInlineCompletionSource.state!==void 0}isSuggestionPreviewEnabled(){return this.editor.getOption(108).preview}updateCache(){return cO(this,void 0,void 0,function*(){const e=this.suggestionInlineCompletionSource.state;if(!e||!e.selectedItem)return;const t={text:e.selectedItem.normalizedInlineCompletion.insertText,range:e.selectedItem.normalizedInlineCompletion.range,isSnippetText:e.selectedItem.isSnippetText,completionKind:e.selectedItem.completionItemKind},i=this.editor.getPosition();if(e.selectedItem.isSnippetText||e.selectedItem.completionItemKind===27||e.selectedItem.completionItemKind===20||e.selectedItem.completionItemKind===23){this.cache.clear();return}const n=Ri(r=>cO(this,void 0,void 0,function*(){let a;try{a=yield h9(this.languageFeaturesService.inlineCompletionsProvider,i,this.editor.getModel(),{triggerKind:Ps.Automatic,selectedSuggestionInfo:t},r)}catch(l){Te(l);return}if(r.isCancellationRequested){a.dispose();return}this.cache.setValue(this.editor,a,Ps.Automatic),this.onDidChangeEmitter.fire()})),s=new d9(n,Ps.Automatic);this.updateOperation.value=s,yield n,this.updateOperation.value===s&&this.updateOperation.clear()})}get ghostText(){var e,t,i;const n=this.isSuggestionPreviewEnabled(),s=this.editor.getModel(),r=kC(s,(t=(e=this.cache.value)===null||e===void 0?void 0:e.completions[0])===null||t===void 0?void 0:t.toLiveInlineCompletion()),a=this.suggestionInlineCompletionSource.state,l=kC(s,(i=a==null?void 0:a.selectedItem)===null||i===void 0?void 0:i.normalizedInlineCompletion),c=r&&l&&r.insertText.startsWith(l.insertText)&&r.range.equalsRange(l.range);if(!n&&!c)return;const d=c?r:l||r,h=c?d.insertText.length-l.insertText.length:0;return this.toGhostText(d,h)}toGhostText(e,t){const i=this.editor.getOptions().get(108).previewMode;return e?c9(e,this.editor.getModel(),i,this.editor.getPosition(),t)||new r9(e.range.endLineNumber,[],this.minReservedLineCount):void 0}};Ex=Nle([Tle(2,de)],Ex);function Ale(o){return o.reduce((e,t)=>e+t,0)}var Mle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ole=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ple extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new _n)}get targetModel(){var e;return(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object}setTargetModel(e){var t;((t=this.currentModelRef.value)===null||t===void 0?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?iae(e,e.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=(t=(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object)===null||t===void 0?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;(t=this.targetModel)===null||t===void 0||t.setExpanded(e)}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let Nx=class extends Ple{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.sharedCache=this._register(new Fle),this.suggestWidgetAdapterModel=this._register(this.instantiationService.createInstance(Ex,this.editor,this.sharedCache)),this.inlineCompletionsModel=this._register(this.instantiationService.createInstance(yx,this.editor,this.sharedCache)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const i=(t=this.activeInlineCompletionsModel)===null||t===void 0?void 0:t.ghostText;return i?i.parts.some(n=>e.containsPosition(new B(i.lineNumber,n.column))):!1}triggerInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.trigger(Ps.Explicit)}commitInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.commitCurrentSuggestion()}hideInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.hide()}showNextInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showNext()}showPreviousInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showPrevious()}hasMultipleInlineCompletions(){var e;return Ole(this,void 0,void 0,function*(){const t=yield(e=this.activeInlineCompletionsModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Nx=Mle([Rle(1,Ae)],Nx);class Fle extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.cache=this._register(new _n)}get value(){return this.cache.value}setValue(e,t,i){this.cache.value=new gae(t,e,()=>this.onDidChangeEmitter.fire(),i)}clearAndLeak(){return this.cache.clearAndLeak()}clear(){this.cache.clear()}}var Ble=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ry;const hO=(Ry=window.trustedTypes)===null||Ry===void 0?void 0:Ry.createPolicy("editorGhostText",{createHTML:o=>o});let Tx=class extends H{constructor(e,t,i,n){super(),this.editor=e,this.model=t,this.instantiationService=i,this.languageService=n,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(Vle,this.editor)),this.additionalLinesWidget=this._register(new Hle(this.editor,this.languageService.languageIdCodec)),this.viewMoreContentWidget=void 0,this.replacementDecoration=this._register(new Wle(this.editor)),this._register(this.editor.onDidChangeConfiguration(s=>{(s.hasChanged(29)||s.hasChanged(107)||s.hasChanged(90)||s.hasChanged(85)||s.hasChanged(47)||s.hasChanged(46)||s.hasChanged(61))&&this.update()})),this._register(Be(()=>{var s;this.disposed=!0,this.update(),(s=this.viewMoreContentWidget)===null||s===void 0||s.dispose(),this.viewMoreContentWidget=void 0})),this._register(t.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e;const t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed){this.partsWidget.clear(),this.additionalLinesWidget.clear(),this.replacementDecoration.clear();return}const i=new Array,n=new Array;function s(c,d){if(n.length>0){const h=n[n.length-1];d&&h.decorations.push(new es(h.content.length+1,h.content.length+1+c[0].length,d,0)),h.content+=c[0],c=c.slice(1)}for(const h of c)n.push({content:h,decorations:d?[new es(1,h.length+1,d,0)]:[]})}t instanceof a9?this.replacementDecoration.setDecorations([{range:new L(t.lineNumber,t.columnStart,t.lineNumber,t.columnStart+t.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.replacementDecoration.setDecorations([]);const r=this.editor.getModel().getLineContent(t.lineNumber);let a,l=0;for(const c of t.parts){let d=c.lines;a===void 0?(i.push({column:c.column,text:d[0],preview:c.preview}),d=d.slice(1)):s([r.substring(l,c.column-1)],void 0),d.length>0&&(s(d,"ghost-text"),a===void 0&&c.column<=r.length&&(a=c.column)),l=c.column-1}a!==void 0&&s([r.substring(l)],void 0),this.partsWidget.setParts(t.lineNumber,i,a!==void 0?{column:a,length:r.length+1-a}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,n,t.additionalReservedLineCount),(e=this.viewMoreContentWidget)===null||e===void 0||e.dispose(),this.viewMoreContentWidget=void 0}renderViewMoreLines(e,t,i){const n=this.editor.getOption(46),s=document.createElement("div");s.className="suggest-preview-additional-widget",an(s,n);const r=document.createElement("span");r.className="content-spacer",r.append(t),s.append(r);const a=document.createElement("span");a.className="content-newline suggest-preview-text",a.append("\u23CE "),s.append(a);const l=new Q,c=document.createElement("div");return c.className="button suggest-preview-text",c.append(`+${i} lines\u2026`),l.add(ki(c,"mousedown",d=>{var h;(h=this.model)===null||h===void 0||h.setExpanded(!0),d.preventDefault(),this.editor.focus()})),s.append(c),new Ule(this.editor,e,s,l)}};Tx=Ble([dO(2,Ae),dO(3,Ht)],Tx);class Wle{constructor(e){this.editor=e,this.decorationIds=[]}setDecorations(e){this.editor.changeDecorations(t=>{this.decorationIds=t.deltaDecorations(this.decorationIds,e)})}clear(){this.setDecorations([])}dispose(){this.clear()}}class Vle{constructor(e){this.editor=e,this.decorationIds=[]}dispose(){this.clear()}clear(){this.editor.changeDecorations(e=>{this.decorationIds=e.deltaDecorations(this.decorationIds,[])})}setParts(e,t,i){if(!this.editor.getModel())return;const s=new Array;i&&s.push({range:L.fromPositions(new B(e,i.column),new B(e,i.column+i.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.editor.changeDecorations(r=>{this.decorationIds=r.deltaDecorations(this.decorationIds,t.map(a=>({range:L.fromPositions(new B(e,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Wo.Left},showIfCollapsed:!0}})).concat(s))})}}class Hle{constructor(e,t){this.editor=e,this.languageIdCodec=t,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones(r=>{this._viewZoneId&&(r.removeZone(this._viewZoneId),this._viewZoneId=void 0);const a=Math.max(t.length,i);if(a>0){const l=document.createElement("div");zle(l,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=r.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}}function zle(o,e,t,i,n){const s=i.get(29),r=i.get(107),a="none",l=i.get(85),c=i.get(47),d=i.get(46),h=i.get(61),u=nc(1e4);u.appendASCIIString('

');for(let _=0,b=t.length;_');const w=VC(C),S=eg(C),k=Di.createEmpty(C,n);a_(new Lc(d.isMonospace&&!s,d.canUseHalfwidthRightwardsArrow,C,!1,w,S,0,k,v.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,r,a,l,c!==_s.OFF,null),u),u.appendASCIIString("
")}u.appendASCIIString(""),an(o,d);const g=u.build(),f=hO?hO.createHTML(g):g;o.innerHTML=f}class Ule extends H{constructor(e,t,i,n){super(),this.editor=e,this.position=t,this.domNode=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(n),this._register(Be(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Et((o,e)=>{const t=o.getColor(D$);t&&(e.addRule(`.monaco-editor .ghost-text-decoration { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { color: ${t.toString()} !important; }`));const i=o.getColor(k$);i&&(e.addRule(`.monaco-editor .ghost-text-decoration { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { background-color: ${i.toString()}; }`));const n=o.getColor(L$);n&&(e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { border: 1px solid ${n}; }`))});var b9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ax=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},bw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Mi=class v9 extends H{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new _n),this.activeModelDidChangeEmitter=this._register(new R),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(i=>{i.hasChanged(108)&&this.updateModelController(),i.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(e){return e.getContribution(v9.ID)}get activeModel(){var e;return(e=this.activeController.value)===null||e===void 0?void 0:e.model}updateModelController(){const e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(Mx,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return((t=this.activeModel)===null||t===void 0?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return((i=(t=this.activeController.value)===null||t===void 0?void 0:t.widget)===null||i===void 0?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),(e=this.activeModel)===null||e===void 0||e.triggerInlineCompletion()}commit(){var e;(e=this.activeModel)===null||e===void 0||e.commitInlineCompletion()}hide(){var e;(e=this.activeModel)===null||e===void 0||e.hideInlineCompletion()}showNextInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return bw(this,void 0,void 0,function*(){const t=yield(e=this.activeModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Mi.inlineSuggestionVisible=new le("inlineSuggestionVisible",!1,p("inlineSuggestionVisible","Whether an inline suggestion is visible"));Mi.inlineSuggestionHasIndentation=new le("inlineSuggestionHasIndentation",!1,p("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"));Mi.inlineSuggestionHasIndentationLessThanTabSize=new le("inlineSuggestionHasIndentationLessThanTabSize",!0,p("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"));Mi.ID="editor.contrib.ghostTextController";Mi=b9([Ax(1,Ae)],Mi);class $le{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=Mi.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=Mi.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=Mi.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let Mx=class extends H{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new $le(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(Nx,this.editor)),this.widget=this._register(this.instantiationService.createInstance(Tx,this.editor,this.model)),this._register(Be(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set(((e=this.model.activeInlineCompletionsModel)===null||e===void 0?void 0:e.ghostText)!==void 0);let t=!1,i=!0;const n=this.model.inlineCompletionsModel.ghostText;if(!!this.model.activeInlineCompletionsModel&&n&&n.parts.length>0){const{column:s,lines:r}=n.parts[0],a=r[0],l=this.editor.getModel().getLineIndentColumn(n.lineNumber);if(s<=l){let d=kn(a);d===-1&&(d=a.length-1),t=d>0;const h=this.editor.getModel().getOptions().tabSize;i=Ci.visibleColumnFromColumn(a,d+1,h)=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class qle{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return((i=(t=(e=this.controller.activeModel)===null||e===void 0?void 0:e.activeInlineCompletionsModel)===null||t===void 0?void 0:t.completionSession.value)===null||i===void 0?void 0:i.commands)||[]}}let Rx=class{constructor(e,t,i,n,s,r,a){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=s,this._openerService=r,this.accessibilityService=a,this.hoverOrdinal=3}suggestHoverAnchor(e){const t=Mi.get(this._editor);if(!t)return null;const i=e.target;if(i.type===8){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new T0(1e3,this,L.fromPositions(n.positionBefore||n.position,n.positionBefore||n.position))}return i.type===7&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):i.type===6&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):null}computeSync(e,t){const i=Mi.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new qle(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new Q,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);const s=i.add(this._menuService.createMenu(M.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:p("showNextInlineSuggestion","Next"),commandId:Ag.ID,run:()=>this._commandService.executeCommand(Ag.ID)}),a=e.statusBar.addAction({label:p("showPreviousInlineSuggestion","Previous"),commandId:Mg.ID,run:()=>this._commandService.executeCommand(Mg.ID)});e.statusBar.addAction({label:p("acceptInlineSuggestion","Accept"),commandId:DC,run:()=>this._commandService.executeCommand(DC)});const l=[r,a];for(const c of l)c.setEnabled(!1);n.hasMultipleSuggestions().then(c=>{for(const d of l)d.setEnabled(c)});for(const c of n.commands)e.statusBar.addAction({label:c.title,commandId:c.id,run:()=>this._commandService.executeCommand(c.id,...c.arguments||[])});for(const[c,d]of s.getActions())for(const h of d)h instanceof ac&&e.statusBar.addAction({label:h.label,commandId:h.item.id,run:()=>this._commandService.executeCommand(h.item.id)});return i}renderScreenReaderText(e,t,i){var n,s;const r=J,a=r("div.hover-row.markdown-hover"),l=q(a,r("div.hover-contents")),c=i.add(new ol({editor:this._editor},this._languageService,this._openerService)),d=u=>{i.add(c.onDidRenderAsync(()=>{l.className="hover-contents code-hover-contents",e.onContentsChanged()}));const g=p("inlineSuggestionFollows","Suggestion:"),f=i.add(c.render(new Fn().appendText(g).appendCodeblock("text",u)));l.replaceChildren(f.element)},h=(s=(n=t.controller.activeModel)===null||n===void 0?void 0:n.inlineCompletionsModel)===null||s===void 0?void 0:s.ghostText;if(h){const u=this._editor.getModel().getLineContent(h.lineNumber);d(h.renderForScreenReader(u))}e.fragment.appendChild(a)}};Rx=Kle([Zh(1,ci),Zh(2,ph),Zh(3,Ee),Zh(4,Ht),Zh(5,io),Zh(6,al)],Rx);tt(Mi.ID,Mi);ie(jle);ie(Ag);ie(Mg);xh.register(Rx);const C9=xi.bindToContribution(Mi.get),Ox=new C9({id:DC,precondition:Mi.inlineSuggestionVisible,handler(o){o.commit(),o.editor.focus()}});ee(Ox);as.registerKeybindingRule({primary:2,weight:200,id:Ox.id,when:se.and(Ox.precondition,N.tabMovesFocus.toNegated(),Mi.inlineSuggestionHasIndentationLessThanTabSize)});ee(new C9({id:"editor.action.inlineSuggest.hide",precondition:Mi.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(o){o.hide()}}));function Gn(o,e){let t=0;for(let i=0;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function w9(o,e,t,i,n){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return[];const s=e.getLanguageConfiguration(o.getLanguageId()).indentationRules;if(!s)return[];for(i=Math.min(i,o.getLineCount());t<=i&&s.unIndentedLinePattern;){const b=o.getLineContent(t);if(!s.unIndentedLinePattern.test(b))break;t++}if(t>i-1)return[];const{tabSize:r,indentSize:a,insertSpaces:l}=o.getOptions(),c=(b,v)=>(v=v||1,Bs.shiftIndent(b,b.length+v,r,a,l)),d=(b,v)=>(v=v||1,Bs.unshiftIndent(b,b.length+v,r,a,l)),h=[];let u;const g=o.getLineContent(t);let f=g;if(n!=null){u=n;const b=_t(g);f=u+g.substring(b.length),s.decreaseIndentPattern&&s.decreaseIndentPattern.test(f)&&(u=d(u),f=u+g.substring(b.length)),g!==f&&h.push(Ft.replaceMove(new oe(t,1,t,b.length+1),Sv(u,a,l)))}else u=_t(g);let _=u;s.increaseIndentPattern&&s.increaseIndentPattern.test(f)?(_=c(_),u=c(u)):s.indentNextLinePattern&&s.indentNextLinePattern.test(f)&&(_=c(_)),t++;for(let b=t;b<=i;b++){const v=o.getLineContent(b),C=_t(v),w=_+v.substring(C.length);s.decreaseIndentPattern&&s.decreaseIndentPattern.test(w)&&(_=d(_),u=d(u)),C!==_&&h.push(Ft.replaceMove(new oe(b,1,b,C.length+1),Sv(_,a,l))),!(s.unIndentedLinePattern&&s.unIndentedLinePattern.test(v))&&(s.increaseIndentPattern&&s.increaseIndentPattern.test(w)?(u=c(u),_=u):s.indentNextLinePattern&&s.indentNextLinePattern.test(w)?_=c(_):_=u)}return h}class vw extends ce{constructor(){super({id:vw.ID,label:p("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new Jle(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}vw.ID="editor.action.indentationToSpaces";class Cw extends ce{constructor(){super({id:Cw.ID,label:p("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new ece(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}Cw.ID="editor.action.indentationToTabs";class S9 extends ce{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const i=e.get(dl),n=e.get(Ut),s=t.getModel();if(!s)return;const r=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),a=[1,2,3,4,5,6,7,8].map(c=>({id:c.toString(),label:c.toString(),description:c===r.tabSize?p("configuredTabSize","Configured Tab Size"):void 0})),l=Math.min(s.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(a,{placeHolder:p({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then(c=>{c&&s&&!s.isDisposed()&&s.updateOptions({tabSize:parseInt(c.label,10),insertSpaces:this.insertSpaces})})},50)}}class ww extends S9{constructor(){super(!1,{id:ww.ID,label:p("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}ww.ID="editor.action.indentUsingTabs";class Sw extends S9{constructor(){super(!0,{id:Sw.ID,label:p("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}Sw.ID="editor.action.indentUsingSpaces";class yw extends ce{constructor(){super({id:yw.ID,label:p("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(Ut),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}yw.ID="editor.action.detectIndentation";class Yle extends ce{constructor(){super({id:"editor.action.reindentlines",label:p("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=w9(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class Qle extends ce{constructor(){super({id:"editor.action.reindentselectedlines",label:p("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=t.getSelections();if(s===null)return;const r=[];for(const a of s){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;const d=w9(n,i,l,c);r.push(...d)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class Xle{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&typeof i.text=="string"&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(L.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let Km=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new Q,this.callOnModel=new Q,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(9)<4||this.editor.getOption(50))&&(!this.editor.hasModel()||this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(t===null||t.length>1)return;const i=this.editor.getModel();if(!i||!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(9),{tabSize:s,indentSize:r,insertSpaces:a}=i.getOptions(),l=[],c={shiftIndent:g=>Bs.shiftIndent(g,g.length+1,s,r,a),unshiftIndent:g=>Bs.unshiftIndent(g,g.length+1,s,r,a)};let d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(i,d)){d++;continue}break}if(d>e.endLineNumber)return;let h=i.getLineContent(d);if(!/\S/.test(h.substring(0,e.startColumn-1))){const g=hp(n,i,i.getLanguageId(),d,c,this._languageConfigurationService);if(g!==null){const f=_t(h),_=Gn(g,s),b=Gn(f,s);if(_!==b){const v=Tp(_,s,a);l.push({range:new L(d,1,d,f.length+1),text:v}),h=v+h.substr(f.length)}else{const v=Z4(i,d,this._languageConfigurationService);if(v===0||v===8)return}}}const u=d;for(;di.tokenization.getLineTokens(_),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(_,b)=>i.getLanguageIdAtPosition(_,b)},getLineContent:_=>_===u?h:i.getLineContent(_)},i.getLanguageId(),d+1,c,this._languageConfigurationService);if(f!==null){const _=Gn(f,s),b=Gn(_t(i.getLineContent(d+1)),s);if(_!==b){const v=_-b;for(let C=d+1;C<=e.endLineNumber;C++){const w=i.getLineContent(C),S=_t(w),x=Gn(S,s)+v,y=Tp(x,s,a);y!==S&&l.push({range:new L(C,1,C,S.length+1),text:y})}}}}if(l.length>0){this.editor.pushUndoStop();const g=new Xle(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",g),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(i===0)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const s=n.findTokenIndexAtOffset(i);if(s>=0&&n.getStandardTokenType(s)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};Km.ID="editor.contrib.autoIndentOnPaste";Km=Gle([Zle(1,si)],Km);function y9(o,e,t,i){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return;let n="";for(let r=0;rthis._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,i;return xC(this,void 0,void 0,function*(){try{const n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=n==null?void 0:n.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(i=n==null?void 0:n.label)!==null&&i!==void 0?i:this.hint.label,this._isResolved=!0}catch(n){Pi(n),this._isResolved=!1}})}}class qm{constructor(e,t,i){this._disposables=new Q,this.ranges=e,this.provider=new Set;const n=[];for(const[s,r]of t){this._disposables.add(s),this.provider.add(r);for(const a of s.hints){const l=i.validatePosition(a.position);let c="before";const d=qm._getRangeAtPosition(i,l);let h;d.getStartPosition().isBefore(l)?(h=L.fromPositions(d.getStartPosition(),l),c="after"):(h=L.fromPositions(l,d.getEndPosition()),c="before"),n.push(new uT(a,new L9(h,c),r))}}this.items=n.sort((s,r)=>B.compare(s.hint.position,r.hint.position))}static create(e,t,i,n){return xC(this,void 0,void 0,function*(){const s=[],r=e.ordered(t).reverse().map(a=>i.map(l=>xC(this,void 0,void 0,function*(){try{const c=yield a.provideInlayHints(t,l,n);c!=null&&c.hints.length&&s.push([c,a])}catch(c){Pi(c)}})));if(yield Promise.all(r.flat()),n.isCancellationRequested||t.isDisposed())throw new yc;return new qm(i,s,t)})}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new L(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),r=t.column-1,a=s.findTokenIndexAtOffset(r);let l=s.getStartOffset(a),c=s.getEndOffset(a);return c-l===1&&(l===r&&a>1?(l=s.getStartOffset(a-1),c=s.getEndOffset(a-1)):c===r&&auu(f)?f.command.id:""));for(const f of md.getEditorActions())f instanceof vo&&u.has(f.id)&&h.push(new is(f.id,f.label,void 0,!0,()=>Ap(this,void 0,void 0,function*(){const _=yield s.createModelReference(d.uri);try{yield l.invokeFunction(f.run.bind(f),e,new Pm(_.object.textEditorModel,L.getStartPosition(d.range)))}finally{_.dispose()}})));if(i.part.command){const{command:f}=i.part;h.push(new ln),h.push(new is(f.id,f.title,void 0,!0,()=>Ap(this,void 0,void 0,function*(){var _;try{yield a.executeCommand(f.id,...(_=f.arguments)!==null&&_!==void 0?_:[])}catch(b){c.notify({severity:IF.Error,source:i.item.provider.displayName,message:b})}})))}const g=e.getOption(117);r.showContextMenu({domForShadowRoot:g&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{const f=on(t);return{x:f.left,y:f.top+f.height+8}},getActions:()=>h,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function nce(o,e,t,i){return Ap(this,void 0,void 0,function*(){const s=yield o.get(Kn).createModelReference(i.uri);yield t.invokeWithinContext(r=>Ap(this,void 0,void 0,function*(){const a=e.hasSideBySideModifier,l=r.get(Ee),c=jn.inPeekEditor.getValue(l),d=!a&&t.getOption(80)&&!c;return new R_({openToSide:a,openInPeek:d,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(r,t,{model:s.object.textEditorModel,position:L.getStartPosition(i.range)})})),s.dispose()})}var sce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Yh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},su=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class IC{constructor(){this._entries=new Dc(50)}get(e){const t=IC._key(e);return this._entries.get(t)}set(e,t){const i=IC._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const D9=Ye("IInlayHintsCache");et(D9,IC,!0);class Px{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}}class oce{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let nh=class Fx{constructor(e,t,i,n,s,r,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=r,this._instaService=a,this._disposables=new Q,this._sessionDisposables=new Q,this._decorationsMetadata=new Map,this._ruleFactory=new d_(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(129)&&this._update()})),this._update()}static get(e){var t;return(t=e.getContribution(Fx.ID))!==null&&t!==void 0?t:void 0}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(129);if(e.enabled==="off")return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;const i=this._inlayHintsCache.get(t);i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add(Be(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n;const s=new Set,r=new mt(()=>su(this,void 0,void 0,function*(){const a=Date.now();n==null||n.dispose(!0),n=new Qi;const l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{const c=n.token,d=yield qm.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(r.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(const h of d.provider)typeof h.onDidChangeInlayHints=="function"&&!s.has(h)&&(s.add(h),this._sessionDisposables.add(h.onDidChangeInlayHints(()=>{r.isScheduled()||r.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){Te(c)}finally{n.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(r),this._sessionDisposables.add(Be(()=>n==null?void 0:n.dispose(!0))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!r.isScheduled())&&r.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{const l=Math.max(r.delay,1250);r.schedule(l)})),e.enabled==="on")this._activeRenderMode=0;else{let a,l;e.enabled==="onUnlessPressed"?(a=0,l=1):(a=1,l=0),this._activeRenderMode=a,this._sessionDisposables.add(Ol.getInstance().event(c=>{if(!this._editor.hasModel())return;const d=c.altKey&&c.ctrlKey?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;const h=this._editor.getModel(),u=this._copyInlayHintsWithCurrentAnchor(h);this._updateHintsDecorators([h.getFullModelRange()],u),r.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>r.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new Q,t=e.add(new UN(this._editor)),i=new Q;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{const[s]=n,r=this._getInlayHintLabelPart(s),a=this._editor.getModel();if(!r||!a){i.clear();return}const l=new Qi;i.add(Be(()=>l.dispose(!0))),r.item.resolve(l.token),this._activeInlayHintPart=r.part.command||r.part.location?new oce(r,s.hasTriggerModifier):void 0;const c=r.item.hint.position.lineNumber,d=new L(c,1,c,a.getLineMaxColumn(c)),h=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],h),i.add(Be(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],h)}))})),e.add(t.onCancel(()=>i.clear())),e.add(t.onExecute(n=>su(this,void 0,void 0,function*(){const s=this._getInlayHintLabelPart(n);if(s){const r=s.part;r.location?this._instaService.invokeFunction(nce,n,this._editor,r.location):Jy.is(r.command)&&(yield this._invokeCommand(r.command,s.item))}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>su(this,void 0,void 0,function*(){if(t.event.detail!==2)return;const i=this._getInlayHintLabelPart(t);if(!!i&&(t.event.preventDefault(),yield i.item.resolve(ze.None),rn(i.item.hint.textEdits))){const n=i.item.hint.textEdits.map(s=>Ft.replace(L.lift(s.range),s.text));this._editor.executeEdits("inlayHint.default",n),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>su(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(ice,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;const i=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(i instanceof zd&&(i==null?void 0:i.attachedData)instanceof Px)return i.attachedData}_invokeCommand(e,t){var i;return su(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(i=e.arguments)!==null&&i!==void 0?i:[])}catch(n){this._notificationService.notify({severity:IF.Error,source:t.provider.displayName,message:n})}})}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const r=new L9(s,n.item.anchor.direction),a=n.item.with({anchor:r});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){const t=this._editor.getModel(),i=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const s of i.sort(L.compareRangesUsingStarts)){const r=t.validateRange(new L(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));n.length===0||!L.areIntersectingOrTouching(n[n.length-1],r)?n.push(r):n[n.length-1]=L.plusRange(n[n.length-1],r)}return n}_updateHintsDecorators(e,t){var i,n;const s=[],r=(f,_,b,v,C)=>{const w={content:b,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:_.className,cursorStops:v,attachedData:C};s.push({item:f,classNameRef:_,decoration:{range:f.anchor.range,options:{description:"InlayHint",showIfCollapsed:f.anchor.range.isEmpty(),collapseOnReplaceEdit:!f.anchor.range.isEmpty(),stickiness:0,[f.anchor.direction]:this._activeRenderMode===0?w:void 0}}})},a=(f,_)=>{const b=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});r(f,b,"\u200A",_?Wo.Right:Wo.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:h}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,c);for(const f of t){f.hint.paddingLeft&&a(f,!1);const _=typeof f.hint.label=="string"?[{label:f.hint.label}]:f.hint.label;for(let b=0;b<_.length;b++){const v=_[b],C=b===0,w=b===_.length-1,S={fontSize:`${l}px`,fontFamily:`var(${u}), ${ts.fontFamily}`,verticalAlign:h?"baseline":"middle"};rn(f.hint.textEdits)&&(S.cursor="default"),this._fillInColors(S,f.hint),(v.command||v.location)&&((i=this._activeInlayHintPart)===null||i===void 0?void 0:i.part.item)===f&&this._activeInlayHintPart.part.index===b&&(S.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(S.color=Qt(lE),S.cursor="pointer")),d&&(C&&w?(S.padding=`1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px`):C?(S.padding=`1px 0 1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):w?(S.padding=`1px ${Math.max(1,l/4)|0}px 1px 0`,S.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):S.padding="1px 0 1px 0"),r(f,this._ruleFactory.createClassNameRef(S),rce(v.label),w&&!f.hint.paddingRight?Wo.Right:Wo.None,new Px(f,b))}if(f.hint.paddingRight&&a(f,!0),s.length>Fx._MAX_DECORATORS)break}const g=[];for(const f of e)for(const{id:_}of(n=this._editor.getDecorationsInRange(f))!==null&&n!==void 0?n:[]){const b=this._decorationsMetadata.get(_);b&&(g.push(_),b.classNameRef.dispose(),this._decorationsMetadata.delete(_))}this._editor.changeDecorations(f=>{const _=f.deltaDecorations(g,s.map(b=>b.decoration));for(let b=0;b<_.length;b++){const v=s[b];this._decorationsMetadata.set(_[b],v)}})}_fillInColors(e,t){t.kind===X0.Parameter?(e.backgroundColor=Qt(zz),e.color=Qt(Hz)):t.kind===X0.Type?(e.backgroundColor=Qt(Vz),e.color=Qt(Wz)):(e.backgroundColor=Qt(za),e.color=Qt(Ha))}_getLayoutInfo(){const e=this._editor.getOption(129),t=e.padding,i=this._editor.getOption(48),n=this._editor.getOption(45);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const r=e.fontFamily||n;return{fontSize:s,fontFamily:r,padding:t,isUniform:!t&&r===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};nh.ID="editor.contrib.InlayHints";nh._MAX_DECORATORS=1500;nh=sce([Yh(1,de),Yh(2,no),Yh(3,D9),Yh(4,ci),Yh(5,di),Yh(6,Ae)],nh);function rce(o){const e="\xA0";return o.replace(/[ \t]/g,e)}Xe.registerCommand("_executeInlayHintProvider",(o,...e)=>su(void 0,void 0,void 0,function*(){const[t,i]=e;pt(_e.isUri(t)),pt(L.isIRange(i));const{inlayHintsProvider:n}=o.get(de),s=yield o.get(Kn).createModelReference(t);try{const r=yield qm.create(n,s.object.textEditorModel,[L.lift(i)],ze.None),a=r.items.map(l=>l.hint);return setTimeout(()=>r.dispose(),0),a}finally{s.dispose()}}));var ace=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ff=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},uO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lce=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class gO extends T0{constructor(e,t){super(10,t,e.item.anchor.range),this.part=e}}let Bx=class extends bC{constructor(e,t,i,n,s,r){super(e,t,i,n,r),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!nh.get(this._editor)||e.target.type!==6)return null;const n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof zd&&n.attachedData instanceof Px?new gO(n.attachedData,this):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof gO?new ri(n=>uO(this,void 0,void 0,function*(){var s,r;const{part:a}=e;if(yield a.item.resolve(i),i.isCancellationRequested)return;let l;typeof a.item.hint.tooltip=="string"?l=new Fn().appendText(a.item.hint.tooltip):a.item.hint.tooltip&&(l=a.item.hint.tooltip),l&&n.emitOne(new Tr(this,e.range,[l],0)),rn(a.item.hint.textEdits)&&n.emitOne(new Tr(this,e.range,[new Fn().appendText(p("hint.dbl","Double click to insert"))],10001));let c;if(typeof a.part.tooltip=="string"?c=new Fn().appendText(a.part.tooltip):a.part.tooltip&&(c=a.part.tooltip),c&&n.emitOne(new Tr(this,e.range,[c],1)),a.part.location||a.part.command){let g;const _=this._editor.getOption(72)==="altKey"?Ge?p("links.navigate.kb.meta.mac","cmd + click"):p("links.navigate.kb.meta","ctrl + click"):Ge?p("links.navigate.kb.alt.mac","option + click"):p("links.navigate.kb.alt","alt + click");a.part.location&&a.part.command?g=new Fn().appendText(p("hint.defAndCommand","Go to Definition ({0}), right click for more",_)):a.part.location?g=new Fn().appendText(p("hint.def","Go to Definition ({0})",_)):a.part.command&&(g=new Fn(`[${p("hint.cmd","Execute Command")}](${tce(a.part.command)} "${a.part.command.title}") (${_})`,{isTrusted:!0})),g&&n.emitOne(new Tr(this,e.range,[g],1e4))}const d=yield this._resolveInlayHintLabelPartHover(a,i);try{for(var h=lce(d),u;u=yield h.next(),!u.done;){const g=u.value;n.emitOne(g)}}catch(g){s={error:g}}finally{try{u&&!u.done&&(r=h.return)&&(yield r.call(h))}finally{if(s)throw s.error}}})):ri.EMPTY}_resolveInlayHintLabelPartHover(e,t){return uO(this,void 0,void 0,function*(){if(!e.part.location)return ri.EMPTY;const{uri:i,range:n}=e.part.location,s=yield this._resolverService.createModelReference(i);try{const r=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(r)?eT(this._languageFeaturesService.hoverProvider,r,new B(n.startLineNumber,n.startColumn),t).filter(a=>!_g(a.hover.contents)).map(a=>new Tr(this,e.item.anchor.range,a.hover.contents,2+a.ordinal)):ri.EMPTY}finally{s.dispose()}})}};Bx=ace([Ff(1,Ht),Ff(2,io),Ff(3,ot),Ff(4,Kn),Ff(5,de)],Bx);tt(nh.ID,nh);xh.register(Bx);class cce{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new oe(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new oe(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var dce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hce=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cc=class Wx{constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}static get(e){return e.getContribution(Wx.ID)}dispose(){}run(e,t){this.currentRequest&&this.currentRequest.cancel();const i=this.editor.getSelection(),n=this.editor.getModel();if(!n||!i)return;let s=i;if(s.startLineNumber!==s.endLineNumber)return;const r=new Tm(this.editor,5),a=n.uri;return this.editorWorkerService.canNavigateValueSet(a)?(this.currentRequest=Ri(l=>this.editorWorkerService.navigateValueSet(a,s,t)),this.currentRequest.then(l=>{if(!l||!l.range||!l.value||!r.validate(this.editor))return;const c=L.lift(l.range);let d=l.range;const h=l.value.length-(s.endColumn-s.startColumn);d={startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.startColumn+l.value.length},h>1&&(s=new oe(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+h-1));const u=new cce(c,s,l.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:d,options:Wx.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=sc(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(Te)}).catch(Te)):Promise.resolve(void 0)}};Cc.ID="editor.contrib.inPlaceReplaceController";Cc.DECORATION=Ne.register({description:"in-place-replace",className:"valueSetReplacement"});Cc=dce([hce(1,to)],Cc);class uce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.up",label:p("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3154,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}class gce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.down",label:p("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3156,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}tt(Cc.ID,Cc);ie(uce);ie(gce);Et((o,e)=>{const t=o.getColor(z4);t&&e.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${t}; }`)});class fce extends ce{constructor(){super({id:"expandLineSelection",label:p("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:N.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,Wi.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(i.source,!0)}}ie(fce);class pce{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){const i=mce(e,this._cursors);for(let n=0,s=i.length;nr.lineNumber===a.lineNumber?r.column-a.column:r.lineNumber-a.lineNumber);for(let r=e.length-2;r>=0;r--)e[r].lineNumber===e[r+1].lineNumber&&e.splice(r,1);const t=[];let i=0,n=0;const s=e.length;for(let r=1,a=o.getLineCount();r<=a;r++){const l=o.getLineContent(r),c=l.length+1;let d=0;if(n1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=a,this._type.title=a,bs(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else Si(this._type),this._type.title="",Pn(this._type),this.domNode.classList.add("no-type");if(Si(this._docs),typeof r=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=r;else if(r){this._docs.classList.add("markdown-docs"),Si(this._docs);const a=this._markdownRenderer.render(r);this._docs.appendChild(a.element),this._renderDisposeable.add(a),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=a=>{a.preventDefault(),a.stopPropagation()},this._close.onclick=a=>{a.preventDefault(),a.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){const i=new vt(e,t);vt.equals(i,this._size)||(this._size=i,TH(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};kx=hle([ule(1,Ae)],kx);class gle{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new Q,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new p9,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let i,n,s=0,r=0;this._disposables.add(this._resizable.onDidWillResize(()=>{i=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(i&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(r=n.width-a.dimension.width,l=!0),a.north&&(s=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:i.top+s,left:i.left+r})}a.done&&(i=void 0,n=void 0,s=0,r=0,this._userSize=a.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var a;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(i=this._userSize)!==null&&i!==void 0?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=JC(document.body),r=this.widget.getLayoutInfo(),a=new vt(220,2*r.lineHeight),l=e.top,c=function(){const w=s.width-(e.left+e.width+r.borderWidth+r.horizontalPadding),S=-r.borderWidth+e.left+e.width,k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),d=function(){const w=e.left-r.borderWidth-r.horizontalPadding,S=Math.max(r.horizontalPadding,e.left-t.width-r.borderWidth),k=new vt(w,s.height-e.top-r.borderHeight-r.verticalPadding),x=k.with(void 0,e.top+e.height-r.borderHeight-r.verticalPadding);return{top:l,left:S,fit:w-t.width,maxSizeTop:k,maxSizeBottom:x,minSize:a.with(Math.min(w,a.width))}}(),h=function(){const w=e.left,S=-r.borderWidth+e.top+e.height,k=new vt(e.width-r.borderHeight,s.height-e.top-e.height-r.verticalPadding);return{top:S,left:w,fit:k.height-t.height,maxSizeBottom:k,maxSizeTop:k,minSize:a.with(k.width)}}(),u=[c,d,h],g=(n=u.find(w=>w.fit>=0))!==null&&n!==void 0?n:u.sort((w,S)=>S.fit-w.fit)[0],f=e.top+e.height-r.borderHeight;let _,b=t.height;const v=Math.max(g.maxSizeTop.height,g.maxSizeBottom.height);b>v&&(b=v);let C;i?b<=g.maxSizeTop.height?(_=!0,C=g.maxSizeTop):(_=!1,C=g.maxSizeBottom):b<=g.maxSizeBottom.height?(_=!1,C=g.maxSizeBottom):(_=!0,C=g.maxSizeTop),this._applyTopLeft({left:g.left,top:_?g.top:f-b}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!_,g===c,_,g!==c),this._resizable.minSize=g.minSize,this._resizable.maxSize=C,this._resizable.layout(b,Math.min(C.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}var Ka;(function(o){o[o.FILE=0]="FILE",o[o.FOLDER=1]="FOLDER",o[o.ROOT_FOLDER=2]="ROOT_FOLDER"})(Ka||(Ka={}));const fle=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function i0(o,e,t,i){const n=i===Ka.ROOT_FOLDER?["rootfolder-icon"]:i===Ka.FOLDER?["folder-icon"]:["file-icon"];if(t){let s;if(t.scheme===Me.data)s=cc.parseMetaData(t).get(cc.META_DATA_LABEL);else{const r=t.path.match(fle);r?(s=n0(r[2].toLowerCase()),r[1]&&n.push(`${n0(r[1].toLowerCase())}-name-dir-icon`)):s=n0(t.authority.toLowerCase())}if(i===Ka.FOLDER)n.push(`${s}-name-folder-icon`);else{if(s){if(n.push(`${s}-name-file-icon`),n.push("name-file-icon"),s.length<=255){const a=s.split(".");for(let l=1;l=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ay=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Pf;function m9(o){return`suggest-aria-id:${o}`}const _le=mi("suggest-more-info",m.chevronRight,p("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),ble=new(Pf=class F0{extract(e,t){if(e.textLabel.match(F0._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(F0._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){const i=F0._regexRelaxed.exec(e.completion.documentation);if(i&&(i.index===0||i.index+i[0].length===e.completion.documentation.length))return t[0]=i[0],!0}return!1}},Pf._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Pf._regexStrict=new RegExp(`^${Pf._regexRelaxed.source}$`,"i"),Pf);let xx=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new R,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=Object.create(null);t.disposables=new Q,t.root=e,t.root.classList.add("show-file-icons"),t.icon=q(e,J(".icon")),t.colorspan=q(t.icon,J("span.colorspan"));const i=q(e,J(".contents")),n=q(i,J(".main"));t.iconContainer=q(n,J(".icon-label.codicon")),t.left=q(n,J("span.left")),t.right=q(n,J("span.right")),t.iconLabel=new nC(t.left,{supportHighlights:!0,supportIcons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=q(t.left,J("span.signature-label")),t.qualifierLabel=q(t.left,J("span.qualifier-label")),t.detailsLabel=q(t.right,J("span.details-label")),t.readMore=q(t.right,J("span.readMore"+at.asCSSSelector(_le))),t.readMore.title=p("readMore","Read More");const s=()=>{const r=this._editor.getOptions(),a=r.get(46),l=a.getMassagedFontFamily(),c=a.fontFeatureSettings,d=r.get(109)||a.fontSize,h=r.get(110)||a.lineHeight,u=a.fontWeight,g=a.letterSpacing,f=`${d}px`,_=`${h}px`,b=`${g}px`;t.root.style.fontSize=f,t.root.style.fontWeight=u,t.root.style.letterSpacing=b,n.style.fontFamily=l,n.style.fontFeatureSettings=c,n.style.lineHeight=_,t.icon.style.height=_,t.icon.style.width=_,t.readMore.style.height=_,t.readMore.style.width=_};return s(),t.disposables.add(this._editor.onDidChangeConfiguration(r=>{(r.hasChanged(46)||r.hasChanged(109)||r.hasChanged(110))&&s()})),t}renderElement(e,t,i){const{completion:n}=e;i.root.id=m9(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:E1(e.score)},r=[];if(n.kind===19&&ble.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const a=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FILE),l=i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FILE);s.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:e.textLabel}),Ka.FOLDER),i0(this._modelService,this._languageService,_e.from({scheme:"fake",path:n.detail}),Ka.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...Ln.asClassNameArray(Pp.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),typeof n.label=="string"?(i.parametersLabel.textContent="",i.detailsLabel.textContent=My(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=My(n.label.detail||""),i.detailsLabel.textContent=My(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(108).showInlineDetails?bs(i.detailsLabel):Pn(i.detailsLabel),hT(e)?(i.right.classList.add("can-expand-details"),bs(i.readMore),i.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},i.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),Pn(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};xx=mle([Ay(1,Ut),Ay(2,Ht),Ay(3,Ct)],xx);function My(o){return o.replace(/\r\n|\r|\n/g,"")}var vle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},s0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Cle=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};T("editorSuggestWidget.background",{dark:li,light:li,hcDark:li,hcLight:li},p("editorSuggestWidgetBackground","Background color of the suggest widget."));T("editorSuggestWidget.border",{dark:Ba,light:Ba,hcDark:Ba,hcLight:Ba},p("editorSuggestWidgetBorder","Border color of the suggest widget."));const o0=T("editorSuggestWidget.foreground",{dark:Cs,light:Cs,hcDark:Cs,hcLight:Cs},p("editorSuggestWidgetForeground","Foreground color of the suggest widget."));T("editorSuggestWidget.selectedForeground",{dark:jf,light:jf,hcDark:jf,hcLight:jf},p("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));T("editorSuggestWidget.selectedIconForeground",{dark:Kf,light:Kf,hcDark:Kf,hcLight:Kf},p("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const wle=T("editorSuggestWidget.selectedBackground",{dark:qf,light:qf,hcDark:qf,hcLight:qf},p("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));T("editorSuggestWidget.highlightForeground",{dark:fo,light:fo,hcDark:fo,hcLight:fo},p("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));T("editorSuggestWidget.focusHighlightForeground",{dark:ob,light:ob,hcDark:ob,hcLight:ob},p("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));T("editorSuggestWidgetStatus.foreground",{dark:fe(o0,.5),light:fe(o0,.5),hcDark:fe(o0,.5),hcLight:fe(o0,.5)},p("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class Sle{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Qd}`}restore(){var e;const t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{const i=JSON.parse(t);if(vt.is(i))return vt.lift(i)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let jm=class Ix{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new xs,this._disposables=new Q,this._onDidSelect=new R,this._onDidFocus=new R,this._onDidHide=new R,this._onDidShow=new R,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new R,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new p9,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new yle(this,e),this._persistedSize=new Sle(t,e);class r{constructor(g,f,_=!1,b=!1){this.persistedSize=g,this.currentSize=f,this.persistHeight=_,this.persistWidth=b}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new r(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(u=>{var g,f,_,b;if(this._resize(u.dimension.width,u.dimension.height),a&&(a.persistHeight=a.persistHeight||!!u.north||!!u.south,a.persistWidth=a.persistWidth||!!u.east||!!u.west),!!u.done){if(a){const{itemHeight:v,defaultSize:C}=this.getLayoutInfo(),w=Math.round(v/2);let{width:S,height:k}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-k)<=w)&&(k=(f=(g=a.persistedSize)===null||g===void 0?void 0:g.height)!==null&&f!==void 0?f:C.height),(!a.persistWidth||Math.abs(a.currentSize.width-S)<=w)&&(S=(b=(_=a.persistedSize)===null||_===void 0?void 0:_.width)!==null&&b!==void 0?b:C.width),this._persistedSize.store(new vt(S,k))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=q(this.element.domNode,J(".message")),this._listElement=q(this.element.domNode,J(".tree"));const l=s.createInstance(kx,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new gle(l,this.editor);const c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(108).showIcons);c();const d=s.createInstance(xx,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new rr("SuggestWidget",this._listElement,{getHeight:u=>this.getLayoutInfo().itemHeight,getTemplateId:u=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>p("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:u=>{let g=u.textLabel;if(typeof u.completion.label!="string"){const{detail:v,description:C}=u.completion.label;v&&C?g=p("label.full","{0}{1}, {2}",g,v,C):v?g=p("label.detail","{0}{1}",g,v):C&&(g=p("label.desc","{0}, {1}",g,C))}if(!u.isResolved||!this._isDetailsVisible())return g;const{documentation:f,detail:_}=u.completion,b=Vs("{0}{1}",_||"",f?typeof f=="string"?f:f.value:"");return p("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",g,b)}}}),this._status=s.createInstance(Dx,this.element.domNode);const h=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(108).showStatusBar);h(),this._disposables.add(Ud(this._list,n,{listInactiveFocusBackground:wle,listInactiveFocusOutline:Ot})),this._disposables.add(n.onDidColorThemeChange(u=>this._onThemeChange(u))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onTap(u=>this._onListMouseDownOrTap(u))),this._disposables.add(this._list.onDidChangeSelection(u=>this._onListSelection(u))),this._disposables.add(this._list.onDidChangeFocus(u=>this._onListFocus(u))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(u=>{u.hasChanged(108)&&(h(),c())})),this._ctxSuggestWidgetVisible=Ke.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=Ke.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=Ke.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=Ke.HasFocusedSuggestion.bindTo(i),this._disposables.add(ki(this._details.widget.domNode,"keydown",u=>{this._onDetailsKeydown.fire(u)})),this._disposables.add(this.editor.onMouseDown(u=>this._onEditorMouseDown(u)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(e){typeof e.element>"u"||typeof e.index>"u"||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=cn(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=Ri(s=>Cle(this,void 0,void 0,function*(){const r=Ad(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=s.onCancellationRequested(()=>r.dispose()),l=yield i.resolve(s);return r.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:m9(n)}))}).catch(Te)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",e===4),this.element.domNode.classList.remove("message"),e){case 0:Pn(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.LOADING_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Ix.NO_SUGGESTIONS_MESSAGE,Pn(this._listElement,this._status.element),bs(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 4:Pn(this._messageElement),bs(this._listElement,this._status.element),this._show();break;case 5:Pn(this._messageElement),bs(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=Ad(()=>this._setState(1),t)))}showSuggestions(e,t,i,n){var s,r;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(r=this._currentSuggestionDetails)===null||r===void 0||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&this._state!==2&&this._state!==0){this._setState(4);return}const a=this._completionModel.items.length,l=a===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l){this._setState(n?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),t>=0&&(this._list.reveal(t,0),this._list.setFocus([t])),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(hT(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);const d=this._completionModel?this._completionModel.stats.pLabelLen*r.typicalHalfwidthCharacterWidth:l,h=r.statusBarHeight+this._list.contentHeight+r.borderHeight,u=r.itemHeight+r.statusBarHeight,g=on(this.editor.getDomNode()),f=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),_=g.top+f.top+f.height,b=Math.min(s.height-_-r.verticalPadding,h),v=g.top+f.top-r.verticalPadding,C=Math.min(v,h);let w=Math.min(Math.max(C,b)+r.borderHeight,h);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aw&&(a=w);const S=150;a>b||this._forceRenderingAbove&&v>S?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),w=C):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),w=b),this.element.preferredSize=new vt(d,r.defaultSize.height),this.element.maxSize=new vt(c,w),this.element.minSize=new vt(220,u),this._cappedHeight=a===h?{wanted:(n=(i=this._cappedHeight)===null||i===void 0?void 0:i.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=`${t-s}px`,this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((e=this._contentWidget.getPosition())===null||e===void 0?void 0:e.preference[0])===2)}getLayoutInfo(){const e=this.editor.getOption(46),t=Zn(this.editor.getOption(110)||e.lineHeight,8,1e3),i=!this.editor.getOption(108).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new vt(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};jm.LOADING_MESSAGE=p("suggestWidget.loading","Loading...");jm.NO_SUGGESTIONS_MESSAGE=p("suggestWidget.noSuggestions","No suggestions.");jm=vle([s0(1,Do),s0(2,Ee),s0(3,Ct),s0(4,Ae)],jm);class yle{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new vt(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Lle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Dle{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){const n=e.getOffsetAt(t),s=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:L.fromPositions(t,s),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let _o=class _9{constructor(e,t,i,n,s,r,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=r,this._telemetryService=a,this._lineSuffix=new _n,this._toDispose=new Q,this._selectors=new kle(h=>h.priority),this._telemetryGate=0,this.editor=e,this.model=s.createInstance(Lx,this.editor);const l=Ke.InsertMode.bindTo(n);l.set(e.getOption(108).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(108).insertMode)),this.widget=this._toDispose.add(new $l(()=>{const h=this._instantiationService.createInstance(jm,this.editor);this._toDispose.add(h),this._toDispose.add(h.onDidSelect(b=>this._insertSuggestion(b,0),this));const u=new Lae(this.editor,h,b=>this._insertSuggestion(b,2));this._toDispose.add(u),this._toDispose.add(this.model.onDidSuggest(b=>{b.completionModel.items.length===0&&u.reset()}));const g=Ke.MakesTextEdit.bindTo(this._contextKeyService),f=Ke.HasInsertAndReplaceRange.bindTo(this._contextKeyService),_=Ke.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Be(()=>{g.reset(),f.reset(),_.reset()})),this._toDispose.add(h.onDidFocus(({item:b})=>{const v=this.editor.getPosition(),C=b.editStart.column,w=v.column;let S=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!b.completion.additionalTextEdits&&!(b.completion.insertTextRules&4)&&w-C===b.completion.insertText.length&&(S=this.editor.getModel().getValueInRange({startLineNumber:v.lineNumber,startColumn:C,endLineNumber:v.lineNumber,endColumn:w})!==b.completion.insertText),g.set(S),f.set(!B.equals(b.editInsertEnd,b.editReplaceEnd)),_.set(Boolean(b.provider.resolveCompletionItem)||Boolean(b.completion.documentation)||b.completion.detail!==b.completion.label)})),this._toDispose.add(h.onDetailsKeyDown(b=>{if(b.toKeybinding().equals(new Md(!0,!1,!1,!1,33))||Ge&&b.toKeybinding().equals(new Md(!1,!1,!1,!0,33))){b.stopPropagation();return}b.toKeybinding().isModifierKey()||this.editor.focus()})),h})),this._overtypingCapturer=this._toDispose.add(new $l(()=>this._toDispose.add(new _w(this.editor,this.model)))),this._alternatives=this._toDispose.add(new $l(()=>this._toDispose.add(new ih(this.editor,this._contextKeyService)))),this._toDispose.add(s.createInstance($m,e)),this._toDispose.add(this.model.onDidTrigger(h=>{this.widget.value.showTriggered(h.auto,h.shy?250:50),this._lineSuffix.value=new Dle(this.editor.getModel(),h.position)})),this._toDispose.add(this.model.onDidSuggest(h=>{if(h.shy)return;let u=-1;if(!h.noSelect){for(const g of this._selectors.itemsOrderedByPriorityDesc)if(u=g.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items),u!==-1)break;u===-1&&(u=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),h.completionModel.items))}this.widget.value.showSuggestions(h.completionModel,u,h.isFrozen,h.auto)})),this._toDispose.add(this.model.onDidCancel(h=>{h.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));const c=Ke.AcceptSuggestionsOnEnter.bindTo(n),d=()=>{const h=this.editor.getOption(1);c.set(h==="on"||h==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}static get(e){return e.getContribution(_9.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const i=Oi.get(this.editor);if(!i)return;const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:r}=e,a=[],l=new Qi;t&1||this.editor.pushUndoStop();const c=this.getOverwriteInfo(r,Boolean(t&8));if(this._memoryService.memorize(n,this.editor.getPosition(),r),Array.isArray(r.completion.additionalTextEdits)){const h=hc.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map(u=>Ft.replaceMove(L.lift(u.range),u.text))),h.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!r.isResolved){const h=new $n(!0);let u;const g=n.onDidChangeContent(v=>{if(v.isFlush){l.cancel(),g.dispose();return}for(const C of v.changes){const w=L.getEndPosition(C.range);(!u||B.isBefore(w,u))&&(u=w)}}),f=t;t|=2;let _=!1;const b=this.editor.onWillType(()=>{b.dispose(),_=!0,f&2||this.editor.pushUndoStop()});a.push(r.resolve(l.token).then(()=>{if(!r.completion.additionalTextEdits||l.token.isCancellationRequested||u&&r.completion.additionalTextEdits.some(C=>B.isBefore(u,L.getStartPosition(C.range))))return!1;_&&this.editor.pushUndoStop();const v=hc.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map(C=>Ft.replaceMove(L.lift(C.range),C.text))),v.restoreRelativeVerticalPositionOfCursor(this.editor),(_||!(f&2))&&this.editor.pushUndoStop(),!0}).then(v=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",h.elapsed(),v),g.dispose(),b.dispose()}))}let{insertText:d}=r.completion;r.completion.insertTextRules&4||(d=_c.escape(d)),i.insert(d,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(r.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),r.completion.command?r.completion.command.id===F_.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(a.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch(Te)),this.model.cancel()):this.model.cancel(),t&4&&this._alternatives.value.set(e,h=>{for(l.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(h,3|(t&8?8:0));break}}),this._alertCompletionItem(r),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(r,n,e),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i){var n;if(this._telemetryGate++%100!==0)return;const s=e.extensionId?e.extensionId.value:((n=i.item.provider._debugDisplayName)!==null&&n!==void 0?n:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:s,kind:e.completion.kind,basenameHash:OI(Js(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:uq(t.uri)})}getOverwriteInfo(e,t){pt(this.editor.hasModel());let i=this.editor.getOption(108).insertMode==="replace";t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,r=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+r,overwriteAfter:s+a}}_alertCompletionItem(e){if(rn(e.completion.additionalTextEdits)){const t=p("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);Gi(t)}}triggerSuggest(e,t,i,n){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,shy:!1,noSelect:n!=null?n:!1},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=s=>{if(s.completion.insertTextRules&4||s.completion.additionalTextEdits)return!0;const r=this.editor.getPosition(),a=s.editStart.column,l=r.column;return l-a!==s.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:r.lineNumber,startColumn:a,endLineNumber:r.lineNumber,endColumn:l})!==s.completion.insertText};ge.once(this.model.onDidTrigger)(s=>{const r=[];ge.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{nt(r),i()},void 0,r),this.model.onDidSuggest(({completionModel:a})=>{if(nt(r),a.items.length===0){i();return}const l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!n(c)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,r)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){!this.widget.isInitialized||this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};_o.ID="editor.contrib.suggestController";_o=Lle([Gh(1,mw),Gh(2,ci),Gh(3,Ee),Gh(4,Ae),Gh(5,So),Gh(6,sr)],_o);class kle{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(this._items.indexOf(e)!==-1)throw new Error("Value is already registered");return this._items.push(e),this._items.sort((t,i)=>this.prioritySelector(i)-this.prioritySelector(t)),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class F_ extends ce{constructor(){super({id:F_.id,label:p("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:se.and(N.writable,N.hasCompletionItemProvider),kbOpts:{kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=_o.get(t);if(!n)return;let s,r;i&&typeof i=="object"&&(i.auto===!0&&(s=!0),i.noSelection===!0&&(r=!0)),n.triggerSuggest(void 0,s,void 0,r)}}F_.id="editor.action.triggerSuggest";tt(_o.ID,_o);ie(F_);const eo=100+90,ls=xi.bindToContribution(_o.get);ee(new ls({id:"acceptSelectedSuggestion",precondition:se.and(Ke.Visible,Ke.HasFocusedSuggestion),handler(o){o.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:se.and(Ke.Visible,N.textInputFocus),weight:eo},{primary:3,kbExpr:se.and(Ke.Visible,N.textInputFocus,Ke.AcceptSuggestionsOnEnter,Ke.MakesTextEdit),weight:eo}],menuOpts:[{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:Ke.HasInsertAndReplaceRange.toNegated()},{menuId:Ql,title:p("accept.insert","Insert"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert"))},{menuId:Ql,title:p("accept.replace","Replace"),group:"left",order:1,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace"))}]}));ee(new ls({id:"acceptAlternativeSelectedSuggestion",precondition:se.and(Ke.Visible,N.textInputFocus,Ke.HasFocusedSuggestion),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1027,secondary:[1026]},handler(o){o.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("insert")),title:p("accept.replace","Replace")},{menuId:Ql,group:"left",order:2,when:se.and(Ke.HasInsertAndReplaceRange,Ke.InsertMode.isEqualTo("replace")),title:p("accept.insert","Insert")}]}));Xe.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");ee(new ls({id:"hideSuggestWidget",precondition:Ke.Visible,handler:o=>o.cancelSuggestWidget(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:9,secondary:[1033]}}));ee(new ls({id:"selectNextSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));ee(new ls({id:"selectNextPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectNextPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:12,secondary:[2060]}}));ee(new ls({id:"selectLastSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectLastSuggestion()}));ee(new ls({id:"selectPrevSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));ee(new ls({id:"selectPrevPageSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectPrevPageSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:11,secondary:[2059]}}));ee(new ls({id:"selectFirstSuggestion",precondition:se.and(Ke.Visible,Ke.MultipleSuggestions),handler:o=>o.selectFirstSuggestion()}));ee(new ls({id:"toggleSuggestionDetails",precondition:Ke.Visible,handler:o=>o.toggleSuggestionDetails(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible,Ke.CanResolve),title:p("detail.more","show less")},{menuId:Ql,group:"right",order:1,when:se.and(Ke.DetailsVisible.toNegated(),Ke.CanResolve),title:p("detail.less","show more")}]}));ee(new ls({id:"toggleExplainMode",precondition:Ke.Visible,handler:o=>o.toggleExplainMode(),kbOpts:{weight:100,primary:2133}}));ee(new ls({id:"toggleSuggestionFocus",precondition:Ke.Visible,handler:o=>o.toggleSuggestionFocus(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2570,mac:{primary:778}}}));ee(new ls({id:"insertBestCompletion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),$m.AtEnd,Ke.Visible.toNegated(),ih.OtherSuggestions.toNegated(),Oi.InSnippetMode.toNegated()),handler:(o,e)=>{o.triggerSuggestAndAcceptBest(Hn(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:eo,primary:2}}));ee(new ls({id:"insertNextSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptNextSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:2}}));ee(new ls({id:"insertPrevSuggestion",precondition:se.and(N.textInputFocus,se.equals("config.editor.tabCompletion","on"),ih.OtherSuggestions,Ke.Visible.toNegated(),Oi.InSnippetMode.toNegated()),handler:o=>o.acceptPrevSuggestion(),kbOpts:{weight:eo,kbExpr:N.textInputFocus,primary:1026}}));ie(class extends ce{constructor(){super({id:"editor.action.resetSuggestSize",label:p("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(o,e){var t;(t=_o.get(e))===null||t===void 0||t.resetWidgetSize()}});class xle extends H{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new mt(()=>{this.isSuggestWidgetVisible||this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(n=>{n.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(n=>{n.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const i=_o.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(r,a,l)=>{const c=this.editor.getModel(),d=kC(c,this.suggestControllerPreselector());if(!d)return-1;const h=B.lift(a),u=l.map((f,_)=>{const b=lO(i,h,f,this.isShiftKeyPressed),v=kC(c,b==null?void 0:b.normalizedInlineCompletion);if(!v)return;const C=Ile(d.range,v.range)&&d.insertText.startsWith(v.insertText);return{index:_,valid:C,prefixLength:v.insertText.length,suggestItem:f}}).filter(f=>f&&f.valid),g=zO(u,op(f=>f.prefixLength,O8));return g?g.index:-1}}));let n=!1;const s=()=>{n||(n=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ge.once(i.model.onDidTrigger)(r=>{s()}))}this.update(this._isActive)}get state(){if(!!this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){const t=this.getSuggestItemInfo();let i=!1;Ele(this._currentSuggestItemInfo,t)||(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){const e=_o.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem();if(!!t)return lO(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const e=_o.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){const e=_o.get(this.editor);e&&e.forceRenderingAbove()}}function Ile(o,e){return e.startLineNumber===o.startLineNumber&&e.startColumn===o.startColumn&&(e.endLineNumber0)return{completionItemKind:t.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:L.fromPositions(e,e),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:n}=t.completion,s=!1;if(t.completion.insertTextRules&4){const a=new _c().parse(n),l=o.editor.getModel();if(a.children.length>100)return;SC.adjustWhitespace(l,e,a,!0,!0),n=a.toString(),s=!0}const r=o.getOverwriteInfo(t,i);return{isSnippetText:s,completionItemKind:t.completion.kind,normalizedInlineCompletion:{insertText:n,filterText:n,range:L.fromPositions(e.delta(0,-r.overwriteBefore),e.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}var Nle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Tle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},cO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Ex=class extends l9{constructor(e,t,i){super(e),this.cache=t,this.languageFeaturesService=i,this.suggestionInlineCompletionSource=this._register(new xle(this.editor,()=>{var n,s;return(s=(n=this.cache.value)===null||n===void 0?void 0:n.completions[0])===null||s===void 0?void 0:s.toLiveInlineCompletion()})),this.updateOperation=this._register(new _n),this.updateCacheSoon=this._register(new mt(()=>this.updateCache(),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange(()=>{if(!this.editor.hasModel())return;this.updateCacheSoon.schedule(),this.suggestionInlineCompletionSource.state||(this.minReservedLineCount=0);const s=this.ghostText;s&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,Ale(s.parts.map(r=>r.lines.length-1)))),this.minReservedLineCount>=1?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()})),this._register(this.cache.onDidChange(()=>{this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeCursorPosition(n=>{this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire()})),this._register(Be(()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove()))}get isActive(){return this.suggestionInlineCompletionSource.state!==void 0}isSuggestionPreviewEnabled(){return this.editor.getOption(108).preview}updateCache(){return cO(this,void 0,void 0,function*(){const e=this.suggestionInlineCompletionSource.state;if(!e||!e.selectedItem)return;const t={text:e.selectedItem.normalizedInlineCompletion.insertText,range:e.selectedItem.normalizedInlineCompletion.range,isSnippetText:e.selectedItem.isSnippetText,completionKind:e.selectedItem.completionItemKind},i=this.editor.getPosition();if(e.selectedItem.isSnippetText||e.selectedItem.completionItemKind===27||e.selectedItem.completionItemKind===20||e.selectedItem.completionItemKind===23){this.cache.clear();return}const n=Ri(r=>cO(this,void 0,void 0,function*(){let a;try{a=yield h9(this.languageFeaturesService.inlineCompletionsProvider,i,this.editor.getModel(),{triggerKind:Ps.Automatic,selectedSuggestionInfo:t},r)}catch(l){Te(l);return}if(r.isCancellationRequested){a.dispose();return}this.cache.setValue(this.editor,a,Ps.Automatic),this.onDidChangeEmitter.fire()})),s=new d9(n,Ps.Automatic);this.updateOperation.value=s,yield n,this.updateOperation.value===s&&this.updateOperation.clear()})}get ghostText(){var e,t,i;const n=this.isSuggestionPreviewEnabled(),s=this.editor.getModel(),r=kC(s,(t=(e=this.cache.value)===null||e===void 0?void 0:e.completions[0])===null||t===void 0?void 0:t.toLiveInlineCompletion()),a=this.suggestionInlineCompletionSource.state,l=kC(s,(i=a==null?void 0:a.selectedItem)===null||i===void 0?void 0:i.normalizedInlineCompletion),c=r&&l&&r.insertText.startsWith(l.insertText)&&r.range.equalsRange(l.range);if(!n&&!c)return;const d=c?r:l||r,h=c?d.insertText.length-l.insertText.length:0;return this.toGhostText(d,h)}toGhostText(e,t){const i=this.editor.getOptions().get(108).previewMode;return e?c9(e,this.editor.getModel(),i,this.editor.getPosition(),t)||new r9(e.range.endLineNumber,[],this.minReservedLineCount):void 0}};Ex=Nle([Tle(2,de)],Ex);function Ale(o){return o.reduce((e,t)=>e+t,0)}var Mle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Rle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ole=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ple extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new _n)}get targetModel(){var e;return(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object}setTargetModel(e){var t;((t=this.currentModelRef.value)===null||t===void 0?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?iae(e,e.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=(t=(e=this.currentModelRef.value)===null||e===void 0?void 0:e.object)===null||t===void 0?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;(t=this.targetModel)===null||t===void 0||t.setExpanded(e)}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let Nx=class extends Ple{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.sharedCache=this._register(new Fle),this.suggestWidgetAdapterModel=this._register(this.instantiationService.createInstance(Ex,this.editor,this.sharedCache)),this.inlineCompletionsModel=this._register(this.instantiationService.createInstance(yx,this.editor,this.sharedCache)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const i=(t=this.activeInlineCompletionsModel)===null||t===void 0?void 0:t.ghostText;return i?i.parts.some(n=>e.containsPosition(new B(i.lineNumber,n.column))):!1}triggerInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.trigger(Ps.Explicit)}commitInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.commitCurrentSuggestion()}hideInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.hide()}showNextInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showNext()}showPreviousInlineCompletion(){var e;(e=this.activeInlineCompletionsModel)===null||e===void 0||e.showPrevious()}hasMultipleInlineCompletions(){var e;return Ole(this,void 0,void 0,function*(){const t=yield(e=this.activeInlineCompletionsModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Nx=Mle([Rle(1,Ae)],Nx);class Fle extends H{constructor(){super(...arguments),this.onDidChangeEmitter=new R,this.onDidChange=this.onDidChangeEmitter.event,this.cache=this._register(new _n)}get value(){return this.cache.value}setValue(e,t,i){this.cache.value=new gae(t,e,()=>this.onDidChangeEmitter.fire(),i)}clearAndLeak(){return this.cache.clearAndLeak()}clear(){this.cache.clear()}}var Ble=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ry;const hO=(Ry=window.trustedTypes)===null||Ry===void 0?void 0:Ry.createPolicy("editorGhostText",{createHTML:o=>o});let Tx=class extends H{constructor(e,t,i,n){super(),this.editor=e,this.model=t,this.instantiationService=i,this.languageService=n,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(Vle,this.editor)),this.additionalLinesWidget=this._register(new Hle(this.editor,this.languageService.languageIdCodec)),this.viewMoreContentWidget=void 0,this.replacementDecoration=this._register(new Wle(this.editor)),this._register(this.editor.onDidChangeConfiguration(s=>{(s.hasChanged(29)||s.hasChanged(107)||s.hasChanged(90)||s.hasChanged(85)||s.hasChanged(47)||s.hasChanged(46)||s.hasChanged(61))&&this.update()})),this._register(Be(()=>{var s;this.disposed=!0,this.update(),(s=this.viewMoreContentWidget)===null||s===void 0||s.dispose(),this.viewMoreContentWidget=void 0})),this._register(t.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e;const t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed){this.partsWidget.clear(),this.additionalLinesWidget.clear(),this.replacementDecoration.clear();return}const i=new Array,n=new Array;function s(c,d){if(n.length>0){const h=n[n.length-1];d&&h.decorations.push(new es(h.content.length+1,h.content.length+1+c[0].length,d,0)),h.content+=c[0],c=c.slice(1)}for(const h of c)n.push({content:h,decorations:d?[new es(1,h.length+1,d,0)]:[]})}t instanceof a9?this.replacementDecoration.setDecorations([{range:new L(t.lineNumber,t.columnStart,t.lineNumber,t.columnStart+t.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.replacementDecoration.setDecorations([]);const r=this.editor.getModel().getLineContent(t.lineNumber);let a,l=0;for(const c of t.parts){let d=c.lines;a===void 0?(i.push({column:c.column,text:d[0],preview:c.preview}),d=d.slice(1)):s([r.substring(l,c.column-1)],void 0),d.length>0&&(s(d,"ghost-text"),a===void 0&&c.column<=r.length&&(a=c.column)),l=c.column-1}a!==void 0&&s([r.substring(l)],void 0),this.partsWidget.setParts(t.lineNumber,i,a!==void 0?{column:a,length:r.length+1-a}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,n,t.additionalReservedLineCount),(e=this.viewMoreContentWidget)===null||e===void 0||e.dispose(),this.viewMoreContentWidget=void 0}renderViewMoreLines(e,t,i){const n=this.editor.getOption(46),s=document.createElement("div");s.className="suggest-preview-additional-widget",an(s,n);const r=document.createElement("span");r.className="content-spacer",r.append(t),s.append(r);const a=document.createElement("span");a.className="content-newline suggest-preview-text",a.append("\u23CE "),s.append(a);const l=new Q,c=document.createElement("div");return c.className="button suggest-preview-text",c.append(`+${i} lines\u2026`),l.add(ki(c,"mousedown",d=>{var h;(h=this.model)===null||h===void 0||h.setExpanded(!0),d.preventDefault(),this.editor.focus()})),s.append(c),new Ule(this.editor,e,s,l)}};Tx=Ble([dO(2,Ae),dO(3,Ht)],Tx);class Wle{constructor(e){this.editor=e,this.decorationIds=[]}setDecorations(e){this.editor.changeDecorations(t=>{this.decorationIds=t.deltaDecorations(this.decorationIds,e)})}clear(){this.setDecorations([])}dispose(){this.clear()}}class Vle{constructor(e){this.editor=e,this.decorationIds=[]}dispose(){this.clear()}clear(){this.editor.changeDecorations(e=>{this.decorationIds=e.deltaDecorations(this.decorationIds,[])})}setParts(e,t,i){if(!this.editor.getModel())return;const s=new Array;i&&s.push({range:L.fromPositions(new B(e,i.column),new B(e,i.column+i.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.editor.changeDecorations(r=>{this.decorationIds=r.deltaDecorations(this.decorationIds,t.map(a=>({range:L.fromPositions(new B(e,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Wo.Left},showIfCollapsed:!0}})).concat(s))})}}class Hle{constructor(e,t){this.editor=e,this.languageIdCodec=t,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones(r=>{this._viewZoneId&&(r.removeZone(this._viewZoneId),this._viewZoneId=void 0);const a=Math.max(t.length,i);if(a>0){const l=document.createElement("div");zle(l,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=r.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}}function zle(o,e,t,i,n){const s=i.get(29),r=i.get(107),a="none",l=i.get(85),c=i.get(47),d=i.get(46),h=i.get(61),u=nc(1e4);u.appendASCIIString('
');for(let _=0,b=t.length;_');const w=VC(C),S=eg(C),k=Di.createEmpty(C,n);a_(new Lc(d.isMonospace&&!s,d.canUseHalfwidthRightwardsArrow,C,!1,w,S,0,k,v.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,r,a,l,c!==_s.OFF,null),u),u.appendASCIIString("
")}u.appendASCIIString(""),an(o,d);const g=u.build(),f=hO?hO.createHTML(g):g;o.innerHTML=f}class Ule extends H{constructor(e,t,i,n){super(),this.editor=e,this.position=t,this.domNode=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(n),this._register(Be(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Et((o,e)=>{const t=o.getColor(D$);t&&(e.addRule(`.monaco-editor .ghost-text-decoration { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { color: ${t.toString()} !important; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { color: ${t.toString()} !important; }`));const i=o.getColor(k$);i&&(e.addRule(`.monaco-editor .ghost-text-decoration { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { background-color: ${i.toString()}; }`),e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { background-color: ${i.toString()}; }`));const n=o.getColor(L$);n&&(e.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration { border: 1px solid ${n}; }`),e.addRule(`.monaco-editor .ghost-text-decoration-preview { border: 1px solid ${n}; }`))});var b9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ax=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},bw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Mi=class v9 extends H{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new _n),this.activeModelDidChangeEmitter=this._register(new R),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(i=>{i.hasChanged(108)&&this.updateModelController(),i.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(e){return e.getContribution(v9.ID)}get activeModel(){var e;return(e=this.activeController.value)===null||e===void 0?void 0:e.model}updateModelController(){const e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(Mx,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return((t=this.activeModel)===null||t===void 0?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return((i=(t=this.activeController.value)===null||t===void 0?void 0:t.widget)===null||i===void 0?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),(e=this.activeModel)===null||e===void 0||e.triggerInlineCompletion()}commit(){var e;(e=this.activeModel)===null||e===void 0||e.commitInlineCompletion()}hide(){var e;(e=this.activeModel)===null||e===void 0||e.hideInlineCompletion()}showNextInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;(e=this.activeModel)===null||e===void 0||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return bw(this,void 0,void 0,function*(){const t=yield(e=this.activeModel)===null||e===void 0?void 0:e.hasMultipleInlineCompletions();return t!==void 0?t:!1})}};Mi.inlineSuggestionVisible=new le("inlineSuggestionVisible",!1,p("inlineSuggestionVisible","Whether an inline suggestion is visible"));Mi.inlineSuggestionHasIndentation=new le("inlineSuggestionHasIndentation",!1,p("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"));Mi.inlineSuggestionHasIndentationLessThanTabSize=new le("inlineSuggestionHasIndentationLessThanTabSize",!0,p("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"));Mi.ID="editor.contrib.ghostTextController";Mi=b9([Ax(1,Ae)],Mi);class $le{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=Mi.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=Mi.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=Mi.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let Mx=class extends H{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new $le(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(Nx,this.editor)),this.widget=this._register(this.instantiationService.createInstance(Tx,this.editor,this.model)),this._register(Be(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set(((e=this.model.activeInlineCompletionsModel)===null||e===void 0?void 0:e.ghostText)!==void 0);let t=!1,i=!0;const n=this.model.inlineCompletionsModel.ghostText;if(!!this.model.activeInlineCompletionsModel&&n&&n.parts.length>0){const{column:s,lines:r}=n.parts[0],a=r[0],l=this.editor.getModel().getLineIndentColumn(n.lineNumber);if(s<=l){let d=kn(a);d===-1&&(d=a.length-1),t=d>0;const h=this.editor.getModel().getOptions().tabSize;i=Ci.visibleColumnFromColumn(a,d+1,h)=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class qle{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return((i=(t=(e=this.controller.activeModel)===null||e===void 0?void 0:e.activeInlineCompletionsModel)===null||t===void 0?void 0:t.completionSession.value)===null||i===void 0?void 0:i.commands)||[]}}let Rx=class{constructor(e,t,i,n,s,r,a){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=s,this._openerService=r,this.accessibilityService=a,this.hoverOrdinal=3}suggestHoverAnchor(e){const t=Mi.get(this._editor);if(!t)return null;const i=e.target;if(i.type===8){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new T0(1e3,this,L.fromPositions(n.positionBefore||n.position,n.positionBefore||n.position))}return i.type===7&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):i.type===6&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new T0(1e3,this,i.range):null}computeSync(e,t){const i=Mi.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new qle(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new Q,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);const s=i.add(this._menuService.createMenu(M.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:p("showNextInlineSuggestion","Next"),commandId:Ag.ID,run:()=>this._commandService.executeCommand(Ag.ID)}),a=e.statusBar.addAction({label:p("showPreviousInlineSuggestion","Previous"),commandId:Mg.ID,run:()=>this._commandService.executeCommand(Mg.ID)});e.statusBar.addAction({label:p("acceptInlineSuggestion","Accept"),commandId:DC,run:()=>this._commandService.executeCommand(DC)});const l=[r,a];for(const c of l)c.setEnabled(!1);n.hasMultipleSuggestions().then(c=>{for(const d of l)d.setEnabled(c)});for(const c of n.commands)e.statusBar.addAction({label:c.title,commandId:c.id,run:()=>this._commandService.executeCommand(c.id,...c.arguments||[])});for(const[c,d]of s.getActions())for(const h of d)h instanceof ac&&e.statusBar.addAction({label:h.label,commandId:h.item.id,run:()=>this._commandService.executeCommand(h.item.id)});return i}renderScreenReaderText(e,t,i){var n,s;const r=J,a=r("div.hover-row.markdown-hover"),l=q(a,r("div.hover-contents")),c=i.add(new ol({editor:this._editor},this._languageService,this._openerService)),d=u=>{i.add(c.onDidRenderAsync(()=>{l.className="hover-contents code-hover-contents",e.onContentsChanged()}));const g=p("inlineSuggestionFollows","Suggestion:"),f=i.add(c.render(new Fn().appendText(g).appendCodeblock("text",u)));l.replaceChildren(f.element)},h=(s=(n=t.controller.activeModel)===null||n===void 0?void 0:n.inlineCompletionsModel)===null||s===void 0?void 0:s.ghostText;if(h){const u=this._editor.getModel().getLineContent(h.lineNumber);d(h.renderForScreenReader(u))}e.fragment.appendChild(a)}};Rx=Kle([Zh(1,ci),Zh(2,ph),Zh(3,Ee),Zh(4,Ht),Zh(5,io),Zh(6,al)],Rx);tt(Mi.ID,Mi);ie(jle);ie(Ag);ie(Mg);xh.register(Rx);const C9=xi.bindToContribution(Mi.get),Ox=new C9({id:DC,precondition:Mi.inlineSuggestionVisible,handler(o){o.commit(),o.editor.focus()}});ee(Ox);as.registerKeybindingRule({primary:2,weight:200,id:Ox.id,when:se.and(Ox.precondition,N.tabMovesFocus.toNegated(),Mi.inlineSuggestionHasIndentationLessThanTabSize)});ee(new C9({id:"editor.action.inlineSuggest.hide",precondition:Mi.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(o){o.hide()}}));function Gn(o,e){let t=0;for(let i=0;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zle=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};function w9(o,e,t,i,n){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return[];const s=e.getLanguageConfiguration(o.getLanguageId()).indentationRules;if(!s)return[];for(i=Math.min(i,o.getLineCount());t<=i&&s.unIndentedLinePattern;){const b=o.getLineContent(t);if(!s.unIndentedLinePattern.test(b))break;t++}if(t>i-1)return[];const{tabSize:r,indentSize:a,insertSpaces:l}=o.getOptions(),c=(b,v)=>(v=v||1,Bs.shiftIndent(b,b.length+v,r,a,l)),d=(b,v)=>(v=v||1,Bs.unshiftIndent(b,b.length+v,r,a,l)),h=[];let u;const g=o.getLineContent(t);let f=g;if(n!=null){u=n;const b=_t(g);f=u+g.substring(b.length),s.decreaseIndentPattern&&s.decreaseIndentPattern.test(f)&&(u=d(u),f=u+g.substring(b.length)),g!==f&&h.push(Ft.replaceMove(new oe(t,1,t,b.length+1),Sv(u,a,l)))}else u=_t(g);let _=u;s.increaseIndentPattern&&s.increaseIndentPattern.test(f)?(_=c(_),u=c(u)):s.indentNextLinePattern&&s.indentNextLinePattern.test(f)&&(_=c(_)),t++;for(let b=t;b<=i;b++){const v=o.getLineContent(b),C=_t(v),w=_+v.substring(C.length);s.decreaseIndentPattern&&s.decreaseIndentPattern.test(w)&&(_=d(_),u=d(u)),C!==_&&h.push(Ft.replaceMove(new oe(b,1,b,C.length+1),Sv(_,a,l))),!(s.unIndentedLinePattern&&s.unIndentedLinePattern.test(v))&&(s.increaseIndentPattern&&s.increaseIndentPattern.test(w)?(u=c(u),_=u):s.indentNextLinePattern&&s.indentNextLinePattern.test(w)?_=c(_):_=u)}return h}class vw extends ce{constructor(){super({id:vw.ID,label:p("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new Jle(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}vw.ID="editor.action.indentationToSpaces";class Cw extends ce{constructor(){super({id:Cw.ID,label:p("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:N.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const r=new ece(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}Cw.ID="editor.action.indentationToTabs";class S9 extends ce{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const i=e.get(dl),n=e.get(Ut),s=t.getModel();if(!s)return;const r=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),a=[1,2,3,4,5,6,7,8].map(c=>({id:c.toString(),label:c.toString(),description:c===r.tabSize?p("configuredTabSize","Configured Tab Size"):void 0})),l=Math.min(s.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(a,{placeHolder:p({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then(c=>{c&&s&&!s.isDisposed()&&s.updateOptions({tabSize:parseInt(c.label,10),insertSpaces:this.insertSpaces})})},50)}}class ww extends S9{constructor(){super(!1,{id:ww.ID,label:p("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}ww.ID="editor.action.indentUsingTabs";class Sw extends S9{constructor(){super(!0,{id:Sw.ID,label:p("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}Sw.ID="editor.action.indentUsingSpaces";class yw extends ce{constructor(){super({id:yw.ID,label:p("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(Ut),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}yw.ID="editor.action.detectIndentation";class Yle extends ce{constructor(){super({id:"editor.action.reindentlines",label:p("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=w9(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class Qle extends ce{constructor(){super({id:"editor.action.reindentselectedlines",label:p("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:N.writable})}run(e,t){const i=e.get(si),n=t.getModel();if(!n)return;const s=t.getSelections();if(s===null)return;const r=[];for(const a of s){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;const d=w9(n,i,l,c);r.push(...d)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class Xle{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&typeof i.text=="string"&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(L.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let Km=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new Q,this.callOnModel=new Q,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(9)<4||this.editor.getOption(50))&&(!this.editor.hasModel()||this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(t===null||t.length>1)return;const i=this.editor.getModel();if(!i||!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(9),{tabSize:s,indentSize:r,insertSpaces:a}=i.getOptions(),l=[],c={shiftIndent:g=>Bs.shiftIndent(g,g.length+1,s,r,a),unshiftIndent:g=>Bs.unshiftIndent(g,g.length+1,s,r,a)};let d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(i,d)){d++;continue}break}if(d>e.endLineNumber)return;let h=i.getLineContent(d);if(!/\S/.test(h.substring(0,e.startColumn-1))){const g=hp(n,i,i.getLanguageId(),d,c,this._languageConfigurationService);if(g!==null){const f=_t(h),_=Gn(g,s),b=Gn(f,s);if(_!==b){const v=Tp(_,s,a);l.push({range:new L(d,1,d,f.length+1),text:v}),h=v+h.substr(f.length)}else{const v=Z4(i,d,this._languageConfigurationService);if(v===0||v===8)return}}}const u=d;for(;di.tokenization.getLineTokens(_),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(_,b)=>i.getLanguageIdAtPosition(_,b)},getLineContent:_=>_===u?h:i.getLineContent(_)},i.getLanguageId(),d+1,c,this._languageConfigurationService);if(f!==null){const _=Gn(f,s),b=Gn(_t(i.getLineContent(d+1)),s);if(_!==b){const v=_-b;for(let C=d+1;C<=e.endLineNumber;C++){const w=i.getLineContent(C),S=_t(w),x=Gn(S,s)+v,y=Tp(x,s,a);y!==S&&l.push({range:new L(C,1,C,S.length+1),text:y})}}}}if(l.length>0){this.editor.pushUndoStop();const g=new Xle(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",g),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(i===0)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const s=n.findTokenIndexAtOffset(i);if(s>=0&&n.getStandardTokenType(s)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};Km.ID="editor.contrib.autoIndentOnPaste";Km=Gle([Zle(1,si)],Km);function y9(o,e,t,i){if(o.getLineCount()===1&&o.getLineMaxColumn(1)===1)return;let n="";for(let r=0;rthis._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,i;return xC(this,void 0,void 0,function*(){try{const n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=n==null?void 0:n.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(i=n==null?void 0:n.label)!==null&&i!==void 0?i:this.hint.label,this._isResolved=!0}catch(n){Pi(n),this._isResolved=!1}})}}class qm{constructor(e,t,i){this._disposables=new Q,this.ranges=e,this.provider=new Set;const n=[];for(const[s,r]of t){this._disposables.add(s),this.provider.add(r);for(const a of s.hints){const l=i.validatePosition(a.position);let c="before";const d=qm._getRangeAtPosition(i,l);let h;d.getStartPosition().isBefore(l)?(h=L.fromPositions(d.getStartPosition(),l),c="after"):(h=L.fromPositions(l,d.getEndPosition()),c="before"),n.push(new uT(a,new L9(h,c),r))}}this.items=n.sort((s,r)=>B.compare(s.hint.position,r.hint.position))}static create(e,t,i,n){return xC(this,void 0,void 0,function*(){const s=[],r=e.ordered(t).reverse().map(a=>i.map(l=>xC(this,void 0,void 0,function*(){try{const c=yield a.provideInlayHints(t,l,n);c!=null&&c.hints.length&&s.push([c,a])}catch(c){Pi(c)}})));if(yield Promise.all(r.flat()),n.isCancellationRequested||t.isDisposed())throw new yc;return new qm(i,s,t)})}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new L(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),r=t.column-1,a=s.findTokenIndexAtOffset(r);let l=s.getStartOffset(a),c=s.getEndOffset(a);return c-l===1&&(l===r&&a>1?(l=s.getStartOffset(a-1),c=s.getEndOffset(a-1)):c===r&&auu(f)?f.command.id:""));for(const f of md.getEditorActions())f instanceof vo&&u.has(f.id)&&h.push(new is(f.id,f.label,void 0,!0,()=>Ap(this,void 0,void 0,function*(){const _=yield s.createModelReference(d.uri);try{yield l.invokeFunction(f.run.bind(f),e,new Pm(_.object.textEditorModel,L.getStartPosition(d.range)))}finally{_.dispose()}})));if(i.part.command){const{command:f}=i.part;h.push(new ln),h.push(new is(f.id,f.title,void 0,!0,()=>Ap(this,void 0,void 0,function*(){var _;try{yield a.executeCommand(f.id,...(_=f.arguments)!==null&&_!==void 0?_:[])}catch(b){c.notify({severity:I5.Error,source:i.item.provider.displayName,message:b})}})))}const g=e.getOption(117);r.showContextMenu({domForShadowRoot:g&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{const f=on(t);return{x:f.left,y:f.top+f.height+8}},getActions:()=>h,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function nce(o,e,t,i){return Ap(this,void 0,void 0,function*(){const s=yield o.get(Kn).createModelReference(i.uri);yield t.invokeWithinContext(r=>Ap(this,void 0,void 0,function*(){const a=e.hasSideBySideModifier,l=r.get(Ee),c=jn.inPeekEditor.getValue(l),d=!a&&t.getOption(80)&&!c;return new R_({openToSide:a,openInPeek:d,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(r,t,{model:s.object.textEditorModel,position:L.getStartPosition(i.range)})})),s.dispose()})}var sce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Yh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},su=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class IC{constructor(){this._entries=new Dc(50)}get(e){const t=IC._key(e);return this._entries.get(t)}set(e,t){const i=IC._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const D9=Ye("IInlayHintsCache");et(D9,IC,!0);class Px{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}}class oce{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let nh=class Fx{constructor(e,t,i,n,s,r,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=r,this._instaService=a,this._disposables=new Q,this._sessionDisposables=new Q,this._decorationsMetadata=new Map,this._ruleFactory=new d_(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(129)&&this._update()})),this._update()}static get(e){var t;return(t=e.getContribution(Fx.ID))!==null&&t!==void 0?t:void 0}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(129);if(e.enabled==="off")return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;const i=this._inlayHintsCache.get(t);i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add(Be(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n;const s=new Set,r=new mt(()=>su(this,void 0,void 0,function*(){const a=Date.now();n==null||n.dispose(!0),n=new Qi;const l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{const c=n.token,d=yield qm.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(r.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(const h of d.provider)typeof h.onDidChangeInlayHints=="function"&&!s.has(h)&&(s.add(h),this._sessionDisposables.add(h.onDidChangeInlayHints(()=>{r.isScheduled()||r.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){Te(c)}finally{n.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(r),this._sessionDisposables.add(Be(()=>n==null?void 0:n.dispose(!0))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!r.isScheduled())&&r.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{const l=Math.max(r.delay,1250);r.schedule(l)})),e.enabled==="on")this._activeRenderMode=0;else{let a,l;e.enabled==="onUnlessPressed"?(a=0,l=1):(a=1,l=0),this._activeRenderMode=a,this._sessionDisposables.add(Ol.getInstance().event(c=>{if(!this._editor.hasModel())return;const d=c.altKey&&c.ctrlKey?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;const h=this._editor.getModel(),u=this._copyInlayHintsWithCurrentAnchor(h);this._updateHintsDecorators([h.getFullModelRange()],u),r.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>r.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new Q,t=e.add(new UN(this._editor)),i=new Q;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{const[s]=n,r=this._getInlayHintLabelPart(s),a=this._editor.getModel();if(!r||!a){i.clear();return}const l=new Qi;i.add(Be(()=>l.dispose(!0))),r.item.resolve(l.token),this._activeInlayHintPart=r.part.command||r.part.location?new oce(r,s.hasTriggerModifier):void 0;const c=r.item.hint.position.lineNumber,d=new L(c,1,c,a.getLineMaxColumn(c)),h=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],h),i.add(Be(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],h)}))})),e.add(t.onCancel(()=>i.clear())),e.add(t.onExecute(n=>su(this,void 0,void 0,function*(){const s=this._getInlayHintLabelPart(n);if(s){const r=s.part;r.location?this._instaService.invokeFunction(nce,n,this._editor,r.location):Jy.is(r.command)&&(yield this._invokeCommand(r.command,s.item))}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>su(this,void 0,void 0,function*(){if(t.event.detail!==2)return;const i=this._getInlayHintLabelPart(t);if(!!i&&(t.event.preventDefault(),yield i.item.resolve(ze.None),rn(i.item.hint.textEdits))){const n=i.item.hint.textEdits.map(s=>Ft.replace(L.lift(s.range),s.text));this._editor.executeEdits("inlayHint.default",n),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>su(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(ice,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;const i=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(i instanceof zd&&(i==null?void 0:i.attachedData)instanceof Px)return i.attachedData}_invokeCommand(e,t){var i;return su(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(i=e.arguments)!==null&&i!==void 0?i:[])}catch(n){this._notificationService.notify({severity:I5.Error,source:t.provider.displayName,message:n})}})}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const r=new L9(s,n.item.anchor.direction),a=n.item.with({anchor:r});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){const t=this._editor.getModel(),i=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const s of i.sort(L.compareRangesUsingStarts)){const r=t.validateRange(new L(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));n.length===0||!L.areIntersectingOrTouching(n[n.length-1],r)?n.push(r):n[n.length-1]=L.plusRange(n[n.length-1],r)}return n}_updateHintsDecorators(e,t){var i,n;const s=[],r=(f,_,b,v,C)=>{const w={content:b,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:_.className,cursorStops:v,attachedData:C};s.push({item:f,classNameRef:_,decoration:{range:f.anchor.range,options:{description:"InlayHint",showIfCollapsed:f.anchor.range.isEmpty(),collapseOnReplaceEdit:!f.anchor.range.isEmpty(),stickiness:0,[f.anchor.direction]:this._activeRenderMode===0?w:void 0}}})},a=(f,_)=>{const b=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});r(f,b,"\u200A",_?Wo.Right:Wo.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:h}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,c);for(const f of t){f.hint.paddingLeft&&a(f,!1);const _=typeof f.hint.label=="string"?[{label:f.hint.label}]:f.hint.label;for(let b=0;b<_.length;b++){const v=_[b],C=b===0,w=b===_.length-1,S={fontSize:`${l}px`,fontFamily:`var(${u}), ${ts.fontFamily}`,verticalAlign:h?"baseline":"middle"};rn(f.hint.textEdits)&&(S.cursor="default"),this._fillInColors(S,f.hint),(v.command||v.location)&&((i=this._activeInlayHintPart)===null||i===void 0?void 0:i.part.item)===f&&this._activeInlayHintPart.part.index===b&&(S.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(S.color=Qt(lE),S.cursor="pointer")),d&&(C&&w?(S.padding=`1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px`):C?(S.padding=`1px 0 1px ${Math.max(1,l/4)|0}px`,S.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):w?(S.padding=`1px ${Math.max(1,l/4)|0}px 1px 0`,S.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):S.padding="1px 0 1px 0"),r(f,this._ruleFactory.createClassNameRef(S),rce(v.label),w&&!f.hint.paddingRight?Wo.Right:Wo.None,new Px(f,b))}if(f.hint.paddingRight&&a(f,!0),s.length>Fx._MAX_DECORATORS)break}const g=[];for(const f of e)for(const{id:_}of(n=this._editor.getDecorationsInRange(f))!==null&&n!==void 0?n:[]){const b=this._decorationsMetadata.get(_);b&&(g.push(_),b.classNameRef.dispose(),this._decorationsMetadata.delete(_))}this._editor.changeDecorations(f=>{const _=f.deltaDecorations(g,s.map(b=>b.decoration));for(let b=0;b<_.length;b++){const v=s[b];this._decorationsMetadata.set(_[b],v)}})}_fillInColors(e,t){t.kind===X0.Parameter?(e.backgroundColor=Qt(zz),e.color=Qt(Hz)):t.kind===X0.Type?(e.backgroundColor=Qt(Vz),e.color=Qt(Wz)):(e.backgroundColor=Qt(za),e.color=Qt(Ha))}_getLayoutInfo(){const e=this._editor.getOption(129),t=e.padding,i=this._editor.getOption(48),n=this._editor.getOption(45);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const r=e.fontFamily||n;return{fontSize:s,fontFamily:r,padding:t,isUniform:!t&&r===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};nh.ID="editor.contrib.InlayHints";nh._MAX_DECORATORS=1500;nh=sce([Yh(1,de),Yh(2,no),Yh(3,D9),Yh(4,ci),Yh(5,di),Yh(6,Ae)],nh);function rce(o){const e="\xA0";return o.replace(/[ \t]/g,e)}Xe.registerCommand("_executeInlayHintProvider",(o,...e)=>su(void 0,void 0,void 0,function*(){const[t,i]=e;pt(_e.isUri(t)),pt(L.isIRange(i));const{inlayHintsProvider:n}=o.get(de),s=yield o.get(Kn).createModelReference(t);try{const r=yield qm.create(n,s.object.textEditorModel,[L.lift(i)],ze.None),a=r.items.map(l=>l.hint);return setTimeout(()=>r.dispose(),0),a}finally{s.dispose()}}));var ace=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ff=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},uO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lce=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};class gO extends T0{constructor(e,t){super(10,t,e.item.anchor.range),this.part=e}}let Bx=class extends bC{constructor(e,t,i,n,s,r){super(e,t,i,n,r),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!nh.get(this._editor)||e.target.type!==6)return null;const n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof zd&&n.attachedData instanceof Px?new gO(n.attachedData,this):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof gO?new ri(n=>uO(this,void 0,void 0,function*(){var s,r;const{part:a}=e;if(yield a.item.resolve(i),i.isCancellationRequested)return;let l;typeof a.item.hint.tooltip=="string"?l=new Fn().appendText(a.item.hint.tooltip):a.item.hint.tooltip&&(l=a.item.hint.tooltip),l&&n.emitOne(new Tr(this,e.range,[l],0)),rn(a.item.hint.textEdits)&&n.emitOne(new Tr(this,e.range,[new Fn().appendText(p("hint.dbl","Double click to insert"))],10001));let c;if(typeof a.part.tooltip=="string"?c=new Fn().appendText(a.part.tooltip):a.part.tooltip&&(c=a.part.tooltip),c&&n.emitOne(new Tr(this,e.range,[c],1)),a.part.location||a.part.command){let g;const _=this._editor.getOption(72)==="altKey"?Ge?p("links.navigate.kb.meta.mac","cmd + click"):p("links.navigate.kb.meta","ctrl + click"):Ge?p("links.navigate.kb.alt.mac","option + click"):p("links.navigate.kb.alt","alt + click");a.part.location&&a.part.command?g=new Fn().appendText(p("hint.defAndCommand","Go to Definition ({0}), right click for more",_)):a.part.location?g=new Fn().appendText(p("hint.def","Go to Definition ({0})",_)):a.part.command&&(g=new Fn(`[${p("hint.cmd","Execute Command")}](${tce(a.part.command)} "${a.part.command.title}") (${_})`,{isTrusted:!0})),g&&n.emitOne(new Tr(this,e.range,[g],1e4))}const d=yield this._resolveInlayHintLabelPartHover(a,i);try{for(var h=lce(d),u;u=yield h.next(),!u.done;){const g=u.value;n.emitOne(g)}}catch(g){s={error:g}}finally{try{u&&!u.done&&(r=h.return)&&(yield r.call(h))}finally{if(s)throw s.error}}})):ri.EMPTY}_resolveInlayHintLabelPartHover(e,t){return uO(this,void 0,void 0,function*(){if(!e.part.location)return ri.EMPTY;const{uri:i,range:n}=e.part.location,s=yield this._resolverService.createModelReference(i);try{const r=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(r)?eT(this._languageFeaturesService.hoverProvider,r,new B(n.startLineNumber,n.startColumn),t).filter(a=>!_g(a.hover.contents)).map(a=>new Tr(this,e.item.anchor.range,a.hover.contents,2+a.ordinal)):ri.EMPTY}finally{s.dispose()}})}};Bx=ace([Ff(1,Ht),Ff(2,io),Ff(3,ot),Ff(4,Kn),Ff(5,de)],Bx);tt(nh.ID,nh);xh.register(Bx);class cce{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new oe(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new oe(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var dce=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hce=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cc=class Wx{constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}static get(e){return e.getContribution(Wx.ID)}dispose(){}run(e,t){this.currentRequest&&this.currentRequest.cancel();const i=this.editor.getSelection(),n=this.editor.getModel();if(!n||!i)return;let s=i;if(s.startLineNumber!==s.endLineNumber)return;const r=new Tm(this.editor,5),a=n.uri;return this.editorWorkerService.canNavigateValueSet(a)?(this.currentRequest=Ri(l=>this.editorWorkerService.navigateValueSet(a,s,t)),this.currentRequest.then(l=>{if(!l||!l.range||!l.value||!r.validate(this.editor))return;const c=L.lift(l.range);let d=l.range;const h=l.value.length-(s.endColumn-s.startColumn);d={startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.startColumn+l.value.length},h>1&&(s=new oe(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+h-1));const u=new cce(c,s,l.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:d,options:Wx.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=sc(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(Te)}).catch(Te)):Promise.resolve(void 0)}};Cc.ID="editor.contrib.inPlaceReplaceController";Cc.DECORATION=Ne.register({description:"in-place-replace",className:"valueSetReplacement"});Cc=dce([hce(1,to)],Cc);class uce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.up",label:p("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3154,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}class gce extends ce{constructor(){super({id:"editor.action.inPlaceReplace.down",label:p("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:N.writable,kbOpts:{kbExpr:N.editorTextFocus,primary:3156,weight:100}})}run(e,t){const i=Cc.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}tt(Cc.ID,Cc);ie(uce);ie(gce);Et((o,e)=>{const t=o.getColor(z4);t&&e.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${t}; }`)});class fce extends ce{constructor(){super({id:"expandLineSelection",label:p("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:N.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,Wi.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(i.source,!0)}}ie(fce);class pce{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){const i=mce(e,this._cursors);for(let n=0,s=i.length;nr.lineNumber===a.lineNumber?r.column-a.column:r.lineNumber-a.lineNumber);for(let r=e.length-2;r>=0;r--)e[r].lineNumber===e[r+1].lineNumber&&e.splice(r,1);const t=[];let i=0,n=0;const s=e.length;for(let r=1,a=o.getLineCount();r<=a;r++){const l=o.getLineContent(r),c=l.length+1;let d=0;if(n{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(n=>{(n.matchCase||n.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new oe(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){!e||(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(!!this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const n=e.getState().matchCase;if(!B9(this._editor.getModel(),t,n)){const r=this._editor.getModel(),a=[];for(let l=0,c=t.length;l0&&i.isRegex){const n=this._editor.getModel();i.searchScope?t=n.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(119):null,!1,1073741824):t=n.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(119):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const n=this._editor.getSelection();for(let s=0,r=t.length;snew oe(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn)))}}}sh.ID="editor.contrib.multiCursorController";class rf extends ce{run(e,t){const i=sh.get(t);if(!i)return;const n=rs.get(t);if(!n)return;const s=t._getViewModel();if(s){const r=s.getCursorStates();this._run(i,n),Nc(r,s.getCursorStates())}}}class tde extends rf{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:2082,weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"3_multi",title:p({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class ide extends rf{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:M.MenubarSelectionMenu,group:"3_multi",title:p({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class nde extends rf{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:yi(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class sde extends rf{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class ode extends rf{constructor(){super({id:"editor.action.selectHighlights",label:p("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:3114,weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"3_multi",title:p({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class rde extends rf{constructor(){super({id:"editor.action.changeAll",label:p("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:se.and(N.writable,N.editorTextFocus),kbOpts:{kbExpr:N.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class ade{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(L.compareRangesUsingStarts)),this._cachedFindMatches}}let oh=class B0 extends H{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(99),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new mt(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(n=>{this._isEnabled=e.getOption(99)})),this._register(e.onDidChangeCursorSelection(n=>{!this._isEnabled||(n.selection.isEmpty()?n.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(n=>{this._setState(null)})),this._register(e.onDidChangeModelContent(n=>{this._isEnabled&&this.updateSoon.schedule()}));const i=rs.get(e);i&&this._register(i.getState().onFindReplaceStateChange(n=>{this._update()}))}_update(){this._setState(B0._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t||!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const s=sh.get(i);if(!s)return null;const r=rs.get(i);if(!r)return null;let a=s.getSession(r);if(!a){const d=i.getSelections();if(d.length>1){const u=r.getState().matchCase;if(!B9(i.getModel(),d,u))return null}a=Zm.create(i,r)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||a.searchText.length>200)return null;const l=r.getState(),c=l.matchCase;if(l.isRevealed){let d=l.searchString;c||(d=d.toLowerCase());let h=a.searchText;if(c||(h=h.toLowerCase()),d===h&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new ade(i.getModel(),a.searchText,a.matchCase,a.wholeWord?i.getOption(119):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(L.compareRangesUsingStarts);const s=[];for(let l=0,c=0,d=i.length,h=n.length;l=h)s.push(u),l++;else{const g=L.compareRangesUsingStarts(u,n[c]);g<0?((n[c].isEmpty()||!L.areIntersecting(u,n[c]))&&s.push(u),l++):(g>0||l++,c++)}}const r=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(74),a=s.map(l=>({range:l,options:r?B0._SELECTION_HIGHLIGHT:B0._SELECTION_HIGHLIGHT_OVERVIEW}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};oh.ID="editor.contrib.selectionHighlighter";oh._SELECTION_HIGHLIGHT_OVERVIEW=Ne.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",minimap:{color:Qt(m1),position:js.Inline},overviewRuler:{color:Qt(T4),position:Zs.Center}});oh._SELECTION_HIGHLIGHT=Ne.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"});oh=Gce([Zce(1,de)],oh);function B9(o,e,t){const i=pO(o,e[0],!t);for(let n=1,s=e.length;nW9(void 0,void 0,void 0,function*(){const[t,i,n]=e;pt(_e.isUri(t)),pt(B.isIPosition(i)),pt(typeof n=="string"||!n);const s=o.get(de),r=yield o.get(Kn).createModelReference(t);try{const a=yield V9(s.signatureHelpProvider,r.object.textEditorModel,B.lift(i),{triggerKind:Wr.Invoke,isRetrigger:!1,triggerCharacter:n},ze.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{r.dispose()}}));var dde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},xl;(function(o){o.Default={type:0};class e{constructor(n,s){this.request=n,this.previouslyActiveHints=s,this.type=2}}o.Pending=e;class t{constructor(n){this.hints=n,this.type=1}}o.Active=t})(xl||(xl={}));class Dw extends H{constructor(e,t,i=Dw.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new R),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=xl.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new _n),this.triggerChars=new cu,this.retriggerChars=new cu,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new Kr(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(n=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(n=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(n=>this.onCursorChange(n))),this._register(this.editor.onDidChangeModelContent(n=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(n=>this.onDidType(n))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=xl.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(Te)}next(){if(this.state.type!==1)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?0:t+1)}previous(){if(this.state.type!==1)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t===0,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new xl.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return dde(this,void 0,void 0,function*(){const t=this.state.type===1||this.state.type===2,i=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const n=this._pendingTriggers.reduce(hde);this._pendingTriggers=[];const s={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),a=this.editor.getPosition();this.state=new xl.Pending(Ri(l=>V9(this.providers,r,a,s,l)),i);try{const l=yield this.state.request;return e!==this.triggerId?(l==null||l.dispose(),!1):!l||!l.value.signatures||l.value.signatures.length===0?(l==null||l.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new xl.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),!0)}catch(l){return e===this.triggerId&&(this.state=xl.Default),Te(l),!1}})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new cu,this.retriggerChars=new cu;const e=this.editor.getModel();if(!!e)for(const t of this.providers.ordered(e)){for(const i of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(i.charCodeAt(0)),this.retriggerChars.add(i.charCodeAt(0));for(const i of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(i.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:Wr.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Wr.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Wr.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(78).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}Dw.DEFAULT_DELAY=120;function hde(o,e){switch(e.triggerKind){case Wr.Invoke:return e;case Wr.ContentChange:return o;case Wr.TriggerCharacter:default:return e}}var ude=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},c0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const hs=J,gde=mi("parameter-hints-next",m.chevronDown,p("parameterHintsNextIcon","Icon for show next parameter hint.")),fde=mi("parameter-hints-previous",m.chevronUp,p("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let NC=class H9 extends H{constructor(e,t,i,n,s){super(),this.editor=e,this.renderDisposeables=this._register(new Q),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new ol({editor:e},n,i)),this.model=this._register(new Dw(e,s.signatureHelpProvider)),this.keyVisible=rh.Visible.bindTo(t),this.keyMultipleSignatures=rh.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(r=>{r?(this.show(),this.render(r)):this.hide()}))}createParameterHintDOMNodes(){const e=hs(".editor-widget.parameter-hints-widget"),t=q(e,hs(".phwrapper"));t.tabIndex=-1;const i=q(t,hs(".controls")),n=q(i,hs(".button"+at.asCSSSelector(fde))),s=q(i,hs(".overloads")),r=q(i,hs(".button"+at.asCSSSelector(gde)));this._register(G(n,"click",u=>{ut.stop(u),this.previous()})),this._register(G(r,"click",u=>{ut.stop(u),this.next()}));const a=hs(".body"),l=new p_(a,{alwaysConsumeMouseWheel:!0});this._register(l),t.appendChild(l.getDomNode());const c=q(a,hs(".signature")),d=q(a,hs(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:s,docs:d,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(u=>{this.visible&&this.editor.layoutContentWidget(this)}));const h=()=>{if(!this.domNodes)return;const u=this.editor.getOption(46);this.domNodes.element.style.fontSize=`${u.fontSize}px`,this.domNodes.element.style.lineHeight=`${u.lineHeight/u.fontSize}`};h(),this._register(ge.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(u=>u.hasChanged(46)).on(h,null)),this._register(this.editor.onDidLayoutChange(u=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{var e;(e=this.domNodes)===null||e===void 0||e.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,(e=this.domNodes)===null||e===void 0||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const s=q(this.domNodes.signature,hs(".code")),r=this.editor.getOption(46);s.style.fontSize=`${r.fontSize}px`,s.style.fontFamily=r.fontFamily;const a=n.parameters.length>0,l=(t=n.activeParameter)!==null&&t!==void 0?t:e.activeParameter;if(a)this.renderParameters(s,n,l);else{const h=q(s,hs("span"));h.textContent=n.label}const c=n.parameters[l];if(c!=null&&c.documentation){const h=hs("span.documentation");if(typeof c.documentation=="string")h.textContent=c.documentation;else{const u=this.renderMarkdownDocs(c.documentation);h.appendChild(u.element)}q(this.domNodes.docs,hs("p",{},h))}if(n.documentation!==void 0)if(typeof n.documentation=="string")q(this.domNodes.docs,hs("p",{},n.documentation));else{const h=this.renderMarkdownDocs(n.documentation);q(this.domNodes.docs,h.element)}const d=this.hasDocs(n,c);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,c){let h="";const u=n.parameters[l];Array.isArray(u.label)?h=n.label.substring(u.label[0],u.label[1]):h=u.label,u.documentation&&(h+=typeof u.documentation=="string"?`, ${u.documentation}`:`, ${u.documentation.value}`),n.documentation&&(h+=typeof n.documentation=="string"?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==h&&(Gi(p("hint","{0}, hint",h)),this.announcedLabel=h)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var i;(i=this.domNodes)===null||i===void 0||i.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Z_(t.documentation).length>0||t&&typeof t.documentation=="object"&&Z_(t.documentation).value.length>0||e.documentation&&typeof e.documentation=="string"&&Z_(e.documentation).length>0||e.documentation&&typeof e.documentation=="object"&&Z_(e.documentation.value).length>0)}renderParameters(e,t,i){const[n,s]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,n);const a=document.createElement("span");a.textContent=t.label.substring(n,s),a.className="parameter active";const l=document.createElement("span");l.textContent=t.label.substring(s),q(e,r,a,l)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const n=new RegExp(`(\\W|^)${ys(i.label)}(?=\\W|$)`,"g");n.test(e.label);const s=n.lastIndex-i.label.length;return s>=0?[s,n.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return H9.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){if(!this.domNodes)return;const t=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=t;const i=this.domNodes.element.getElementsByClassName("phwrapper");i.length&&(i[0].style.maxHeight=t)}};NC.ID="editor.widget.parameterHintsWidget";NC=ude([c0(1,Ee),c0(2,io),c0(3,Ht),c0(4,de)],NC);const pde=T("editorHoverWidget.highlightForeground",{dark:fo,light:fo,hcDark:fo,hcLight:fo},p("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));Et((o,e)=>{const t=o.getColor(aE);if(t){const c=cn(o.type)?2:1;e.addRule(`.monaco-editor .parameter-hints-widget { border: ${c}px solid ${t}; }`),e.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${t.transparent(.5)}; }`)}const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${i}; }`);const n=o.getColor(h1);n&&e.addRule(`.monaco-editor .parameter-hints-widget a { color: ${n}; }`);const s=o.getColor(u1);s&&e.addRule(`.monaco-editor .parameter-hints-widget a:hover { color: ${s}; }`);const r=o.getColor(rE);r&&e.addRule(`.monaco-editor .parameter-hints-widget { color: ${r}; }`);const a=o.getColor(k4);a&&e.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${a}; }`);const l=o.getColor(pde);l&&e.addRule(`.monaco-editor .parameter-hints-widget .parameter.active { color: ${l}}`)});var mde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_de=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ah=class z9 extends H{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(NC,this.editor))}static get(e){return e.getContribution(z9.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};ah.ID="editor.controller.parameterHints";ah=mde([_de(1,Ae)],ah);class bde extends ce{constructor(){super({id:"editor.action.triggerParameterHints",label:p("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:N.hasSignatureHelpProvider,kbOpts:{kbExpr:N.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=ah.get(t);i&&i.trigger({triggerKind:Wr.Invoke})}}tt(ah.ID,ah);ie(bde);const gT=100+75,fT=xi.bindToContribution(ah.get);ee(new fT({id:"closeParameterHints",precondition:rh.Visible,handler:o=>o.cancel(),kbOpts:{weight:gT,kbExpr:N.focus,primary:9,secondary:[1033]}}));ee(new fT({id:"showPrevParameterHint",precondition:se.and(rh.Visible,rh.MultipleSignatures),handler:o=>o.previous(),kbOpts:{weight:gT,kbExpr:N.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}}));ee(new fT({id:"showNextParameterHint",precondition:se.and(rh.Visible,rh.MultipleSignatures),handler:o=>o.next(),kbOpts:{weight:gT,kbExpr:N.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var vde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Oy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const kw=new le("renameInputVisible",!1,p("renameInputVisible","Whether the rename input widget is visible"));let Ux=class{constructor(e,t,i,n,s){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._disposables=new Q,this.allowEditorOverflow=!0,this._visibleContextKey=kw.bindTo(s),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(46)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",p("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);const e=()=>{var t,i;const[n,s]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(n),this._label.innerText=p({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(t=this._keybindingService.lookupKeybinding(n))===null||t===void 0?void 0:t.getLabel(),(i=this._keybindingService.lookupKeybinding(s))===null||i===void 0?void 0:i.getLabel())};e(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(e)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(e){var t,i,n,s;if(!this._input||!this._domNode)return;const r=e.getColor(Ho);this._domNode.style.backgroundColor=String((t=e.getColor(li))!==null&&t!==void 0?t:""),this._domNode.style.boxShadow=r?` 0 0 8px 2px ${r}`:"",this._domNode.style.color=String((i=e.getColor(f1))!==null&&i!==void 0?i:""),this._input.style.backgroundColor=String((n=e.getColor(g1))!==null&&n!==void 0?n:"");const a=e.getColor(p1);this._input.style.borderWidth=a?"1px":"0px",this._input.style.borderStyle=a?"solid":"none",this._input.style.borderColor=(s=a==null?void 0:a.toString())!==null&&s!==void 0?s:"none"}_updateFont(){if(!this._input||!this._label)return;const e=this._editor.getOption(46);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=`${e.fontSize*.8}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){var t;(t=this._currentAcceptInput)===null||t===void 0||t.call(this,e)}cancelInput(e){var t;(t=this._currentCancelInput)===null||t===void 0||t.call(this,e)}getInput(e,t,i,n,s,r){this._domNode.classList.toggle("preview",s),this._position=new B(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",i.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max((e.endColumn-e.startColumn)*1.1,20);const a=new Q;return new Promise(l=>{this._currentCancelInput=c=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l(c),!0),this._currentAcceptInput=c=>{if(this._input.value.trim().length===0||this._input.value===t){this.cancelInput(!0);return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l({newName:this._input.value,wantsPreview:s&&c})},a.add(r.onCancellationRequested(()=>this.cancelInput(!0))),a.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{a.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};Ux=vde([Oy(2,Ct),Oy(3,_i),Oy(4,Ee)],Ux);var Cde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Uc=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Id=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class pT{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return Id(this,void 0,void 0,function*(){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join(` `):void 0}:{range:L.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(` `):void 0}})}provideRenameEdits(e,t){return Id(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,i,n){return Id(this,void 0,void 0,function*(){const s=this._providers[t];if(!s)return{edits:[],rejectReason:i.join(` -`)};const r=yield s.provideRenameEdits(this.model,this.position,e,n);if(r){if(r.rejectReason)return this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),n)}else return this._provideRenameEdits(e,t+1,i.concat(p("no result","No result.")),n);return r})}}function wde(o,e,t,i){return Id(this,void 0,void 0,function*(){const n=new pT(e,t,o),s=yield n.resolveRenameLocation(ze.None);return s!=null&&s.rejectReason?{edits:[],rejectReason:s.rejectReason}:n.provideRenameEdits(i,ze.None)})}let lh=class U9{constructor(e,t,i,n,s,r,a,l){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new Q,this._cts=new Qi,this._renameInputField=this._disposableStore.add(new $l(()=>this._disposableStore.add(this._instaService.createInstance(Ux,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(e){return e.getContribution(U9.ID)}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Id(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const i=this.editor.getPosition(),n=new pT(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;this._cts=new qd(this.editor,5);let s;try{const u=n.resolveRenameLocation(this._cts.token);this._progressService.showWhile(u,250),s=yield u}catch(u){(e=os.get(this.editor))===null||e===void 0||e.showMessage(u||p("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i);return}if(!s)return;if(s.rejectReason){(t=os.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,i);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new qd(this.editor,5,s.range);const r=this.editor.getSelection();let a=0,l=s.text.length;!L.isEmpty(r)&&!L.spansMultipleLines(r)&&L.containsRange(s.range,r)&&(a=Math.max(0,r.startColumn-s.range.startColumn),l=Math.min(s.range.endColumn,r.endColumn)-s.range.startColumn);const c=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),d=yield this._renameInputField.value.getInput(s.range,s.text,a,l,c,this._cts.token);if(typeof d=="boolean"){d&&this.editor.focus();return}this.editor.focus();const h=MI(n.provideRenameEdits(d.newName,this._cts.token),this._cts.token).then(u=>Id(this,void 0,void 0,function*(){if(!(!u||!this.editor.hasModel())){if(u.rejectReason){this._notificationService.info(u.rejectReason);return}this.editor.setSelection(L.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(Qg.convert(u),{editor:this.editor,showPreview:d.wantsPreview,label:p("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,d.newName),code:"undoredo.rename",quotableLabel:p("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,d.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&Gi(p("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,d.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(p("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),u=>{this._notificationService.error(p("rename.failed","Rename failed to compute edits")),this._logService.error(u)});return this._progressService.showWhile(h,250),h})}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};lh.ID="editor.contrib.renameController";lh=Cde([Uc(1,Ae),Uc(2,di),Uc(3,v_),Uc(4,kc),Uc(5,So),Uc(6,WI),Uc(7,de)],lh);class Sde extends ce{constructor(){super({id:"editor.action.rename",label:p("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:se.and(N.writable,N.hasRenameProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(ct),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return _e.isUri(n)&&B.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(r=>{!r||(r.setPosition(s),r.invokeWithinContext(a=>(this.reportTelemetry(a,r),this.run(a,r))))},Te):super.runCommand(e,t)}run(e,t){const i=lh.get(t);return i?i.run():Promise.resolve()}}tt(lh.ID,lh);ie(Sde);const mT=xi.bindToContribution(lh.get);ee(new mT({id:"acceptRenameInput",precondition:kw,handler:o=>o.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:N.focus,primary:3}}));ee(new mT({id:"acceptRenameInputWithPreview",precondition:se.and(kw,se.has("config.editor.rename.enablePreview")),handler:o=>o.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:N.focus,primary:1024+3}}));ee(new mT({id:"cancelRenameInput",precondition:kw,handler:o=>o.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:N.focus,primary:9,secondary:[1033]}}));ia("_executeDocumentRenameProvider",function(o,e,t,...i){const[n]=i;pt(typeof n=="string");const{renameProvider:s}=o.get(de);return wde(s,e,t,n)});ia("_executePrepareRename",function(o,e,t){return Id(this,void 0,void 0,function*(){const{renameProvider:i}=o.get(de),s=yield new pT(e,t,i).resolveRenameLocation(ze.None);if(s!=null&&s.rejectReason)throw new Error(s.rejectReason);return s})});zt.as(rl.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:p("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lde=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},mO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Py;let Ym=class extends H{constructor(e,t){super(),this._sessionStore=new Q,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new Dde(this._editor),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new mt(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(this._editor.getOption(34).stickyScroll.enabled===!1){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}else this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(t=>this._onTokensChange(t))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){const t=this.stickyScrollWidget.getCurrentLines();for(const i of t)for(const n of e.ranges)if(i>=n.fromLineNumber&&i<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return mO(this,void 0,void 0,function*(){e&&((t=this._cts)===null||t===void 0||t.dispose(!0),this._cts=new Qi,yield this._updateOutlineModel(this._cts.token));const n=(i=this._editor._getViewModel())===null||i===void 0?void 0:i.getHiddenAreas();if(n)for(const s of n)this._ranges=this._ranges.filter(r=>!(r[0]>=s.startLineNumber&&r[1]<=s.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(e!=null&&e.children.size){let i=!1;for(const n of e==null?void 0:e.children.values()){const s=n.symbol.kind;(s===4||s===8||s===11||s===10||s===5||s===1)&&(i=!0,this._findLineRanges(n,t+1))}i||this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){const s=e.symbol.kind;if((s===4||s===8||s===11||s===10||s===5||s===1)&&(i=e==null?void 0:e.symbol.range.startLineNumber,n=e==null?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof LC)e=e.parent;else break}}_updateOutlineModel(e){return mO(this,void 0,void 0,function*(){if(this._editor.hasModel()){const t=this._editor.getModel(),i=t.getVersionId(),n=yield Ea.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(e.isCancellationRequested)return;this._ranges=[],this._rangesVersionId=i;for(const s of n.children.values()){if(s instanceof LC){const a=s.symbol.kind;a===4||a===8||a===11||a===10||a===5||a===1?this._findLineRanges(s,1):this._findLineRanges(s,0)}this._ranges=this._ranges.sort(function(a,l){return a[0]!==l[0]?a[0]-l[0]:a[1]!==l[1]?l[1]-a[1]:a[2]-l[2]});let r=[];for(const[a,l]of this._ranges.entries()){const[c,d,h]=l;r[0]===c&&r[1]===d?this._ranges.splice(a,1):r=l}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;const e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;const i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();const n=new Set;for(const[s,r]of this._ranges.entries()){const[a,l,c]=r;if(l-a>0&&t.getLineContent(a)!==""){const d=(c-1)*e,h=c*e,u=this._editor.getBottomForLineNumber(a)-i,g=this._editor.getTopForLineNumber(l)-i,f=this._editor.getBottomForLineNumber(l)-i;if(n.has(a))this._ranges.splice(s,1);else if(d>=g-1&&du&&ho});class bO{constructor(e,t,i,n,s){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=s,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){const e=document.createElement("div"),t=this._editor._getViewModel(),i=t.coordinatesConverter.convertModelPositionToViewPosition(new B(this._lineNumber,1)).lineNumber,n=t.getViewLineRenderingData(i);let s;try{s=es.filter(n.inlineDecorations,i,n.minColumn,n.maxColumn)}catch{s=[]}const r=new Lc(!0,!0,n.content,n.continuesWithWrappedLine,n.isBasicASCII,n.containsRTL,0,n.tokens,s,n.tabSize,n.startVisibleColumn,1,1,1,100,"none",!0,!0,null),a=nc(400);a_(r,a);let l;_O?l=_O.createHTML(a.build()):l=a.build();const c=document.createElement("span");c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",c.style.overflow="hidden",c.style.whiteSpace="nowrap",c.style.display="inline-block",c.style.lineHeight=this._editor.getOption(61).toString()+"px",c.innerHTML=l;const d=document.createElement("span");d.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.color="var(--vscode-editorLineNumber-foreground)",d.style.display="inline-block",d.style.lineHeight=this._editor.getOption(61).toString()+"px";const h=document.createElement("span");return h.innerText=this._lineNumber.toString(),h.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",h.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",h.style.backgroundColor="var(--vscode-editorStickyScroll-background)",h.style.textAlign="right",h.style.float="left",h.style.lineHeight=this._editor.getOption(61).toString()+"px",d.appendChild(h),e.onclick=u=>{u.stopPropagation(),u.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},e.onmouseover=u=>{h.style.background="var(--vscode-editorStickyScrollHover-background)",c.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",e.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",h.style.cursor="pointer",c.style.cursor="pointer",e.style.cursor="pointer",d.style.cursor="pointer"},e.onmouseleave=u=>{h.style.background="var(--vscode-editorStickyScroll-background)",c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(c),this._editor.applyFontInfo(h),e.appendChild(d),e.appendChild(c),e.style.zIndex=this._zIndex.toString(),e.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.width="100%",e.style.lineHeight=this._editor.getOption(61).toString()+"px",e.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(e.style.position="relative",e.style.top=this._relativePosition+"px",e.style.width="100%"),e}}class Dde{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){const e=[];for(const t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(const t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,Si(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}tt(Ym.ID,Ym);class kde{provideSelectionRanges(e,t){const i=[];for(const n of t){const s=[];i.push(s),this._addInWordRanges(s,e,n),this._addWordRanges(s,e,n),this._addWhitespaceLine(s,e,n),s.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:r}=n,a=i.column-r;let l=a,c=a,d=0;for(;l>=0;l--){const h=s.charCodeAt(l);if(l!==a&&(h===95||h===45))break;if(Ml(h)&&Sr(d))break;d=h}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(i.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(i.lineNumber)===0&&e.push({range:new L(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var xde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ide=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},xw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class _T{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new _T(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let Og=class $9{constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}static get(e){return e.getContribution($9.ID)}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}run(e){return xw(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||(yield K9(this._languageFeaturesService.selectionRangeProvider,i,t.map(s=>s.getPosition()),this._editor.getOption(104),ze.None).then(s=>{var r;if(!(!rn(s)||s.length!==t.length)&&!(!this._editor.hasModel()||!Ss(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),s[a].unshift(t[a]);this._state=s.map(a=>new _T(0,a)),(r=this._selectionListener)===null||r===void 0||r.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var a;this._ignoreSelection||((a=this._selectionListener)===null||a===void 0||a.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(s=>s.mov(e));const n=this._state.map(s=>oe.fromPositions(s.ranges[s.index].getStartPosition(),s.ranges[s.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};Og.ID="editor.contrib.smartSelectController";Og=xde([Ide(1,de)],Og);class j9 extends ce{constructor(e,t){super(t),this._forward=e}run(e,t){return xw(this,void 0,void 0,function*(){const i=Og.get(t);i&&(yield i.run(this._forward))})}}class Ede extends j9{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:p("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}Xe.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class Nde extends j9{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:p("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}tt(Og.ID,Og);ie(Ede);ie(Nde);function K9(o,e,t,i,n){return xw(this,void 0,void 0,function*(){const s=o.all(e).concat(new kde);s.length===1&&s.unshift(new fs);const r=[],a=[];for(const l of s)r.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(rn(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((u,g)=>B.isBefore(u.getStartPosition(),g.getStartPosition())?1:B.isBefore(g.getStartPosition(),u.getStartPosition())||B.isBefore(u.getEndPosition(),g.getEndPosition())?-1:B.isBefore(g.getEndPosition(),u.getEndPosition())?1:0);const c=[];let d;for(const u of l)(!d||L.containsRange(u,d)&&!L.equalsRange(u,d))&&(c.push(u),d=u);if(!i.selectLeadingAndTrailingWhitespace)return c;const h=[c[0]];for(let u=1;u=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ed=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Tde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ade{constructor(e,t,i,n,s,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=r}}let $x=class extends A6{constructor(e,t,i,n,s,r){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&l.resolve(ze.None)}return t}};$x=bT([Ed(5,mw)],$x);let jx=class{constructor(e,t,i,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=i,this._suggestMemoryService=n}provideInlineCompletions(e,t,i,n){var s;return Tde(this,void 0,void 0,function*(){if(i.selectedSuggestionInfo)return;const r=this._getEditorOption(81,e);if(ku.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(ku.valueFor(r,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let h;const u=e.getValueInRange(new L(t.lineNumber,1,t.lineNumber,t.column));if(!d&&((s=this._lastResult)===null||s===void 0?void 0:s.canBeReused(e,t.lineNumber,c))){const g=new aO(u,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=g,this._lastResult.acquire(),h=this._lastResult}else{const g=yield QN(this._languageFeatureService.completionProvider,e,t,new Bm(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n);let f;g.needsClipboard&&(f=yield this._clipboardService.readText());const _=new Al(g.items,t.column,new aO(u,0),Fo.None,this._getEditorOption(108,e),this._getEditorOption(103,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},f);h=new $x(e,t.lineNumber,c,_,g,this._suggestMemoryService)}return this._lastResult=h,h})}handleItemDidShow(e,t){t.completion.resolve(ze.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(L.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const r of this._languageFeatureService.completionProvider.all(e))!((i=r.triggerCharacters)===null||i===void 0)&&i.includes(n)&&s.add(r);if(s.size!==0)return{providers:s,ch:n}}};jx=bT([Ed(1,de),Ed(2,cl),Ed(3,mw)],jx);let TC=class ou{constructor(e,t,i,n){if(++ou._counter===1){const s=n.createInstance(jx,(r,a)=>{var l;return((l=i.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(r)});ou._disposable=t.inlineCompletionsProvider.register("*",s)}}dispose(){var e;--ou._counter===0&&((e=ou._disposable)===null||e===void 0||e.dispose(),ou._disposable=void 0)}};TC._counter=0;TC=bT([Ed(1,de),Ed(2,ct),Ed(3,Ae)],TC);tt("suggest.inlineCompletionsProvider",TC);class Mde extends ce{constructor(){super({id:"editor.action.forceRetokenize",label:p("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new $n(!0);i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}ie(Mde);class Pg extends ce{constructor(){super({id:Pg.ID,label:p({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){const n=!mv.getTabFocusMode();mv.setTabFocusMode(n),Gi(n?p("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):p("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}Pg.ID="editor.action.toggleTabFocusMode";ie(Pg);var Rde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ode=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Kx=class extends H{constructor(e,t,i={},n){var s;super(),this._link=t,this._enabled=!0,this.el=q(e,J("a.monaco-link",{tabIndex:(s=t.tabIndex)!==null&&s!==void 0?s:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");const r=this._register(new bt(this.el,"click")),a=this._register(new bt(this.el,"keypress")),l=ge.chain(a.event).map(h=>new Rt(h)).filter(h=>h.keyCode===3).event,c=this._register(new bt(this.el,xt.Tap)).event;this._register(ft.addTarget(this.el));const d=ge.any(r.event,l,c);this._register(d(h=>{!this.enabled||(ut.stop(h,!0),i!=null&&i.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}};Kx=Rde([Ode(3,io)],Kx);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-link { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-link:hover { color: ${i}; }`)});var q9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},G9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Pde=26;let qx=class extends H{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(Gx))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,Pde)}};qx=q9([G9(1,Ae)],qx);let Gx=class extends H{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(ol,{}),this.element=J("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){const t=J("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){Si(this.element)}show(e){Si(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=q(this.element,J("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild(J(`div${at.asCSSSelector(e.icon)}`));const n=q(this.element,J("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=q(this.element,J("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(Kx,this.messageActionsContainer,Object.assign(Object.assign({},r),{tabIndex:-1}),{}));const s=q(this.element,J("div.action-container"));this.actionBar=this._register(new Zr(s)),this.actionBar.push(this._register(new is("banner.close","Close Banner",at.asClassName(KF),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Gx=q9([G9(0,Ae)],Gx);var vT=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nn=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Fde=mi("extensions-warning-message",m.warning,p("warningIcon","Icon shown with a warning message in the extensions editor."));let Fg=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=s=>{if(s&&s.hasMore){if(this._bannerClosed)return;const r=Math.max(s.ambiguousCharacterCount,s.nonBasicAsciiCharacterCount,s.invisibleCharacterCount);let a;if(s.nonBasicAsciiCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new lf};else if(s.ambiguousCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Tc};else if(s.invisibleCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new af};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:Fde,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(qx,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(115),this._register(i.onDidChangeTrust(s=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(s=>{s.hasChanged(115)&&(this._options=e.getOption(115),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=Bde(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(i=>i===!1))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(i=>i.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(i=>i==="_os"?new Intl.NumberFormat().resolvedOptions().locale:i==="_vscode"?y8:i)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Zx(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new Wde(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Fg.ID="editor.contrib.unicodeHighlighter";Fg=vT([Qu(1,to),Qu(2,l5),Qu(3,Ae)],Fg);function Bde(o,e){return{nonBasicASCII:e.nonBasicASCII===gs?!o:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===gs?!o:e.includeComments,includeStrings:e.includeStrings===gs?!o:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}let Zx=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const n of t.ranges)i.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!TE(t,e))return null;const i=t.getValueInRange(e.range);return{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}}};Zx=vT([Qu(3,to)],Zx);class Wde extends H{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const s=BI.computeUnicodeHighlights(this._model,this._options,n);for(const r of s.ranges)i.ranges.push(r);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||s.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return TE(t,e)?{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}:null}}let Yx=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=4}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=this._editor.getContribution(Fg.ID);if(!n)return[];const s=[];let r=300;for(const a of t){const l=n.getDecorationInfo(a);if(!l)continue;const d=i.getValueInRange(a.range).codePointAt(0),h=vO(d);let u;switch(l.reason.kind){case 0:u=p("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,vO(l.reason.confusableWith.codePointAt(0)));break;case 1:u=p("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:u=p("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}const g={codePoint:d,reason:l.reason,inComment:l.inComment,inString:l.inString},f=p("unicodeHighlight.adjustSettings","Adjust settings"),_=`command:${W_.ID}?${encodeURIComponent(JSON.stringify(g))}`,b=new Fn("",!0).appendMarkdown(u).appendText(" ").appendLink(_,f);s.push(new Tr(this,a.range,[b],r++))}return s}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};Yx=vT([Qu(1,Ht),Qu(2,io)],Yx);function Qx(o){return`U+${o.toString(16).padStart(4,"0")}`}function vO(o){let e=`\`${Qx(o)}\``;return Hr.isInvisibleCharacter(o)||(e+=` "${`${Vde(o)}`}"`),e}function Vde(o){return o===96?"`` ` ``":"`"+String.fromCodePoint(o)+"`"}function Z9(o,e){return BI.computeUnicodeHighlightReason(o,e)}class AC{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=Ne.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}AC.instance=new AC;class Hde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeComments,!1,2)})}}class zde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeStrings,!1,2)})}}class Tc extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.ambiguousCharacters,!1,2)})}}Tc.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class af extends ce{constructor(){super({id:af.ID,label:p("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.invisibleCharacters,!1,2)})}}af.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class lf extends ce{constructor(){super({id:lf.ID,label:p("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.nonBasicASCII,!1,2)})}}lf.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class W_ extends ce{constructor(){super({id:W_.ID,label:p("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,i){return nn(this,void 0,void 0,function*(){const{codePoint:n,reason:s,inString:r,inComment:a}=i,l=String.fromCodePoint(n),c=e.get(dl),d=e.get(ot);function h(f){return Hr.isInvisibleCharacter(f)?p("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Qx(f)):p("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Qx(f)} "${l}"`)}const u=[];if(s.kind===0)for(const f of s.notAmbiguousInLocales)u.push({label:p("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',f),run:()=>nn(this,void 0,void 0,function*(){$de(d,[f])})});if(u.push({label:h(n),run:()=>Ude(d,[n])}),a){const f=new Hde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(r){const f=new zde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}if(s.kind===0){const f=new Tc;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===1){const f=new af;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===2){const f=new lf;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else jde(s);const g=yield c.pick(u,{title:p("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});g&&(yield g.run())})}}W_.ID="editor.action.unicodeHighlight.showExcludeOptions";function Ude(o,e){return nn(this,void 0,void 0,function*(){const t=o.getValue(On.allowedCharacters);let i;typeof t=="object"&&t?i=t:i={};for(const n of e)i[String.fromCodePoint(n)]=!0;yield o.updateValue(On.allowedCharacters,i,2)})}function $de(o,e){var t;return nn(this,void 0,void 0,function*(){const i=(t=o.inspect(On.allowedLocales).user)===null||t===void 0?void 0:t.value;let n;typeof i=="object"&&i?n=Object.assign({},i):n={};for(const s of e)n[s]=!0;yield o.updateValue(On.allowedLocales,n,2)})}function jde(o){throw new Error(`Unexpected value: ${o}`)}ie(Tc);ie(af);ie(lf);ie(W_);tt(Fg.ID,Fg);xh.register(Yx);var Kde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},CO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Y9="ignoreUnusualLineTerminators";function Gde(o,e,t){o.setModelProperty(e.uri,Y9,t)}function Zde(o,e){return o.getModelProperty(e.uri,Y9)}let Qm=class extends H{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return qde(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Zde(this._codeEditorService,e)===!0||this._editor.getOption(83))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:p("unusualLineTerminators.title","Unusual Line Terminators"),message:p("unusualLineTerminators.message","Detected unusual line terminators"),detail:p("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Js(e.uri)),primaryButton:p("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:p("unusualLineTerminators.ignore","Ignore")})).confirmed){Gde(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};Qm.ID="editor.contrib.unusualLineTerminatorsDetector";Qm=Kde([CO(1,b_),CO(2,ct)],Qm);tt(Qm.ID,Qm);var Yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Bf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xm=class extends H{constructor(e,t,i,n,s,r){super(),this._modelService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new mt(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{a()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),a()})),this._register(this._editor.onDidChangeModelContent(l=>{this._cancelAll(),a()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),a()})),this._register(this._configurationService.onDidChangeConfiguration(l=>{l.affectsConfiguration(iN)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()}))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,i)))}_requestRange(e,t){const i=e.getVersionId(),n=Ri(r=>Promise.resolve(eN(this._provider,e,t,r))),s=new $n(!1);return n.then(r=>{if(this._debounceInformation.update(e,s.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:a,tokens:l}=r,c=this._modelService.getSemanticTokensProviderStyling(a);e.tokenization.setPartialSemanticTokens(t,g5(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};Xm.ID="editor.contrib.viewportSemanticTokens";Xm=Yde([Bf(1,Ut),Bf(2,Ct),Bf(3,ot),Bf(4,no),Bf(5,de)],Xm);tt(Xm.ID,Xm);var Qde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Xde=T("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},p("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Jde=T("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},p("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),ehe=T("editor.wordHighlightBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),the=T("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),ihe=T("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},p("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),nhe=T("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},p("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Iw=new le("hasWordHighlights",!1);function Q9(o,e,t,i){const n=o.ordered(e);return OP(n.map(s=>()=>Promise.resolve(s.provideDocumentHighlights(e,t,i)).then(void 0,Pi)),rn)}class X9{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Ri(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,r=t.endColumn,a=this._getCurrentWordRange(e,t);let l=Boolean(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=i.length;!l&&c=r&&(l=!0)}return l}cancel(){this.result.cancel()}}class she extends X9{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return Q9(this._providers,e,t.getPosition(),n).then(s=>s||[])}}class ohe extends X9{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,n){return sc(250,n).then(()=>{if(!t.isEmpty())return[];const s=e.getWordAtPosition(t.getPosition());return!s||s.word.length>1e3?[]:e.findMatches(s.word,!0,!1,!0,i,!1).map(a=>({range:a.range,kind:Fp.Text}))})}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,i)}}function rhe(o,e,t,i){return o.has(e)?new she(e,t,i,o):new ohe(e,t,i)}ia("_executeDocumentHighlights",(o,e,t)=>{const i=o.get(de);return Q9(i.documentHighlightProvider,e,t,ze.None)});class cf{constructor(e,t,i){this.toUnhook=new Q,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this._hasWordHighlights=Iw.bindTo(i),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(74),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(n=>{this._ignorePositionChangeEvent||!this.occurrencesHighlight||this._onPositionChanged(n)})),this.toUnhook.add(e.onDidChangeModelContent(n=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(n=>{const s=this.editor.getOption(74);this.occurrencesHighlight!==s&&(this.occurrencesHighlight=s,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){!this.occurrencesHighlight||this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(L.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:i})}_run(){const e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}const t=e.startColumn,i=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{r===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},Te)}}_beginRenderDecorations(){const e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:cf._getDecorationOptions(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===Fp.Write?this._WRITE_OPTIONS:e===Fp.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}cf._WRITE_OPTIONS=Ne.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Qt(nhe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._TEXT_OPTIONS=Ne.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Qt(T4),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._REGULAR_OPTIONS=Ne.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Qt(ihe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});let ch=class J9 extends H{constructor(e,t,i){super(),this.wordHighlighter=null;const n=()=>{e.hasModel()&&(this.wordHighlighter=new cf(e,i.documentHighlightProvider,t))};this._register(e.onDidChangeModel(s=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(e){return e.getContribution(J9.ID)}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};ch.ID="editor.contrib.wordHighlighter";ch=Qde([wO(1,Ee),wO(2,de)],ch);class e8 extends ce{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=ch.get(t);!i||(this._isNext?i.moveNext():i.moveBack())}}class ahe extends e8{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:p("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:65,weight:100}})}}class lhe extends e8{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:p("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:1089,weight:100}})}}class che extends ce{constructor(){super({id:"editor.action.wordHighlight.trigger",label:p("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Iw.toNegated(),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=ch.get(t);!n||n.restoreViewState(!0)}}tt(ch.ID,ch);ie(ahe);ie(lhe);ie(che);Et((o,e)=>{const t=o.getColor(oE);t&&(e.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${t}; }`),e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`));const i=o.getColor(Xde);i&&e.addRule(`.monaco-editor .wordHighlight { background-color: ${i}; }`);const n=o.getColor(Jde);n&&e.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${n}; }`);const s=o.getColor(Az);s&&e.addRule(`.monaco-editor .selectionHighlight { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(ehe);r&&e.addRule(`.monaco-editor .wordHighlight { border: 1px ${cn(o.type)?"dashed":"solid"} ${r}; box-sizing: border-box; }`);const a=o.getColor(the);a&&e.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; box-sizing: border-box; }`)});class Ew extends xi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=new B(l.positionLineNumber,l.positionColumn),d=this._move(n,s,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>$e.fromModelSelection(l))),a.length===1){const l=new B(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,i){return i?new oe(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new oe(t.lineNumber,t.column,t.lineNumber,t.column)}}class Ac extends Ew{_move(e,t,i,n){return it.moveWordLeft(e,t,i,n)}}class Mc extends Ew{_move(e,t,i,n){return it.moveWordRight(e,t,i,n)}}class dhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class hhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class uhe extends Ac{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class ghe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class fhe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class phe extends Ac{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class mhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class _he extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class bhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class vhe extends Mc{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class Che extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class whe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class She extends Mc{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class yhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class Lhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Dhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Nw extends xi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(si);if(!t.hasModel())return;const s=Ys(t.getOption(119)),r=t.getModel(),a=t.getSelections(),l=t.getOption(5),c=t.getOption(8),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),h=t._getViewModel(),u=a.map(g=>{const f=this._delete({wordSeparators:s,model:r,selection:g,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:h.getCursorAutoClosedCharacters()},this._wordNavigationType);return new zi(f,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class CT extends Nw{_delete(e,t){const i=it.deleteWordLeft(e,t);return i||new L(1,1,1,1)}}class wT extends Nw{_delete(e,t){const i=it.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class khe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:N.writable})}}class xhe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:N.writable})}}class Ihe extends CT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class Ehe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:N.writable})}}class Nhe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:N.writable})}}class The extends wT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class Ahe extends ce{constructor(){super({id:"deleteInsideWord",precondition:N.writable,label:p("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=it.deleteInsideWord(n,s,l);return new zi(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}}ee(new dhe);ee(new hhe);ee(new uhe);ee(new ghe);ee(new fhe);ee(new phe);ee(new bhe);ee(new vhe);ee(new Che);ee(new whe);ee(new She);ee(new yhe);ee(new mhe);ee(new _he);ee(new Lhe);ee(new Dhe);ee(new khe);ee(new xhe);ee(new Ihe);ee(new Ehe);ee(new Nhe);ee(new The);ie(Ahe);class Mhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=v1.deleteWordPartLeft(e);return i||new L(1,1,1,1)}}class Rhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=v1.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class t8 extends Ew{_move(e,t,i,n){return v1.moveWordPartLeft(e,t,i)}}class Ohe extends t8{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class Phe extends t8{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class i8 extends Ew{_move(e,t,i,n){return v1.moveWordPartRight(e,t,i)}}class Fhe extends i8{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class Bhe extends i8{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}ee(new Mhe);ee(new Rhe);ee(new Ohe);ee(new Phe);ee(new Fhe);ee(new Bhe);class Xx extends H{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const e=os.get(this.editor);e&&this.editor.hasModel()&&(this.editor.isSimpleWidget?e.showMessage(p("editor.simple.readonly","Cannot edit in read-only input"),this.editor.getPosition()):e.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this.editor.getPosition()))}}Xx.ID="editor.contrib.readOnlyMessageController";tt(Xx.ID,Xx);var n8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},W0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const s8=new le("accessibilityHelpWidgetVisible",!1);let dh=class o8 extends H{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(Bg,this._editor))}static get(e){return e.getContribution(o8.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};dh.ID="editor.contrib.accessibilityHelpController";dh=n8([W0(1,Ae)],dh);function Whe(o,e){return!o||o.length===0?hi.noSelection:o.length===1?e?Vs(hi.singleSelectionRange,o[0].positionLineNumber,o[0].positionColumn,e):Vs(hi.singleSelection,o[0].positionLineNumber,o[0].positionColumn):e?Vs(hi.multiSelectionRange,o.length,e):o.length>0?Vs(hi.multiSelection,o.length):""}let Bg=class V0 extends yo{constructor(e,t,i,n){super(),this._contextKeyService=t,this._keybindingService=i,this._openerService=n,this._editor=e,this._isVisibleKey=s8.bindTo(this._contextKeyService),this._domNode=Je(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Je(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(ki(this._contentDomNode.domNode,"keydown",s=>{if(!!this._isVisible&&(s.equals(2083)&&(Gi(hi.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),Si(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),s.preventDefault(),s.stopPropagation()),s.equals(2086))){Gi(hi.openingDocs);let r=this._editor.getRawOptions().accessibilityHelpUrl;typeof r>"u"&&(r="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(_e.parse(r)),s.preventDefault(),s.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return V0.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,i){const n=this._keybindingService.lookupKeybinding(e);return n?Vs(t,n.getAriaLabel()):Vs(i,e)}_buildContent(){const e=this._editor.getOptions(),t=this._editor.getSelections();let i=0;if(t){const a=this._editor.getModel();a&&t.forEach(l=>{i+=a.getValueLengthInRange(l)})}let n=Whe(t,i);e.get(56)?e.get(83)?n+=hi.readonlyDiffEditor:n+=hi.editableDiffEditor:e.get(83)?n+=hi.readonlyEditor:n+=hi.editableEditor;const s=Ge?hi.changeConfigToOnMac:hi.changeConfigToOnWinLinux;switch(e.get(2)){case 0:n+=` +`)};const r=yield s.provideRenameEdits(this.model,this.position,e,n);if(r){if(r.rejectReason)return this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),n)}else return this._provideRenameEdits(e,t+1,i.concat(p("no result","No result.")),n);return r})}}function wde(o,e,t,i){return Id(this,void 0,void 0,function*(){const n=new pT(e,t,o),s=yield n.resolveRenameLocation(ze.None);return s!=null&&s.rejectReason?{edits:[],rejectReason:s.rejectReason}:n.provideRenameEdits(i,ze.None)})}let lh=class U9{constructor(e,t,i,n,s,r,a,l){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new Q,this._cts=new Qi,this._renameInputField=this._disposableStore.add(new $l(()=>this._disposableStore.add(this._instaService.createInstance(Ux,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(e){return e.getContribution(U9.ID)}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Id(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const i=this.editor.getPosition(),n=new pT(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;this._cts=new qd(this.editor,5);let s;try{const u=n.resolveRenameLocation(this._cts.token);this._progressService.showWhile(u,250),s=yield u}catch(u){(e=os.get(this.editor))===null||e===void 0||e.showMessage(u||p("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i);return}if(!s)return;if(s.rejectReason){(t=os.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,i);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new qd(this.editor,5,s.range);const r=this.editor.getSelection();let a=0,l=s.text.length;!L.isEmpty(r)&&!L.spansMultipleLines(r)&&L.containsRange(s.range,r)&&(a=Math.max(0,r.startColumn-s.range.startColumn),l=Math.min(s.range.endColumn,r.endColumn)-s.range.startColumn);const c=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),d=yield this._renameInputField.value.getInput(s.range,s.text,a,l,c,this._cts.token);if(typeof d=="boolean"){d&&this.editor.focus();return}this.editor.focus();const h=MI(n.provideRenameEdits(d.newName,this._cts.token),this._cts.token).then(u=>Id(this,void 0,void 0,function*(){if(!(!u||!this.editor.hasModel())){if(u.rejectReason){this._notificationService.info(u.rejectReason);return}this.editor.setSelection(L.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(Qg.convert(u),{editor:this.editor,showPreview:d.wantsPreview,label:p("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,d.newName),code:"undoredo.rename",quotableLabel:p("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,d.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&Gi(p("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,d.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(p("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),u=>{this._notificationService.error(p("rename.failed","Rename failed to compute edits")),this._logService.error(u)});return this._progressService.showWhile(h,250),h})}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};lh.ID="editor.contrib.renameController";lh=Cde([Uc(1,Ae),Uc(2,di),Uc(3,v_),Uc(4,kc),Uc(5,So),Uc(6,WI),Uc(7,de)],lh);class Sde extends ce{constructor(){super({id:"editor.action.rename",label:p("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:se.and(N.writable,N.hasRenameProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(ct),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return _e.isUri(n)&&B.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(r=>{!r||(r.setPosition(s),r.invokeWithinContext(a=>(this.reportTelemetry(a,r),this.run(a,r))))},Te):super.runCommand(e,t)}run(e,t){const i=lh.get(t);return i?i.run():Promise.resolve()}}tt(lh.ID,lh);ie(Sde);const mT=xi.bindToContribution(lh.get);ee(new mT({id:"acceptRenameInput",precondition:kw,handler:o=>o.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:N.focus,primary:3}}));ee(new mT({id:"acceptRenameInputWithPreview",precondition:se.and(kw,se.has("config.editor.rename.enablePreview")),handler:o=>o.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:N.focus,primary:1024+3}}));ee(new mT({id:"cancelRenameInput",precondition:kw,handler:o=>o.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:N.focus,primary:9,secondary:[1033]}}));ia("_executeDocumentRenameProvider",function(o,e,t,...i){const[n]=i;pt(typeof n=="string");const{renameProvider:s}=o.get(de);return wde(s,e,t,n)});ia("_executePrepareRename",function(o,e,t){return Id(this,void 0,void 0,function*(){const{renameProvider:i}=o.get(de),s=yield new pT(e,t,i).resolveRenameLocation(ze.None);if(s!=null&&s.rejectReason)throw new Error(s.rejectReason);return s})});zt.as(rl.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:p("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lde=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},mO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Py;let Ym=class extends H{constructor(e,t){super(),this._sessionStore=new Q,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new Dde(this._editor),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new mt(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(this._editor.getOption(34).stickyScroll.enabled===!1){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}else this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(t=>this._onTokensChange(t))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){const t=this.stickyScrollWidget.getCurrentLines();for(const i of t)for(const n of e.ranges)if(i>=n.fromLineNumber&&i<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return mO(this,void 0,void 0,function*(){e&&((t=this._cts)===null||t===void 0||t.dispose(!0),this._cts=new Qi,yield this._updateOutlineModel(this._cts.token));const n=(i=this._editor._getViewModel())===null||i===void 0?void 0:i.getHiddenAreas();if(n)for(const s of n)this._ranges=this._ranges.filter(r=>!(r[0]>=s.startLineNumber&&r[1]<=s.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(e!=null&&e.children.size){let i=!1;for(const n of e==null?void 0:e.children.values()){const s=n.symbol.kind;(s===4||s===8||s===11||s===10||s===5||s===1)&&(i=!0,this._findLineRanges(n,t+1))}i||this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){const s=e.symbol.kind;if((s===4||s===8||s===11||s===10||s===5||s===1)&&(i=e==null?void 0:e.symbol.range.startLineNumber,n=e==null?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof LC)e=e.parent;else break}}_updateOutlineModel(e){return mO(this,void 0,void 0,function*(){if(this._editor.hasModel()){const t=this._editor.getModel(),i=t.getVersionId(),n=yield Ea.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(e.isCancellationRequested)return;this._ranges=[],this._rangesVersionId=i;for(const s of n.children.values()){if(s instanceof LC){const a=s.symbol.kind;a===4||a===8||a===11||a===10||a===5||a===1?this._findLineRanges(s,1):this._findLineRanges(s,0)}this._ranges=this._ranges.sort(function(a,l){return a[0]!==l[0]?a[0]-l[0]:a[1]!==l[1]?l[1]-a[1]:a[2]-l[2]});let r=[];for(const[a,l]of this._ranges.entries()){const[c,d,h]=l;r[0]===c&&r[1]===d?this._ranges.splice(a,1):r=l}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;const e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;const i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();const n=new Set;for(const[s,r]of this._ranges.entries()){const[a,l,c]=r;if(l-a>0&&t.getLineContent(a)!==""){const d=(c-1)*e,h=c*e,u=this._editor.getBottomForLineNumber(a)-i,g=this._editor.getTopForLineNumber(l)-i,f=this._editor.getBottomForLineNumber(l)-i;if(n.has(a))this._ranges.splice(s,1);else if(d>=g-1&&du&&ho});class bO{constructor(e,t,i,n,s){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=s,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){const e=document.createElement("div"),t=this._editor._getViewModel(),i=t.coordinatesConverter.convertModelPositionToViewPosition(new B(this._lineNumber,1)).lineNumber,n=t.getViewLineRenderingData(i);let s;try{s=es.filter(n.inlineDecorations,i,n.minColumn,n.maxColumn)}catch{s=[]}const r=new Lc(!0,!0,n.content,n.continuesWithWrappedLine,n.isBasicASCII,n.containsRTL,0,n.tokens,s,n.tabSize,n.startVisibleColumn,1,1,1,100,"none",!0,!0,null),a=nc(400);a_(r,a);let l;_O?l=_O.createHTML(a.build()):l=a.build();const c=document.createElement("span");c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",c.style.overflow="hidden",c.style.whiteSpace="nowrap",c.style.display="inline-block",c.style.lineHeight=this._editor.getOption(61).toString()+"px",c.innerHTML=l;const d=document.createElement("span");d.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.color="var(--vscode-editorLineNumber-foreground)",d.style.display="inline-block",d.style.lineHeight=this._editor.getOption(61).toString()+"px";const h=document.createElement("span");return h.innerText=this._lineNumber.toString(),h.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",h.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",h.style.backgroundColor="var(--vscode-editorStickyScroll-background)",h.style.textAlign="right",h.style.float="left",h.style.lineHeight=this._editor.getOption(61).toString()+"px",d.appendChild(h),e.onclick=u=>{u.stopPropagation(),u.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},e.onmouseover=u=>{h.style.background="var(--vscode-editorStickyScrollHover-background)",c.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",e.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",h.style.cursor="pointer",c.style.cursor="pointer",e.style.cursor="pointer",d.style.cursor="pointer"},e.onmouseleave=u=>{h.style.background="var(--vscode-editorStickyScroll-background)",c.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(c),this._editor.applyFontInfo(h),e.appendChild(d),e.appendChild(c),e.style.zIndex=this._zIndex.toString(),e.style.backgroundColor="var(--vscode-editorStickyScroll-background)",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.width="100%",e.style.lineHeight=this._editor.getOption(61).toString()+"px",e.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(e.style.position="relative",e.style.top=this._relativePosition+"px",e.style.width="100%"),e}}class Dde{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){const e=[];for(const t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(const t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,Si(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}tt(Ym.ID,Ym);class kde{provideSelectionRanges(e,t){const i=[];for(const n of t){const s=[];i.push(s),this._addInWordRanges(s,e,n),this._addWordRanges(s,e,n),this._addWhitespaceLine(s,e,n),s.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:r}=n,a=i.column-r;let l=a,c=a,d=0;for(;l>=0;l--){const h=s.charCodeAt(l);if(l!==a&&(h===95||h===45))break;if(Ml(h)&&Sr(d))break;d=h}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(i.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(i.lineNumber)===0&&e.push({range:new L(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var xde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ide=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},xw=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class _T{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new _T(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let Og=class $9{constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}static get(e){return e.getContribution($9.ID)}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}run(e){return xw(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||(yield K9(this._languageFeaturesService.selectionRangeProvider,i,t.map(s=>s.getPosition()),this._editor.getOption(104),ze.None).then(s=>{var r;if(!(!rn(s)||s.length!==t.length)&&!(!this._editor.hasModel()||!Ss(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),s[a].unshift(t[a]);this._state=s.map(a=>new _T(0,a)),(r=this._selectionListener)===null||r===void 0||r.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var a;this._ignoreSelection||((a=this._selectionListener)===null||a===void 0||a.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(s=>s.mov(e));const n=this._state.map(s=>oe.fromPositions(s.ranges[s.index].getStartPosition(),s.ranges[s.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};Og.ID="editor.contrib.smartSelectController";Og=xde([Ide(1,de)],Og);class j9 extends ce{constructor(e,t){super(t),this._forward=e}run(e,t){return xw(this,void 0,void 0,function*(){const i=Og.get(t);i&&(yield i.run(this._forward))})}}class Ede extends j9{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:p("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}Xe.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class Nde extends j9{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:p("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:M.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}tt(Og.ID,Og);ie(Ede);ie(Nde);function K9(o,e,t,i,n){return xw(this,void 0,void 0,function*(){const s=o.all(e).concat(new kde);s.length===1&&s.unshift(new fs);const r=[],a=[];for(const l of s)r.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(rn(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((u,g)=>B.isBefore(u.getStartPosition(),g.getStartPosition())?1:B.isBefore(g.getStartPosition(),u.getStartPosition())||B.isBefore(u.getEndPosition(),g.getEndPosition())?-1:B.isBefore(g.getEndPosition(),u.getEndPosition())?1:0);const c=[];let d;for(const u of l)(!d||L.containsRange(u,d)&&!L.equalsRange(u,d))&&(c.push(u),d=u);if(!i.selectLeadingAndTrailingWhitespace)return c;const h=[c[0]];for(let u=1;u=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ed=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Tde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Ade{constructor(e,t,i,n,s,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=r}}let $x=class extends A6{constructor(e,t,i,n,s,r){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&l.resolve(ze.None)}return t}};$x=bT([Ed(5,mw)],$x);let jx=class{constructor(e,t,i,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=i,this._suggestMemoryService=n}provideInlineCompletions(e,t,i,n){var s;return Tde(this,void 0,void 0,function*(){if(i.selectedSuggestionInfo)return;const r=this._getEditorOption(81,e);if(ku.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(ku.valueFor(r,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let h;const u=e.getValueInRange(new L(t.lineNumber,1,t.lineNumber,t.column));if(!d&&((s=this._lastResult)===null||s===void 0?void 0:s.canBeReused(e,t.lineNumber,c))){const g=new aO(u,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=g,this._lastResult.acquire(),h=this._lastResult}else{const g=yield QN(this._languageFeatureService.completionProvider,e,t,new Bm(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n);let f;g.needsClipboard&&(f=yield this._clipboardService.readText());const _=new Al(g.items,t.column,new aO(u,0),Fo.None,this._getEditorOption(108,e),this._getEditorOption(103,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},f);h=new $x(e,t.lineNumber,c,_,g,this._suggestMemoryService)}return this._lastResult=h,h})}handleItemDidShow(e,t){t.completion.resolve(ze.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(L.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const r of this._languageFeatureService.completionProvider.all(e))!((i=r.triggerCharacters)===null||i===void 0)&&i.includes(n)&&s.add(r);if(s.size!==0)return{providers:s,ch:n}}};jx=bT([Ed(1,de),Ed(2,cl),Ed(3,mw)],jx);let TC=class ou{constructor(e,t,i,n){if(++ou._counter===1){const s=n.createInstance(jx,(r,a)=>{var l;return((l=i.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(r)});ou._disposable=t.inlineCompletionsProvider.register("*",s)}}dispose(){var e;--ou._counter===0&&((e=ou._disposable)===null||e===void 0||e.dispose(),ou._disposable=void 0)}};TC._counter=0;TC=bT([Ed(1,de),Ed(2,ct),Ed(3,Ae)],TC);tt("suggest.inlineCompletionsProvider",TC);class Mde extends ce{constructor(){super({id:"editor.action.forceRetokenize",label:p("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new $n(!0);i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}ie(Mde);class Pg extends ce{constructor(){super({id:Pg.ID,label:p({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){const n=!mv.getTabFocusMode();mv.setTabFocusMode(n),Gi(n?p("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):p("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}Pg.ID="editor.action.toggleTabFocusMode";ie(Pg);var Rde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ode=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Kx=class extends H{constructor(e,t,i={},n){var s;super(),this._link=t,this._enabled=!0,this.el=q(e,J("a.monaco-link",{tabIndex:(s=t.tabIndex)!==null&&s!==void 0?s:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");const r=this._register(new bt(this.el,"click")),a=this._register(new bt(this.el,"keypress")),l=ge.chain(a.event).map(h=>new Rt(h)).filter(h=>h.keyCode===3).event,c=this._register(new bt(this.el,xt.Tap)).event;this._register(ft.addTarget(this.el));const d=ge.any(r.event,l,c);this._register(d(h=>{!this.enabled||(ut.stop(h,!0),i!=null&&i.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}};Kx=Rde([Ode(3,io)],Kx);Et((o,e)=>{const t=o.getColor(h1);t&&e.addRule(`.monaco-link { color: ${t}; }`);const i=o.getColor(u1);i&&e.addRule(`.monaco-link:hover { color: ${i}; }`)});var q9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},G9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Pde=26;let qx=class extends H{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(Gx))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,Pde)}};qx=q9([G9(1,Ae)],qx);let Gx=class extends H{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(ol,{}),this.element=J("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){const t=J("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){Si(this.element)}show(e){Si(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=q(this.element,J("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild(J(`div${at.asCSSSelector(e.icon)}`));const n=q(this.element,J("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=q(this.element,J("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(Kx,this.messageActionsContainer,Object.assign(Object.assign({},r),{tabIndex:-1}),{}));const s=q(this.element,J("div.action-container"));this.actionBar=this._register(new Zr(s)),this.actionBar.push(this._register(new is("banner.close","Close Banner",at.asClassName(K5),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Gx=q9([G9(0,Ae)],Gx);var vT=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nn=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Fde=mi("extensions-warning-message",m.warning,p("warningIcon","Icon shown with a warning message in the extensions editor."));let Fg=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=s=>{if(s&&s.hasMore){if(this._bannerClosed)return;const r=Math.max(s.ambiguousCharacterCount,s.nonBasicAsciiCharacterCount,s.invisibleCharacterCount);let a;if(s.nonBasicAsciiCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new lf};else if(s.ambiguousCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Tc};else if(s.invisibleCharacterCount>=r)a={message:p("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new af};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:Fde,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(qx,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(115),this._register(i.onDidChangeTrust(s=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(s=>{s.hasChanged(115)&&(this._options=e.getOption(115),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=Bde(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(i=>i===!1))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(i=>i.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(i=>i==="_os"?new Intl.NumberFormat().resolvedOptions().locale:i==="_vscode"?y8:i)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Zx(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new Wde(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Fg.ID="editor.contrib.unicodeHighlighter";Fg=vT([Qu(1,to),Qu(2,lF),Qu(3,Ae)],Fg);function Bde(o,e){return{nonBasicASCII:e.nonBasicASCII===gs?!o:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===gs?!o:e.includeComments,includeStrings:e.includeStrings===gs?!o:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}let Zx=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const n of t.ranges)i.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!TE(t,e))return null;const i=t.getValueInRange(e.range);return{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}}};Zx=vT([Qu(3,to)],Zx);class Wde extends H{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mt(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const s=BI.computeUnicodeHighlights(this._model,this._options,n);for(const r of s.ranges)i.ranges.push(r);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||s.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:AC.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return TE(t,e)?{reason:Z9(i,this._options),inComment:AE(t,e),inString:ME(t,e)}:null}}let Yx=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=4}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=this._editor.getContribution(Fg.ID);if(!n)return[];const s=[];let r=300;for(const a of t){const l=n.getDecorationInfo(a);if(!l)continue;const d=i.getValueInRange(a.range).codePointAt(0),h=vO(d);let u;switch(l.reason.kind){case 0:u=p("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,vO(l.reason.confusableWith.codePointAt(0)));break;case 1:u=p("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:u=p("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}const g={codePoint:d,reason:l.reason,inComment:l.inComment,inString:l.inString},f=p("unicodeHighlight.adjustSettings","Adjust settings"),_=`command:${W_.ID}?${encodeURIComponent(JSON.stringify(g))}`,b=new Fn("",!0).appendMarkdown(u).appendText(" ").appendLink(_,f);s.push(new Tr(this,a.range,[b],r++))}return s}renderHoverParts(e,t){return O7(e,t,this._editor,this._languageService,this._openerService)}};Yx=vT([Qu(1,Ht),Qu(2,io)],Yx);function Qx(o){return`U+${o.toString(16).padStart(4,"0")}`}function vO(o){let e=`\`${Qx(o)}\``;return Hr.isInvisibleCharacter(o)||(e+=` "${`${Vde(o)}`}"`),e}function Vde(o){return o===96?"`` ` ``":"`"+String.fromCodePoint(o)+"`"}function Z9(o,e){return BI.computeUnicodeHighlightReason(o,e)}class AC{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=Ne.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}AC.instance=new AC;class Hde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeComments,!1,2)})}}class zde extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.includeStrings,!1,2)})}}class Tc extends ce{constructor(){super({id:Tc.ID,label:p("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.ambiguousCharacters,!1,2)})}}Tc.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class af extends ce{constructor(){super({id:af.ID,label:p("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.invisibleCharacters,!1,2)})}}af.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class lf extends ce{constructor(){super({id:lf.ID,label:p("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=p("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,i){return nn(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(ot);n&&this.runAction(n)})}runAction(e){return nn(this,void 0,void 0,function*(){yield e.updateValue(On.nonBasicASCII,!1,2)})}}lf.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class W_ extends ce{constructor(){super({id:W_.ID,label:p("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,i){return nn(this,void 0,void 0,function*(){const{codePoint:n,reason:s,inString:r,inComment:a}=i,l=String.fromCodePoint(n),c=e.get(dl),d=e.get(ot);function h(f){return Hr.isInvisibleCharacter(f)?p("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Qx(f)):p("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Qx(f)} "${l}"`)}const u=[];if(s.kind===0)for(const f of s.notAmbiguousInLocales)u.push({label:p("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',f),run:()=>nn(this,void 0,void 0,function*(){$de(d,[f])})});if(u.push({label:h(n),run:()=>Ude(d,[n])}),a){const f=new Hde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(r){const f=new zde;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}if(s.kind===0){const f=new Tc;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===1){const f=new af;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else if(s.kind===2){const f=new lf;u.push({label:f.label,run:()=>nn(this,void 0,void 0,function*(){return f.runAction(d)})})}else jde(s);const g=yield c.pick(u,{title:p("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});g&&(yield g.run())})}}W_.ID="editor.action.unicodeHighlight.showExcludeOptions";function Ude(o,e){return nn(this,void 0,void 0,function*(){const t=o.getValue(On.allowedCharacters);let i;typeof t=="object"&&t?i=t:i={};for(const n of e)i[String.fromCodePoint(n)]=!0;yield o.updateValue(On.allowedCharacters,i,2)})}function $de(o,e){var t;return nn(this,void 0,void 0,function*(){const i=(t=o.inspect(On.allowedLocales).user)===null||t===void 0?void 0:t.value;let n;typeof i=="object"&&i?n=Object.assign({},i):n={};for(const s of e)n[s]=!0;yield o.updateValue(On.allowedLocales,n,2)})}function jde(o){throw new Error(`Unexpected value: ${o}`)}ie(Tc);ie(af);ie(lf);ie(W_);tt(Fg.ID,Fg);xh.register(Yx);var Kde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},CO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qde=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Y9="ignoreUnusualLineTerminators";function Gde(o,e,t){o.setModelProperty(e.uri,Y9,t)}function Zde(o,e){return o.getModelProperty(e.uri,Y9)}let Qm=class extends H{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return qde(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Zde(this._codeEditorService,e)===!0||this._editor.getOption(83))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:p("unusualLineTerminators.title","Unusual Line Terminators"),message:p("unusualLineTerminators.message","Detected unusual line terminators"),detail:p("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Js(e.uri)),primaryButton:p("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:p("unusualLineTerminators.ignore","Ignore")})).confirmed){Gde(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};Qm.ID="editor.contrib.unusualLineTerminatorsDetector";Qm=Kde([CO(1,b_),CO(2,ct)],Qm);tt(Qm.ID,Qm);var Yde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Bf=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Xm=class extends H{constructor(e,t,i,n,s,r){super(),this._modelService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new mt(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{a()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),a()})),this._register(this._editor.onDidChangeModelContent(l=>{this._cancelAll(),a()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),a()})),this._register(this._configurationService.onDidChangeConfiguration(l=>{l.affectsConfiguration(iN)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()}))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,i)))}_requestRange(e,t){const i=e.getVersionId(),n=Ri(r=>Promise.resolve(eN(this._provider,e,t,r))),s=new $n(!1);return n.then(r=>{if(this._debounceInformation.update(e,s.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:a,tokens:l}=r,c=this._modelService.getSemanticTokensProviderStyling(a);e.tokenization.setPartialSemanticTokens(t,gF(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};Xm.ID="editor.contrib.viewportSemanticTokens";Xm=Yde([Bf(1,Ut),Bf(2,Ct),Bf(3,ot),Bf(4,no),Bf(5,de)],Xm);tt(Xm.ID,Xm);var Qde=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Xde=T("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},p("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),Jde=T("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},p("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),ehe=T("editor.wordHighlightBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),the=T("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:Ot,hcLight:Ot},p("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),ihe=T("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},p("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),nhe=T("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},p("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Iw=new le("hasWordHighlights",!1);function Q9(o,e,t,i){const n=o.ordered(e);return OP(n.map(s=>()=>Promise.resolve(s.provideDocumentHighlights(e,t,i)).then(void 0,Pi)),rn)}class X9{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Ri(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,r=t.endColumn,a=this._getCurrentWordRange(e,t);let l=Boolean(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=i.length;!l&&c=r&&(l=!0)}return l}cancel(){this.result.cancel()}}class she extends X9{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return Q9(this._providers,e,t.getPosition(),n).then(s=>s||[])}}class ohe extends X9{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,n){return sc(250,n).then(()=>{if(!t.isEmpty())return[];const s=e.getWordAtPosition(t.getPosition());return!s||s.word.length>1e3?[]:e.findMatches(s.word,!0,!1,!0,i,!1).map(a=>({range:a.range,kind:Fp.Text}))})}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,i)}}function rhe(o,e,t,i){return o.has(e)?new she(e,t,i,o):new ohe(e,t,i)}ia("_executeDocumentHighlights",(o,e,t)=>{const i=o.get(de);return Q9(i.documentHighlightProvider,e,t,ze.None)});class cf{constructor(e,t,i){this.toUnhook=new Q,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this._hasWordHighlights=Iw.bindTo(i),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(74),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(n=>{this._ignorePositionChangeEvent||!this.occurrencesHighlight||this._onPositionChanged(n)})),this.toUnhook.add(e.onDidChangeModelContent(n=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(n=>{const s=this.editor.getOption(74);this.occurrencesHighlight!==s&&(this.occurrencesHighlight=s,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){!this.occurrencesHighlight||this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(L.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),i=(e.findIndex(s=>s.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const s=this._getWord();if(s){const r=this.editor.getModel().getLineContent(n.startLineNumber);Gi(`${r}, ${i+1} of ${e.length} for '${s.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:i})}_run(){const e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}const t=e.startColumn,i=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{r===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},Te)}}_beginRenderDecorations(){const e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:cf._getDecorationOptions(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===Fp.Write?this._WRITE_OPTIONS:e===Fp.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}cf._WRITE_OPTIONS=Ne.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Qt(nhe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._TEXT_OPTIONS=Ne.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Qt(T4),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});cf._REGULAR_OPTIONS=Ne.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Qt(ihe),position:Zs.Center},minimap:{color:Qt(m1),position:js.Inline}});let ch=class J9 extends H{constructor(e,t,i){super(),this.wordHighlighter=null;const n=()=>{e.hasModel()&&(this.wordHighlighter=new cf(e,i.documentHighlightProvider,t))};this._register(e.onDidChangeModel(s=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(e){return e.getContribution(J9.ID)}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};ch.ID="editor.contrib.wordHighlighter";ch=Qde([wO(1,Ee),wO(2,de)],ch);class e8 extends ce{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=ch.get(t);!i||(this._isNext?i.moveNext():i.moveBack())}}class ahe extends e8{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:p("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:65,weight:100}})}}class lhe extends e8{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:p("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Iw,kbOpts:{kbExpr:N.editorTextFocus,primary:1089,weight:100}})}}class che extends ce{constructor(){super({id:"editor.action.wordHighlight.trigger",label:p("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Iw.toNegated(),kbOpts:{kbExpr:N.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=ch.get(t);!n||n.restoreViewState(!0)}}tt(ch.ID,ch);ie(ahe);ie(lhe);ie(che);Et((o,e)=>{const t=o.getColor(oE);t&&(e.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${t}; }`),e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`));const i=o.getColor(Xde);i&&e.addRule(`.monaco-editor .wordHighlight { background-color: ${i}; }`);const n=o.getColor(Jde);n&&e.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${n}; }`);const s=o.getColor(Az);s&&e.addRule(`.monaco-editor .selectionHighlight { border: 1px ${cn(o.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=o.getColor(ehe);r&&e.addRule(`.monaco-editor .wordHighlight { border: 1px ${cn(o.type)?"dashed":"solid"} ${r}; box-sizing: border-box; }`);const a=o.getColor(the);a&&e.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${cn(o.type)?"dashed":"solid"} ${a}; box-sizing: border-box; }`)});class Ew extends xi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=new B(l.positionLineNumber,l.positionColumn),d=this._move(n,s,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>$e.fromModelSelection(l))),a.length===1){const l=new B(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,i){return i?new oe(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new oe(t.lineNumber,t.column,t.lineNumber,t.column)}}class Ac extends Ew{_move(e,t,i,n){return it.moveWordLeft(e,t,i,n)}}class Mc extends Ew{_move(e,t,i,n){return it.moveWordRight(e,t,i,n)}}class dhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class hhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class uhe extends Ac{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class ghe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class fhe extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class phe extends Ac{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class mhe extends Ac{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class _he extends Ac{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class bhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class vhe extends Mc{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class Che extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class whe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class She extends Mc{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:se.and(N.textInputFocus,(e=se.and(c_,B1))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class yhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class Lhe extends Mc{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Dhe extends Mc{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Ys(nr.wordSeparators.defaultValue),t,i,n)}}class Nw extends xi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(si);if(!t.hasModel())return;const s=Ys(t.getOption(119)),r=t.getModel(),a=t.getSelections(),l=t.getOption(5),c=t.getOption(8),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),h=t._getViewModel(),u=a.map(g=>{const f=this._delete({wordSeparators:s,model:r,selection:g,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:h.getCursorAutoClosedCharacters()},this._wordNavigationType);return new zi(f,"")});t.pushUndoStop(),t.executeCommands(this.id,u),t.pushUndoStop()}}class CT extends Nw{_delete(e,t){const i=it.deleteWordLeft(e,t);return i||new L(1,1,1,1)}}class wT extends Nw{_delete(e,t){const i=it.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class khe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:N.writable})}}class xhe extends CT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:N.writable})}}class Ihe extends CT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class Ehe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:N.writable})}}class Nhe extends wT{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:N.writable})}}class The extends wT{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class Ahe extends ce{constructor(){super({id:"deleteInsideWord",precondition:N.writable,label:p("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=Ys(t.getOption(119)),s=t.getModel(),a=t.getSelections().map(l=>{const c=it.deleteInsideWord(n,s,l);return new zi(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}}ee(new dhe);ee(new hhe);ee(new uhe);ee(new ghe);ee(new fhe);ee(new phe);ee(new bhe);ee(new vhe);ee(new Che);ee(new whe);ee(new She);ee(new yhe);ee(new mhe);ee(new _he);ee(new Lhe);ee(new Dhe);ee(new khe);ee(new xhe);ee(new Ihe);ee(new Ehe);ee(new Nhe);ee(new The);ie(Ahe);class Mhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=v1.deleteWordPartLeft(e);return i||new L(1,1,1,1)}}class Rhe extends Nw{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:N.writable,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=v1.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new L(n,s,n,s)}}class t8 extends Ew{_move(e,t,i,n){return v1.moveWordPartLeft(e,t,i)}}class Ohe extends t8{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class Phe extends t8{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}Xe.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class i8 extends Ew{_move(e,t,i,n){return v1.moveWordPartRight(e,t,i)}}class Fhe extends i8{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class Bhe extends i8{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}ee(new Mhe);ee(new Rhe);ee(new Ohe);ee(new Phe);ee(new Fhe);ee(new Bhe);class Xx extends H{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const e=os.get(this.editor);e&&this.editor.hasModel()&&(this.editor.isSimpleWidget?e.showMessage(p("editor.simple.readonly","Cannot edit in read-only input"),this.editor.getPosition()):e.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this.editor.getPosition()))}}Xx.ID="editor.contrib.readOnlyMessageController";tt(Xx.ID,Xx);var n8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},W0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const s8=new le("accessibilityHelpWidgetVisible",!1);let dh=class o8 extends H{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(Bg,this._editor))}static get(e){return e.getContribution(o8.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};dh.ID="editor.contrib.accessibilityHelpController";dh=n8([W0(1,Ae)],dh);function Whe(o,e){return!o||o.length===0?hi.noSelection:o.length===1?e?Vs(hi.singleSelectionRange,o[0].positionLineNumber,o[0].positionColumn,e):Vs(hi.singleSelection,o[0].positionLineNumber,o[0].positionColumn):e?Vs(hi.multiSelectionRange,o.length,e):o.length>0?Vs(hi.multiSelection,o.length):""}let Bg=class V0 extends yo{constructor(e,t,i,n){super(),this._contextKeyService=t,this._keybindingService=i,this._openerService=n,this._editor=e,this._isVisibleKey=s8.bindTo(this._contextKeyService),this._domNode=Je(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Je(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(ki(this._contentDomNode.domNode,"keydown",s=>{if(!!this._isVisible&&(s.equals(2083)&&(Gi(hi.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),Si(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),s.preventDefault(),s.stopPropagation()),s.equals(2086))){Gi(hi.openingDocs);let r=this._editor.getRawOptions().accessibilityHelpUrl;typeof r>"u"&&(r="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(_e.parse(r)),s.preventDefault(),s.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return V0.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,i){const n=this._keybindingService.lookupKeybinding(e);return n?Vs(t,n.getAriaLabel()):Vs(i,e)}_buildContent(){const e=this._editor.getOptions(),t=this._editor.getSelections();let i=0;if(t){const a=this._editor.getModel();a&&t.forEach(l=>{i+=a.getValueLengthInRange(l)})}let n=Whe(t,i);e.get(56)?e.get(83)?n+=hi.readonlyDiffEditor:n+=hi.editableDiffEditor:e.get(83)?n+=hi.readonlyEditor:n+=hi.editableEditor;const s=Ge?hi.changeConfigToOnMac:hi.changeConfigToOnWinLinux;switch(e.get(2)){case 0:n+=` - `+s;break;case 2:n+=` @@ -793,6 +793,6 @@ The flag will not be saved for the future. - `+r,n+=` -`+hi.outroMsg,this._contentDomNode.domNode.appendChild(C5(n)),this._contentDomNode.domNode.setAttribute("aria-label",n)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,Si(this._contentDomNode.domNode),this._editor.focus())}_layout(){const e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(V0.WIDTH,e.width-40)),i=Math.max(5,Math.min(V0.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(i);const n=Math.round((e.height-i)/2);this._domNode.setTop(n);const s=Math.round((e.width-t)/2);this._domNode.setLeft(s)}};Bg.ID="editor.contrib.accessibilityHelpWidget";Bg.WIDTH=500;Bg.HEIGHT=300;Bg=n8([W0(1,Ee),W0(2,_i),W0(3,io)],Bg);class Vhe extends ce{constructor(){super({id:"editor.action.showAccessibilityHelp",label:hi.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){const i=dh.get(t);i&&i.show()}}tt(dh.ID,dh);ie(Vhe);const Hhe=xi.bindToContribution(dh.get);ee(new Hhe({id:"closeAccessibilityHelp",precondition:s8,handler:o=>o.hide(),kbOpts:{weight:100+100,kbExpr:N.focus,primary:9,secondary:[1033]}}));Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${s}; }`)});class Jx extends H{constructor(e){super(),this.editor=e,this.widget=null,Ur&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(83);!this.widget&&e?this.widget=new Tw(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}Jx.ID="editor.contrib.iPadShowKeyboard";class Tw extends H{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(G(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(G(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return Tw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}Tw.ID="editor.contrib.ShowKeyboardWidget";tt(Jx.ID,Jx);var zhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Wg=class r8 extends H{constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(Wt.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}static get(e){return e.getContribution(r8.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new Aw(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Wg.ID="editor.contrib.inspectTokens";Wg=zhe([SO(1,Es),SO(2,Ht)],Wg);class Uhe extends ce{constructor(){super({id:"editor.action.inspectTokens",label:zD.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=Wg.get(t);i&&i.launch()}}function $he(o){let e="";for(let t=0,i=o.length;tng,tokenize:(n,s,r)=>AI(e,r),tokenizeEncoded:(n,s,r)=>qC(i,r)}}class Aw extends H{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=jhe(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(i=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return Aw._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let l=t.tokens1.length-1;l>=0;l--){const c=t.tokens1[l];if(e.column-1>=c.offset){i=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}const s=this._model.getLineContent(e.lineNumber);let r="";if(i{const t=o.getColor(aE);if(t){const s=cn(o.type)?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${s}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const n=o.getColor(rE);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${n}; }`)});var Khe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let MC=class H0{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=zt.as(yh.Quickaccess)}provide(e){const t=new Q;return t.add(e.onDidAccept(()=>{const[i]=e.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(i=>{const n=this.registry.getQuickAccessProvider(i.substr(H0.PREFIX.length));n&&n.prefix&&n.prefix!==H0.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders(),t}getQuickAccessProviders(){const e=[];for(const t of this.registry.getQuickAccessProviders().sort((i,n)=>i.prefix.localeCompare(n.prefix)))if(t.prefix!==H0.PREFIX)for(const i of t.helpEntries){const n=i.prefix||t.prefix,s=n||"\u2026";e.push({prefix:n,label:s,keybinding:i.commandId?this.keybindingService.lookupKeybinding(i.commandId):void 0,ariaLabel:p("helpPickAriaLabel","{0}, {1}",s,i.description),description:i.description})}return e}};MC.PREFIX="?";MC=Khe([yO(0,dl),yO(1,_i)],MC);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:MC,prefix:"",helpEntries:[{description:UD.helpQuickAccessActionLabel}]});class a8{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const s=n.add(new _n);return s.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{s.value=void 0,s.value=this.doProvide(e,t)})),n}doProvide(e,t){const i=new Q,n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const s={editor:n},r=u3(n);if(r){let a=Wn(n.saveViewState());i.add(r.onDidChangeCursorPosition(()=>{a=Wn(n.saveViewState())})),s.restoreViewState=()=>{a&&n===this.activeTextEditorControl&&n.restoreViewState(a)},i.add(Xa(t.onCancellationRequested)(()=>{var l;return(l=s.restoreViewState)===null||l===void 0?void 0:l.call(s)}))}i.add(Be(()=>this.clearDecorations(n))),i.add(this.provideWithTextEditor(s,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return h3(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(i=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Qt(x$),position:Zs.Full}}}],[r,a]=i.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:a}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(i=>{i.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class Mw extends a8{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=p("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=new Q;s.add(t.onDidAccept(l=>{const[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));const r=()=>{const l=this.parsePosition(n,t.value.trim().substr(Mw.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}const d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};r(),s.add(t.onDidChangeValue(()=>r()));const a=u3(n);return a&&a.getOptions().get(62).renderType===2&&(a.updateOptions({lineNumbers:"on"}),s.add(Be(()=>a.updateOptions({lineNumbers:"relative"})))),s}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(s=>parseInt(s,10)).filter(s=>!isNaN(s)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?p("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):p("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?p("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):p("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||typeof i!="number")return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return(i=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&i!==void 0?i:0}}Mw.PREFIX=":";var qhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ghe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Jm=class extends Mw{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};Jm=qhe([Ghe(0,ct)],Jm);class V_ extends ce{constructor(){super({id:V_.ID,label:qv.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(dl).quickAccess.show(Jm.PREFIX)}}V_.ID="editor.action.gotoLine";ie(V_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:Jm,prefix:Jm.PREFIX,helpEntries:[{description:qv.gotoLineActionLabel,commandId:V_.ID}]});const l8=[void 0,[]];function Fy(o,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?Zhe(o,n.values,t,i):c8(o,e,t,i)}function Zhe(o,e,t,i){let n=0;const s=[];for(const r of e){const[a,l]=c8(o,r,t,i);if(typeof a!="number")return l8;n+=a,s.push(...l)}return[n,Yhe(s)]}function c8(o,e,t,i){const n=mg(e.original,e.originalLowercase,t,o,o.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],E1(n)]:l8}Object.freeze({score:0});function Yhe(o){const e=o.sort((n,s)=>n.start-s.start),t=[];let i;for(const n of e)!i||!Qhe(i,n)?(i=n,t.push(n)):(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end));return t}function Qhe(o,e){return!(o.end=0,r=LO(o);let a;const l=o.split(d8);if(l.length>1)for(const c of l){const d=LO(c),{pathNormalized:h,normalized:u,normalizedLowercase:g}=DO(c);u&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:h,normalized:u,normalizedLowercase:g,expectContiguousMatch:d}))}return{original:o,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function DO(o){let e;Yi?e=o.replace(/\//g,Br):e=o.replace(/\\/g,Br);const t=uB(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function kO(o){return Array.isArray(o)?eI(o.map(e=>e.original).join(d8)):eI(o.original)}var Xhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Wf=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Co=class tI extends a8{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,p("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):H.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new Q;return this.provideLabelPick(i,p("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Wf(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,s))||n.isCancellationRequested||s.add(this.doProvideWithEditorSymbols(e,t,i,n))}),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Wf(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new RI,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(Be(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(e,t,i,n){var s;const r=e.editor,a=new Q;a.add(i.onDidAccept(u=>{const[g]=i.selectedItems;g&&g.range&&(this.gotoLocation(e,{range:g.range.selection,keyMods:i.keyMods,preserveFocus:u.inBackground}),u.inBackground||i.hide())})),a.add(i.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const l=this.getDocumentSymbols(t,n);let c;const d=u=>Wf(this,void 0,void 0,function*(){c==null||c.dispose(!0),i.busy=!1,c=new Qi(n),i.busy=!0;try{const g=eI(i.value.substr(tI.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,g,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(i.items=f,u&&g.original.length===0){const _=j0(f,b=>Boolean(b.type!=="separator"&&b.range&&L.containsPosition(b.range.decoration,u)));_&&(i.activeItems=[_])}}else g.original.length>0?this.provideLabelPick(i,p("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,p("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}});a.add(i.onDidChangeValue(()=>d(void 0))),d((s=r.getSelection())===null||s===void 0?void 0:s.getPosition());let h=2;return a.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;if(u&&u.range){if(h-- >0)return;r.revealRangeInCenter(u.range.selection,0),this.addDecorations(r,u.range.decoration)}})),a}doGetSymbolPicks(e,t,i,n){return Wf(this,void 0,void 0,function*(){const s=yield e;if(n.isCancellationRequested)return[];const r=t.original.indexOf(tI.SCOPE_PREFIX)===0,a=r?1:0;let l,c;t.values&&t.values.length>1?(l=kO(t.values[0]),c=kO(t.values.slice(1))):l=t;const d=[];for(let g=0;ga){let D=!1;if(l!==t&&([w,S]=Fy(b,Object.assign(Object.assign({},t),{values:void 0}),a,v),typeof w=="number"&&(D=!0)),typeof w!="number"&&([w,S]=Fy(b,l,a,v),typeof w!="number"))continue;if(!D&&c){if(C&&c.original.length>0&&([k,x]=Fy(C,c)),typeof k!="number")continue;typeof w=="number"&&(w+=k)}}const y=f.tags&&f.tags.indexOf(1)>=0;d.push({index:g,kind:f.kind,score:w,label:b,ariaLabel:_,description:C,highlights:y?void 0:{label:S,description:x},range:{selection:L.collapseToStart(f.selectionRange),decoration:f.range},strikethrough:y,buttons:(()=>{var D,I;const O=!((D=this.options)===null||D===void 0)&&D.openSideBySideDirection?(I=this.options)===null||I===void 0?void 0:I.openSideBySideDirection():void 0;if(!!O)return[{iconClass:O==="right"?m.splitHorizontal.classNames:m.splitVertical.classNames,tooltip:O==="right"?p("openToSide","Open to the Side"):p("openToBottom","Open to the Bottom")}]})()})}const h=d.sort((g,f)=>r?this.compareByKindAndScore(g,f):this.compareByScore(g,f));let u=[];if(r){let b=function(){f&&typeof g=="number"&&_>0&&(f.label=Vs(Wy[g]||By,_))},g,f,_=0;for(const v of h)g!==v.kind?(b(),g=v.kind,_=1,f={type:"separator"},u.push(f)):_++,u.push(v);b()}else h.length>0&&(u=[{label:p("symbols","symbols ({0})",d.length),type:"separator"},...h]);return u})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=Wy[e.kind]||By,n=Wy[t.kind]||By,s=i.localeCompare(n);return s===0?this.compareByScore(e,t):s}getDocumentSymbols(e,t){return Wf(this,void 0,void 0,function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};Co.PREFIX="@";Co.SCOPE_PREFIX=":";Co.PREFIX_BY_CATEGORY=`${Co.PREFIX}${Co.SCOPE_PREFIX}`;Co=Xhe([xO(0,de),xO(1,pw)],Co);const By=p("property","properties ({0})"),Wy={[5]:p("method","methods ({0})"),[11]:p("function","functions ({0})"),[8]:p("_constructor","constructors ({0})"),[12]:p("variable","variables ({0})"),[4]:p("class","classes ({0})"),[22]:p("struct","structs ({0})"),[23]:p("event","events ({0})"),[24]:p("operator","operators ({0})"),[10]:p("interface","interfaces ({0})"),[2]:p("namespace","namespaces ({0})"),[3]:p("package","packages ({0})"),[25]:p("typeParameter","type parameters ({0})"),[1]:p("modules","modules ({0})"),[6]:p("property","properties ({0})"),[9]:p("enum","enumerations ({0})"),[21]:p("enumMember","enumeration members ({0})"),[14]:p("string","strings ({0})"),[0]:p("file","files ({0})"),[17]:p("array","arrays ({0})"),[15]:p("number","numbers ({0})"),[16]:p("boolean","booleans ({0})"),[18]:p("object","objects ({0})"),[19]:p("key","keys ({0})"),[7]:p("field","fields ({0})"),[13]:p("constant","constants ({0})")};var Jhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Vy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class extends Co{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};iI=Jhe([Vy(0,ct),Vy(1,de),Vy(2,pw)],iI);class H_ extends ce{constructor(){super({id:H_.ID,label:bm.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:N.hasDocumentSymbolProvider,kbOpts:{kbExpr:N.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(dl).quickAccess.show(Co.PREFIX)}}H_.ID="editor.action.quickOutline";ie(H_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:iI,prefix:Co.PREFIX,helpEntries:[{description:bm.quickOutlineActionLabel,prefix:Co.PREFIX,commandId:H_.ID},{description:bm.quickOutlineByCategoryActionLabel,prefix:Co.PREFIX_BY_CATEGORY}]});function Hy(o,e){return e&&(o.stack||o.stacktrace)?p("stackTrace.format","{0}: {1}",EO(o),IO(o.stack)||IO(o.stacktrace)):EO(o)}function IO(o){return Array.isArray(o)?o.join(` -`):o}function EO(o){return typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function h8(o=null,e=!1){if(!o)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=i_(o),i=h8(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Un(o))return o;if(o.detail){const t=o.detail;if(t.error)return Hy(t.error,e);if(t.exception)return Hy(t.exception,e)}return o.stack?Hy(o,e):o.message?o.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var d0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Iu;(function(o){o[o.NO_ACTION=0]="NO_ACTION",o[o.CLOSE_PICKER=1]="CLOSE_PICKER",o[o.REFRESH_PICKER=2]="REFRESH_PICKER",o[o.REMOVE_ITEM=3]="REMOVE_ITEM"})(Iu||(Iu={}));function zy(o){const e=o;return Array.isArray(e.items)}function eue(o){const e=o;return!!e.picks&&e.additionalPicks instanceof Promise}class Rw extends H{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s;const r=n.add(new _n),a=()=>d0(this,void 0,void 0,function*(){const l=r.value=new Q;s==null||s.dispose(!0),e.busy=!1,s=new Qi(t);const c=s.token,d=e.value.substr(this.prefix.length).trim(),h=this._getPicks(d,l,c),u=(g,f)=>{var _;let b,v;if(zy(g)?(b=g.items,v=g.active):b=g,b.length===0){if(f)return!1;d.length>0&&((_=this.options)===null||_===void 0?void 0:_.noResultsPick)&&(b=[this.options.noResultsPick])}return e.items=b,v&&(e.activeItems=[v]),!0};if(h!==null)if(eue(h)){let g=!1,f=!1;yield Promise.all([(()=>d0(this,void 0,void 0,function*(){yield sc(Rw.FAST_PICKS_RACE_DELAY),!c.isCancellationRequested&&(f||(g=u(h.picks,!0)))}))(),(()=>d0(this,void 0,void 0,function*(){e.busy=!0;try{const _=yield h.additionalPicks;if(c.isCancellationRequested)return;let b,v;zy(h.picks)?(b=h.picks.items,v=h.picks.active):b=h.picks;let C,w;if(zy(_)?(C=_.items,w=_.active):C=_,C.length>0||!g){let S;if(!v&&!w){const k=e.activeItems[0];k&&b.indexOf(k)!==-1&&(S=k)}u({items:[...b,...C],active:v||w||S})}}finally{c.isCancellationRequested||(e.busy=!1),f=!0}}))()])}else if(!(h instanceof Promise))u(h);else{e.busy=!0;try{const g=yield h;if(c.isCancellationRequested)return;u(g)}finally{c.isCancellationRequested||(e.busy=!1)}}});return n.add(e.onDidChangeValue(()=>a())),a(),n.add(e.onDidAccept(l=>{const[c]=e.selectedItems;typeof(c==null?void 0:c.accept)=="function"&&(l.inBackground||e.hide(),c.accept(e.keyMods,l))})),n.add(e.onDidTriggerItemButton(({button:l,item:c})=>d0(this,void 0,void 0,function*(){var d,h;if(typeof c.trigger=="function"){const u=(h=(d=c.buttons)===null||d===void 0?void 0:d.indexOf(l))!==null&&h!==void 0?h:-1;if(u>=0){const g=c.trigger(u,e.keyMods),f=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(f){case Iu.NO_ACTION:break;case Iu.CLOSE_PICKER:e.hide();break;case Iu.REFRESH_PICKER:a();break;case Iu.REMOVE_ITEM:{const _=e.items.indexOf(c);if(_!==-1){const b=e.items.slice(),v=b.splice(_,1),C=e.activeItems.filter(S=>S!==v[0]),w=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=b,C&&(e.activeItems=C),e.keepScrollPosition=w}break}}}}}))),n}}Rw.FAST_PICKS_RACE_DELAY=200;var u8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nd=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},NO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let e_=class z0 extends Rw{constructor(e,t,i,n,s,r){super(z0.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(hh)),this.options=e}_getPicks(e,t,i){return NO(this,void 0,void 0,function*(){const n=yield this.getCommandPicks(t,i);if(i.isCancellationRequested)return[];const s=[];for(const c of n){const d=Wn(z0.WORD_FILTER(e,c.label)),h=c.commandAlias?Wn(z0.WORD_FILTER(e,c.commandAlias)):void 0;d||h?(c.highlights={label:d,detail:this.options.showAlias?h:void 0},s.push(c)):e===c.commandId&&s.push(c)}const r=new Map;for(const c of s){const d=r.get(c.label);d?(c.description=c.commandId,d.description=d.commandId):r.set(c.label,c)}s.sort((c,d)=>{const h=this.commandsHistory.peek(c.commandId),u=this.commandsHistory.peek(d.commandId);return h&&u?h>u?-1:1:h?-1:u?1:c.label.localeCompare(d.label)});const a=[];let l=!1;for(let c=0;cNO(this,void 0,void 0,function*(){this.commandsHistory.push(d.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"quick open"});try{yield this.commandService.executeCommand(d.commandId)}catch(g){ea(g)||this.dialogService.show(Bt.Error,p("canNotRun","Command '{0}' resulted in an error ({1})",d.label,h8(g)))}})}))}return a})}};e_.PREFIX=">";e_.WORD_FILTER=WE(x1,JG,TF);e_=u8([nd(1,Ae),nd(2,_i),nd(3,ci),nd(4,sr),nd(5,b_)],e_);let hh=class Ii extends H{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Ii.getConfiguredCommandHistoryLength(this.configurationService),Ii.cache&&Ii.cache.limit!==this.configuredCommandsHistoryLength&&(Ii.cache.limit=this.configuredCommandsHistoryLength,Ii.saveState(this.storageService))}load(){const e=this.storageService.get(Ii.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=Ii.cache=new Dc(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((s,r)=>s.value-r.value),n.forEach(s=>i.set(s.key,s.value))}Ii.counter=this.storageService.getNumber(Ii.PREF_KEY_COUNTER,0,Ii.counter)}push(e){!Ii.cache||(Ii.cache.set(e,Ii.counter++),Ii.saveState(this.storageService))}peek(e){var t;return(t=Ii.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Ii.cache)return;const t={usesLRU:!0,entries:[]};Ii.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(Ii.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(Ii.PREF_KEY_COUNTER,Ii.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const s=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof s=="number"?s:Ii.DEFAULT_COMMANDS_HISTORY_LENGTH}};hh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;hh.PREF_KEY_CACHE="commandPalette.mru.cache";hh.PREF_KEY_COUNTER="commandPalette.mru.counter";hh.counter=1;hh=u8([nd(0,Do),nd(1,ot)],hh);class tue extends e_{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:KE(i.label)||i.id});return t}}var iue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nue=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let t_=class extends tue{constructor(e,t,i,n,s,r){super({showAlias:!1},e,i,n,s,r),this.codeEditorService=t}get activeTextEditorControl(){return Wn(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return nue(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};t_=iue([Qh(0,Ae),Qh(1,ct),Qh(2,_i),Qh(3,ci),Qh(4,sr),Qh(5,b_)],t_);class z_ extends ce{constructor(){super({id:z_.ID,label:Gv.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(dl).quickAccess.show(t_.PREFIX)}}z_.ID="editor.action.quickCommand";ie(z_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:t_,prefix:t_.PREFIX,helpEntries:[{description:Gv.quickCommandHelp,commandId:z_.ID}]});var sue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let nI=class extends mc{constructor(e,t,i,n,s,r,a){super(!0,e,t,i,n,s,r,a)}};nI=sue([Xh(1,Ee),Xh(2,ct),Xh(3,di),Xh(4,Ae),Xh(5,Do),Xh(6,ot)],nI);tt(mc.ID,nI);class oue extends ce{constructor(){super({id:"editor.action.toggleHighContrast",label:$D.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(Es),n=i.getColorTheme();cn(n.type)?(i.setTheme(this._originalThemeName||(Xp(n.type)?Ku:Ra)),this._originalThemeName=null):(i.setTheme(Xp(n.type)?Sd:yd),this._originalThemeName=n.themeName)}}ie(oue);export{yte as C,Lte as E,Dte as K,Tte as M,xte as P,Ite as R,Ete as S,Rte as T,Mte as U,kte as a,Nte as b,Ate as c,Ote as e,Pte as l,D_ as m,T3 as t}; -//# sourceMappingURL=toggleHighContrast.5028b4ff.js.map +`+hi.outroMsg,this._contentDomNode.domNode.appendChild(CF(n)),this._contentDomNode.domNode.setAttribute("aria-label",n)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,Si(this._contentDomNode.domNode),this._editor.focus())}_layout(){const e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(V0.WIDTH,e.width-40)),i=Math.max(5,Math.min(V0.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(i);const n=Math.round((e.height-i)/2);this._domNode.setTop(n);const s=Math.round((e.width-t)/2);this._domNode.setLeft(s)}};Bg.ID="editor.contrib.accessibilityHelpWidget";Bg.WIDTH=500;Bg.HEIGHT=300;Bg=n8([W0(1,Ee),W0(2,_i),W0(3,io)],Bg);class Vhe extends ce{constructor(){super({id:"editor.action.showAccessibilityHelp",label:hi.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){const i=dh.get(t);i&&i.show()}}tt(dh.ID,dh);ie(Vhe);const Hhe=xi.bindToContribution(dh.get);ee(new Hhe({id:"closeAccessibilityHelp",precondition:s8,handler:o=>o.hide(),kbOpts:{weight:100+100,kbExpr:N.focus,primary:9,secondary:[1033]}}));Et((o,e)=>{const t=o.getColor(li);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);const i=o.getColor(zo);i&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const n=o.getColor(Ho);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${n}; }`);const s=o.getColor(We);s&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${s}; }`)});class Jx extends H{constructor(e){super(),this.editor=e,this.widget=null,Ur&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(83);!this.widget&&e?this.widget=new Tw(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}Jx.ID="editor.contrib.iPadShowKeyboard";class Tw extends H{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(G(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(G(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return Tw.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}Tw.ID="editor.contrib.ShowKeyboardWidget";tt(Jx.ID,Jx);var zhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},SO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Wg=class r8 extends H{constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(Wt.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}static get(e){return e.getContribution(r8.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new Aw(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Wg.ID="editor.contrib.inspectTokens";Wg=zhe([SO(1,Es),SO(2,Ht)],Wg);class Uhe extends ce{constructor(){super({id:"editor.action.inspectTokens",label:zD.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=Wg.get(t);i&&i.launch()}}function $he(o){let e="";for(let t=0,i=o.length;tng,tokenize:(n,s,r)=>AI(e,r),tokenizeEncoded:(n,s,r)=>qC(i,r)}}class Aw extends H{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=jhe(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(i=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return Aw._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let l=t.tokens1.length-1;l>=0;l--){const c=t.tokens1[l];if(e.column-1>=c.offset){i=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}const s=this._model.getLineContent(e.lineNumber);let r="";if(i{const t=o.getColor(aE);if(t){const s=cn(o.type)?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${s}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}const i=o.getColor(Bd);i&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const n=o.getColor(rE);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${n}; }`)});var Khe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let MC=class H0{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=zt.as(yh.Quickaccess)}provide(e){const t=new Q;return t.add(e.onDidAccept(()=>{const[i]=e.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(i=>{const n=this.registry.getQuickAccessProvider(i.substr(H0.PREFIX.length));n&&n.prefix&&n.prefix!==H0.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders(),t}getQuickAccessProviders(){const e=[];for(const t of this.registry.getQuickAccessProviders().sort((i,n)=>i.prefix.localeCompare(n.prefix)))if(t.prefix!==H0.PREFIX)for(const i of t.helpEntries){const n=i.prefix||t.prefix,s=n||"\u2026";e.push({prefix:n,label:s,keybinding:i.commandId?this.keybindingService.lookupKeybinding(i.commandId):void 0,ariaLabel:p("helpPickAriaLabel","{0}, {1}",s,i.description),description:i.description})}return e}};MC.PREFIX="?";MC=Khe([yO(0,dl),yO(1,_i)],MC);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:MC,prefix:"",helpEntries:[{description:UD.helpQuickAccessActionLabel}]});class a8{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const s=n.add(new _n);return s.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{s.value=void 0,s.value=this.doProvide(e,t)})),n}doProvide(e,t){const i=new Q,n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const s={editor:n},r=u3(n);if(r){let a=Wn(n.saveViewState());i.add(r.onDidChangeCursorPosition(()=>{a=Wn(n.saveViewState())})),s.restoreViewState=()=>{a&&n===this.activeTextEditorControl&&n.restoreViewState(a)},i.add(Xa(t.onCancellationRequested)(()=>{var l;return(l=s.restoreViewState)===null||l===void 0?void 0:l.call(s)}))}i.add(Be(()=>this.clearDecorations(n))),i.add(this.provideWithTextEditor(s,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return h3(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(i=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Qt(x$),position:Zs.Full}}}],[r,a]=i.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:a}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(i=>{i.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class Mw extends a8{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=p("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=new Q;s.add(t.onDidAccept(l=>{const[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));const r=()=>{const l=this.parsePosition(n,t.value.trim().substr(Mw.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}const d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};r(),s.add(t.onDidChangeValue(()=>r()));const a=u3(n);return a&&a.getOptions().get(62).renderType===2&&(a.updateOptions({lineNumbers:"on"}),s.add(Be(()=>a.updateOptions({lineNumbers:"relative"})))),s}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(s=>parseInt(s,10)).filter(s=>!isNaN(s)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?p("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):p("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?p("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):p("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||typeof i!="number")return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return(i=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&i!==void 0?i:0}}Mw.PREFIX=":";var qhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ghe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Jm=class extends Mw{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};Jm=qhe([Ghe(0,ct)],Jm);class V_ extends ce{constructor(){super({id:V_.ID,label:qv.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(dl).quickAccess.show(Jm.PREFIX)}}V_.ID="editor.action.gotoLine";ie(V_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:Jm,prefix:Jm.PREFIX,helpEntries:[{description:qv.gotoLineActionLabel,commandId:V_.ID}]});const l8=[void 0,[]];function Fy(o,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?Zhe(o,n.values,t,i):c8(o,e,t,i)}function Zhe(o,e,t,i){let n=0;const s=[];for(const r of e){const[a,l]=c8(o,r,t,i);if(typeof a!="number")return l8;n+=a,s.push(...l)}return[n,Yhe(s)]}function c8(o,e,t,i){const n=mg(e.original,e.originalLowercase,t,o,o.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],E1(n)]:l8}Object.freeze({score:0});function Yhe(o){const e=o.sort((n,s)=>n.start-s.start),t=[];let i;for(const n of e)!i||!Qhe(i,n)?(i=n,t.push(n)):(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end));return t}function Qhe(o,e){return!(o.end=0,r=LO(o);let a;const l=o.split(d8);if(l.length>1)for(const c of l){const d=LO(c),{pathNormalized:h,normalized:u,normalizedLowercase:g}=DO(c);u&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:h,normalized:u,normalizedLowercase:g,expectContiguousMatch:d}))}return{original:o,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function DO(o){let e;Yi?e=o.replace(/\//g,Br):e=o.replace(/\\/g,Br);const t=uB(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function kO(o){return Array.isArray(o)?eI(o.map(e=>e.original).join(d8)):eI(o.original)}var Xhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Wf=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Co=class tI extends a8{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,p("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),H.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):H.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new Q;return this.provideLabelPick(i,p("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Wf(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,s))||n.isCancellationRequested||s.add(this.doProvideWithEditorSymbols(e,t,i,n))}),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Wf(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new RI,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(Be(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(e,t,i,n){var s;const r=e.editor,a=new Q;a.add(i.onDidAccept(u=>{const[g]=i.selectedItems;g&&g.range&&(this.gotoLocation(e,{range:g.range.selection,keyMods:i.keyMods,preserveFocus:u.inBackground}),u.inBackground||i.hide())})),a.add(i.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const l=this.getDocumentSymbols(t,n);let c;const d=u=>Wf(this,void 0,void 0,function*(){c==null||c.dispose(!0),i.busy=!1,c=new Qi(n),i.busy=!0;try{const g=eI(i.value.substr(tI.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,g,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(i.items=f,u&&g.original.length===0){const _=j0(f,b=>Boolean(b.type!=="separator"&&b.range&&L.containsPosition(b.range.decoration,u)));_&&(i.activeItems=[_])}}else g.original.length>0?this.provideLabelPick(i,p("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,p("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}});a.add(i.onDidChangeValue(()=>d(void 0))),d((s=r.getSelection())===null||s===void 0?void 0:s.getPosition());let h=2;return a.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;if(u&&u.range){if(h-- >0)return;r.revealRangeInCenter(u.range.selection,0),this.addDecorations(r,u.range.decoration)}})),a}doGetSymbolPicks(e,t,i,n){return Wf(this,void 0,void 0,function*(){const s=yield e;if(n.isCancellationRequested)return[];const r=t.original.indexOf(tI.SCOPE_PREFIX)===0,a=r?1:0;let l,c;t.values&&t.values.length>1?(l=kO(t.values[0]),c=kO(t.values.slice(1))):l=t;const d=[];for(let g=0;ga){let D=!1;if(l!==t&&([w,S]=Fy(b,Object.assign(Object.assign({},t),{values:void 0}),a,v),typeof w=="number"&&(D=!0)),typeof w!="number"&&([w,S]=Fy(b,l,a,v),typeof w!="number"))continue;if(!D&&c){if(C&&c.original.length>0&&([k,x]=Fy(C,c)),typeof k!="number")continue;typeof w=="number"&&(w+=k)}}const y=f.tags&&f.tags.indexOf(1)>=0;d.push({index:g,kind:f.kind,score:w,label:b,ariaLabel:_,description:C,highlights:y?void 0:{label:S,description:x},range:{selection:L.collapseToStart(f.selectionRange),decoration:f.range},strikethrough:y,buttons:(()=>{var D,I;const O=!((D=this.options)===null||D===void 0)&&D.openSideBySideDirection?(I=this.options)===null||I===void 0?void 0:I.openSideBySideDirection():void 0;if(!!O)return[{iconClass:O==="right"?m.splitHorizontal.classNames:m.splitVertical.classNames,tooltip:O==="right"?p("openToSide","Open to the Side"):p("openToBottom","Open to the Bottom")}]})()})}const h=d.sort((g,f)=>r?this.compareByKindAndScore(g,f):this.compareByScore(g,f));let u=[];if(r){let b=function(){f&&typeof g=="number"&&_>0&&(f.label=Vs(Wy[g]||By,_))},g,f,_=0;for(const v of h)g!==v.kind?(b(),g=v.kind,_=1,f={type:"separator"},u.push(f)):_++,u.push(v);b()}else h.length>0&&(u=[{label:p("symbols","symbols ({0})",d.length),type:"separator"},...h]);return u})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=Wy[e.kind]||By,n=Wy[t.kind]||By,s=i.localeCompare(n);return s===0?this.compareByScore(e,t):s}getDocumentSymbols(e,t){return Wf(this,void 0,void 0,function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};Co.PREFIX="@";Co.SCOPE_PREFIX=":";Co.PREFIX_BY_CATEGORY=`${Co.PREFIX}${Co.SCOPE_PREFIX}`;Co=Xhe([xO(0,de),xO(1,pw)],Co);const By=p("property","properties ({0})"),Wy={[5]:p("method","methods ({0})"),[11]:p("function","functions ({0})"),[8]:p("_constructor","constructors ({0})"),[12]:p("variable","variables ({0})"),[4]:p("class","classes ({0})"),[22]:p("struct","structs ({0})"),[23]:p("event","events ({0})"),[24]:p("operator","operators ({0})"),[10]:p("interface","interfaces ({0})"),[2]:p("namespace","namespaces ({0})"),[3]:p("package","packages ({0})"),[25]:p("typeParameter","type parameters ({0})"),[1]:p("modules","modules ({0})"),[6]:p("property","properties ({0})"),[9]:p("enum","enumerations ({0})"),[21]:p("enumMember","enumeration members ({0})"),[14]:p("string","strings ({0})"),[0]:p("file","files ({0})"),[17]:p("array","arrays ({0})"),[15]:p("number","numbers ({0})"),[16]:p("boolean","booleans ({0})"),[18]:p("object","objects ({0})"),[19]:p("key","keys ({0})"),[7]:p("field","fields ({0})"),[13]:p("constant","constants ({0})")};var Jhe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Vy=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class extends Co{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=ge.None}get activeTextEditorControl(){return Wn(this.editorService.getFocusedCodeEditor())}};iI=Jhe([Vy(0,ct),Vy(1,de),Vy(2,pw)],iI);class H_ extends ce{constructor(){super({id:H_.ID,label:bm.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:N.hasDocumentSymbolProvider,kbOpts:{kbExpr:N.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(dl).quickAccess.show(Co.PREFIX)}}H_.ID="editor.action.quickOutline";ie(H_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:iI,prefix:Co.PREFIX,helpEntries:[{description:bm.quickOutlineActionLabel,prefix:Co.PREFIX,commandId:H_.ID},{description:bm.quickOutlineByCategoryActionLabel,prefix:Co.PREFIX_BY_CATEGORY}]});function Hy(o,e){return e&&(o.stack||o.stacktrace)?p("stackTrace.format","{0}: {1}",EO(o),IO(o.stack)||IO(o.stacktrace)):EO(o)}function IO(o){return Array.isArray(o)?o.join(` +`):o}function EO(o){return typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function h8(o=null,e=!1){if(!o)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=i_(o),i=h8(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Un(o))return o;if(o.detail){const t=o.detail;if(t.error)return Hy(t.error,e);if(t.exception)return Hy(t.exception,e)}return o.stack?Hy(o,e):o.message?o.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var d0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},Iu;(function(o){o[o.NO_ACTION=0]="NO_ACTION",o[o.CLOSE_PICKER=1]="CLOSE_PICKER",o[o.REFRESH_PICKER=2]="REFRESH_PICKER",o[o.REMOVE_ITEM=3]="REMOVE_ITEM"})(Iu||(Iu={}));function zy(o){const e=o;return Array.isArray(e.items)}function eue(o){const e=o;return!!e.picks&&e.additionalPicks instanceof Promise}class Rw extends H{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s;const r=n.add(new _n),a=()=>d0(this,void 0,void 0,function*(){const l=r.value=new Q;s==null||s.dispose(!0),e.busy=!1,s=new Qi(t);const c=s.token,d=e.value.substr(this.prefix.length).trim(),h=this._getPicks(d,l,c),u=(g,f)=>{var _;let b,v;if(zy(g)?(b=g.items,v=g.active):b=g,b.length===0){if(f)return!1;d.length>0&&((_=this.options)===null||_===void 0?void 0:_.noResultsPick)&&(b=[this.options.noResultsPick])}return e.items=b,v&&(e.activeItems=[v]),!0};if(h!==null)if(eue(h)){let g=!1,f=!1;yield Promise.all([(()=>d0(this,void 0,void 0,function*(){yield sc(Rw.FAST_PICKS_RACE_DELAY),!c.isCancellationRequested&&(f||(g=u(h.picks,!0)))}))(),(()=>d0(this,void 0,void 0,function*(){e.busy=!0;try{const _=yield h.additionalPicks;if(c.isCancellationRequested)return;let b,v;zy(h.picks)?(b=h.picks.items,v=h.picks.active):b=h.picks;let C,w;if(zy(_)?(C=_.items,w=_.active):C=_,C.length>0||!g){let S;if(!v&&!w){const k=e.activeItems[0];k&&b.indexOf(k)!==-1&&(S=k)}u({items:[...b,...C],active:v||w||S})}}finally{c.isCancellationRequested||(e.busy=!1),f=!0}}))()])}else if(!(h instanceof Promise))u(h);else{e.busy=!0;try{const g=yield h;if(c.isCancellationRequested)return;u(g)}finally{c.isCancellationRequested||(e.busy=!1)}}});return n.add(e.onDidChangeValue(()=>a())),a(),n.add(e.onDidAccept(l=>{const[c]=e.selectedItems;typeof(c==null?void 0:c.accept)=="function"&&(l.inBackground||e.hide(),c.accept(e.keyMods,l))})),n.add(e.onDidTriggerItemButton(({button:l,item:c})=>d0(this,void 0,void 0,function*(){var d,h;if(typeof c.trigger=="function"){const u=(h=(d=c.buttons)===null||d===void 0?void 0:d.indexOf(l))!==null&&h!==void 0?h:-1;if(u>=0){const g=c.trigger(u,e.keyMods),f=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(f){case Iu.NO_ACTION:break;case Iu.CLOSE_PICKER:e.hide();break;case Iu.REFRESH_PICKER:a();break;case Iu.REMOVE_ITEM:{const _=e.items.indexOf(c);if(_!==-1){const b=e.items.slice(),v=b.splice(_,1),C=e.activeItems.filter(S=>S!==v[0]),w=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=b,C&&(e.activeItems=C),e.keepScrollPosition=w}break}}}}}))),n}}Rw.FAST_PICKS_RACE_DELAY=200;var u8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nd=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},NO=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let e_=class z0 extends Rw{constructor(e,t,i,n,s,r){super(z0.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(hh)),this.options=e}_getPicks(e,t,i){return NO(this,void 0,void 0,function*(){const n=yield this.getCommandPicks(t,i);if(i.isCancellationRequested)return[];const s=[];for(const c of n){const d=Wn(z0.WORD_FILTER(e,c.label)),h=c.commandAlias?Wn(z0.WORD_FILTER(e,c.commandAlias)):void 0;d||h?(c.highlights={label:d,detail:this.options.showAlias?h:void 0},s.push(c)):e===c.commandId&&s.push(c)}const r=new Map;for(const c of s){const d=r.get(c.label);d?(c.description=c.commandId,d.description=d.commandId):r.set(c.label,c)}s.sort((c,d)=>{const h=this.commandsHistory.peek(c.commandId),u=this.commandsHistory.peek(d.commandId);return h&&u?h>u?-1:1:h?-1:u?1:c.label.localeCompare(d.label)});const a=[];let l=!1;for(let c=0;cNO(this,void 0,void 0,function*(){this.commandsHistory.push(d.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"quick open"});try{yield this.commandService.executeCommand(d.commandId)}catch(g){ea(g)||this.dialogService.show(Bt.Error,p("canNotRun","Command '{0}' resulted in an error ({1})",d.label,h8(g)))}})}))}return a})}};e_.PREFIX=">";e_.WORD_FILTER=WE(x1,JG,T5);e_=u8([nd(1,Ae),nd(2,_i),nd(3,ci),nd(4,sr),nd(5,b_)],e_);let hh=class Ii extends H{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Ii.getConfiguredCommandHistoryLength(this.configurationService),Ii.cache&&Ii.cache.limit!==this.configuredCommandsHistoryLength&&(Ii.cache.limit=this.configuredCommandsHistoryLength,Ii.saveState(this.storageService))}load(){const e=this.storageService.get(Ii.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=Ii.cache=new Dc(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((s,r)=>s.value-r.value),n.forEach(s=>i.set(s.key,s.value))}Ii.counter=this.storageService.getNumber(Ii.PREF_KEY_COUNTER,0,Ii.counter)}push(e){!Ii.cache||(Ii.cache.set(e,Ii.counter++),Ii.saveState(this.storageService))}peek(e){var t;return(t=Ii.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Ii.cache)return;const t={usesLRU:!0,entries:[]};Ii.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(Ii.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(Ii.PREF_KEY_COUNTER,Ii.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const s=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof s=="number"?s:Ii.DEFAULT_COMMANDS_HISTORY_LENGTH}};hh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;hh.PREF_KEY_CACHE="commandPalette.mru.cache";hh.PREF_KEY_COUNTER="commandPalette.mru.counter";hh.counter=1;hh=u8([nd(0,Do),nd(1,ot)],hh);class tue extends e_{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:KE(i.label)||i.id});return t}}var iue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},nue=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let t_=class extends tue{constructor(e,t,i,n,s,r){super({showAlias:!1},e,i,n,s,r),this.codeEditorService=t}get activeTextEditorControl(){return Wn(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return nue(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};t_=iue([Qh(0,Ae),Qh(1,ct),Qh(2,_i),Qh(3,ci),Qh(4,sr),Qh(5,b_)],t_);class z_ extends ce{constructor(){super({id:z_.ID,label:Gv.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(dl).quickAccess.show(t_.PREFIX)}}z_.ID="editor.action.quickCommand";ie(z_);zt.as(yh.Quickaccess).registerQuickAccessProvider({ctor:t_,prefix:t_.PREFIX,helpEntries:[{description:Gv.quickCommandHelp,commandId:z_.ID}]});var sue=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xh=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let nI=class extends mc{constructor(e,t,i,n,s,r,a){super(!0,e,t,i,n,s,r,a)}};nI=sue([Xh(1,Ee),Xh(2,ct),Xh(3,di),Xh(4,Ae),Xh(5,Do),Xh(6,ot)],nI);tt(mc.ID,nI);class oue extends ce{constructor(){super({id:"editor.action.toggleHighContrast",label:$D.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(Es),n=i.getColorTheme();cn(n.type)?(i.setTheme(this._originalThemeName||(Xp(n.type)?Ku:Ra)),this._originalThemeName=null):(i.setTheme(Xp(n.type)?Sd:yd),this._originalThemeName=n.themeName)}}ie(oue);export{yte as C,Lte as E,Dte as K,Tte as M,xte as P,Ite as R,Ete as S,Rte as T,Mte as U,kte as a,Nte as b,Ate as c,Ote as e,Pte as l,D_ as m,T3 as t}; +//# sourceMappingURL=toggleHighContrast.0eb315ff.js.map diff --git a/abstra_statics/dist/assets/tsMode.9ef80535.js b/abstra_statics/dist/assets/tsMode.d9a69d11.js similarity index 98% rename from abstra_statics/dist/assets/tsMode.9ef80535.js rename to abstra_statics/dist/assets/tsMode.d9a69d11.js index 65f9958895..9e72771065 100644 --- a/abstra_statics/dist/assets/tsMode.9ef80535.js +++ b/abstra_statics/dist/assets/tsMode.d9a69d11.js @@ -1,4 +1,4 @@ -var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ea8556cf-73d6-4fe3-a5ab-a4fc8902ba9d",e._sentryDebugIdIdentifier="sentry-dbid-ea8556cf-73d6-4fe3-a5ab-a4fc8902ba9d")}catch{}})();/*!----------------------------------------------------------------------------- +var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62eaadbd-e0f2-4d02-a15e-153936fdc437",e._sentryDebugIdIdentifier="sentry-dbid-62eaadbd-e0f2-4d02-a15e-153936fdc437")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license @@ -14,4 +14,4 @@ ${O(r)}`;return t}};function O(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.te `+n:"")}]}}},J=class extends w{async provideDocumentHighlights(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getOccurrencesAtPosition(s.toString(),a);if(!(!c||e.isDisposed()))return c.map(g=>({range:this._textSpanToRange(e,g.textSpan),kind:g.isWriteAccess?i.languages.DocumentHighlightKind.Write:i.languages.DocumentHighlightKind.Text}))}},Q=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getDefinitionAtPosition(s.toString(),a);if(!c||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(c.map(n=>i.Uri.parse(n.fileName))),e.isDisposed()))return;const g=[];for(let n of c){const p=this._libFiles.getOrCreateModel(n.fileName);p&&g.push({uri:p.uri,range:this._textSpanToRange(p,n.textSpan)})}return g}},q=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,r,s){const a=e.uri,u=e.getOffsetAt(t),c=await this._worker(a);if(e.isDisposed())return;const g=await c.getReferencesAtPosition(a.toString(),u);if(!g||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(g.map(p=>i.Uri.parse(p.fileName))),e.isDisposed()))return;const n=[];for(let p of g){const d=this._libFiles.getOrCreateModel(p.fileName);d&&n.push({uri:d.uri,range:this._textSpanToRange(d,p.textSpan)})}return n}},X=class extends w{async provideDocumentSymbols(e,t){const r=e.uri,s=await this._worker(r);if(e.isDisposed())return;const a=await s.getNavigationBarItems(r.toString());if(!a||e.isDisposed())return;const u=(g,n,p)=>{let d={name:n.text,detail:"",kind:m[n.kind]||i.languages.SymbolKind.Variable,range:this._textSpanToRange(e,n.spans[0]),selectionRange:this._textSpanToRange(e,n.spans[0]),tags:[]};if(p&&(d.containerName=p),n.childItems&&n.childItems.length>0)for(let f of n.childItems)u(g,f,d.name);g.push(d)};let c=[];return a.forEach(g=>u(c,g)),c}},l=class{};b(l,"unknown","");b(l,"keyword","keyword");b(l,"script","script");b(l,"module","module");b(l,"class","class");b(l,"interface","interface");b(l,"type","type");b(l,"enum","enum");b(l,"variable","var");b(l,"localVariable","local var");b(l,"function","function");b(l,"localFunction","local function");b(l,"memberFunction","method");b(l,"memberGetAccessor","getter");b(l,"memberSetAccessor","setter");b(l,"memberVariable","property");b(l,"constructorImplementation","constructor");b(l,"callSignature","call");b(l,"indexSignature","index");b(l,"constructSignature","construct");b(l,"parameter","parameter");b(l,"typeParameter","type parameter");b(l,"primitiveType","primitive type");b(l,"label","label");b(l,"alias","alias");b(l,"const","const");b(l,"let","let");b(l,"warning","warning");var m=Object.create(null);m[l.module]=i.languages.SymbolKind.Module;m[l.class]=i.languages.SymbolKind.Class;m[l.enum]=i.languages.SymbolKind.Enum;m[l.interface]=i.languages.SymbolKind.Interface;m[l.memberFunction]=i.languages.SymbolKind.Method;m[l.memberVariable]=i.languages.SymbolKind.Property;m[l.memberGetAccessor]=i.languages.SymbolKind.Property;m[l.memberSetAccessor]=i.languages.SymbolKind.Property;m[l.variable]=i.languages.SymbolKind.Variable;m[l.const]=i.languages.SymbolKind.Variable;m[l.localVariable]=i.languages.SymbolKind.Variable;m[l.variable]=i.languages.SymbolKind.Variable;m[l.function]=i.languages.SymbolKind.Function;m[l.localFunction]=i.languages.SymbolKind.Function;var S=class extends w{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:` `,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},Y=class extends S{async provideDocumentRangeFormattingEdits(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getFormattingEditsForRange(a.toString(),u,c,S._convertOptions(r));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},Z=class extends S{get autoFormatTriggerCharacters(){return[";","}",` `]}async provideOnTypeFormattingEdits(e,t,r,s,a){const u=e.uri,c=e.getOffsetAt(t),g=await this._worker(u);if(e.isDisposed())return;const n=await g.getFormattingEditsAfterKeystroke(u.toString(),c,r,S._convertOptions(s));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},ee=class extends S{async provideCodeActions(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=S._convertOptions(e.getOptions()),n=r.markers.filter(h=>h.code).map(h=>h.code).map(Number),p=await this._worker(a);if(e.isDisposed())return;const d=await p.getCodeFixesAtPosition(a.toString(),u,c,n,g);return!d||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:d.filter(h=>h.changes.filter(y=>y.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,r,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,r){const s=[];for(const u of r.changes)for(const c of u.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,c.span),text:c.newText}});return{title:r.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},te=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,r,s){const a=e.uri,u=a.toString(),c=e.getOffsetAt(t),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getRenameInfo(u,c,{allowRenameOfImportPath:!1});if(n.canRename===!1)return{edits:[],rejectReason:n.localizedErrorMessage};if(n.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const p=await g.findRenameLocations(u,c,!1,!1,!1);if(!p||e.isDisposed())return;const d=[];for(const f of p){const h=this._libFiles.getOrCreateModel(f.fileName);if(h)d.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,f.textSpan),text:r}});else throw new Error(`Unknown file ${f.fileName}.`)}return{edits:d}}},re=class extends w{async provideInlayHints(e,t,r){const s=e.uri,a=s.toString(),u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(s);return e.isDisposed()?null:{hints:(await g.provideInlayHints(a,u,c)).map(d=>({...d,label:d.text,position:e.getPositionAt(d.position),kind:this._convertHintKind(d.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return i.languages.InlayHintKind.Parameter;case"Type":return i.languages.InlayHintKind.Type;default:return i.languages.InlayHintKind.Type}}},A,L;function ae(e){L=N(e,"typescript")}function oe(e){A=N(e,"javascript")}function le(){return new Promise((e,t)=>{if(!A)return t("JavaScript not registered!");e(A)})}function ce(){return new Promise((e,t)=>{if(!L)return t("TypeScript not registered!");e(L)})}function N(e,t){const r=new U(t,e),s=(...u)=>r.getLanguageServiceWorker(...u),a=new $(s);return i.languages.registerCompletionItemProvider(t,new D(s)),i.languages.registerSignatureHelpProvider(t,new I(s)),i.languages.registerHoverProvider(t,new G(s)),i.languages.registerDocumentHighlightProvider(t,new J(s)),i.languages.registerDefinitionProvider(t,new Q(a,s)),i.languages.registerReferenceProvider(t,new q(a,s)),i.languages.registerDocumentSymbolProvider(t,new X(s)),i.languages.registerDocumentRangeFormattingEditProvider(t,new Y(s)),i.languages.registerOnTypeFormattingEditProvider(t,new Z(s)),i.languages.registerCodeActionProvider(t,new ee(s)),i.languages.registerRenameProvider(t,new te(a,s)),i.languages.registerInlayHintsProvider(t,new re(s)),new z(a,e,t,s),s}export{w as Adapter,ee as CodeActionAdaptor,Q as DefinitionAdapter,z as DiagnosticsAdapter,Y as FormatAdapter,S as FormatHelper,Z as FormatOnTypeAdapter,re as InlayHintsAdapter,l as Kind,$ as LibFiles,J as OccurrencesAdapter,X as OutlineAdapter,G as QuickInfoAdapter,q as ReferenceAdapter,te as RenameAdapter,I as SignatureHelpAdapter,D as SuggestAdapter,U as WorkerManager,F as flattenDiagnosticMessageText,le as getJavaScriptWorker,ce as getTypeScriptWorker,oe as setupJavaScript,ae as setupTypeScript}; -//# sourceMappingURL=tsMode.9ef80535.js.map +//# sourceMappingURL=tsMode.d9a69d11.js.map diff --git a/abstra_statics/dist/assets/typescript.02db7208.js b/abstra_statics/dist/assets/typescript.e2f96ca7.js similarity index 94% rename from abstra_statics/dist/assets/typescript.02db7208.js rename to abstra_statics/dist/assets/typescript.e2f96ca7.js index b3dac188b8..d5e3a37342 100644 --- a/abstra_statics/dist/assets/typescript.02db7208.js +++ b/abstra_statics/dist/assets/typescript.e2f96ca7.js @@ -1,7 +1,7 @@ -import{m as a}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0c90225b-83fb-4a0a-a0b2-68f4c0f3155e",t._sentryDebugIdIdentifier="sentry-dbid-0c90225b-83fb-4a0a-a0b2-68f4c0f3155e")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as a}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0b93c949-29a9-41d5-90fb-e89eb0ae792f",t._sentryDebugIdIdentifier="sentry-dbid-0b93c949-29a9-41d5-90fb-e89eb0ae792f")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!d.call(t,r)&&r!==n&&c(t,r,{get:()=>e[r],enumerable:!(i=p(e,r))||i.enumerable});return t},l=(t,e,n)=>(s(t,e,"default"),n&&s(n,e,"default")),o={};l(o,a);var u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},f={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{u as conf,f as language}; -//# sourceMappingURL=typescript.02db7208.js.map +//# sourceMappingURL=typescript.e2f96ca7.js.map diff --git a/abstra_statics/dist/assets/url.121c9984.js b/abstra_statics/dist/assets/url.121c9984.js new file mode 100644 index 0000000000..0cdf0ece4e --- /dev/null +++ b/abstra_statics/dist/assets/url.121c9984.js @@ -0,0 +1,2 @@ +import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f1a9318c-1a45-4960-b893-20ea19e8f1f9",e._sentryDebugIdIdentifier="sentry-dbid-f1a9318c-1a45-4960-b893-20ea19e8f1f9")}catch{}})();const f=e=>{try{return new URL(e),!0}catch{return!1}},o=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([a,s])=>{t.searchParams.delete(a),n.set(a,s)}),`${t.origin}${t.pathname}?${n.toString()}`};export{f as i,o as m}; +//# sourceMappingURL=url.121c9984.js.map diff --git a/abstra_statics/dist/assets/url.e93ecf3f.js b/abstra_statics/dist/assets/url.e93ecf3f.js deleted file mode 100644 index 7121652cc1..0000000000 --- a/abstra_statics/dist/assets/url.e93ecf3f.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="14937e1f-433f-46af-8015-8ded7cd30fb1",e._sentryDebugIdIdentifier="sentry-dbid-14937e1f-433f-46af-8015-8ded7cd30fb1")}catch{}})();const f=e=>{try{return new URL(e),!0}catch{return!1}},c=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([s,a])=>{t.searchParams.delete(s),n.set(s,a)}),`${t.origin}${t.pathname}?${n.toString()}`};export{f as i,c as m}; -//# sourceMappingURL=url.e93ecf3f.js.map diff --git a/abstra_statics/dist/assets/utils.537da94d.js b/abstra_statics/dist/assets/utils.537da94d.js new file mode 100644 index 0000000000..cb8382a374 --- /dev/null +++ b/abstra_statics/dist/assets/utils.537da94d.js @@ -0,0 +1,4 @@ +import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="98268314-872e-4a4f-981c-45690d10f32d",e._sentryDebugIdIdentifier="sentry-dbid-98268314-872e-4a4f-981c-45690d10f32d")}catch{}})();const a=e=>{let n=e.columns.join(",")+` +`;e.rows.forEach(o=>{n+=o.join(","),n+=` +`});const d=document.createElement("a");d.href="data:text/csv;charset=utf-8,"+encodeURIComponent(n),d.target="_blank",d.download=`${e.fileName}.csv`,d.click()};export{a as d}; +//# sourceMappingURL=utils.537da94d.js.map diff --git a/abstra_statics/dist/assets/utils.c92e833b.js b/abstra_statics/dist/assets/utils.c92e833b.js deleted file mode 100644 index 9931b45a11..0000000000 --- a/abstra_statics/dist/assets/utils.c92e833b.js +++ /dev/null @@ -1,4 +0,0 @@ -import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6b86f153-e4df-4e8c-89b2-af111f7e585f",e._sentryDebugIdIdentifier="sentry-dbid-6b86f153-e4df-4e8c-89b2-af111f7e585f")}catch{}})();const f=e=>{let n=e.columns.join(",")+` -`;e.rows.forEach(t=>{n+=t.join(","),n+=` -`});const o=document.createElement("a");o.href="data:text/csv;charset=utf-8,"+encodeURIComponent(n),o.target="_blank",o.download=`${e.fileName}.csv`,o.click()};export{f as d}; -//# sourceMappingURL=utils.c92e833b.js.map diff --git a/abstra_statics/dist/assets/uuid.4ec4da84.js b/abstra_statics/dist/assets/uuid.4ec4da84.js deleted file mode 100644 index e24e87e860..0000000000 --- a/abstra_statics/dist/assets/uuid.4ec4da84.js +++ /dev/null @@ -1,2 +0,0 @@ -import"./index.8c3f27aa.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[e]="6d0a4f9d-b8a2-407e-8737-8f675b56d4e8",x._sentryDebugIdIdentifier="sentry-dbid-6d0a4f9d-b8a2-407e-8737-8f675b56d4e8")}catch{}})();const t=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const e=Math.random()*16|0;return(x=="x"?e:e&3|8).toString(16)});export{t as u}; -//# sourceMappingURL=uuid.4ec4da84.js.map diff --git a/abstra_statics/dist/assets/uuid.f9389d59.js b/abstra_statics/dist/assets/uuid.f9389d59.js new file mode 100644 index 0000000000..b174563c76 --- /dev/null +++ b/abstra_statics/dist/assets/uuid.f9389d59.js @@ -0,0 +1,2 @@ +import"./index.d0f12294.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[e]="fd2b53f4-13ab-4873-8c55-7ef41f554334",x._sentryDebugIdIdentifier="sentry-dbid-fd2b53f4-13ab-4873-8c55-7ef41f554334")}catch{}})();const d=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const e=Math.random()*16|0;return(x=="x"?e:e&3|8).toString(16)});export{d as u}; +//# sourceMappingURL=uuid.f9389d59.js.map diff --git a/abstra_statics/dist/assets/validations.1f9bbc1f.js b/abstra_statics/dist/assets/validations.2475f715.js similarity index 72% rename from abstra_statics/dist/assets/validations.1f9bbc1f.js rename to abstra_statics/dist/assets/validations.2475f715.js index 0af1548a8e..aa6a8bcd21 100644 --- a/abstra_statics/dist/assets/validations.1f9bbc1f.js +++ b/abstra_statics/dist/assets/validations.2475f715.js @@ -1,2 +1,2 @@ -import{n as t,a as s}from"./string.0a3509c3.js";import"./index.8c3f27aa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="aaa6d898-0de0-4d29-92f0-ac955d29b5bc",e._sentryDebugIdIdentifier="sentry-dbid-aaa6d898-0de0-4d29-92f0-ac955d29b5bc")}catch{}})();const o=["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];function l(e){return e.replace(/\.py$/,"").trim().length===0?{valid:!1,reason:"File name cannot be empty"}:e.length>255?{valid:!1,reason:"File name cannot be longer than 255 characters"}:e.endsWith(".py")?{valid:!0}:{valid:!1,reason:"File name must end with .py"}}function m(e){if(!l(e).valid)throw new Error("Invalid filename");const a=e.slice(0,-3);return t(a,!0,!0,!0,!0)+".py"}function b(e){return t(e,!0,!0,!0,!0)+".py"}function d(e){return e.trim().length===0?{valid:!1,reason:"Variable name cannot be empty"}:/^[a-zA-Z_]/.test(e)?o.includes(e)?{valid:!1,reason:"Variable name cannot be a Python keyword"}:{valid:!0}:{valid:!1,reason:"Variable name must start with a letter or underscore"}}function p(e){const a=d(e);if(!a.valid)throw new Error(a.reason);return e.split(".").map(i=>t(i,!1,!0,!1)).join(".")}function u(e){return e.trim().length===0?{valid:!1,reason:"Path cannot be empty"}:{valid:!0}}function y(e){if(!u(e).valid)throw new Error("Invalid path");return e.split("/").filter(Boolean).map(r=>s(r)).join("/")}export{d as a,b,u as c,y as d,m as e,p as n,l as v}; -//# sourceMappingURL=validations.1f9bbc1f.js.map +import{n as t,a as s}from"./string.d9c83adf.js";import"./index.d0f12294.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6163b37d-0fb1-4025-8807-9b427fda2e00",e._sentryDebugIdIdentifier="sentry-dbid-6163b37d-0fb1-4025-8807-9b427fda2e00")}catch{}})();const o=["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];function l(e){return e.replace(/\.py$/,"").trim().length===0?{valid:!1,reason:"File name cannot be empty"}:e.length>255?{valid:!1,reason:"File name cannot be longer than 255 characters"}:e.endsWith(".py")?{valid:!0}:{valid:!1,reason:"File name must end with .py"}}function m(e){if(!l(e).valid)throw new Error("Invalid filename");const a=e.slice(0,-3);return t(a,!0,!0,!0,!0)+".py"}function b(e){return t(e,!0,!0,!0,!0)+".py"}function d(e){return e.trim().length===0?{valid:!1,reason:"Variable name cannot be empty"}:/^[a-zA-Z_]/.test(e)?o.includes(e)?{valid:!1,reason:"Variable name cannot be a Python keyword"}:{valid:!0}:{valid:!1,reason:"Variable name must start with a letter or underscore"}}function p(e){const a=d(e);if(!a.valid)throw new Error(a.reason);return e.split(".").map(i=>t(i,!1,!0,!1)).join(".")}function f(e){return e.trim().length===0?{valid:!1,reason:"Path cannot be empty"}:{valid:!0}}function y(e){if(!f(e).valid)throw new Error("Invalid path");return e.split("/").filter(Boolean).map(r=>s(r)).join("/")}export{d as a,b,f as c,y as d,m as e,p as n,l as v}; +//# sourceMappingURL=validations.2475f715.js.map diff --git a/abstra_statics/dist/assets/vue-quill.esm-bundler.6a9f89f0.js b/abstra_statics/dist/assets/vue-quill.esm-bundler.6724c38a.js similarity index 99% rename from abstra_statics/dist/assets/vue-quill.esm-bundler.6a9f89f0.js rename to abstra_statics/dist/assets/vue-quill.esm-bundler.6724c38a.js index df69d5c314..d7d5d79ae7 100644 --- a/abstra_statics/dist/assets/vue-quill.esm-bundler.6a9f89f0.js +++ b/abstra_statics/dist/assets/vue-quill.esm-bundler.6724c38a.js @@ -1,4 +1,4 @@ -import{eH as tr,eG as Tt,d as er,X as nr,ar as rr,e as Fn,g as Ln,p as ir,K as Un}from"./index.8c3f27aa.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new Error().stack;U&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[U]="4c0aca68-bc97-4f5e-8783-9227c4d4aeb7",R._sentryDebugIdIdentifier="sentry-dbid-4c0aca68-bc97-4f5e-8783-9227c4d4aeb7")}catch{}})();var Gn={exports:{}};/*! +import{eH as tr,eG as Tt,d as er,X as nr,ar as rr,e as Fn,g as Ln,p as ir,K as Un}from"./index.d0f12294.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new Error().stack;U&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[U]="20bf4367-5280-4bc8-990c-1b5dfd5c9b63",R._sentryDebugIdIdentifier="sentry-dbid-20bf4367-5280-4bc8-990c-1b5dfd5c9b63")}catch{}})();var Gn={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen @@ -52,4 +52,4 @@ import{eH as tr,eG as Tt,d as er,X as nr,ar as rr,e as Fn,g as Ln,p as ir,K as U */const $n={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},_r=er({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:R=>["delta","html","text"].includes(R)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:R=>["snow","bubble",""].includes(R)},toolbar:{type:[String,Array,Object],required:!1,validator:R=>typeof R=="string"&&R!==""?R.charAt(0)==="#"?!0:Object.keys($n).indexOf(R)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(R,U)=>{nr(()=>{E()}),rr(()=>{m=null});let m,p;const c=Fn(),E=()=>{var v;if(!!c.value){if(p=b(),R.modules)if(Array.isArray(R.modules))for(const O of R.modules)qn.register(`modules/${O.name}`,O.module);else qn.register(`modules/${R.modules.name}`,R.modules.module);m=new qn(c.value,p),f(R.content),m.on("text-change",o),m.on("selection-change",e),m.on("editor-change",s),R.theme!=="bubble"&&c.value.classList.remove("ql-bubble"),R.theme!=="snow"&&c.value.classList.remove("ql-snow"),(v=m.getModule("toolbar"))===null||v===void 0||v.container.addEventListener("mousedown",O=>{O.preventDefault()}),U.emit("ready",m)}},b=()=>{const v={};if(R.theme!==""&&(v.theme=R.theme),R.readOnly&&(v.readOnly=R.readOnly),R.placeholder&&(v.placeholder=R.placeholder),R.toolbar&&R.toolbar!==""&&(v.modules={toolbar:(()=>{if(typeof R.toolbar=="object")return R.toolbar;if(typeof R.toolbar=="string")return R.toolbar.charAt(0)==="#"?R.toolbar:$n[R.toolbar]})()}),R.modules){const O=(()=>{var k,L;const D={};if(Array.isArray(R.modules))for(const z of R.modules)D[z.name]=(k=z.options)!==null&&k!==void 0?k:{};else D[R.modules.name]=(L=R.modules.options)!==null&&L!==void 0?L:{};return D})();v.modules=Object.assign({},v.modules,O)}return Object.assign({},R.globalOptions,R.options,v)},_=v=>typeof v=="object"&&v?v.slice():v,y=v=>Object.values(v.ops).some(O=>!O.retain||Object.keys(O).length!==1);let g;const h=v=>{if(typeof g==typeof v){if(v===g)return!0;if(typeof v=="object"&&v&&typeof g=="object"&&g)return!y(g.diff(v))}return!1},o=(v,O,k)=>{g=_(i()),h(R.content)||U.emit("update:content",g),U.emit("textChange",{delta:v,oldContents:O,source:k})},t=Fn(),e=(v,O,k)=>{t.value=!!(m!=null&&m.hasFocus()),U.emit("selectionChange",{range:v,oldRange:O,source:k})};Ln(t,v=>{v?U.emit("focus",c):U.emit("blur",c)});const s=(...v)=>{v[0]==="text-change"&&U.emit("editorChange",{name:v[0],delta:v[1],oldContents:v[2],source:v[3]}),v[0]==="selection-change"&&U.emit("editorChange",{name:v[0],range:v[1],oldRange:v[2],source:v[3]})},l=()=>c.value,u=()=>{var v;return(v=m==null?void 0:m.getModule("toolbar"))===null||v===void 0?void 0:v.container},r=()=>{if(m)return m;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},i=(v,O)=>R.contentType==="html"?N():R.contentType==="text"?n(v,O):m==null?void 0:m.getContents(v,O),f=(v,O="api")=>{const k=v||(R.contentType==="delta"?new mr:"");R.contentType==="html"?w(k):R.contentType==="text"?d(k,O):m==null||m.setContents(k,O),g=_(k)},n=(v,O)=>{var k;return(k=m==null?void 0:m.getText(v,O))!==null&&k!==void 0?k:""},d=(v,O="api")=>{m==null||m.setText(v,O)},N=()=>{var v;return(v=m==null?void 0:m.root.innerHTML)!==null&&v!==void 0?v:""},w=v=>{m&&(m.root.innerHTML=v)},T=(v,O="api")=>{const k=m==null?void 0:m.clipboard.convert(v);k&&(m==null||m.setContents(k,O))},P=()=>{m==null||m.focus()},A=()=>{Un(()=>{var v;!U.slots.toolbar&&m&&((v=m.getModule("toolbar"))===null||v===void 0||v.container.remove()),E()})};return Ln(()=>R.content,v=>{if(!m||!v||h(v))return;const O=m.getSelection();O&&Un(()=>m==null?void 0:m.setSelection(O)),f(v)},{deep:!0}),Ln(()=>R.enable,v=>{m&&m.enable(v)}),{editor:c,getEditor:l,getToolbar:u,getQuill:r,getContents:i,setContents:f,getHTML:N,setHTML:w,pasteHTML:T,focus:P,getText:n,setText:d,reinit:A}},render(){var R,U;return[(U=(R=this.$slots).toolbar)===null||U===void 0?void 0:U.call(R),ir("div",{ref:"editor",...this.$attrs})]}});export{mr as Delta,qn as Quill,_r as QuillEditor}; -//# sourceMappingURL=vue-quill.esm-bundler.6a9f89f0.js.map +//# sourceMappingURL=vue-quill.esm-bundler.6724c38a.js.map diff --git a/abstra_statics/dist/assets/workspaceStore.a6063d10.js b/abstra_statics/dist/assets/workspaceStore.e47060bf.js similarity index 92% rename from abstra_statics/dist/assets/workspaceStore.a6063d10.js rename to abstra_statics/dist/assets/workspaceStore.e47060bf.js index 2f6d78d5d9..2b1e82a694 100644 --- a/abstra_statics/dist/assets/workspaceStore.a6063d10.js +++ b/abstra_statics/dist/assets/workspaceStore.e47060bf.js @@ -1,6 +1,6 @@ -var Xe=Object.defineProperty;var Ye=(e,t,s)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var $=(e,t,s)=>(Ye(e,typeof t!="symbol"?t+"":t,s),s);import{x as Ze,y as Re,e as te,z as xe,B as et,D as tt,g as st,E as rt,F as X,G as Ce,H as it,I as nt,J as ot,K as at,L as ct,f as J,N as lt,O as ut,Q as dt,h as ht,i as gt,_ as N,j as _t}from"./index.8c3f27aa.js";import{i as pt}from"./url.e93ecf3f.js";import{i as ft}from"./colorHelpers.0ac76147.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="957264d8-6467-4ce1-bc68-27576f27b301",e._sentryDebugIdIdentifier="sentry-dbid-957264d8-6467-4ce1-bc68-27576f27b301")}catch{}})();class K extends Error{}K.prototype.name="InvalidTokenError";function wt(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,s)=>{let r=s.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function mt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return wt(t)}catch{return atob(t)}}function St(e,t){if(typeof e!="string")throw new K("Invalid token specified: must be a string");t||(t={});const s=t.header===!0?0:1,r=e.split(".")[s];if(typeof r!="string")throw new K(`Invalid token specified: missing part #${s+1}`);let i;try{i=mt(r)}catch(n){throw new K(`Invalid token specified: invalid base64 for part #${s+1} (${n.message})`)}try{return JSON.parse(i)}catch(n){throw new K(`Invalid token specified: invalid json for part #${s+1} (${n.message})`)}}var vt={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},x,C,Y=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(Y||{});(e=>{function t(){x=3,C=vt}e.reset=t;function s(i){if(!(0<=i&&i<=4))throw new Error("Invalid log level");x=i}e.setLevel=s;function r(i){C=i}e.setLogger=r})(Y||(Y={}));var h=class R{constructor(t){this._name=t}debug(...t){x>=4&&C.debug(R._format(this._name,this._method),...t)}info(...t){x>=3&&C.info(R._format(this._name,this._method),...t)}warn(...t){x>=2&&C.warn(R._format(this._name,this._method),...t)}error(...t){x>=1&&C.error(R._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const r=new R(`${t}.${s}`);return r.debug("begin"),r}static _format(t,s){const r=`[${t}]`;return s?`${r} ${s}:`:r}static debug(t,...s){x>=4&&C.debug(R._format(t),...s)}static info(t,...s){x>=3&&C.info(R._format(t),...s)}static warn(t,...s){x>=2&&C.warn(R._format(t),...s)}static error(t,...s){x>=1&&C.error(R._format(t),...s)}};Y.reset();var yt="10000000-1000-4000-8000-100000000000",me=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),F=class z{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return yt.replace(/[018]/g,s=>(+s^z._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return z.generateUUIDv4()+z.generateUUIDv4()+z.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const r=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",r);return me(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw h.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const i=new TextEncoder().encode([t,s].join(":"));return me(i)}},q=class{constructor(e){this._name=e,this._logger=new h(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},ae=class{static decode(e){try{return St(e)}catch(t){throw h.error("JwtUtils.decode",t),t}}},Se=class{static center({...e}){var t,s,r;return e.width==null&&(e.width=(t=[800,720,600,480].find(i=>i<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((r=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},A=class G extends q{constructor(){super(...arguments),this._logger=new h(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-G.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=G.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const r=G.getEpochTime()+t;if(this.expiration===r&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=r;const i=Math.min(t,5);this._timerHandle=setInterval(this._callback,i*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},ce=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const r=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(r.slice(1))}},le=";",D=class extends Error{constructor(e,t){var s,r,i;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw h.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(r=e.error_uri)!=null?r:null,this.state=e.userState,this.session_state=(i=e.session_state)!=null?i:null,this.url_state=e.url_state}},pe=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},bt=class{constructor(e){this._logger=new h("AccessTokenEvents"),this._expiringTimer=new A("Access token expiring"),this._expiredTimer=new A("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let i=s-this._expiringNotificationTimeInSeconds;i<=0&&(i=1),t.debug("registering expiring timer, raising in",i,"seconds"),this._expiringTimer.init(i)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const r=s+1;t.debug("registering expired timer, raising in",r,"seconds"),this._expiredTimer.init(r)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},kt=class{constructor(e,t,s,r,i){this._callback=e,this._client_id=t,this._intervalInSeconds=r,this._stopOnError=i,this._logger=new h("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=o=>{o.origin===this._frame_origin&&o.source===this._frame.contentWindow&&(o.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):o.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(o.data+" message from check session op iframe"))};const n=new URL(s);this._frame_origin=n.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=n.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},Ue=class{constructor(){this._logger=new h("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},fe=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new h("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...r}=t;if(!s)return await fetch(e,r);const i=new AbortController,n=setTimeout(()=>i.abort(),s*1e3);try{return await fetch(e,{...t,signal:i.signal})}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new pe("Network timed out"):o}finally{clearTimeout(n)}}async getJson(e,{token:t,credentials:s}={}){const r=this._logger.create("getJson"),i={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),i.Authorization="Bearer "+t),this.appendExtraHeaders(i);let n;try{r.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:i,credentials:s})}catch(c){throw r.error("Network Error"),c}r.debug("HTTP response received, status",n.status);const o=n.headers.get("Content-Type");if(o&&!this._contentTypes.find(c=>o.startsWith(c))&&r.throw(new Error(`Invalid response Content-Type: ${o!=null?o:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(o==null?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let a;try{a=await n.json()}catch(c){throw r.error("Error parsing JSON response",c),n.ok?c:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw r.error("Error from server:",a),a.error?new D(a):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(a)}`);return a}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:r,initCredentials:i}){const n=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};s!==void 0&&(o.Authorization="Basic "+s),this.appendExtraHeaders(o);let a;try{n.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:r,credentials:i})}catch(d){throw n.error("Network error"),d}n.debug("HTTP response received, status",a.status);const c=a.headers.get("Content-Type");if(c&&!this._contentTypes.find(d=>c.startsWith(d)))throw new Error(`Invalid response Content-Type: ${c!=null?c:"undefined"}, from URL: ${e}`);const l=await a.text();let u={};if(l)try{u=JSON.parse(l)}catch(d){throw n.error("Error parsing JSON response",d),a.ok?d:new Error(`${a.statusText} (${a.status})`)}if(!a.ok)throw n.error("Error from server:",u),u.error?new D(u,t):new Error(`${a.statusText} (${a.status}): ${JSON.stringify(u)}`);return u}appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),r=["authorization","accept","content-type"];s.length!==0&&s.forEach(i=>{if(r.includes(i.toLocaleLowerCase())){t.warn("Protected header could not be overridden",i,r);return}const n=typeof this._extraHeaders[i]=="function"?this._extraHeaders[i]():this._extraHeaders[i];n&&n!==""&&(e[i]=n)})}},Et=class{constructor(e){this._settings=e,this._logger=new h("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new fe(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),r=await this.getMetadata();if(s.debug("resolved"),r[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return r[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t);if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},Pe=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new h("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s{const r=this._logger.create("_getClaimsFromJwt");try{const i=ae.decode(s);return r.debug("JWT decoding successful"),i}catch(i){throw r.error("Error parsing JWT response"),i}},this._jsonService=new fe(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const r=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",r),r}},Oe=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new h("TokenClient"),this._jsonService=new fe(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:r=this._settings.client_secret,...i}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),i.code||n.throw(new Error("A code is required"));const o=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[u,d]of Object.entries(i))d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(s,r);break;case"client_secret_post":o.append("client_id",s),r&&o.append("client_secret",r);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:r=this._settings.scope,...i}){const n=this._logger.create("exchangeCredentials");t||n.throw(new Error("A client_id is required"));const o=new URLSearchParams({grant_type:e,scope:r});for(const[u,d]of Object.entries(i))d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:r,...i}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),i.refresh_token||n.throw(new Error("A refresh_token is required"));const o=new URLSearchParams({grant_type:e});for(const[u,d]of Object.entries(i))Array.isArray(d)?d.forEach(p=>o.append(u,p)):d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,timeoutInSeconds:r,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const r=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const i=new URLSearchParams;for(const[n,o]of Object.entries(e))o!=null&&i.set(n,o);i.set("client_id",this._settings.client_id),this._settings.client_secret&&i.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(r,{body:i}),s.debug("got response")}},Ut=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new h("ResponseValidator"),this._userInfoService=new Ct(this._settings,this._metadataService),this._tokenClient=new Oe(this._settings,this._metadataService)}async validateSigninResponse(e,t){const s=this._logger.create("validateSigninResponse");this._processSigninState(e,t),s.debug("state processed"),await this._processCode(e,t),s.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),s.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse");e.isOpenId&&!!e.id_token&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,r;const i=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(r=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&!!e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),i.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const n=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,n),i.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new D(e)}_processSigninState(e,t){var s;const r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(new Error("State does not match")),t.client_id||r.throw(new Error("No client_id on state")),t.authority||r.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(new Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new D(e);t.code_verifier&&!e.code&&r.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const r=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){r.debug("not loading user info");return}r.debug("loading user info");const i=await this._userInfoService.getClaims(e.access_token);r.debug("user info claims received from user info endpoint"),s&&i.sub!==e.profile.sub&&r.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(i)),r.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){const s=this._logger.create("_processCode");if(e.code){s.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,r)}else s.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const r=this._logger.create("_validateIdTokenAttributes");r.debug("decoding ID Token JWT");const i=ae.decode((s=e.id_token)!=null?s:"");if(i.sub||r.throw(new Error("ID Token is missing a subject claim")),t){const n=ae.decode(t);i.sub!==n.sub&&r.throw(new Error("sub in id_token does not match current sub")),i.auth_time&&i.auth_time!==n.auth_time&&r.throw(new Error("auth_time in id_token does not match original auth_time")),i.azp&&i.azp!==n.azp&&r.throw(new Error("azp in id_token does not match original azp")),!i.azp&&n.azp&&r.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=i}},Z=class de{constructor(t){this.id=t.id||F.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=A.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new h("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return h.createStatic("State","fromStorageString"),Promise.resolve(new de(JSON.parse(t)))}static async clearStaleState(t,s){const r=h.createStatic("State","clearStaleState"),i=A.getEpochTime()-s,n=await t.getAllKeys();r.debug("got keys",n);for(let o=0;om.searchParams.append("resource",S));for(const[I,S]of Object.entries({response_mode:c,...P,...y}))S!=null&&m.searchParams.append(I,S.toString());return new je({url:m.href,state:k})}};Ne._logger=new h("SigninRequest");var Pt=Ne,Ot="openid",ne=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(le);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(le))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+A.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(Ot))||!!this.id_token}},At=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:r,extraQueryParams:i,request_type:n,client_id:o}){if(this._logger=new h("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);s&&a.searchParams.append("id_token_hint",s),o&&a.searchParams.append("client_id",o),r&&(a.searchParams.append("post_logout_redirect_uri",r),t&&(this.state=new Z({data:t,request_type:n}),a.searchParams.append("state",this.state.id)));for(const[c,l]of Object.entries({...i}))l!=null&&a.searchParams.append(c,l.toString());this.url=a.href}},Nt=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},jt=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],qt=["sub","iss","aud","exp","iat"],Mt=class{constructor(e){this._settings=e,this._logger=new h("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=jt;for(const r of s)qt.includes(r)||delete t[r]}return t}mergeClaims(e,t){const s={...e};for(const[r,i]of Object.entries(t))if(s[r]!==i)if(Array.isArray(s[r])||Array.isArray(i))if(this._settings.mergeClaimsStrategy.array=="replace")s[r]=i;else{const n=Array.isArray(s[r])?s[r]:[s[r]];for(const o of Array.isArray(i)?i:[i])n.includes(o)||n.push(o);s[r]=n}else typeof s[r]=="object"&&typeof i=="object"?s[r]=this.mergeClaims(s[r],i):s[r]=i;return s}},Ht=class{constructor(e,t){this._logger=new h("OidcClient"),this.settings=e instanceof ue?e:new ue(e),this.metadataService=t!=null?t:new Et(this.settings),this._claimsService=new Mt(this.settings),this._validator=new Ut(this.settings,this.metadataService,this._claimsService),this._tokenClient=new Oe(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:r,id_token_hint:i,login_hint:n,skipUserInfo:o,nonce:a,url_state:c,response_type:l=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:p=this.settings.prompt,display:f=this.settings.display,max_age:v=this.settings.max_age,ui_locales:y=this.settings.ui_locales,acr_values:b=this.settings.acr_values,resource:U=this.settings.resource,response_mode:P=this.settings.response_mode,extraQueryParams:k=this.settings.extraQueryParams,extraTokenParams:m=this.settings.extraTokenParams}){const w=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const I=await this.metadataService.getAuthorizationEndpoint();w.debug("Received authorization endpoint",I);const S=await Pt.create({url:I,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:l,scope:u,state_data:e,url_state:c,prompt:p,display:f,max_age:v,ui_locales:y,id_token_hint:i,login_hint:n,acr_values:b,resource:U,request:t,request_uri:s,extraQueryParams:k,extraTokenParams:m,request_type:r,response_mode:P,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:a,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();const g=S.state;return await this.settings.stateStore.set(g.id,g.toStorageString()),S}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),r=new ne(ce.readParams(e,this.settings.response_mode));if(!r.state)throw s.throw(new Error("No state in response")),null;const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Ae.fromStorageString(i),response:r}}async processSigninResponse(e){const t=this._logger.create("processSigninResponse"),{state:s,response:r}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(r,s),r}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:r={}}){const i=await this._tokenClient.exchangeCredentials({username:e,password:t,...r}),n=new ne(new URLSearchParams);return Object.assign(n,i),await this._validator.validateCredentialsResponse(n,s),n}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:r,extraTokenParams:i}){var n;const o=this._logger.create("useRefreshToken");let a;if(this.settings.refreshTokenAllowedScope===void 0)a=e.scope;else{const u=this.settings.refreshTokenAllowedScope.split(" ");a=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(p=>u.includes(p)).join(" ")}const c=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:s,timeoutInSeconds:r,...i}),l=new ne(new URLSearchParams);return Object.assign(l,c),o.debug("validating response",l),await this._validator.validateRefreshResponse(l,{...e,scope:a}),l}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:r,post_logout_redirect_uri:i=this.settings.post_logout_redirect_uri,extraQueryParams:n=this.settings.extraQueryParams}={}){const o=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw o.throw(new Error("No end session endpoint")),null;o.debug("Received end session endpoint",a),!s&&i&&!t&&(s=this.settings.client_id);const c=new At({url:a,id_token_hint:t,client_id:s,post_logout_redirect_uri:i,state_data:e,extraQueryParams:n,request_type:r});await this.clearStaleState();const l=c.state;return l&&(o.debug("Signout request has state to persist"),await this.settings.stateStore.set(l.id,l.toStorageString())),c}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),r=new Nt(ce.readParams(e,this.settings.response_mode));if(!r.state){if(s.debug("No state in response"),r.error)throw s.warn("Response was error:",r.error),new D(r);return{state:void 0,response:r}}const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Z.fromStorageString(i),response:r}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:r}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(r,s)):t.debug("No state from storage; skipping response validation"),r}clearStaleState(){return this._logger.create("clearStaleState"),Z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Lt=class{constructor(e){this._userManager=e,this._logger=new h("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const r=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,r.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,r.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const i=await this._userManager.metadataService.getCheckSessionIframe();if(i){r.debug("initializing check session iframe");const n=this._userManager.settings.client_id,o=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,c=new kt(this._callback,n,i,o,a);await c.load(),this._checkSessionIFrame=c,c.start(s)}else r.warn("no check session iframe found in the metadata")}catch(i){r.error("Error from getCheckSessionIframe:",i instanceof Error?i.message:i)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const r=await this._userManager.querySessionStatus();if(r){const i={session_state:r.session_state,profile:r.sub?{sub:r.sub}:null};this._start(i)}}catch(r){t.error("error from querySessionStatus",r instanceof Error?r.message:r)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let r=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(r=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),r?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},oe=class qe{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+A.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new h("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return h.createStatic("User","fromStorageString"),new qe(JSON.parse(t))}},ve="oidc-client",Me=class{constructor(){this._abort=new q("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:r}=await new Promise((i,n)=>{const o=a=>{var c;const l=a.data,u=(c=e.scriptOrigin)!=null?c:window.location.origin;if(!(a.origin!==u||(l==null?void 0:l.source)!==ve)){try{const d=ce.readParams(l.url,e.response_mode).get("state");if(d||t.warn("no state found in response url"),a.source!==this._window&&d!==e.state)return}catch{this._dispose(),n(new Error("Invalid response from window"))}i(l)}};window.addEventListener("message",o,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",o,!1)),this._disposeHandlers.add(this._abort.addHandler(a=>{this._dispose(),n(a)}))});return t.debug("got response from window"),this._dispose(),r||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,r=window.location.origin){e.postMessage({source:ve,url:t,keepOpen:s},r)}},He={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Le="_blank",Dt=60,Wt=2,De=10,Ft=class extends ue{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:r=He,popupWindowTarget:i=Le,redirectMethod:n="assign",redirectTarget:o="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,silent_redirect_uri:l=e.redirect_uri,silentRequestTimeoutInSeconds:u=De,automaticSilentRenew:d=!0,validateSubOnSilentRenew:p=!0,includeIdTokenInSilentRenew:f=!1,monitorSession:v=!1,monitorAnonymousSession:y=!1,checkSessionIntervalInSeconds:b=Wt,query_status_response_type:U="code",stopCheckSessionOnError:P=!0,revokeTokenTypes:k=["access_token","refresh_token"],revokeTokensOnSignout:m=!1,includeIdTokenInSilentSignout:w=!1,accessTokenExpiringNotificationTimeInSeconds:I=Dt,userStore:S}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=r,this.popupWindowTarget=i,this.redirectMethod=n,this.redirectTarget=o,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=c,this.silent_redirect_uri=l,this.silentRequestTimeoutInSeconds=u,this.automaticSilentRenew=d,this.validateSubOnSilentRenew=p,this.includeIdTokenInSilentRenew=f,this.monitorSession=v,this.monitorAnonymousSession=y,this.checkSessionIntervalInSeconds=b,this.stopCheckSessionOnError=P,this.query_status_response_type=U,this.revokeTokenTypes=k,this.revokeTokensOnSignout=m,this.includeIdTokenInSilentSignout=w,this.accessTokenExpiringNotificationTimeInSeconds=I,S)this.userStore=S;else{const g=typeof window<"u"?window.sessionStorage:new Ue;this.userStore=new Pe({store:g})}}},ye=class We extends Me{constructor({silentRequestTimeoutInSeconds:t=De}){super(),this._logger=new h("IFrameWindow"),this._timeoutInSeconds=t,this._frame=We.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new pe("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var r;const i=s.target;(r=i.parentNode)==null||r.removeChild(i),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},$t=class{constructor(e){this._settings=e,this._logger=new h("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new ye({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),ye.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Jt=500,Kt=1e3,be=class extends Me{constructor({popupWindowTarget:e=Le,popupWindowFeatures:t={}}){super(),this._logger=new h("PopupWindow");const s=Se.center({...He,...t});this._window=window.open(void 0,e,Se.serialize(s)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*Kt)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},Jt);return this._disposeHandlers.add(()=>clearInterval(s)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},zt=class{constructor(e){this._settings=e,this._logger=new h("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new be({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),be.notifyOpener(e,t)}},Vt=class{constructor(e){this._settings=e,this._logger=new h("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let r=window.self;t==="top"&&(r=(s=window.top)!=null?s:window.self);const i=r.location[e].bind(r.location);let n;return{navigate:async o=>{this._logger.create("navigate");const a=new Promise((c,l)=>{n=l});return i(o.url),await a},close:()=>{this._logger.create("close"),n==null||n(new Error("Redirect aborted")),r.stop()}}}async callback(){}},Bt=class extends bt{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new h("UserManagerEvents"),this._userLoaded=new q("User loaded"),this._userUnloaded=new q("User unloaded"),this._silentRenewError=new q("Silent renew error"),this._userSignedIn=new q("User signed in"),this._userSignedOut=new q("User signed out"),this._userSessionChanged=new q("User session changed")}async load(e,t=!0){super.load(e),t&&await this._userLoaded.raise(e)}async unload(){super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},Gt=class{constructor(e){this._userManager=e,this._logger=new h("SilentRenewService"),this._isStarted=!1,this._retryTimer=new A("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof pe){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},Qt=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},Xt=class{constructor(e,t,s,r){this._logger=new h("UserManager"),this.settings=new Ft(e),this._client=new Ht(e),this._redirectNavigator=t!=null?t:new Vt(this.settings),this._popupNavigator=s!=null?s:new zt(this.settings),this._iframeNavigator=r!=null?r:new $t(this.settings),this._events=new Bt(this.settings),this._silentRenewService=new Gt(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Lt(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){const e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),await this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");const{redirectMethod:t,...s}=e,r=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...s},r)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const r=this._logger.create("signinResourceOwnerCredential"),i=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});r.debug("got signin response");const n=await this._buildUser(i);return n.profile&&n.profile.sub?r.info("success, signed in subject",n.profile.sub):r.info("no subject"),n}async signinPopup(e={}){const t=this._logger.create("signinPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_redirect_uri;n||t.throw(new Error("No popup_redirect_uri configured"));const o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r}),a=await this._signin({request_type:"si:p",redirect_uri:n,display:"popup",...i},o);return a&&(a.profile&&a.profile.sub?t.info("success, signed in subject",a.profile.sub):t.info("no subject")),a}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t;const s=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...i}=e;let n=await this._loadUser();if(n!=null&&n.refresh_token){s.debug("using refresh token");const l=new Qt(n);return await this._useRefreshToken({state:l,redirect_uri:i.redirect_uri,resource:i.resource,extraTokenParams:i.extraTokenParams,timeoutInSeconds:r})}const o=this.settings.silent_redirect_uri;o||s.throw(new Error("No silent_redirect_uri configured"));let a;n&&this.settings.validateSubOnSilentRenew&&(s.debug("subject prior to silent renew:",n.profile.sub),a=n.profile.sub);const c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return n=await this._signin({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,...i},c,a),n&&((t=n.profile)!=null&&t.sub?s.info("success, signed in subject",n.profile.sub):s.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({...e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),s=new oe({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(!!s)switch(s.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...r}=e,i=this.settings.silent_redirect_uri;i||t.throw(new Error("No silent_redirect_uri configured"));const n=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),a=await this._signinStart({request_type:"si:s",redirect_uri:i,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...r},o);try{const c=await this._client.processSigninResponse(a.url);return t.debug("got signin response"),c.session_state&&c.profile.sub?(t.info("success for subject",c.profile.sub),{session_state:c.session_state,sub:c.profile.sub}):(t.info("success, user not authenticated"),null)}catch(c){if(this.settings.monitorAnonymousSession&&c instanceof D)switch(c.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:c.session_state}}throw c}}async _signin(e,t,s){const r=await this._signinStart(e,t);return await this._signinEnd(r.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const r=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:r.url,state:r.state.id,response_mode:r.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),r=await this._client.processSigninResponse(e);return s.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),r=new oe(e);if(t){if(t!==r.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",r.profile.sub),new D({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(r),s.debug("user stored"),await this._events.load(r),r}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...r},i),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_post_logout_redirect_uri,o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...i},o),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const r=this._logger.create("_signoutStart");try{const i=await this._loadUser();r.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(i);const n=e.id_token_hint||i&&i.id_token;n&&(r.debug("setting id_token_hint in signout request"),e.id_token_hint=n),await this.removeUser(),r.debug("user removed, creating signout request");const o=await this._client.createSignoutRequest(e);return r.debug("got signout request"),await t.navigate({url:o.url,state:(s=o.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,o=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});await this._signout({request_type:"so:s",post_logout_redirect_uri:o,id_token_hint:n,...i},a),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const r=t.filter(i=>typeof e[i]=="string");if(!r.length){s.debug("no need to revoke due to no token(s)");return}for(const i of r)await this._client.revokeToken(e[i],i),s.info(`${i} revoked successfully`),i!=="access_token"&&(e[i]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),oe.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}};class ws{async authenticate(t){try{const s=await fetch("/_auth/authenticate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t})});if(!s.ok)throw new Error(await s.text());return null}catch(s){return s instanceof Error?s.message:"Error authenticating user"}}async verify(t,s){const r=await fetch("/_auth/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,token:s})});if(!r.ok){if(r.status==410)throw new Error("expired");return null}return(await r.json()).jwt}}const B=class{constructor(){$(this,"oidcUserManager");if(!B.isConfigured())throw new Error("OIDCUserProvider is not configured");const t={authority:B.authority,client_id:B.clientID,redirect_uri:window.location.origin+"/oidc-login-callback"};this.oidcUserManager=new Xt(t)}static init(t,s){this.clientID=t,this.authority=s}static isConfigured(){return!!this.clientID&&!!this.authority}async login(){const t=await this.oidcUserManager.signinPopup({scope:"openid profile email"}),s=await fetch("/_auth/oidc-verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({access_token:t.access_token})});return s.ok?(await s.json()).jwt:null}async loginCallback(){await this.oidcUserManager.signinPopupCallback()}async logout(){await this.oidcUserManager.signoutPopup({post_logout_redirect_uri:window.location.origin+"/oidc-logout-callback"})}async logoutCallback(){await this.oidcUserManager.signoutPopupCallback()}};let L=B;$(L,"clientID",null),$(L,"authority",null);const ms=async()=>{L.isConfigured()&&new L().logout().catch(Ze)};async function Ss(){const e=await fetch("/_settings");if(!e.ok)throw new Error(await e.text());const t=await e.json();Q.init(t)}const ee=class{constructor(t){this.config=t}static init(t){L.init(t.oidc_client_id,t.oidc_authority),ee.instance=new ee(t)}get showWatermark(){return this.config.show_watermark}get isStagingRelease(){return{}.VITE_ABSTRA_RELEASE==="staging"}get isLocal(){return location.origin.match(/http:\/\/localhost:\d+/)}};let Q=ee;$(Q,"instance",null);var Yt=!1;/*! +var Xe=Object.defineProperty;var Ye=(e,t,s)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var $=(e,t,s)=>(Ye(e,typeof t!="symbol"?t+"":t,s),s);import{x as Ze,y as Re,e as te,z as xe,B as et,D as tt,g as st,E as rt,F as X,G as Ce,H as it,I as nt,J as ot,K as at,L as ct,f as J,N as lt,O as ut,Q as dt,h as ht,i as gt,_ as N,j as _t}from"./index.d0f12294.js";import{i as pt}from"./url.121c9984.js";import{i as ft}from"./colorHelpers.b079bb04.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62c6edee-7c1e-4f5c-9e33-40a56ecb1b59",e._sentryDebugIdIdentifier="sentry-dbid-62c6edee-7c1e-4f5c-9e33-40a56ecb1b59")}catch{}})();class K extends Error{}K.prototype.name="InvalidTokenError";function wt(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,s)=>{let r=s.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function mt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return wt(t)}catch{return atob(t)}}function St(e,t){if(typeof e!="string")throw new K("Invalid token specified: must be a string");t||(t={});const s=t.header===!0?0:1,r=e.split(".")[s];if(typeof r!="string")throw new K(`Invalid token specified: missing part #${s+1}`);let i;try{i=mt(r)}catch(n){throw new K(`Invalid token specified: invalid base64 for part #${s+1} (${n.message})`)}try{return JSON.parse(i)}catch(n){throw new K(`Invalid token specified: invalid json for part #${s+1} (${n.message})`)}}var vt={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},x,C,Y=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(Y||{});(e=>{function t(){x=3,C=vt}e.reset=t;function s(i){if(!(0<=i&&i<=4))throw new Error("Invalid log level");x=i}e.setLevel=s;function r(i){C=i}e.setLogger=r})(Y||(Y={}));var h=class R{constructor(t){this._name=t}debug(...t){x>=4&&C.debug(R._format(this._name,this._method),...t)}info(...t){x>=3&&C.info(R._format(this._name,this._method),...t)}warn(...t){x>=2&&C.warn(R._format(this._name,this._method),...t)}error(...t){x>=1&&C.error(R._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const r=new R(`${t}.${s}`);return r.debug("begin"),r}static _format(t,s){const r=`[${t}]`;return s?`${r} ${s}:`:r}static debug(t,...s){x>=4&&C.debug(R._format(t),...s)}static info(t,...s){x>=3&&C.info(R._format(t),...s)}static warn(t,...s){x>=2&&C.warn(R._format(t),...s)}static error(t,...s){x>=1&&C.error(R._format(t),...s)}};Y.reset();var yt="10000000-1000-4000-8000-100000000000",me=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),F=class z{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return yt.replace(/[018]/g,s=>(+s^z._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return z.generateUUIDv4()+z.generateUUIDv4()+z.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const r=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",r);return me(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw h.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const i=new TextEncoder().encode([t,s].join(":"));return me(i)}},q=class{constructor(e){this._name=e,this._logger=new h(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},ae=class{static decode(e){try{return St(e)}catch(t){throw h.error("JwtUtils.decode",t),t}}},Se=class{static center({...e}){var t,s,r;return e.width==null&&(e.width=(t=[800,720,600,480].find(i=>i<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((r=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},A=class G extends q{constructor(){super(...arguments),this._logger=new h(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-G.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=G.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const r=G.getEpochTime()+t;if(this.expiration===r&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=r;const i=Math.min(t,5);this._timerHandle=setInterval(this._callback,i*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},ce=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const r=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(r.slice(1))}},le=";",D=class extends Error{constructor(e,t){var s,r,i;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw h.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(r=e.error_uri)!=null?r:null,this.state=e.userState,this.session_state=(i=e.session_state)!=null?i:null,this.url_state=e.url_state}},pe=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},bt=class{constructor(e){this._logger=new h("AccessTokenEvents"),this._expiringTimer=new A("Access token expiring"),this._expiredTimer=new A("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let i=s-this._expiringNotificationTimeInSeconds;i<=0&&(i=1),t.debug("registering expiring timer, raising in",i,"seconds"),this._expiringTimer.init(i)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const r=s+1;t.debug("registering expired timer, raising in",r,"seconds"),this._expiredTimer.init(r)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},kt=class{constructor(e,t,s,r,i){this._callback=e,this._client_id=t,this._intervalInSeconds=r,this._stopOnError=i,this._logger=new h("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=o=>{o.origin===this._frame_origin&&o.source===this._frame.contentWindow&&(o.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):o.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(o.data+" message from check session op iframe"))};const n=new URL(s);this._frame_origin=n.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=n.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},Ue=class{constructor(){this._logger=new h("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},fe=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new h("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...r}=t;if(!s)return await fetch(e,r);const i=new AbortController,n=setTimeout(()=>i.abort(),s*1e3);try{return await fetch(e,{...t,signal:i.signal})}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new pe("Network timed out"):o}finally{clearTimeout(n)}}async getJson(e,{token:t,credentials:s}={}){const r=this._logger.create("getJson"),i={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),i.Authorization="Bearer "+t),this.appendExtraHeaders(i);let n;try{r.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:i,credentials:s})}catch(c){throw r.error("Network Error"),c}r.debug("HTTP response received, status",n.status);const o=n.headers.get("Content-Type");if(o&&!this._contentTypes.find(c=>o.startsWith(c))&&r.throw(new Error(`Invalid response Content-Type: ${o!=null?o:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(o==null?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let a;try{a=await n.json()}catch(c){throw r.error("Error parsing JSON response",c),n.ok?c:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw r.error("Error from server:",a),a.error?new D(a):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(a)}`);return a}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:r,initCredentials:i}){const n=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};s!==void 0&&(o.Authorization="Basic "+s),this.appendExtraHeaders(o);let a;try{n.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:r,credentials:i})}catch(d){throw n.error("Network error"),d}n.debug("HTTP response received, status",a.status);const c=a.headers.get("Content-Type");if(c&&!this._contentTypes.find(d=>c.startsWith(d)))throw new Error(`Invalid response Content-Type: ${c!=null?c:"undefined"}, from URL: ${e}`);const l=await a.text();let u={};if(l)try{u=JSON.parse(l)}catch(d){throw n.error("Error parsing JSON response",d),a.ok?d:new Error(`${a.statusText} (${a.status})`)}if(!a.ok)throw n.error("Error from server:",u),u.error?new D(u,t):new Error(`${a.statusText} (${a.status}): ${JSON.stringify(u)}`);return u}appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),r=["authorization","accept","content-type"];s.length!==0&&s.forEach(i=>{if(r.includes(i.toLocaleLowerCase())){t.warn("Protected header could not be overridden",i,r);return}const n=typeof this._extraHeaders[i]=="function"?this._extraHeaders[i]():this._extraHeaders[i];n&&n!==""&&(e[i]=n)})}},Et=class{constructor(e){this._settings=e,this._logger=new h("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new fe(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),r=await this.getMetadata();if(s.debug("resolved"),r[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return r[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t);if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},Pe=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new h("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s{const r=this._logger.create("_getClaimsFromJwt");try{const i=ae.decode(s);return r.debug("JWT decoding successful"),i}catch(i){throw r.error("Error parsing JWT response"),i}},this._jsonService=new fe(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const r=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",r),r}},Oe=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new h("TokenClient"),this._jsonService=new fe(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:r=this._settings.client_secret,...i}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),i.code||n.throw(new Error("A code is required"));const o=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[u,d]of Object.entries(i))d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(s,r);break;case"client_secret_post":o.append("client_id",s),r&&o.append("client_secret",r);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:r=this._settings.scope,...i}){const n=this._logger.create("exchangeCredentials");t||n.throw(new Error("A client_id is required"));const o=new URLSearchParams({grant_type:e,scope:r});for(const[u,d]of Object.entries(i))d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:r,...i}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),i.refresh_token||n.throw(new Error("A refresh_token is required"));const o=new URLSearchParams({grant_type:e});for(const[u,d]of Object.entries(i))Array.isArray(d)?d.forEach(p=>o.append(u,p)):d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;a=F.generateBasicAuth(t,s);break;case"client_secret_post":o.append("client_id",t),s&&o.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:o,basicAuth:a,timeoutInSeconds:r,initCredentials:this._settings.fetchRequestCredentials});return n.debug("got response"),l}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const r=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const i=new URLSearchParams;for(const[n,o]of Object.entries(e))o!=null&&i.set(n,o);i.set("client_id",this._settings.client_id),this._settings.client_secret&&i.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(r,{body:i}),s.debug("got response")}},Ut=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new h("ResponseValidator"),this._userInfoService=new Ct(this._settings,this._metadataService),this._tokenClient=new Oe(this._settings,this._metadataService)}async validateSigninResponse(e,t){const s=this._logger.create("validateSigninResponse");this._processSigninState(e,t),s.debug("state processed"),await this._processCode(e,t),s.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),s.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse");e.isOpenId&&!!e.id_token&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,r;const i=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(r=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&!!e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),i.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const n=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,n),i.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new D(e)}_processSigninState(e,t){var s;const r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(new Error("State does not match")),t.client_id||r.throw(new Error("No client_id on state")),t.authority||r.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(new Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new D(e);t.code_verifier&&!e.code&&r.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const r=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){r.debug("not loading user info");return}r.debug("loading user info");const i=await this._userInfoService.getClaims(e.access_token);r.debug("user info claims received from user info endpoint"),s&&i.sub!==e.profile.sub&&r.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(i)),r.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){const s=this._logger.create("_processCode");if(e.code){s.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,r)}else s.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const r=this._logger.create("_validateIdTokenAttributes");r.debug("decoding ID Token JWT");const i=ae.decode((s=e.id_token)!=null?s:"");if(i.sub||r.throw(new Error("ID Token is missing a subject claim")),t){const n=ae.decode(t);i.sub!==n.sub&&r.throw(new Error("sub in id_token does not match current sub")),i.auth_time&&i.auth_time!==n.auth_time&&r.throw(new Error("auth_time in id_token does not match original auth_time")),i.azp&&i.azp!==n.azp&&r.throw(new Error("azp in id_token does not match original azp")),!i.azp&&n.azp&&r.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=i}},Z=class de{constructor(t){this.id=t.id||F.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=A.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new h("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return h.createStatic("State","fromStorageString"),Promise.resolve(new de(JSON.parse(t)))}static async clearStaleState(t,s){const r=h.createStatic("State","clearStaleState"),i=A.getEpochTime()-s,n=await t.getAllKeys();r.debug("got keys",n);for(let o=0;om.searchParams.append("resource",S));for(const[I,S]of Object.entries({response_mode:c,...P,...y}))S!=null&&m.searchParams.append(I,S.toString());return new je({url:m.href,state:k})}};Ne._logger=new h("SigninRequest");var Pt=Ne,Ot="openid",ne=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(le);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(le))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+A.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(Ot))||!!this.id_token}},At=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:r,extraQueryParams:i,request_type:n,client_id:o}){if(this._logger=new h("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);s&&a.searchParams.append("id_token_hint",s),o&&a.searchParams.append("client_id",o),r&&(a.searchParams.append("post_logout_redirect_uri",r),t&&(this.state=new Z({data:t,request_type:n}),a.searchParams.append("state",this.state.id)));for(const[c,l]of Object.entries({...i}))l!=null&&a.searchParams.append(c,l.toString());this.url=a.href}},Nt=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},jt=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],qt=["sub","iss","aud","exp","iat"],Mt=class{constructor(e){this._settings=e,this._logger=new h("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=jt;for(const r of s)qt.includes(r)||delete t[r]}return t}mergeClaims(e,t){const s={...e};for(const[r,i]of Object.entries(t))if(s[r]!==i)if(Array.isArray(s[r])||Array.isArray(i))if(this._settings.mergeClaimsStrategy.array=="replace")s[r]=i;else{const n=Array.isArray(s[r])?s[r]:[s[r]];for(const o of Array.isArray(i)?i:[i])n.includes(o)||n.push(o);s[r]=n}else typeof s[r]=="object"&&typeof i=="object"?s[r]=this.mergeClaims(s[r],i):s[r]=i;return s}},Ht=class{constructor(e,t){this._logger=new h("OidcClient"),this.settings=e instanceof ue?e:new ue(e),this.metadataService=t!=null?t:new Et(this.settings),this._claimsService=new Mt(this.settings),this._validator=new Ut(this.settings,this.metadataService,this._claimsService),this._tokenClient=new Oe(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:r,id_token_hint:i,login_hint:n,skipUserInfo:o,nonce:a,url_state:c,response_type:l=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:p=this.settings.prompt,display:f=this.settings.display,max_age:v=this.settings.max_age,ui_locales:y=this.settings.ui_locales,acr_values:b=this.settings.acr_values,resource:U=this.settings.resource,response_mode:P=this.settings.response_mode,extraQueryParams:k=this.settings.extraQueryParams,extraTokenParams:m=this.settings.extraTokenParams}){const w=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const I=await this.metadataService.getAuthorizationEndpoint();w.debug("Received authorization endpoint",I);const S=await Pt.create({url:I,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:l,scope:u,state_data:e,url_state:c,prompt:p,display:f,max_age:v,ui_locales:y,id_token_hint:i,login_hint:n,acr_values:b,resource:U,request:t,request_uri:s,extraQueryParams:k,extraTokenParams:m,request_type:r,response_mode:P,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:a,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();const g=S.state;return await this.settings.stateStore.set(g.id,g.toStorageString()),S}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),r=new ne(ce.readParams(e,this.settings.response_mode));if(!r.state)throw s.throw(new Error("No state in response")),null;const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Ae.fromStorageString(i),response:r}}async processSigninResponse(e){const t=this._logger.create("processSigninResponse"),{state:s,response:r}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(r,s),r}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:r={}}){const i=await this._tokenClient.exchangeCredentials({username:e,password:t,...r}),n=new ne(new URLSearchParams);return Object.assign(n,i),await this._validator.validateCredentialsResponse(n,s),n}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:r,extraTokenParams:i}){var n;const o=this._logger.create("useRefreshToken");let a;if(this.settings.refreshTokenAllowedScope===void 0)a=e.scope;else{const u=this.settings.refreshTokenAllowedScope.split(" ");a=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(p=>u.includes(p)).join(" ")}const c=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:s,timeoutInSeconds:r,...i}),l=new ne(new URLSearchParams);return Object.assign(l,c),o.debug("validating response",l),await this._validator.validateRefreshResponse(l,{...e,scope:a}),l}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:r,post_logout_redirect_uri:i=this.settings.post_logout_redirect_uri,extraQueryParams:n=this.settings.extraQueryParams}={}){const o=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw o.throw(new Error("No end session endpoint")),null;o.debug("Received end session endpoint",a),!s&&i&&!t&&(s=this.settings.client_id);const c=new At({url:a,id_token_hint:t,client_id:s,post_logout_redirect_uri:i,state_data:e,extraQueryParams:n,request_type:r});await this.clearStaleState();const l=c.state;return l&&(o.debug("Signout request has state to persist"),await this.settings.stateStore.set(l.id,l.toStorageString())),c}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),r=new Nt(ce.readParams(e,this.settings.response_mode));if(!r.state){if(s.debug("No state in response"),r.error)throw s.warn("Response was error:",r.error),new D(r);return{state:void 0,response:r}}const i=await this.settings.stateStore[t?"remove":"get"](r.state);if(!i)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Z.fromStorageString(i),response:r}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:r}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(r,s)):t.debug("No state from storage; skipping response validation"),r}clearStaleState(){return this._logger.create("clearStaleState"),Z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Lt=class{constructor(e){this._userManager=e,this._logger=new h("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const r=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,r.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,r.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const i=await this._userManager.metadataService.getCheckSessionIframe();if(i){r.debug("initializing check session iframe");const n=this._userManager.settings.client_id,o=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,c=new kt(this._callback,n,i,o,a);await c.load(),this._checkSessionIFrame=c,c.start(s)}else r.warn("no check session iframe found in the metadata")}catch(i){r.error("Error from getCheckSessionIframe:",i instanceof Error?i.message:i)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const r=await this._userManager.querySessionStatus();if(r){const i={session_state:r.session_state,profile:r.sub?{sub:r.sub}:null};this._start(i)}}catch(r){t.error("error from querySessionStatus",r instanceof Error?r.message:r)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let r=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(r=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),r?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},oe=class qe{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-A.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+A.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new h("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return h.createStatic("User","fromStorageString"),new qe(JSON.parse(t))}},ve="oidc-client",Me=class{constructor(){this._abort=new q("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:r}=await new Promise((i,n)=>{const o=a=>{var c;const l=a.data,u=(c=e.scriptOrigin)!=null?c:window.location.origin;if(!(a.origin!==u||(l==null?void 0:l.source)!==ve)){try{const d=ce.readParams(l.url,e.response_mode).get("state");if(d||t.warn("no state found in response url"),a.source!==this._window&&d!==e.state)return}catch{this._dispose(),n(new Error("Invalid response from window"))}i(l)}};window.addEventListener("message",o,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",o,!1)),this._disposeHandlers.add(this._abort.addHandler(a=>{this._dispose(),n(a)}))});return t.debug("got response from window"),this._dispose(),r||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,r=window.location.origin){e.postMessage({source:ve,url:t,keepOpen:s},r)}},He={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Le="_blank",Dt=60,Wt=2,De=10,Ft=class extends ue{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:r=He,popupWindowTarget:i=Le,redirectMethod:n="assign",redirectTarget:o="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,silent_redirect_uri:l=e.redirect_uri,silentRequestTimeoutInSeconds:u=De,automaticSilentRenew:d=!0,validateSubOnSilentRenew:p=!0,includeIdTokenInSilentRenew:f=!1,monitorSession:v=!1,monitorAnonymousSession:y=!1,checkSessionIntervalInSeconds:b=Wt,query_status_response_type:U="code",stopCheckSessionOnError:P=!0,revokeTokenTypes:k=["access_token","refresh_token"],revokeTokensOnSignout:m=!1,includeIdTokenInSilentSignout:w=!1,accessTokenExpiringNotificationTimeInSeconds:I=Dt,userStore:S}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=r,this.popupWindowTarget=i,this.redirectMethod=n,this.redirectTarget=o,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=c,this.silent_redirect_uri=l,this.silentRequestTimeoutInSeconds=u,this.automaticSilentRenew=d,this.validateSubOnSilentRenew=p,this.includeIdTokenInSilentRenew=f,this.monitorSession=v,this.monitorAnonymousSession=y,this.checkSessionIntervalInSeconds=b,this.stopCheckSessionOnError=P,this.query_status_response_type=U,this.revokeTokenTypes=k,this.revokeTokensOnSignout=m,this.includeIdTokenInSilentSignout=w,this.accessTokenExpiringNotificationTimeInSeconds=I,S)this.userStore=S;else{const g=typeof window<"u"?window.sessionStorage:new Ue;this.userStore=new Pe({store:g})}}},ye=class We extends Me{constructor({silentRequestTimeoutInSeconds:t=De}){super(),this._logger=new h("IFrameWindow"),this._timeoutInSeconds=t,this._frame=We.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new pe("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var r;const i=s.target;(r=i.parentNode)==null||r.removeChild(i),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},$t=class{constructor(e){this._settings=e,this._logger=new h("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new ye({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),ye.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Jt=500,Kt=1e3,be=class extends Me{constructor({popupWindowTarget:e=Le,popupWindowFeatures:t={}}){super(),this._logger=new h("PopupWindow");const s=Se.center({...He,...t});this._window=window.open(void 0,e,Se.serialize(s)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*Kt)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},Jt);return this._disposeHandlers.add(()=>clearInterval(s)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},zt=class{constructor(e){this._settings=e,this._logger=new h("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new be({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),be.notifyOpener(e,t)}},Vt=class{constructor(e){this._settings=e,this._logger=new h("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let r=window.self;t==="top"&&(r=(s=window.top)!=null?s:window.self);const i=r.location[e].bind(r.location);let n;return{navigate:async o=>{this._logger.create("navigate");const a=new Promise((c,l)=>{n=l});return i(o.url),await a},close:()=>{this._logger.create("close"),n==null||n(new Error("Redirect aborted")),r.stop()}}}async callback(){}},Bt=class extends bt{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new h("UserManagerEvents"),this._userLoaded=new q("User loaded"),this._userUnloaded=new q("User unloaded"),this._silentRenewError=new q("Silent renew error"),this._userSignedIn=new q("User signed in"),this._userSignedOut=new q("User signed out"),this._userSessionChanged=new q("User session changed")}async load(e,t=!0){super.load(e),t&&await this._userLoaded.raise(e)}async unload(){super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},Gt=class{constructor(e){this._userManager=e,this._logger=new h("SilentRenewService"),this._isStarted=!1,this._retryTimer=new A("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof pe){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},Qt=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},Xt=class{constructor(e,t,s,r){this._logger=new h("UserManager"),this.settings=new Ft(e),this._client=new Ht(e),this._redirectNavigator=t!=null?t:new Vt(this.settings),this._popupNavigator=s!=null?s:new zt(this.settings),this._iframeNavigator=r!=null?r:new $t(this.settings),this._events=new Bt(this.settings),this._silentRenewService=new Gt(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Lt(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){const e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),await this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");const{redirectMethod:t,...s}=e,r=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...s},r)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const r=this._logger.create("signinResourceOwnerCredential"),i=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});r.debug("got signin response");const n=await this._buildUser(i);return n.profile&&n.profile.sub?r.info("success, signed in subject",n.profile.sub):r.info("no subject"),n}async signinPopup(e={}){const t=this._logger.create("signinPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_redirect_uri;n||t.throw(new Error("No popup_redirect_uri configured"));const o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r}),a=await this._signin({request_type:"si:p",redirect_uri:n,display:"popup",...i},o);return a&&(a.profile&&a.profile.sub?t.info("success, signed in subject",a.profile.sub):t.info("no subject")),a}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t;const s=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...i}=e;let n=await this._loadUser();if(n!=null&&n.refresh_token){s.debug("using refresh token");const l=new Qt(n);return await this._useRefreshToken({state:l,redirect_uri:i.redirect_uri,resource:i.resource,extraTokenParams:i.extraTokenParams,timeoutInSeconds:r})}const o=this.settings.silent_redirect_uri;o||s.throw(new Error("No silent_redirect_uri configured"));let a;n&&this.settings.validateSubOnSilentRenew&&(s.debug("subject prior to silent renew:",n.profile.sub),a=n.profile.sub);const c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return n=await this._signin({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,...i},c,a),n&&((t=n.profile)!=null&&t.sub?s.info("success, signed in subject",n.profile.sub):s.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({...e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),s=new oe({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(!!s)switch(s.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...r}=e,i=this.settings.silent_redirect_uri;i||t.throw(new Error("No silent_redirect_uri configured"));const n=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),a=await this._signinStart({request_type:"si:s",redirect_uri:i,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...r},o);try{const c=await this._client.processSigninResponse(a.url);return t.debug("got signin response"),c.session_state&&c.profile.sub?(t.info("success for subject",c.profile.sub),{session_state:c.session_state,sub:c.profile.sub}):(t.info("success, user not authenticated"),null)}catch(c){if(this.settings.monitorAnonymousSession&&c instanceof D)switch(c.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:c.session_state}}throw c}}async _signin(e,t,s){const r=await this._signinStart(e,t);return await this._signinEnd(r.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const r=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:r.url,state:r.state.id,response_mode:r.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),r=await this._client.processSigninResponse(e);return s.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),r=new oe(e);if(t){if(t!==r.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",r.profile.sub),new D({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(r),s.debug("user stored"),await this._events.load(r),r}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...r},i),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:r,...i}=e,n=this.settings.popup_post_logout_redirect_uri,o=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...i},o),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const r=this._logger.create("_signoutStart");try{const i=await this._loadUser();r.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(i);const n=e.id_token_hint||i&&i.id_token;n&&(r.debug("setting id_token_hint in signout request"),e.id_token_hint=n),await this.removeUser(),r.debug("user removed, creating signout request");const o=await this._client.createSignoutRequest(e);return r.debug("got signout request"),await t.navigate({url:o.url,state:(s=o.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,o=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});await this._signout({request_type:"so:s",post_logout_redirect_uri:o,id_token_hint:n,...i},a),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const r=t.filter(i=>typeof e[i]=="string");if(!r.length){s.debug("no need to revoke due to no token(s)");return}for(const i of r)await this._client.revokeToken(e[i],i),s.info(`${i} revoked successfully`),i!=="access_token"&&(e[i]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),oe.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}};class ws{async authenticate(t){try{const s=await fetch("/_auth/authenticate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t})});if(!s.ok)throw new Error(await s.text());return null}catch(s){return s instanceof Error?s.message:"Error authenticating user"}}async verify(t,s){const r=await fetch("/_auth/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,token:s})});if(!r.ok){if(r.status==410)throw new Error("expired");return null}return(await r.json()).jwt}}const B=class{constructor(){$(this,"oidcUserManager");if(!B.isConfigured())throw new Error("OIDCUserProvider is not configured");const t={authority:B.authority,client_id:B.clientID,redirect_uri:window.location.origin+"/oidc-login-callback"};this.oidcUserManager=new Xt(t)}static init(t,s){this.clientID=t,this.authority=s}static isConfigured(){return!!this.clientID&&!!this.authority}async login(){const t=await this.oidcUserManager.signinPopup({scope:"openid profile email"}),s=await fetch("/_auth/oidc-verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({access_token:t.access_token})});return s.ok?(await s.json()).jwt:null}async loginCallback(){await this.oidcUserManager.signinPopupCallback()}async logout(){await this.oidcUserManager.signoutPopup({post_logout_redirect_uri:window.location.origin+"/oidc-logout-callback"})}async logoutCallback(){await this.oidcUserManager.signoutPopupCallback()}};let L=B;$(L,"clientID",null),$(L,"authority",null);const ms=async()=>{L.isConfigured()&&new L().logout().catch(Ze)};async function Ss(){const e=await fetch("/_settings");if(!e.ok)throw new Error(await e.text());const t=await e.json();Q.init(t)}const ee=class{constructor(t){this.config=t}static init(t){L.init(t.oidc_client_id,t.oidc_authority),ee.instance=new ee(t)}get showWatermark(){return this.config.show_watermark}get isStagingRelease(){return{}.VITE_ABSTRA_RELEASE==="staging"}get isLocal(){return location.origin.match(/http:\/\/localhost:\d+/)}};let Q=ee;$(Q,"instance",null);var Yt=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Fe;const se=e=>Fe=e,$e=Symbol();function ge(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var V;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(V||(V={}));function vs(){const e=Re(!0),t=e.run(()=>te({}));let s=[],r=[];const i=xe({install(n){se(i),i._a=n,n.provide($e,i),n.config.globalProperties.$pinia=i,r.forEach(o=>s.push(o)),r=[]},use(n){return!this._a&&!Yt?r.push(n):s.push(n),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return i}const Je=()=>{};function ke(e,t,s,r=Je){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!s&&nt()&&ot(i),i}function W(e,...t){e.slice().forEach(s=>{s(...t)})}const Zt=e=>e();function _e(e,t){e instanceof Map&&t instanceof Map&&t.forEach((s,r)=>e.set(r,s)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const r=t[s],i=e[s];ge(i)&&ge(r)&&e.hasOwnProperty(s)&&!X(r)&&!Ce(r)?e[s]=_e(i,r):e[s]=r}return e}const es=Symbol();function ts(e){return!ge(e)||!e.hasOwnProperty(es)}const{assign:j}=Object;function ss(e){return!!(X(e)&&e.effect)}function rs(e,t,s,r){const{state:i,actions:n,getters:o}=t,a=s.state.value[e];let c;function l(){a||(s.state.value[e]=i?i():{});const u=ct(s.state.value[e]);return j(u,n,Object.keys(o||{}).reduce((d,p)=>(d[p]=xe(J(()=>{se(s);const f=s._s.get(e);return o[p].call(f,f)})),d),{}))}return c=Ke(e,l,t,s,r,!0),c}function Ke(e,t,s={},r,i,n){let o;const a=j({actions:{}},s),c={deep:!0};let l,u,d=[],p=[],f;const v=r.state.value[e];!n&&!v&&(r.state.value[e]={}),te({});let y;function b(g){let _;l=u=!1,typeof g=="function"?(g(r.state.value[e]),_={type:V.patchFunction,storeId:e,events:f}):(_e(r.state.value[e],g),_={type:V.patchObject,payload:g,storeId:e,events:f});const E=y=Symbol();at().then(()=>{y===E&&(l=!0)}),u=!0,W(d,_,r.state.value[e])}const U=n?function(){const{state:_}=s,E=_?_():{};this.$patch(O=>{j(O,E)})}:Je;function P(){o.stop(),d=[],p=[],r._s.delete(e)}function k(g,_){return function(){se(r);const E=Array.from(arguments),O=[],M=[];function re(T){O.push(T)}function ie(T){M.push(T)}W(p,{args:E,name:g,store:w,after:re,onError:ie});let H;try{H=_.apply(this&&this.$id===e?this:w,E)}catch(T){throw W(M,T),T}return H instanceof Promise?H.then(T=>(W(O,T),T)).catch(T=>(W(M,T),Promise.reject(T))):(W(O,H),H)}}const m={_p:r,$id:e,$onAction:ke.bind(null,p),$patch:b,$reset:U,$subscribe(g,_={}){const E=ke(d,g,_.detached,()=>O()),O=o.run(()=>st(()=>r.state.value[e],M=>{(_.flush==="sync"?u:l)&&g({storeId:e,type:V.direct,events:f},M)},j({},c,_)));return E},$dispose:P},w=rt(m);r._s.set(e,w);const S=(r._a&&r._a.runWithContext||Zt)(()=>r._e.run(()=>(o=Re()).run(t)));for(const g in S){const _=S[g];if(X(_)&&!ss(_)||Ce(_))n||(v&&ts(_)&&(X(_)?_.value=v[g]:_e(_,v[g])),r.state.value[e][g]=_);else if(typeof _=="function"){const E=k(g,_);S[g]=E,a.actions[g]=_}}return j(w,S),j(it(w),S),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:g=>{b(_=>{j(_,g)})}}),r._p.forEach(g=>{j(w,o.run(()=>g({store:w,app:r._a,pinia:r,options:a})))}),v&&n&&s.hydrate&&s.hydrate(w.$state,v),l=!0,u=!0,w}function ze(e,t,s){let r,i;const n=typeof t=="function";typeof e=="string"?(r=e,i=n?s:t):(i=e,r=e.id);function o(a,c){const l=et();return a=a||(l?tt($e,null):null),a&&se(a),a=Fe,a._s.has(r)||(n?Ke(r,t,i,a):rs(r,i,a)),a._s.get(r)}return o.$id=r,o}const is=2*60*60,ns=e=>{try{const t=dt(e);if(!t.exp)throw Error("expired jwt");return{email:t.email,expiresInSeconds:t.exp*1e3}}catch{console.warn("Invalid JWT")}return null},we=ze("user",()=>{const e=new lt(ut.string(),"auth:jwt"),t=te(null),s=()=>{t.value=null,e.remove()},r=u=>{e.set(u),t.value=u},i=()=>{t.value=e.get()},n=J(()=>t.value?{Authorization:`Bearer ${t.value}`}:{}),o=J(()=>t.value?["default",`base64url.bearer.authorization.${t.value}`]:[]),a=J(()=>t.value?ns(t.value):null),c=J(()=>{var u;return(u=a.value)==null?void 0:u.email}),l=()=>a.value?a.value.expiresInSeconds-Date.now()>is:!1;return i(),{jwt:t,email:c,saveJWT:r,removeJWT:s,isJWTValid:l,authHeaders:n,wsAuthHeaders:o}});function Ee(e,t,s){return pt(t)?t:s==="player"?`/_assets/${e}`:`/_editor/api/assets/${t}`}const Ve="#414a58",Be="#FFFFFF",os="#000000",Ge="DM Sans",as="Untitled Project",Qe={value:"en",label:"English"};function cs(e){var t,s,r,i,n,o,a,c,l,u,d,p,f,v,y,b;return{id:e.id,path:e.path,theme:(t=e.workspace.theme)!=null?t:Be,brandName:(s=e.workspace.brand_name)!=null?s:null,title:e.title,isInitial:e.is_initial,isLocal:(r=e.is_local)!=null?r:!1,startMessage:(i=e.start_message)!=null?i:null,endMessage:(n=e.end_message)!=null?n:null,errorMessage:(o=e.error_message)!=null?o:null,timeoutMessage:(a=e.timeout_message)!=null?a:null,startButtonText:(c=e.start_button_text)!=null?c:null,restartButtonText:(l=e.restart_button_text)!=null?l:null,logoUrl:e.workspace.logo_url,mainColor:(u=e.workspace.main_color)!=null?u:Ve,fontFamily:(d=e.workspace.font_family)!=null?d:Ge,autoStart:(p=e.auto_start)!=null?p:!1,allowRestart:e.allow_restart,welcomeTitle:(f=e.welcome_title)!=null?f:null,runtimeType:"form",language:(v=e.workspace.language)!=null?v:Qe.value,sidebar:(b=(y=e.workspace)==null?void 0:y.sidebar)!=null?b:[]}}function Te(e){var s;const t=(s=e.theme)!=null?s:Be;return{name:e.name||as,fontColor:e.font_color||os,sidebar:e.sidebar||[],brandName:e.brand_name||"",fontFamily:e.font_family||Ge,logoUrl:e.logo_url?Ee("logo",e.logo_url,"player"):null,mainColor:e.main_color||Ve,theme:ft(t)?t:Ee("background",t,"player"),language:e.language||Qe.value}}async function ys(e){const t=we(),s=await fetch(`/_pages/${e}`,{headers:t.authHeaders});if(s.status===404)return null;if(!s.ok)throw new Error(await s.text());const{form:r}=await s.json();return r?cs(r):null}async function ls(){const e=we(),t=await fetch("/_workspace",{headers:e.authHeaders});if(t.status!=200)return Te({});const s=await t.json();return Te(s)}async function us(e){const t=we();return(await fetch(`/_access-control/allow${e}`,{headers:t.authHeaders})).json()}const ds=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>N(()=>import("./OidcLoginCallback.477e3c64.js"),["assets/OidcLoginCallback.477e3c64.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>N(()=>import("./OidcLogoutCallback.da5c656b.js"),["assets/OidcLogoutCallback.da5c656b.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>N(()=>import("./Login.d911dd80.js"),["assets/Login.d911dd80.js","assets/Login.vue_vue_type_script_setup_true_lang.4f858dcf.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/string.0a3509c3.js","assets/CircularLoading.fdcc1083.js","assets/CircularLoading.1a558a0d.css","assets/index.73b06b4b.js","assets/index.126762e2.js","assets/Login.28df3844.css","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/Login.4a48908a.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>N(()=>import("./Main.0da9506c.js"),["assets/Main.0da9506c.js","assets/PlayerNavbar.dddcfb4f.js","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/LoadingOutlined.7a2941f5.js","assets/PhSignOut.vue.266bb925.js","assets/index.d33f3e49.js","assets/Avatar.8da44d42.js","assets/PlayerNavbar.bac3bd2c.css","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>N(()=>import("./Home.21b55f91.js"),["assets/Home.21b55f91.js","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/Watermark.41d3e1ab.js","assets/Watermark.4e66f4f8.css","assets/PhArrowSquareOut.vue.da8bb581.js","assets/index.2d55f403.js","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/LoadingOutlined.7a2941f5.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"threads",name:"playerThreads",component:()=>N(()=>import("./Threads.0de8595c.js"),["assets/Threads.0de8595c.js","assets/api.ebb7a8be.js","assets/fetch.fd4370bb.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/WorkflowView.a56d2fab.js","assets/polling.98a0bd01.js","assets/asyncComputed.cfc0cdaf.js","assets/PhQuestion.vue.5030f781.js","assets/ant-design.ae7d2f9f.js","assets/index.37c7ea66.js","assets/index.eefd8753.js","assets/index.90acc740.js","assets/CollapsePanel.14b56554.js","assets/index.d18d35d7.js","assets/index.2753fdb2.js","assets/Badge.7a29ebdb.js","assets/PhArrowCounterClockwise.vue.e0916215.js","assets/Workflow.0ffe81e0.js","assets/validations.1f9bbc1f.js","assets/string.0a3509c3.js","assets/uuid.4ec4da84.js","assets/index.73b06b4b.js","assets/workspaces.7bc437a6.js","assets/record.a6861841.js","assets/colorHelpers.0ac76147.js","assets/index.c8ad961f.js","assets/PhArrowDown.vue.bbcdf79c.js","assets/Workflow.0e84f462.css","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/LoadingOutlined.7a2941f5.js","assets/DeleteOutlined.0e27ef4f.js","assets/PhDownloadSimple.vue.53949cd1.js","assets/utils.c92e833b.js","assets/LoadingContainer.e327afe8.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.aec9e496.css","assets/url.e93ecf3f.js","assets/Threads.20c34c0b.css"]),meta:{title:"Threads"}},{path:"error/:status",name:"error",component:()=>N(()=>import("./Error.092cf89d.js"),["assets/Error.092cf89d.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.530fe6a0.js","assets/Logo.cf3e0e74.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/Logo.03290bf7.css","assets/Card.c4293d90.js","assets/TabPane.2034bc94.js","assets/url.e93ecf3f.js","assets/colorHelpers.0ac76147.js","assets/Error.ecf978ca.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>N(()=>import("./Form.6107acc8.js"),["assets/Form.6107acc8.js","assets/api.ebb7a8be.js","assets/fetch.fd4370bb.js","assets/index.8c3f27aa.js","assets/index.b3bf2b78.css","assets/metadata.2beed20a.js","assets/PhBug.vue.96a42e8e.js","assets/PhCheckCircle.vue.9df5f131.js","assets/PhKanban.vue.444564da.js","assets/PhWebhooksLogo.vue.e865dba6.js","assets/FormRunner.b9a7fe60.js","assets/url.e93ecf3f.js","assets/Login.vue_vue_type_script_setup_true_lang.4f858dcf.js","assets/Logo.cf3e0e74.js","assets/Logo.03290bf7.css","assets/string.0a3509c3.js","assets/CircularLoading.fdcc1083.js","assets/CircularLoading.1a558a0d.css","assets/index.73b06b4b.js","assets/index.126762e2.js","assets/Login.28df3844.css","assets/Steps.526dbd54.js","assets/index.f36b2f2c.js","assets/Steps.4d03c6c1.css","assets/Watermark.41d3e1ab.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.616c8292.css","assets/asyncComputed.cfc0cdaf.js","assets/uuid.4ec4da84.js","assets/colorHelpers.0ac76147.js","assets/Form.ddfc3674.css"]),meta:{hideLogin:!0}}]}],Ie=ht({history:gt("/"),routes:ds,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),hs=e=>async(t,s)=>{if(_t(t,s),t.meta.allowUnauthenticated)return;const i=await us(t.path),{redirect:n,...o}=t.query;switch(i.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...o,redirect:n||t.path},params:t.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};Ie.beforeEach(hs(Ie));const bs=ze("workspace",()=>{const e=te({workspace:null,loading:!1});return{state:e,actions:{async fetch(){e.value.loading=!0,e.value.workspace=await ls(),e.value.loading=!1}}}});export{ws as A,Ve as D,L as O,Q as S,Ie as a,we as b,vs as c,ze as d,Ge as e,Qe as f,hs as g,Be as h,ys as i,ms as l,Ee as m,ds as r,Ss as s,bs as u}; -//# sourceMappingURL=workspaceStore.a6063d10.js.map + */let Fe;const se=e=>Fe=e,$e=Symbol();function ge(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var V;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(V||(V={}));function vs(){const e=Re(!0),t=e.run(()=>te({}));let s=[],r=[];const i=xe({install(n){se(i),i._a=n,n.provide($e,i),n.config.globalProperties.$pinia=i,r.forEach(o=>s.push(o)),r=[]},use(n){return!this._a&&!Yt?r.push(n):s.push(n),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return i}const Je=()=>{};function ke(e,t,s,r=Je){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!s&&nt()&&ot(i),i}function W(e,...t){e.slice().forEach(s=>{s(...t)})}const Zt=e=>e();function _e(e,t){e instanceof Map&&t instanceof Map&&t.forEach((s,r)=>e.set(r,s)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const r=t[s],i=e[s];ge(i)&&ge(r)&&e.hasOwnProperty(s)&&!X(r)&&!Ce(r)?e[s]=_e(i,r):e[s]=r}return e}const es=Symbol();function ts(e){return!ge(e)||!e.hasOwnProperty(es)}const{assign:j}=Object;function ss(e){return!!(X(e)&&e.effect)}function rs(e,t,s,r){const{state:i,actions:n,getters:o}=t,a=s.state.value[e];let c;function l(){a||(s.state.value[e]=i?i():{});const u=ct(s.state.value[e]);return j(u,n,Object.keys(o||{}).reduce((d,p)=>(d[p]=xe(J(()=>{se(s);const f=s._s.get(e);return o[p].call(f,f)})),d),{}))}return c=Ke(e,l,t,s,r,!0),c}function Ke(e,t,s={},r,i,n){let o;const a=j({actions:{}},s),c={deep:!0};let l,u,d=[],p=[],f;const v=r.state.value[e];!n&&!v&&(r.state.value[e]={}),te({});let y;function b(g){let _;l=u=!1,typeof g=="function"?(g(r.state.value[e]),_={type:V.patchFunction,storeId:e,events:f}):(_e(r.state.value[e],g),_={type:V.patchObject,payload:g,storeId:e,events:f});const E=y=Symbol();at().then(()=>{y===E&&(l=!0)}),u=!0,W(d,_,r.state.value[e])}const U=n?function(){const{state:_}=s,E=_?_():{};this.$patch(O=>{j(O,E)})}:Je;function P(){o.stop(),d=[],p=[],r._s.delete(e)}function k(g,_){return function(){se(r);const E=Array.from(arguments),O=[],M=[];function re(T){O.push(T)}function ie(T){M.push(T)}W(p,{args:E,name:g,store:w,after:re,onError:ie});let H;try{H=_.apply(this&&this.$id===e?this:w,E)}catch(T){throw W(M,T),T}return H instanceof Promise?H.then(T=>(W(O,T),T)).catch(T=>(W(M,T),Promise.reject(T))):(W(O,H),H)}}const m={_p:r,$id:e,$onAction:ke.bind(null,p),$patch:b,$reset:U,$subscribe(g,_={}){const E=ke(d,g,_.detached,()=>O()),O=o.run(()=>st(()=>r.state.value[e],M=>{(_.flush==="sync"?u:l)&&g({storeId:e,type:V.direct,events:f},M)},j({},c,_)));return E},$dispose:P},w=rt(m);r._s.set(e,w);const S=(r._a&&r._a.runWithContext||Zt)(()=>r._e.run(()=>(o=Re()).run(t)));for(const g in S){const _=S[g];if(X(_)&&!ss(_)||Ce(_))n||(v&&ts(_)&&(X(_)?_.value=v[g]:_e(_,v[g])),r.state.value[e][g]=_);else if(typeof _=="function"){const E=k(g,_);S[g]=E,a.actions[g]=_}}return j(w,S),j(it(w),S),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:g=>{b(_=>{j(_,g)})}}),r._p.forEach(g=>{j(w,o.run(()=>g({store:w,app:r._a,pinia:r,options:a})))}),v&&n&&s.hydrate&&s.hydrate(w.$state,v),l=!0,u=!0,w}function ze(e,t,s){let r,i;const n=typeof t=="function";typeof e=="string"?(r=e,i=n?s:t):(i=e,r=e.id);function o(a,c){const l=et();return a=a||(l?tt($e,null):null),a&&se(a),a=Fe,a._s.has(r)||(n?Ke(r,t,i,a):rs(r,i,a)),a._s.get(r)}return o.$id=r,o}const is=2*60*60,ns=e=>{try{const t=dt(e);if(!t.exp)throw Error("expired jwt");return{email:t.email,expiresInSeconds:t.exp*1e3}}catch{console.warn("Invalid JWT")}return null},we=ze("user",()=>{const e=new lt(ut.string(),"auth:jwt"),t=te(null),s=()=>{t.value=null,e.remove()},r=u=>{e.set(u),t.value=u},i=()=>{t.value=e.get()},n=J(()=>t.value?{Authorization:`Bearer ${t.value}`}:{}),o=J(()=>t.value?["default",`base64url.bearer.authorization.${t.value}`]:[]),a=J(()=>t.value?ns(t.value):null),c=J(()=>{var u;return(u=a.value)==null?void 0:u.email}),l=()=>a.value?a.value.expiresInSeconds-Date.now()>is:!1;return i(),{jwt:t,email:c,saveJWT:r,removeJWT:s,isJWTValid:l,authHeaders:n,wsAuthHeaders:o}});function Ee(e,t,s){return pt(t)?t:s==="player"?`/_assets/${e}`:`/_editor/api/assets/${t}`}const Ve="#414a58",Be="#FFFFFF",os="#000000",Ge="DM Sans",as="Untitled Project",Qe={value:"en",label:"English"};function cs(e){var t,s,r,i,n,o,a,c,l,u,d,p,f,v,y,b;return{id:e.id,path:e.path,theme:(t=e.workspace.theme)!=null?t:Be,brandName:(s=e.workspace.brand_name)!=null?s:null,title:e.title,isInitial:e.is_initial,isLocal:(r=e.is_local)!=null?r:!1,startMessage:(i=e.start_message)!=null?i:null,endMessage:(n=e.end_message)!=null?n:null,errorMessage:(o=e.error_message)!=null?o:null,timeoutMessage:(a=e.timeout_message)!=null?a:null,startButtonText:(c=e.start_button_text)!=null?c:null,restartButtonText:(l=e.restart_button_text)!=null?l:null,logoUrl:e.workspace.logo_url,mainColor:(u=e.workspace.main_color)!=null?u:Ve,fontFamily:(d=e.workspace.font_family)!=null?d:Ge,autoStart:(p=e.auto_start)!=null?p:!1,allowRestart:e.allow_restart,welcomeTitle:(f=e.welcome_title)!=null?f:null,runtimeType:"form",language:(v=e.workspace.language)!=null?v:Qe.value,sidebar:(b=(y=e.workspace)==null?void 0:y.sidebar)!=null?b:[]}}function Te(e){var s;const t=(s=e.theme)!=null?s:Be;return{name:e.name||as,fontColor:e.font_color||os,sidebar:e.sidebar||[],brandName:e.brand_name||"",fontFamily:e.font_family||Ge,logoUrl:e.logo_url?Ee("logo",e.logo_url,"player"):null,mainColor:e.main_color||Ve,theme:ft(t)?t:Ee("background",t,"player"),language:e.language||Qe.value}}async function ys(e){const t=we(),s=await fetch(`/_pages/${e}`,{headers:t.authHeaders});if(s.status===404)return null;if(!s.ok)throw new Error(await s.text());const{form:r}=await s.json();return r?cs(r):null}async function ls(){const e=we(),t=await fetch("/_workspace",{headers:e.authHeaders});if(t.status!=200)return Te({});const s=await t.json();return Te(s)}async function us(e){const t=we();return(await fetch(`/_access-control/allow${e}`,{headers:t.authHeaders})).json()}const ds=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>N(()=>import("./OidcLoginCallback.a316324b.js"),["assets/OidcLoginCallback.a316324b.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>N(()=>import("./OidcLogoutCallback.d58f4b22.js"),["assets/OidcLogoutCallback.d58f4b22.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>N(()=>import("./Login.fc60d0fc.js"),["assets/Login.fc60d0fc.js","assets/Login.vue_vue_type_script_setup_true_lang.9976d09a.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/string.d9c83adf.js","assets/CircularLoading.13413fc4.js","assets/CircularLoading.1a558a0d.css","assets/index.c7e8afe7.js","assets/index.289665f1.js","assets/Login.28df3844.css","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/Login.4a48908a.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>N(()=>import("./Main.7dbcdec0.js"),["assets/Main.7dbcdec0.js","assets/PlayerNavbar.8e419fbd.js","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/LoadingOutlined.bcfc8c20.js","assets/PhSignOut.vue.6dacf893.js","assets/index.3e715bc1.js","assets/Avatar.f6415f7c.js","assets/PlayerNavbar.bac3bd2c.css","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>N(()=>import("./Home.c18c55fc.js"),["assets/Home.c18c55fc.js","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/Watermark.32de12c9.js","assets/Watermark.4e66f4f8.css","assets/PhArrowSquareOut.vue.418ffcff.js","assets/index.a26d75c2.js","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/LoadingOutlined.bcfc8c20.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"threads",name:"playerThreads",component:()=>N(()=>import("./Threads.2e2a8fc1.js"),["assets/Threads.2e2a8fc1.js","assets/api.8656aeba.js","assets/fetch.e5ebd511.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/WorkflowView.0114ce29.js","assets/polling.c979afd7.js","assets/asyncComputed.703c33fd.js","assets/PhQuestion.vue.f82af3dd.js","assets/ant-design.d89b18ab.js","assets/index.a82e0ed1.js","assets/index.3814eba6.js","assets/index.05dd3c22.js","assets/CollapsePanel.40b6e69e.js","assets/index.a552d580.js","assets/index.7c84a9f5.js","assets/Badge.f6241be2.js","assets/PhArrowCounterClockwise.vue.70f7f135.js","assets/Workflow.1ecea04a.js","assets/validations.2475f715.js","assets/string.d9c83adf.js","assets/uuid.f9389d59.js","assets/index.c7e8afe7.js","assets/workspaces.e43325e2.js","assets/record.8c284c67.js","assets/colorHelpers.b079bb04.js","assets/index.61f90e53.js","assets/PhArrowDown.vue.1c758684.js","assets/Workflow.0e84f462.css","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/LoadingOutlined.bcfc8c20.js","assets/DeleteOutlined.5a680b6a.js","assets/PhDownloadSimple.vue.07a1756e.js","assets/utils.537da94d.js","assets/LoadingContainer.23bc0e74.js","assets/LoadingContainer.56fa997a.css","assets/WorkflowView.aec9e496.css","assets/url.121c9984.js","assets/Threads.20c34c0b.css"]),meta:{title:"Threads"}},{path:"error/:status",name:"error",component:()=>N(()=>import("./Error.afd3d51a.js"),["assets/Error.afd3d51a.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3d310313.js","assets/Logo.8f27935a.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/Logo.03290bf7.css","assets/Card.2a8fe028.js","assets/TabPane.79f4882f.js","assets/url.121c9984.js","assets/colorHelpers.b079bb04.js","assets/Error.ecf978ca.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>N(()=>import("./Form.8943571e.js"),["assets/Form.8943571e.js","assets/api.8656aeba.js","assets/fetch.e5ebd511.js","assets/index.d0f12294.js","assets/index.b3bf2b78.css","assets/metadata.bc77f4b9.js","assets/PhBug.vue.33662d9e.js","assets/PhCheckCircle.vue.e567d5b0.js","assets/PhKanban.vue.fc0591cb.js","assets/PhWebhooksLogo.vue.15a28437.js","assets/FormRunner.8bf9d58d.js","assets/url.121c9984.js","assets/Login.vue_vue_type_script_setup_true_lang.9976d09a.js","assets/Logo.8f27935a.js","assets/Logo.03290bf7.css","assets/string.d9c83adf.js","assets/CircularLoading.13413fc4.js","assets/CircularLoading.1a558a0d.css","assets/index.c7e8afe7.js","assets/index.289665f1.js","assets/Login.28df3844.css","assets/Steps.b72611f7.js","assets/index.2862b277.js","assets/Steps.4d03c6c1.css","assets/Watermark.32de12c9.js","assets/Watermark.4e66f4f8.css","assets/FormRunner.616c8292.css","assets/asyncComputed.703c33fd.js","assets/uuid.f9389d59.js","assets/colorHelpers.b079bb04.js","assets/Form.ddfc3674.css"]),meta:{hideLogin:!0}}]}],Ie=ht({history:gt("/"),routes:ds,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),hs=e=>async(t,s)=>{if(_t(t,s),t.meta.allowUnauthenticated)return;const i=await us(t.path),{redirect:n,...o}=t.query;switch(i.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...o,redirect:n||t.path},params:t.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};Ie.beforeEach(hs(Ie));const bs=ze("workspace",()=>{const e=te({workspace:null,loading:!1});return{state:e,actions:{async fetch(){e.value.loading=!0,e.value.workspace=await ls(),e.value.loading=!1}}}});export{ws as A,Ve as D,L as O,Q as S,Ie as a,we as b,vs as c,ze as d,Ge as e,Qe as f,hs as g,Be as h,ys as i,ms as l,Ee as m,ds as r,Ss as s,bs as u}; +//# sourceMappingURL=workspaceStore.e47060bf.js.map diff --git a/abstra_statics/dist/assets/workspaces.7bc437a6.js b/abstra_statics/dist/assets/workspaces.e43325e2.js similarity index 90% rename from abstra_statics/dist/assets/workspaces.7bc437a6.js rename to abstra_statics/dist/assets/workspaces.e43325e2.js index adecab8139..752260c3e7 100644 --- a/abstra_statics/dist/assets/workspaces.7bc437a6.js +++ b/abstra_statics/dist/assets/workspaces.e43325e2.js @@ -1,2 +1,2 @@ -var l=Object.defineProperty;var h=(a,e,t)=>e in a?l(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var s=(a,e,t)=>(h(a,typeof e!="symbol"?e+"":e,t),t);import{D as p,e as f,f as y,h as c,m as d}from"./workspaceStore.a6063d10.js";import{A as u}from"./record.a6861841.js";import{i as g}from"./colorHelpers.0ac76147.js";import"./index.8c3f27aa.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="89cb0ecf-8d64-41b9-bd57-0165fa5fef9a",a._sentryDebugIdIdentifier="sentry-dbid-89cb0ecf-8d64-41b9-bd57-0165fa5fef9a")}catch{}})();class w{async get(){return await(await fetch("/_editor/api/workspace",{method:"GET",headers:{"Content-Type":"application/json"}})).json()}async update(e,t){return await(await fetch("/_editor/api/workspace",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async create(e){throw new Error("Not implemented")}async openFile(e){await fetch("/_editor/api/workspace/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})}async initFile(e,t){await fetch("/_editor/api/workspace/init-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,type:t})})}async checkFile(e){const t=await fetch(`/_editor/api/workspace/check-file?path=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to check file");return await t.json()}async checkFiles(e){const t=await fetch("/_editor/api/workspace/check-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:e})});if(!t.ok)throw new Error("Failed to check files");return await t.json()}async readFile(e){const t=await fetch(`/_editor/api/workspace/read-file?file=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});return t.status===404?null:await t.text()}async readTestData(){return await(await fetch("/_editor/api/workspace/read-test-data",{method:"GET",headers:{"Content-Type":"application/json"}})).text()}async writeTestData(e){if(!(await fetch("/_editor/api/workspace/write-test-data",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({test_data:e})})).ok)throw new Error("Failed to write test data");return{success:!0}}async deploy(){if(!(await fetch("/_editor/api/workspace/deploy",{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to deploy")}}const r=new w,o=class{constructor(e){s(this,"record");this.record=u.create(r,e)}static async get(){const e=await r.get();return new o(e)}static from(e){return new o(e)}get brandName(){var e;return(e=this.record.get("brand_name"))!=null?e:""}set brandName(e){this.record.set("brand_name",e)}get fontColor(){var e;return(e=this.record.get("font_color"))!=null?e:"#000000"}set fontColor(e){this.record.set("font_color",e)}get logoUrl(){var e;return(e=this.record.get("logo_url"))!=null?e:""}set logoUrl(e){this.record.set("logo_url",e)}get faviconUrl(){var e;return(e=this.record.get("favicon_url"))!=null?e:""}set faviconUrl(e){this.record.set("favicon_url",e)}get mainColor(){var e;return(e=this.record.get("main_color"))!=null?e:p}set mainColor(e){this.record.set("main_color",e)}get fontFamily(){var e;return(e=this.record.get("font_family"))!=null?e:f}set fontFamily(e){this.record.set("font_family",e)}get language(){var e;return(e=this.record.get("language"))!=null?e:y.value}set language(e){this.record.set("language",e)}get theme(){var e;return(e=this.record.get("theme"))!=null?e:c}set theme(e){this.record.set("theme",e)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}static async openFile(e){await r.openFile(e)}static async initFile(e,t){await r.initFile(e,t)}static async checkFile(e){return r.checkFile(e)}static async checkFiles(e){return r.checkFiles(e)}async readFile(e){return r.readFile(e)}static async readTestData(){return r.readTestData()}static async writeTestData(e){return r.writeTestData(e)}static async deploy(){return r.deploy()}get sidebar(){var e;return(e=this.record.get("sidebar"))!=null?e:[]}set sidebar(e){this.record.set("sidebar",e)}makeRunnerData(){var e;return{sidebar:this.sidebar,name:this.brandName,fontColor:this.fontColor,brandName:this.brandName,fontFamily:this.fontFamily,logoUrl:this.logoUrl?d("logo",this.logoUrl,"editor"):null,mainColor:this.mainColor,theme:g(this.theme)?this.theme:(e=d("background",this.theme,"editor"))!=null?e:c,language:this.language}}};let n=o;s(n,"instance");export{n as W}; -//# sourceMappingURL=workspaces.7bc437a6.js.map +var l=Object.defineProperty;var h=(a,e,t)=>e in a?l(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var s=(a,e,t)=>(h(a,typeof e!="symbol"?e+"":e,t),t);import{D as p,e as f,f as y,h as c,m as d}from"./workspaceStore.e47060bf.js";import{A as u}from"./record.8c284c67.js";import{i as g}from"./colorHelpers.b079bb04.js";import"./index.d0f12294.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="208d0854-c3b9-4081-ad76-da5af63360cc",a._sentryDebugIdIdentifier="sentry-dbid-208d0854-c3b9-4081-ad76-da5af63360cc")}catch{}})();class w{async get(){return await(await fetch("/_editor/api/workspace",{method:"GET",headers:{"Content-Type":"application/json"}})).json()}async update(e,t){return await(await fetch("/_editor/api/workspace",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}async create(e){throw new Error("Not implemented")}async openFile(e){await fetch("/_editor/api/workspace/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})}async initFile(e,t){await fetch("/_editor/api/workspace/init-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,type:t})})}async checkFile(e){const t=await fetch(`/_editor/api/workspace/check-file?path=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to check file");return await t.json()}async checkFiles(e){const t=await fetch("/_editor/api/workspace/check-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:e})});if(!t.ok)throw new Error("Failed to check files");return await t.json()}async readFile(e){const t=await fetch(`/_editor/api/workspace/read-file?file=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});return t.status===404?null:await t.text()}async readTestData(){return await(await fetch("/_editor/api/workspace/read-test-data",{method:"GET",headers:{"Content-Type":"application/json"}})).text()}async writeTestData(e){if(!(await fetch("/_editor/api/workspace/write-test-data",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({test_data:e})})).ok)throw new Error("Failed to write test data");return{success:!0}}async deploy(){if(!(await fetch("/_editor/api/workspace/deploy",{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to deploy")}}const r=new w,o=class{constructor(e){s(this,"record");this.record=u.create(r,e)}static async get(){const e=await r.get();return new o(e)}static from(e){return new o(e)}get brandName(){var e;return(e=this.record.get("brand_name"))!=null?e:""}set brandName(e){this.record.set("brand_name",e)}get fontColor(){var e;return(e=this.record.get("font_color"))!=null?e:"#000000"}set fontColor(e){this.record.set("font_color",e)}get logoUrl(){var e;return(e=this.record.get("logo_url"))!=null?e:""}set logoUrl(e){this.record.set("logo_url",e)}get faviconUrl(){var e;return(e=this.record.get("favicon_url"))!=null?e:""}set faviconUrl(e){this.record.set("favicon_url",e)}get mainColor(){var e;return(e=this.record.get("main_color"))!=null?e:p}set mainColor(e){this.record.set("main_color",e)}get fontFamily(){var e;return(e=this.record.get("font_family"))!=null?e:f}set fontFamily(e){this.record.set("font_family",e)}get language(){var e;return(e=this.record.get("language"))!=null?e:y.value}set language(e){this.record.set("language",e)}get theme(){var e;return(e=this.record.get("theme"))!=null?e:c}set theme(e){this.record.set("theme",e)}async save(){return this.record.save()}hasChanges(){return this.record.hasChanges()}static async openFile(e){await r.openFile(e)}static async initFile(e,t){await r.initFile(e,t)}static async checkFile(e){return r.checkFile(e)}static async checkFiles(e){return r.checkFiles(e)}async readFile(e){return r.readFile(e)}static async readTestData(){return r.readTestData()}static async writeTestData(e){return r.writeTestData(e)}static async deploy(){return r.deploy()}get sidebar(){var e;return(e=this.record.get("sidebar"))!=null?e:[]}set sidebar(e){this.record.set("sidebar",e)}makeRunnerData(){var e;return{sidebar:this.sidebar,name:this.brandName,fontColor:this.fontColor,brandName:this.brandName,fontFamily:this.fontFamily,logoUrl:this.logoUrl?d("logo",this.logoUrl,"editor"):null,mainColor:this.mainColor,theme:g(this.theme)?this.theme:(e=d("background",this.theme,"editor"))!=null?e:c,language:this.language}}};let n=o;s(n,"instance");export{n as W}; +//# sourceMappingURL=workspaces.e43325e2.js.map diff --git a/abstra_statics/dist/assets/xml.7444b070.js b/abstra_statics/dist/assets/xml.91c4c3cb.js similarity index 77% rename from abstra_statics/dist/assets/xml.7444b070.js rename to abstra_statics/dist/assets/xml.91c4c3cb.js index 8dfa2a7058..3cbe7f389a 100644 --- a/abstra_statics/dist/assets/xml.7444b070.js +++ b/abstra_statics/dist/assets/xml.91c4c3cb.js @@ -1,7 +1,7 @@ -import{m as d}from"./toggleHighContrast.5028b4ff.js";import"./index.8c3f27aa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5a56e936-0377-4eb9-83e8-ddd10f29320b",t._sentryDebugIdIdentifier="sentry-dbid-5a56e936-0377-4eb9-83e8-ddd10f29320b")}catch{}})();/*!----------------------------------------------------------------------------- +import{m as d}from"./toggleHighContrast.0eb315ff.js";import"./index.d0f12294.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="430602c6-25ca-486f-938a-a5eb6358913a",t._sentryDebugIdIdentifier="sentry-dbid-430602c6-25ca-486f-938a-a5eb6358913a")}catch{}})();/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,r=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of m(e))!s.call(t,o)&&o!==n&&l(t,o,{get:()=>e[o],enumerable:!(i=c(e,o))||i.enumerable});return t},p=(t,e,n)=>(r(t,e,"default"),n&&r(n,e,"default")),a={};p(a,d);var g={comments:{blockComment:[""]},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:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},b={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"}],[/"]},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:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},b={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"}],[/